Created
March 8, 2011 19:33
-
-
Save gmgent/860857 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SELECT t_plan.partner_id, | |
| plan_amount – for_amount variance | |
| FROM | |
| (SELECT partner_id, amount plan_amount | |
| FROM revplan_infos | |
| WHERE revplan_type = 'Plan') t_plan | |
| JOIN ( | |
| SELECT partner_id, amount for_amount | |
| FROM revplan_infos | |
| WHERE revplan_type = 'Forecast') t_for | |
| ON t_for.partner_id = t_plan.partner_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment