How do I output the number (count) of Win, Lost and TKO (win) from a query?
In the table I have something like this
ID | Outcome | Result_Type
--------------------------------
1 | Win | W TKO 1
2 | Win | W TKO 3
3 | Lost | L TKO 2
4 | Win | W UD 8
I would like output to be like this:
3 Win, 2 TKO (W), 1 Lost
SELECT count(Outcome) as 'TKO W' FROM record Where ResultType Like 'W TKO%'
SELECT count(Outcome) as W FROM record Where Outcome = 'Win'
SELECT count(Outcome) as L FROM record Where Outcome = 'Lost'
How do use this 3 query into a single query?
Thanks











Bookmarks