skip to Main Content

Dividing two COUNTS from mysql

Friends, I am trying to divide two COUNT(*) from MySQL: I have this query: SELECT 'Total ', COUNT(*) FROM root4 WHERE str_to_date(DATE, '%d.%m.%Y') = CURDATE() UNION SELECT 'Good', COUNT(*) FROM root4 WHERE str_to_date(DATE, '%d.%m.%Y') = CURDATE() AND testresult ='OK' The…

VIEW QUESTION
Back To Top
Search