Problem with this query

Hi
I have 3 tables which are (flight, model, airplane)
Flight: fid, pid, aid, plannedDeparture, actualDeparture, passengerCount, destination
Model: mid, name
Airplane: aid, mid, oid, hid, dateAqu
and I want to get a report to show the total number of flights and the average passenger count for all completed flights grouped by Model.id and sorted by the average passenger count. Include Model.name into this report.

I tried this query, but it doesn't work. it made me crazy
select distinct…
Problem with this query

See original post by Roman10

Leave a Reply

Problem with this query

Hi
I have 3 tables which are (flight, model, airplane)
Flight: fid, pid, aid, plannedDeparture, actualDeparture, passengerCount, destination
Model: mid, name
Airplane: aid, mid, oid, hid, dateAqu
and I want to get a report to show the total number of flights and the average passenger count for all completed flights grouped by Model.id and sorted by the average passenger count. Include Model.name into this report.

I tried this query, but it doesn't work. it made me crazy
select distinct…
Problem with this query

See original post by Roman10

Leave a Reply