counting the number of rows & displaying columns that are not nul

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi Guys

i wanted to find out, what is the sql statement i need to count the number
of rows in search query and also the statement i need for displaying columns
that are not null

I'm writing this statement within vb.net

Thank you
 
Hi Guys
Hi,
i wanted to find out, what is the sql statement i need to count the number
of rows in search query

SELECT COUNT(*) FROM [tablename] WHERE [your where statement]
and also the statement i need for displaying columns
that are not null

SELECT [some columns] FROM [tablename] WHERE [a column] IS NOT NULL
I'm writing this statement within vb.net

Make use of the SqlCommand in the System.Data.Sql package.
Thank you

Hopefully it helped you.
 
Thank you, its working now

RBM007 said:
Hi Guys Hi,

i wanted to find out, what is the sql statement i need to count the number
of rows in search query

SELECT COUNT(*) FROM [tablename] WHERE [your where statement]
and also the statement i need for displaying columns
that are not null

SELECT [some columns] FROM [tablename] WHERE [a column] IS NOT NULL
I'm writing this statement within vb.net

Make use of the SqlCommand in the System.Data.Sql package.
Thank you

Hopefully it helped you.
 
Back
Top