Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SELECT SUM(colA) as 'colA',
- SUM(colB) as 'colB'
- FROM tblName
- WHERE colA,colB REGEXP 'Fail'
- OR colA, colB='Pass'
- ORDER BY colA, colB;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement