Archives of the TeradataForum
Message Posted: Sat, 22 Apr 2006 @ 14:02:16 GMT
I have a table with values as shown below below
Mem Id Name Value 1 A 'Good' 1 B 'Better' 1 A NULL 1 B 'WORST'
I need to write a SQL Such that for Name A when the Value is NULL then I need to look for Name B and fetch its corresponding value. Is there any way to do this using a single SQL statement?
In a gist for certain Name (A) when its value is null i need to fetch the value of a differnt name ( B)
|Copyright 2016 - All Rights Reserved|
|Last Modified: 23 Jun 2019|