Hello,
I was hoping that somebody would kindly help me with this question..
I know this may be very basic for you guys/girls in here..
I need to select a field "A" only if it has a value that exists, if not select a field "B"
So i am going along the lines of:
SELECT
x,
y,
z,
CASE WHEN IF EXISTS "A" THEN "A"
ELSE "B"
FROM TABLE 1234567
Can anyone help please?
I was hoping that somebody would kindly help me with this question..
I know this may be very basic for you guys/girls in here..
I need to select a field "A" only if it has a value that exists, if not select a field "B"
So i am going along the lines of:
SELECT
x,
y,
z,
CASE WHEN IF EXISTS "A" THEN "A"
ELSE "B"
FROM TABLE 1234567
Can anyone help please?
Comment