Changes between Version 1 and Version 2 of AdvancedReports


Ignore:
Timestamp:
01/10/24 09:28:23 (6 months ago)
Author:
184006
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • AdvancedReports

    v1 v2  
    99LIMIT 1;
    1010}}}
     11== Прикажување која раса е најчесто застапена.
     12{{{
     13SELECT b.name AS breed_name, COUNT(p.ID) AS pet_count
     14FROM project.breeds b
     15JOIN project.type_of_pets t ON b.ID = t.ID
     16JOIN project.pets p ON t.ID = p.typeOfPetsID
     17GROUP BY b.ID
     18ORDER BY pet_count DESC
     19LIMIT 1;
     20}}}