I have a table Named Product_Sales
and it holds data like this
(我有一个名为Product_Sales
的表,它包含这样的数据)
Product_ID | Sold_by | Qty | From_date | To_date
-----------+---------+-----+------------+-----------
3 | 12 | 7 | 2013-01-05 | 2013-01-07
6 | 22 | 14 | 2013-01-06 | 2013-01-10
8 | 11 | 9 | 2013-02-05 | 2013-02-11
Now what is the query if I want to select sales data between two dates from a date range?
(现在,如果我想从日期范围中选择两个日期之间的销售数据,该怎么办?)
For example, I want to select sales data from 2013-01-03
to 2013-01-09
.
(例如,我要选择2013-01-03
至2013-01-09
销售数据。)
ask by Ronjon translate from so 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…