Em chào mn ạ , hiện tại em đang muốn viết 1 câu truy vấn có thể count dữ liệu của từng ngày giới hạn trong 7 ngày gần đây. Nếu ngày nào không có dữ liệu sẽ trả là 0 . Mn giúp em với ạ
(Kết quả trả về giống hình em minh họa ạ
)
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
select count(*) from table_cua_em where date > 7_ngaytruoc group by date order by date desc
em thử xem sao