Quantcast
Channel: VBForums - Visual Basic 6 and Earlier
Viewing all articles
Browse latest Browse all 21278

[RESOLVED] Help with Query

$
0
0
I have this table, in it get the description in also group all the same description together. But I also have a QTY Column, which I would like to add. But the problem is, when I put Qty in the query below, it group how many times the same information is in the description column. But i wont it to add everything that have the same description Qty.

Example
description Qty
Broken 1
Broken 1
Latch Bracket 1
Latch Bracket 3


So the result should be

Broken 2
Latch Bracket 4



undefined Code:
  1. SELECT Top 10
  2. [description]
  3. FROM Scrap_Report
  4. where
  5. Date >= '20130201'
  6. Date <= '20130212'
  7. GROUP BY [description]

Viewing all articles
Browse latest Browse all 21278

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>