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

Explain the dirty pages?

1008


Do you have any idea about the tcl commands?

964


What is temporal table?

889


When setting replication, is it possible to have a publisher as 64 bit sql server and distributor or subscribers as a 32 bit sql server?

942


What is a sql join?

1022


What is the advantage of sql server?

1035


Explain few examples of RDBMS?

1041


What is an indice?

1037


Find first and last day of current month in sql server

1028


How to use wildcard characters in like operations in ms sql server?

1138


Which table keeps the locking information?

924


Can we return Data from 4(more than 1) tables in stored procedure?

1059


What is stored in the mssqlsystemresource database? : sql server database administration

1032


What is the latest version of microsoft sql server?

1047


How to find out the list schema name and table name for the database?

942