I have a SQL query in which I am getting some records. Query is:
select c.Id, c.FirstName, dbo.GetClientStaffContacts(c.Id, '27,31') as Staff from Client c order by c.Id
Result is:
I want only those rows that are not having null values in column Staff.
Any help would be appreciated. Thank you.
select
c.Id, c.FirstName, dbo.GetClientStaffContacts(c.Id, '27,31') as Staff
from
Client c
where
dbo.GetClientStaffContacts(c.Id, '27,31') is not null
order
by c.Id
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With