該查詢目前顯示MAX(海拉)到目前爲止SQL顯示信息
SELECT max(hella)
FROM (
SELECT G.firstname, G.lastname, count(*) as hella
FROM guest G, Timeslot TS, shows H
where G.timeslotnum = TS.timeslotnum
AND TS.shownumber = H.shownumber
AND H.showname = 'Fitness'
Group by g.firstname, G.lastname
ORDER by hella
)
As blabla
我想展示最大的名字和姓氏(海拉)項
你想要所有的關係爲最大,或只有一個(任意)? –