Skip to content
Advertisement

Query to see the MAX value in Oracle

I have the following N:N table (which stores the people boardings) in my Oracle Database (it is about an airport):

And I would like to make a query in order to see for each flight, which has been the day that has transported the highest amount of weight (keep in mind that a same flight, as RY-1234-VY for example, can make different travels in different days. I have been trying something like this, but it doesn’t work:

Advertisement

Answer

I think you were close.

Here is a demo

Something like this? :

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement