Microsoft
Software
Hardware
Network
Question : Doing Some math in a Select
I want to see if the qty on hand(QOH) is half of the FullPalletQty(FPQ)
so if item xyz has 20 on hand (QOH) and the item master shows full pallet qty (FPQ)=48
it would be .T.
since 20-48=28 (this is < half(48))
I want my select (if this is the best place to do it?) to....
SELECT item, qoh, fpq,
FROM MyTable ;
WHERE ((qoh-fpq) < (fpq/2));
into cursor cReults readwrite
Answer : Doing Some math in a Select
It is much simpler:
SELECT item, qoh, fpq ;
FROM MyTable ;
WHERE qoh >= fpq/2 ;
into cursor cReults readwrite
SELECT item, qoh, fpq, ROUND(qoh/fpq, 0) AS Percentage ;
FROM MyTable ;
WHERE qoh >= fpq/2 ;
into cursor cReults readwrite
BTW, 20-48= -28
Random Solutions
Error #3035 System Resurce Exceeded
Excel formula? (part 2)
Word 2007 opens slowly in Windows 7
Multiple if greater than less than
There is a(n) " in the form control's validationrule property
Authentication for OWA in Exchange 2007 fails.
Exchange 2007 mail redirect to external address?
How do I add users to SharePoint 2.0 site via Address Book in Office 2007?
Jump from main form into sun forms code in lost focus
logon.exe deleted - need help restoring it