|
Archives of the TeradataForumMessage Posted: Fri, 03 Feb 2012 @ 15:39:35 GMT
<-- Anonymously Posted: Friday, February 03, 2012 10:26 --> Hi Senthil, It should be UNION instead of UNION ALL, since UNION ALL will show the duplicates which will be equivalent to twice the number of entries in dbc.tables. A better way is to use something like this: Select 'GE' as name from (sel 1 as ax) a Union Select 'ME' as name from (sel 1 as ay)b; or Select 'GE' as name from (sel current_date dt) a Union Select 'ME' as name from (sel current_date dt1)b; Thanks.
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||