|
Archives of the TeradataForumMessage Posted: Sat, 22 Apr 2006 @ 14:02:16 GMT
Hello All, 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) Million Thanks Naveen.
| ||||||||||||||||||||||||||||||||||||||||||||||||
| ||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2016 - All Rights Reserved | ||||||||||||||||||||||||||||||||||||||||||||||||
Last Modified: 15 Jun 2023 | ||||||||||||||||||||||||||||||||||||||||||||||||