Commit 631c5f51 authored by Kbida Vincent's avatar Kbida Vincent
parents e61f7451 3e9bb279
Partie 1 :
1. SELECT name FROM game;
2. SELECT name FROM game WHERE name LIKE '%Mario%';
3. SELECT perso.name FROM perso INNER JOIN game2character ON perso.id = game2character.character_id INNER JOIN game ON game2character.game_id = game.id WHERE game.name Like 'Mario%';
4. SELECT game.name FROM game INNER JOIN game2rating ON game.id = game2rating.game_id INNER JOIN game_rating ON game2rating.rating_id = game_rating.id WHERE game.name LIKE 'Mario%' AND game_rating.name LIKE '%3+%';
Partie 2 :
1. SELECT name FROM game WHERE name LIKE '%Mario%';
2. SELECT perso.name FROM perso INNER JOIN game2character ON perso.id = game2character.character_id WHERE game_id = 12342;
3. SELECT perso.name FROM perso INNER JOIN game ON perso.first_appeared_in_game_id = game.id WHERE game.name Like '%Mario%';
4. SELECT perso.name FROM perso INNER JOIN game2character ON perso.id = game2character.character_id INNER JOIN game ON game2character.game_id = game.id WHERE game.name Like '%Mario%';
5. SELECT game.name FROM game INNER JOIN game_developers ON game.id = game_developers.game_id INNER JOIN company ON game_developers.comp_id = company.id WHERE company.name LIKE '%Sony%';
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment