Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sum(earnings) when title = 'Novice' as Novice_Earnings;
- sum(earnings) when title = 'Journeyman' as Journeyman_Earnings;
- sum(earnings) when title = 'Master' as Master_Earnings;
- SELECT title, sum(earnings) as earnings
- FROM business_ledger
- GROUP BY title
- SELECT
- title, certification, earnings
- FROM business_ledger
- WHERE certification in
- (SELECT certification
- FROM business_ledger
- )
- GROUP BY title, certification
- ORDER BY title, certification
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement