Home Page for the TeradataForum
 
 

 

Archives of the TeradataForum





Message Posted: Tue, 04 May 2004 @ 18:38:07 GMT





     
  <Prev Next>  
<<First
<Prev
Next> Last>>  




Subj:   Dummy objectname in FROM clause
 
From:   Anomy Anom



<-- Anonymously Posted: Tuesday, May 04, 2004 13:36 -->

Isn't there a dummy objectname you can specify in Teradata SQL where you must include the FROM clause even though you don't actually need to access a table?

I know in some cases you don't need the FROM clause, e.g., 'SELECT DATE;'. But for example queries with UNION will fail:

     select 1
     union
     select 0;

     3888:  A SELECT for a UNION,INTERSECT or MINUS must reference a table.

I could swear I heard about this 'dummy table' in a Teradata Education class a few years ago but have never had occasion to use it. I know there are alternatives to this logic, but I am seeking an answer to this specific question.


Thanks.


p.s. Is it documented anywhere?





     
  <Prev Next>  
<<First
<Prev
Next> Last>>  
 
 
 
 
 
 
 
 
  
 
  Top Home Join Privacy Feedback  
 
 
Copyright for the TeradataForum (TDATA-L), Manta BlueSky 
Last Modified: 30 Jun 2008