By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,740 Members | 1,267 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,740 IT Pros & Developers. It's quick & easy.

i have two tables production.product(and sales table and i want to get the total unit

P: 1
Production.producttable(productid, productcategory, modifieddate and sales table( salesorderid, productid, ,quantity,unitprice,modifieddate,orderdate) so i want to get the total amount of unit solid from this two table. How can i write my query?
4 Weeks Ago #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 8,997
Expand|Select|Wrap|Line Numbers
  1. SELECT productid, SUM(quantity) FROM sales GROUP BY productid
4 Weeks Ago #2

Post your reply

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