|execute|create table testtbl (n int, twon int)|

!|insert|testtbl|
|n|twon|
|1|2|
|3|6|
|2|4|

|Store Query|select * from testtbl|fromtable|

|Store Query|select n, 2*n as twon from ( select 1 as n from sysibm.sysdummy1 union select 3 as n from sysibm.sysdummy1 union select 2 as n from sysibm.sysdummy1)|fromdual|

|compare stored queries|fromtable|fromdual|
|twon|n?|

|execute|drop table testtbl|
