Hi all,
I have one table with 24 fields in SQL server.
In this some of the fields has NULL value.
But i want to get the records which does not have any NULL value in any one of the fields.
This is my Query:
Is it correct? Or can i use some other method. Because i have millions of records in this table.
I have one table with 24 fields in SQL server.
In this some of the fields has NULL value.
But i want to get the records which does not have any NULL value in any one of the fields.
This is my Query:
Code:
select * from tablename where v1 is not null and v2 is not null and v3 is not null and v4 is not null and v5 is not null and v6 is not null and v7 is not null and v8 is not null and v9 is not null and v10 is not null and v11 is not null and v12 is not null and v13 is not null and v14 is not null and v15 is not null and v16 is not null and v17 is not null and v18 is not null and v19 is not null and v20 is not null and v21 is not null and v22 is not null and v23 is not null and v24 is not null
Comment