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

Can you explain how long are locks retained within the repeatable_read and serializable isolation levels, during a read operation with row-level locking?

932


What is the command used to recompile the stored procedure at run time?

1015


What is not null constraint?

1050


How to make a remote connection in a database?

922


What is the command used to check locks in microsoft sql server?

965


What is factless fact table? : sql server analysis services, ssas

961


What is the fillfactor concept in indexes?

933


What are database states in ms sql server?

1111


can any body tell me how to know the password of current user in sql server

2022


explain different types of backups avaialabe in sql server? : Sql server database administration

919


What is row_number()?

925


Can we use custom code in ssrs?

1055


How do I start sql server?

923


How to drop an existing schema in ms sql server?

1012


What is the purpose of sql profiler in sql server?

959