Where can I get free documentation of SQL/400 or DB2/400? I'd also like to know how to create a view from a query and use a Union operator?
Select * from Select ID, C1 as field from T1 Union Select ID, C2 as field from T1
Dig Deeper on DB2 UDB (universal databases)
Related Q&A from Kent Milligan
Create a host variable of the where in statement on the fly with dynamic SQL. Continue Reading
To solve the SQL error -321 on IBM i6.1, use the new values statement to overcome the error. If you are using an older release, declare a cursor ... Continue Reading
When working with DB2 files with columns that have both short and long names, there is no option choose which column names are returned via ODBC ... Continue Reading