I want to count all rows that have only the value that I want:
SELECT Users.Balance, Users.FreeBids, COUNT(Bids.Burned = 0) AS 'ActiveBids', COUNT(Bids.Burned = 1) AS 'BurnedBids' FROM Users INNER JOIN Bids ON Users.ID = Bids.BidderID WHERE Users.ID = 2 GROUP BY Users.Balance, Users.FreeBids
It says: β Invalid Syntax Neat '=' It works fine without theβ = ". How can I count the lines that Burned = 1 in them and Burned = 0 in them?
Thanks Dan
Danpe
source share