Quantcast
Channel: Forum Getting started with SQL Server
Viewing all articles
Browse latest Browse all 7129

Sorting out the 'NULLS'

$
0
0

I'm working on a T-SQL statement to sort out an employee list with those employees that have completed a test.  This is what I have-

use employ

select Lastname, Firstname, [test1]

from dbo.EmpRecords

where [test1] is not null

order by [test1];

the query returns all and also the records with also the 'NULLS' at the end how do I get the statement to leave out the 'NULL' thanks.


Viewing all articles
Browse latest Browse all 7129

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>