Dear Master² I have problem with Expiry Date Calculation this my code:-SELECT DISTINCT t_grndetail.ExpiryDate as ExpiryDate, t_grndetail.BatchCode as BatchCode, mas_itemsellingprice.ProductCode as ProductCode, mas_itemsellingprice.Description as Description, mas_itemlocation.ItemCode as ItemCode, t_grndetail.LocationCode as LocationCode FROM mas_itemsellingprice, mas_itemlocation, t_grndetail WHERE t_grndetail.ItemCode = mas_itemsellingprice.ItemCode AND mas_itemlocation.ItemCode = mas_itemsellingprice.ItemCode AND mas_itemsellingprice.ProductCode = '4800361331100' AND DateDiff('2010-10-25',t_grndetail.ExpiryDate)BETWEEN 0-30 AND t_grndetail.ExpiryDate >= '2010-10-25' ORDER BY t_grndetail.ExpiryDate ASC
What i'm doing query is. Showing upcoming expiry date from current date let say " today" and next 1 month,2 month, 3 month, 4 month, 5 month, 6 month & 7month & above.which is showing in my table:-|ExpiryDate|BatchCode|ProductCode|Description|ItemCode|LocationCode|Thank u in advance