how to count datewise data in sqlserver
Answer Posted / ambi
select BillDate, count(*) [Total] from
AdminSalesDetailsItems group
by convert(varchar(50),BillDate,101)
select BillDate, count(*) [Total] from
AdminSalesDetailsItems group
by convert(varcharBillDate,101)
| Is This Answer Correct ? | 5 Yes | 2 No |
Post New Answer View All Answers
What command is used to create a database in the sql server and how?
What is cube dimension? : sql server analysis services, ssas
please differentiate between delete and truncate?
Is there any difference between primary key and unique with the not null condition?
Explain filestream storage of sql server 2008?
What is Extended user-defined?
How can I check if a view exists in a sql server database?
what is blocking? : Sql server database administration
What are the steps you will take to improve the performance of a poor performing query?
Do you know what are the restrictions applicable while creating views? : SQL Server Architecture
What are the different authentication modes in sql server? How can it be changed?
Explain different types of locks in sql server.
What happens if an integer is too big for int date type?
Is candidate a key?
What are different types of collation sensitivity?