Skip to content
Advertisement

i need to display customer’s first name and last name who have made the most number of booking. Using select

So using this table i have to display customers F Name and L name, so I tried using (Group By) but didn’t work

Advertisement

Answer

It sounds like you just need the name of the person with the highest value Bookingtotal.

You don’t specify your RDBMS, however

Your specific database might use limit instead of top; you can also use with ties for where the same total is shared by more than one.

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