Quantcast
Channel: Microsoft SQL Server
Viewing all articles
Browse latest Browse all 4871

SQL Tickets by location question

$
0
0

I'm having trouble with an SQL report with code:

SQL
selecttickets.c_locationsas"Location",COUNT(tickets.c_locations)as"QTY"fromticketsgroupbytickets.c_locations
the total of the tickets by "QTY" doesn't equal the total number of tickets that I have in the system, ie it is not counting all the tickets I have. What am I doing wrong and how can I get an accurate total of all tickets I have?

Viewing all articles
Browse latest Browse all 4871

Trending Articles



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