Experts Exchange Solution brought to you by
"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.
select * from YourTableName WHERE NOT YourColumn IS NULL
Open in new window
I want MSSQL to exclude all the NULL result in columns from the table.
While there were several headline-grabbing ransomware attacks during in 2017, another big threat started appearing at the same time that didn’t get the same coverage – illicit cryptomining.
How do i exclude all the columns that is null?
WHERE nullable_col1 IS NOT NULL and nullable_col2 IS NOT NULL
1. Add only NOT NULL columns in your SELECT clause.
Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.
SELECT TOP 1 * from ur_tablename
From novice to tech pro — start learning today.
Members can enroll in this course at no extra cost.