0
這會拉回昨天和今天的兩個int值。我想從第三欄中的差異中減去聲明中的兩個結果:如何從該語句中的SELECT語句中減去兩個結果?
SELECT (
SELECT COUNT(*)
FROM collectors_users
WHERE DATE(dateadded) = CURDATE() - INTERVAL 1 DAY
) AS yesterday, COUNT(*) AS today
FROM collectors_users
WHERE DATE(dateadded) = CURDATE()