I am using mysql. When I use JOINS like this
SELECT u.Id,u.FirstName,u.LastName,u.Email,SUM(a.Amount) Amount FROM users u LEFT JOIN amount a WHERE a.ExpenseDate >= '2013-05-12' GROUP BY u.Id
I have 23 users but it shows only 14 users data since the rest 9 did not enter amount. I need all the 23 users against the amount.