I have table in my SQL Server database called OrderDetail which stores the order data. I have a column in this table called OrderDate which stores the date and time information about the orders.
I want to retrieve all those orders from OrderDetail table which were created today.
My scenario is that I want to make a button which will click by admin at night to see that how many orders are done today?
Any help regard to this will be appreciated.
try something like this:
I assumed that you have
IDin yourOrderDetailand thatIDis the same in theOrderDatetable.