how to count datewise data in sqlserver
Answers were Sorted based on User's Feedback
Answer / mythili
select BillDate, count(*) from AdminSalesDetailsItems group by BillDate
| Is This Answer Correct ? | 11 Yes | 6 No |
Answer / amit bhardwaj
SELECT COUNT(colmnName) FROM Tablename GROUP BY Columnname
| Is This Answer Correct ? | 9 Yes | 6 No |
Answer / 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 |
Answer / vidit tyagi
select BillDate, count(*) from AdminSalesDetailsItems group
by convert(BillDate,varchar,101)
| Is This Answer Correct ? | 4 Yes | 4 No |
What are wait types?
Describe about first three Normal forms.
Can we use where and having clause together?
How to make a remote connection in a database?
What are different types of join?
Where to find ntwdblib.dll version 2000.80.194.0?
Can you explain various data region available in ssrs with their use?
What are the kinds of subquery?
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?
What is the Query of getting last 10 transaction Reports (like insert, update, Delete Data from Tabele) ?
How to change the system date and time from SQL Plus Terminal ?
what’s the difference between Covering Indexes and Clustered Indexes ? how to use clustered index small ?
Oracle (3259)
SQL Server (4518)
MS Access (429)
MySQL (1402)
Postgre (483)
Sybase (267)
DB Architecture (141)
DB Administration (291)
DB Development (113)
SQL PLSQL (3330)
MongoDB (502)
IBM Informix (50)
Neo4j (82)
InfluxDB (0)
Apache CouchDB (44)
Firebird (5)
Database Management (1411)
Databases AllOther (288)