139 | | from ( |
140 | | |
141 | | (select extract (year from t.date) as godina, count(distinct e.id_event) broj_nastani, t."location" |
142 | | from ticket t |
143 | | join events e on t.id_event=e.id_event |
144 | | group by godina, t."location" |
| 139 | from |
| 140 | ( |
| 141 | |
| 142 | ( |
| 143 | select extract (year from t.date) as godina, count(distinct e.id_event) broj_nastani, t."location" |
| 144 | from ticket t |
| 145 | join events e on t.id_event = e.id_event |
| 146 | group by godina, t."location" |
150 | | select max(q2.broj_nastani) as max_broj_nastani |
151 | | from ( |
152 | | select extract (year from t.date) as godina, count(distinct e.id_event) broj_nastani, t."location" |
153 | | from ticket t |
154 | | join events e on t.id_event=e.id_event |
155 | | group by godina, t."location" |
| 151 | select max(q2.broj_nastani) as max_broj_nastani |
| 152 | from |
| 153 | ( |
| 154 | select extract (year from t.date) as godina, count(distinct e.id_event) broj_nastani, t."location" |
| 155 | from ticket t |
| 156 | join events e on t.id_event = e.id_event |
| 157 | group by godina, t."location" |