Hi guys..
The question I'm struggling with is this:
I have a list of helicopter names in different charters and I need to find out WHICH helicopter has the least amount of charters booked. Once I find that out I need to ONLY display the one that has the least.
I so far have this:
SELECT Helicopter_Name
, COUNT (Distinct Charter_NUM)
FROM Charter_Table
GROUP BY Helicopter Name
This is where I am stuck. I realise MIN could be used to pick out the value that is the smallest but I am not sure how to integrate this into the command.
Something like Where MIN = MIN Value
I'd really appreciate it.