What is the datatype returned by count(*)

Answer Posted / harsh

SELECT COUNT(*) as "Number of employees"
FROM employees
WHERE salary > 55000;

It would return the following result set:
Number of employees
5
HENCE IT RETURNS 'INT' TYPE.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do you know the capabilities of cursors?

535


What is the recommended total size of your memory optimized tables?

532


How can you manage sql azure security?

85


Explain the dirty pages?

580


as a general practice, it is recommended to have dbo be the owner of all database objects however, in your database you find number of tables owned by a user other than dbo, how could you fix this? : Sql server administration

538






What is report subscription?

93


How do I manually uninstall an instance of sql server 2016?

552


How do you run a trace?

522


how you can configure a running aggregate in SSRS?

114


How we can compare two database data?

521


What is the difference between varchar and nvarchar?

528


What are the restrictions that views have to follow?

565


How to specify the collation for a character data type in ms sql server?

559


what are different types of backups available in sql server? : Sql server database administration

499


What is difference between aggregate and analytic function?

487