469,127 Members | 1,255 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,127 developers. It's quick & easy.

Subtracting from lowest value

I have a table that has SeqID, BoxID, Sku, Qty. I have multiple boxes of the same item and want to subtract from the Qty with the lowest SeqID only. What are some examples of doing this?
Feb 20 '09 #1
1 1533
2,878 Expert 2GB
Use MIN() to find which one has the lowest value. Then subtract it from there.

Feb 20 '09 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

31 posts views Thread by Spiro Trikaliotis | last post: by
5 posts views Thread by jayipee | last post: by
17 posts views Thread by rhitz1218 | last post: by
4 posts views Thread by tomek milewski | last post: by
54 posts views Thread by namcintosh | last post: by
30 posts views Thread by =?Utf-8?B?VGhvbWFzVDIy?= | last post: by
6 posts views Thread by Patrick Fisher | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by Mortomer39 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.