Member since
12-24-2014
4
Posts
0
Kudos Received
0
Solutions
01-01-2015
02:52 AM
"dual" is a keyword in oracle sql. It represents a fake table from which you can select whatever you want. It is extremely useful for a lot of etl tasks. For example if you need to generate a list of one hundred numbers you can do something like this SELECT ROWNUM rn FROM dual CONNECT BY 1=1 AND ROWNUM < 1001 (rownum is another special keyword in oracle to have an id of the row) Another example is this select 1 id, 'a' desc from dual union select 2 id, 'b' desc from dual creating on the fly a simple table with 2 rows 1,'a' 2,'b' and so on. This on the fly generated table data can then be used and joined with other table and so on. At the moment with impala i've create a real table to do the job inserting all the needed data Beleive me that this fake table became very handy in a lot of situations bye
... View more
12-24-2014
02:50 AM
In oracle it is possibile to use a statement like this select something from dual where dual is a special table on which you could select any field you like to It is a special purpose table that it is often used Any alternative in impala? At the moment what i need to do is a simple select 1 as type from dual thanks
... View more
Labels:
- Labels:
-
Apache Impala