I have table like:
+------+-----+ | name | nick| +------+-----+ | yosi | Y | | adam | NULL| +------+-----+
I need output of one column, of nick if nick is not null, or of name if nick is null.
like this:
+------+ |result| +------+ | Y | | adam | +------+
Is there a query for that ?
for Access and SQL server