Data Ciondensing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I am trying to run a query to get SALES-COGS-and ASP by Product Code.

Currently, I am getting multiple lines for the same Product Code. Can I
combine the specific product codes into a single line that sums these fields?

Thanks
 
Yes you can.
select sum(the column u wanna sum) from table where
product_code_collumn = code_number

You must be getting multiple lines without doin a sum because probably
the table u r woking on, the product code column is not the primary
key.
regards,yumi
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top