in how many ways we can use count()

Answer Posted / pravati

In two ways we can use count
1. SELECT COUNT(*) FROM table name.
2.SELECT COUNT(DISTINCT *) from table name.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the different type of replication in sql server?

755


what is raid and what are different types of raid configurations? : Sql server database administration

755


How to execute a sql statement using mssql_query()?

740


How to get a list of columns using the "sys.columns" view in ms sql server?

759


How do I setup a sql server database?

784


What is the size of transaction log file?

672


Can a database be shrunk with users active?

817


What are the acid properties?

747


Which event (check constraints, foreign key, rule, trigger, primary key check) will be performed last for an integrity check?

761


Explain hostprotectionattribute in sql server 2005?

807


How should i optimize the time for execution of stored procedure having single input and many output from the different tables?

1678


What is row_number () and partition by in sql server?

752


You notice that the transaction log on one of your databases is over 4gb the size of the data file is 2mb what could cause this situation, and how can you fix it?

859


How many full-text indexes can a table have?

741


Ways to improve the performance of a SQL Azure Database?

115