|execute|create table testtbl (n int, name varchar(100))|

!|insert|testtbl|
|n|name|
|1|NAME1|
|3|NAME3|
|2|NAME2|

|Store Query|select * from testtbl|fromtable|

|Store Query|select n, cast(concat('NAME',n) as CHAR) as name from ( select 1 as n union select 3 union select 2) x|fromdual|

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

|execute|drop table testtbl|
