السلام عليكم اخواني الكرام
لدي استعلام توحيد واريد ان اضع شرط على التاريخ فيه بحيث انه يتم البحث بين تاريخين
والاستعلام هو التالي ولا اعرف اين اضع شرط البحث بين تاريخين
SELECT Sum(Account.Pay) AS pay, Account.PayDate, Sum(Account.out) AS out , Account.Note FROM Account GROUP BY Account.PayDate, Account.Note UNION ALL
SELECT MyAccount.Pay, MyAccount.PayDate, MyAccount.out, MyAccount.Note FROM MyAccount UNION ALL SELECT Accountout.Pay, Accountout.outDate, Accountout.out, Accountout.Note from Accountout where ifpaid= false
ORDER BY Account.PayDate;
وشكرا لمشاركتك ووفقكم الله
