Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between the following two sql
statements
select count(*) from <tablename>
select count(col_name) from <tablename>

Answer Posted / sandeep

select count(*) from <tablename>
- return number of records from table


select count(col_name) from <tablename>
- return number of records where col_name is NOT NULL
- Null value is eliminated by an aggregate or other SET
operation.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to check if stored procedure is running in sql server?

1037


How to configure odbc dsn with different port numbers?

1077


How to create nested stored procedure?

1006


What is the difference between locking and multi-versioning?

981


What is user defined datatypes and when you should go for them?

1007


What is snapshot replication?

1042


Explain sub-query?

941


what is a self join? : Sql server database administration

1025


How to convert numeric expression data types by assignment operations?

1059


What are the different editions available in sql server 2000?

1040


How can you insert null values in a column while inserting the data?

1263


How to use union to merge outputs from two queries together in ms sql server?

1056


How to rebuild master databse?

1071


Explain temporary table vs table variable by using cursor alternative?

985


What is a periodical index?

914