/*This SQL script uses Demos.abs database. 
  Please open ...\AbsoluteDatabase\Demos\Data\Demos.abs database file.
  This sample illustrates use of SUM function.
  The query retrieves sum of ticket prices for every venue.*/

select e1."VenueNo", sum(e1."Ticket_price") as "sumTicket_price"
  from "events" e1
 group by e1."VenueNo"
