Jump to content

sql help


Recommended Posts

Posted

bhayyas....naku sql peda ga radhu...ippudu ippude leaning...yavarina koncham help cheyara

 

Actual Data:

Barcode#   Name  Quantity

1                 ABCD      2

1                  ABCD      4

3                  xxxxx      3

3                   xxxxx    7

4                   ZZZZ     8

 

Required Output:

Barcode#   Name  Quantity

1                 ABCD      6

3                  xxxxx      10

4                   ZZZZ     8

 

Posted

Select Barcode#,name, sum(Quantity) as Qty

from table

group by Barcode#, name

order by Barcode#

Posted
12 minutes ago, nene_nani said:

Select Barcode#,name, sum(Quantity) as Qty

from table

group by Barcode#, name

order by Barcode#

thx bhayya...nenus ame chesa but grp by qty kuda peta anduke raledhu mundhu

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...