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 common performance issues in sql server?

505


What is create command?

527


Does an index slow down updates on indexed columns?

582


What is the difference between NOROW and LOCKROW?

2244


What is dynamic cursor in SQL SERVER?

567






Explain the phases a transaction has to undergo?

558


Define self join in sql server joins?

527


Can we use having clause without group by?

556


What is the fillfactor concept in indexes?

536


What is outer join in sql server joins?

600


how to create “alternate row colour”?

109


How does normalization work?

508


How can you transfer data from a text file to a database table? Or how can you export data from a table to a comma delimited (csv) file? Or how can you import data from ms access to a table in a database? Or how can you export data from a table to an excel file?

571


What is the difference between char, varchar and nvarchar?

581


What are the aggregate and scalar functions?

527