Created
December 11, 2017 05:28
-
-
Save agawronski/a74bb16784381ed24d1c3b9566d262a1 to your computer and use it in GitHub Desktop.
Asking some basic questions about the purchaseorderdetail table.
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 * | |
from purchasing.purchaseorderdetail | |
limit 10; | |
-- Are there returns? | |
select * | |
from purchasing.purchaseorderdetail | |
where orderqty <= 0 | |
limit 10; | |
-- Why does receivedqty + rejectedqty not always equal to orderqty? | |
select * | |
from purchasing.purchaseorderdetail | |
where (receivedqty + rejectedqty) != orderqty | |
limit 10; | |
-- perhaps they were rejected back to the manufacturer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment