Mysql
 sql >> Datenbank >  >> RDS >> Mysql

Verwenden von where und inner join in mysql

    SELECT `locations`.`name`
      FROM `locations`
INNER JOIN `school_locations`
        ON `locations`.`id` = `school_locations`.`location_id`
INNER JOIN `schools`
        ON `school_locations`.`school_id` = `schools_id`
     WHERE `type` = 'coun';

das WHERE -Klausel muss am Ende der Anweisung stehen