text 05 les连接

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text 05 les连接相关的知识,希望对你有一定的参考价值。

1.Retourne les noms, prénoms, rôle et équipe de tous les joueurs, classés dans l’ordre alphabétique par équipe, puis par rôle dans l’équipe, puis par nom de famille, puis par prénom.

mysql> select firstname, lastname, role, name from player join wizard on player.wizard_id=wizard.id join team on player.team_id=team.id order by team.name;
+-------------+-----------------+--------+------------+
| firstname   | lastname        | role   | name       |
+-------------+-----------------+--------+------------+
| Ronald      | Weasley         | seeker | Gryffindor |
| Augusta     | Longbottom      | chaser | Gryffindor |
| Arthur      | Weasley         | beater | Gryffindor |
| James       | Potter          | beater | Gryffindor |
| Nicholas    | de              | keeper | Gryffindor |
| Dean        | Thomas          | beater | Gryffindor |
| Minerva     | McGonagall      | beater | Gryffindor |
| Oliver      | Wood            | chaser | Gryffindor |
| Hermione    | Granger         | chaser | Gryffindor |
| Neville     | Longbottom      | chaser | Gryffindor |
| William     | Weasley         | seeker | Gryffindor |
| Lily        | J.              | chaser | Gryffindor |
| Katie       | Bell            | chaser | Gryffindor |
| Colin       | Creevey         | seeker | Gryffindor |
| Godric      | Gryffindor      | seeker | Gryffindor |
| Lavender    | Brown           | beater | Gryffindor |
| Fred        | Weasley         | seeker | Gryffindor |
| Seamus      | Finnigan        | beater | Gryffindor |
| Cuthbert    | Binns           | seeker | Gryffindor |
| Dennis      | Creevey         | keeper | Gryffindor |
| Rubeus      | Hagrid          | beater | Gryffindor |
| George      | Weasley         | chaser | Gryffindor |
| Cadogan     |                 | keeper | Gryffindor |
| Ginevra     | Weasley         | keeper | Gryffindor |
| Alice       | Longbottom      | beater | Gryffindor |
| Aberforth   | Dumbledore      | keeper | Gryffindor |
| Peter       | Pettigrew       | chaser | Gryffindor |
| Angelina    | Johnson         | keeper | Gryffindor |
| Alicia      | Spinnet         | chaser | Gryffindor |
| Percy       | Weasley         | beater | Gryffindor |
| Sirius      | Black           | beater | Gryffindor |
| Frank       | Longbottom      | chaser | Gryffindor |
| Romilda     | Vane            | seeker | Gryffindor |
| Albus       | Dumbledore      | chaser | Gryffindor |
| Harry       | Potter          | beater | Gryffindor |
| Lee         | Jordan          | chaser | Gryffindor |
| Newton      | Scamander       | chaser | Hufflepuff |
| Amelia      | Bones           | chaser | Hufflepuff |
| Hannah      | Abbott          | beater | Hufflepuff |
| Susan       | Bones           | keeper | Hufflepuff |
| Justin      | Finch-Fletchley | beater | Hufflepuff |
| Hepzibah    | Smith           | beater | Hufflepuff |
| Nymphadora  | Tonks           | beater | Hufflepuff |
| Zacharias   | Smith           | keeper | Hufflepuff |
| Cedric      | Diggory         | keeper | Hufflepuff |
| Helga       | Hufflepuff      | seeker | Hufflepuff |
| Fat         | Friar           | beater | Hufflepuff |
| Pomona      | Sprout          | beater | Hufflepuff |
| Michael     | Corner          | seeker | Ravenclaw  |
| Marietta    | Edgecombe       | chaser | Ravenclaw  |
| Luna        | Lovegood        | chaser | Ravenclaw  |
| Quirinus    | Quirrell        | beater | Ravenclaw  |
| Garrick     | Ollivander      | chaser | Ravenclaw  |
| Xenophilius | Lovegood        | chaser | Ravenclaw  |
| Helena      | Ravenclaw       | beater | Ravenclaw  |
| Gilderoy    | Lockhart        | chaser | Ravenclaw  |
| Sybill      | Trelawney       | seeker | Ravenclaw  |
| Cho         | Chang           | chaser | Ravenclaw  |
| Filius      | Flitwick        | chaser | Ravenclaw  |
| Rowena      | Ravenclaw       | seeker | Ravenclaw  |
| Penelope    | Clearwater      | beater | Ravenclaw  |
| Anthony     | Goldstein       | chaser | Ravenclaw  |
| Myrtle      | Warren          | beater | Ravenclaw  |
| Narcissa    | Malfoy          | seeker | Slytherin  |
| Gregory     | Goyle           | seeker | Slytherin  |
| Bellatrix   | Lestrange       | chaser | Slytherin  |
| Vincent     | Crabbe          | beater | Slytherin  |
| Salazar     | Slytherin       | seeker | Slytherin  |
| Rabastan    | Lestrange       | seeker | Slytherin  |
| Andromeda   | Tonks           | chaser | Slytherin  |
| Theodore    | Nott            | chaser | Slytherin  |
| Blaise      | Zabini          | beater | Slytherin  |
| Rodolphus   | Lestrange       | chaser | Slytherin  |
| Bloody      | Baron           | chaser | Slytherin  |
| Millicent   | Bulstrode       | beater | Slytherin  |
| Marcus      | Flint           | beater | Slytherin  |
| Phineas     | Nigellus        | chaser | Slytherin  |
| Pansy       | Parkinson       | beater | Slytherin  |
| Severus     | Snape           | beater | Slytherin  |
| Draco       | Malfoy          | chaser | Slytherin  |
| Regulus     | Black           | keeper | Slytherin  |
| Dolores     | Umbridge        | seeker | Slytherin  |
| Lucius      | Malfoy          | chaser | Slytherin  |
| Tom         | Riddle          | chaser | Slytherin  |
+-------------+-----------------+--------+------------+
84 rows in set (0,01 sec)

///////////////////////////////////////////////////////////////////////////////////////


2.Retourne uniquement les prénom et nom des joueurs ayant le rôle de seeker (attrapeur), classés par ordre alphabétique de nom puis prénom

mysql> SELECT lastname, firstname, role, name FROM player JOIN team ON team.id=player.team_id JOIN wizard ON wizard.id=player.wizard_id WHERE role="seeker";
+------------+-----------+--------+------------+
| lastname   | firstname | role   | name       |
+------------+-----------+--------+------------+
| Binns      | Cuthbert  | seeker | Gryffindor |
| Corner     | Michael   | seeker | Ravenclaw  |
| Creevey    | Colin     | seeker | Gryffindor |
| Goyle      | Gregory   | seeker | Slytherin  |
| Gryffindor | Godric    | seeker | Gryffindor |
| Hufflepuff | Helga     | seeker | Hufflepuff |
| Lestrange  | Rabastan  | seeker | Slytherin  |
| Malfoy     | Narcissa  | seeker | Slytherin  |
| Ravenclaw  | Rowena    | seeker | Ravenclaw  |
| Slytherin  | Salazar   | seeker | Slytherin  |
| Trelawney  | Sybill    | seeker | Ravenclaw  |
| Umbridge   | Dolores   | seeker | Slytherin  |
| Vane       | Romilda   | seeker | Gryffindor |
| Weasley    | William   | seeker | Gryffindor |
| Weasley    | Fred      | seeker | Gryffindor |
| Weasley    | Ronald    | seeker | Gryffindor |
+------------+-----------+--------+------------+
16 rows in set (0,00 sec)

///////////////////////////////////////////////////////////////////////////////////////

3.Retourne la liste de tous les sorciers qui ne pratiquent pas le quidditch.

mysql> select * from wizard where id not in (select wizard_id from player);
+----+-----------+----------+
| id | firstname | lastname |
+----+-----------+----------+
|  9 | Terry     | Boot     |
| 15 | Crabbe    |          |
| 45 | Remus     | Lupin    |
| 53 | Padma     | Patil    |
| 54 | Parvati   | Patil    |
| 63 | Demelza   | Robins   |
| 65 | Horace    | Slughorn |
| 80 | Charles   | Weasley  |
| 84 | Molly     | Weasley  |
+----+-----------+----------+
9 rows in set (0,01 sec)

以上是关于text 05 les连接的主要内容,如果未能解决你的问题,请参考以下文章

typescript 05. Les Composants。

sh Localiser un texte parmis tous les fichier d'répertoire

(Les01 Architecture II 内存结构)[20180110]

如何为频谱表定义排序键

shell+vim——05

在 libtorrent 示例中使用 maketorrent