Quantcast
Channel: Teradata Forums - Database
Viewing all articles
Browse latest Browse all 14773

aliased column is ambiguous in where clause - response (1) by Harpreet Singh

$
0
0

one other way:
Select coalesce(a.dob, b.birth_date) as dob
From db.table1 a
Join db.table2 b (on a.field1 = b.field1)
Where coalesce(a.dob, b.birth_date) = '1900-01-01' 


Viewing all articles
Browse latest Browse all 14773

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>