« first day (1447 days earlier)      last day (619 days later) » 

10:04 AM
0
Q: Select from a table if exists else select from another table [redshift]

Manoj KumarI have a situation where I want to fetch data from a table if it exists, otherwise take data from another table. A pseudo code is below: SELECT * FROM table1 IF table1 exists else SELECT * FROM table2; I tried many things but could not achieve what I wanted. I am using redshift.

 
10:15 AM
1 message moved from The Nineteenth Byte
 

« first day (1447 days earlier)      last day (619 days later) »