I have table like Table1 and columns like Col1,col2,col3,col4,col5...upto col15
my pocedure valirable is @NP1
now i want to check if col1is null or empty then check for col2... like upto col15
like select *from table where Col1= @NP1
now i want to check if col1is null or empty then check for col2... like upto col15
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
rama krishnaPosted Oct 6, 2016, 5:29 AM
COALESCEselects the data from the first column that has a nonnull value.rama krishnaPosted Oct 6, 2016, 11:57 AM
Bikesh SrivastavaPosted Oct 6, 2016, 6:32 AM
ketan borsdiyaPosted Oct 6, 2016, 4:12 AM