Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Date Query for Todays, Todate & Month Plan & Delivered Qty

$
0
0

I have tblOrder table with these fields in MS SQL 2008.

OrderID OrderDate ReqDeliveryDate ItemTitle ItemQty Customer
00001 10-Aug-2018 11-08-2018 ItemA 5000 ABC
00002 11-Aug-2018 12-08-2018 ItemA 5000 ABC
00003 12-Aug-2018 13-08-2018 ItemA 5000 ABC
00004 13-Aug-2018 14-08-2018 ItemA 5000 ABC
00005 14-Aug-2018 15-08-2018 ItemA 3500 ABC
00006 15-Aug-2018 16-08-2018 ItemA 5000 ABC
00007 16-Aug-2018 17-08-2018 ItemA 5000 ABC
00008 17-Aug-2018 18-08-2018 ItemA 5000 ABC
00009 18-Aug-2018 19-08-2018 ItemB 5000 XYZ
00010 19-Aug-2018 20-08-2018 ItemB 5000 XYZ



I have tblDespatch table with these fields.

DespatchID DespatchDate OrderTranID ItemTitle ItemQty ...


Viewing all articles
Browse latest Browse all 4871

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>