If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
The following query is not working in DB2 v 6 on OS/390 . How this can be achieved without creating a view. I would like to receive the min value from two tables.
SELECT MIN(VAL1) AS VAL2 FROM (
( SELECT MIN(COL1) AS VAL1
FROM TABLE1
)
UNION
( SELECT MIN(COL1) AS VAL1
FROM TABLE2
) )
Originally posted by suren
The following query is not working in DB2 v 6 on OS/390 . How this can be achieved without creating a view. I would like to receive the min value from two tables.
SELECT MIN(VAL1) AS VAL2 FROM (
( SELECT MIN(COL1) AS VAL1
FROM TABLE1
)
UNION
( SELECT MIN(COL1) AS VAL1
FROM TABLE2
) )
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.