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

select e1."VenueNo", avg(e1."Ticket_price") as "avgTicket_price"
  from "events" e1
 group by e1."VenueNo"
