I am trying to track all the changes that happened on my table
I tried this query
Update Stocks
Set stockOut = 100
,TrackDate = '1/30/2016'
,stockOnHand = stockOnHand - 400
WHERE itemID = '4589-S';
and this one.Both on Different date.
Update Stocks
Set stockOut = 200
,TrackDate = '2/30/2016'
,stockOnHand = stockOnHand - 400
WHERE itemID = '4589-S';
Now I used this query
SELECT
[ItemID]
,[ProdID]
,[stockOnHand]
,[stockIn]
,[stockOut]
,[TrackDate]
from Stocks
where TrackDate between '1/30/2016' and '5/30/2016'
to track the changes within the specific span of date.But I'm only getting 1 result only
I was Expecting to get 2 results because I've Updated this table in two different dates.
mysqland the date format you are saving is not correct date.