Created
May 6, 2021 09:38
-
-
Save hugotai101/6a85cf864d6eeb4f2e212037a0c39745 to your computer and use it in GitHub Desktop.
Update On join table sql
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
UPDATE | |
sales.commissions | |
SET | |
sales.commissions.commission = | |
c.base_amount * t.percentage | |
FROM | |
sales.commissions c | |
INNER JOIN sales.targets t | |
ON c.target_id = t.target_id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment