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
What are the different authentication modes in sql server? How can it be changed?
How to rebuild the master database?
Explain how you can configure a running aggregate in SSRS?
What is the sql case statement used for?
Can sub report data source be different from that of the parent report?
What is RAID? What are the different types of RAID configurations?
In my application I have a process which picks the scanned files (tif format) from a shared location and it links to application and shown on it.The actuall issue is that my process picks the file before it is completly written or scanned which results in displaying few parts of the image or incomplete image.I need to check if the file is not completly scanned or written then do not link it to application.Please help if any body tell me that how can i check that file is in written phase or locked through DTS.thanking you in advance
Explain syntax for viewing, dropping and disabling triggers?
What is the difference between locking and multi-versioning?
What is difference between cte and view?
What is sql server programming?
What are information schema views?
What are sql servers used for?
What xml support does the sql server extend?
How do users use Report Builder with SQL Server data sources?