Hi,
sql server select query:
=================
I have memberTable have 150 columns, in this 150 columns 70 columns mandatory columns
remaining columns based on condition display columns,null value columns should not display.
example: I have 50 records in my memberTable. first 70 columns mandatory.In 71 to 150 not mandatory columns,
if table have data that columns only show it.remaining columns don't show it.
col1,col2,col3...col150
col1 to col70 must display
col71 to col150 which column have no value.don't show that columns.
How to write select query?.
What I have tried:
select * from memberTable;
it will display all columns.but in col71,col72,col73 ... col149,col150 some columns have null value.i don't show null value columns or empty columns.