Postgresql – join multiple subqueries wtih aggregated data
My data are: order_id chef_name order_returned 1001 Charles McBakey Y 1001 Sarah McCookin N 1001 John McFry N 1001 Charles McBakey N 1001 John McFry N 1001 John McFry Y 1001 John McFry Y 1001 Sarah McCookin N 1001 Charles…