September 15, 2007 at 10:51 pm
How can i count no of row in a table plz tel me query
September 16, 2007 at 2:46 am
Just use system function COUNT.
_____________
Code for TallyGenerator
September 16, 2007 at 7:48 am
Sounds like you need an intro to SQL... here's a good overview...
--Jeff Moden
Change is inevitable... Change for the better is not.
September 17, 2007 at 1:18 pm
select count(columnname) from tablename
this will let u know how many rows u hav..any column name would do good
September 17, 2007 at 3:13 pm
Actually, that might be a bad idea. Count(columnname) only returns the count of rows where that column is not null. Count(*) returns the actual count, including rows with nulls. I'd also second Jeff Moden's recommendation and add that you might take a gander at BOL as a starting point for these types of things.
Viewing 5 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic. Login to reply