text QUETE JOINTURE
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了text QUETE JOINTURE相关的知识,希望对你有一定的参考价值。
mysql> select w.firstname, w.lastname, p.role, t.name
-> from player p, wizard w , team t
-> where p.wizard_id=w.id and t.id=p.team_id
-> order by name, role, lastname, firstname
-> ;
+-------------+-----------------+--------+------------+
| firstname | lastname | role | name |
+-------------+-----------------+--------+------------+
| Sirius | Black | beater | Gryffindor |
| Lavender | Brown | beater | Gryffindor |
| Seamus | Finnigan | beater | Gryffindor |
| Rubeus | Hagrid | beater | Gryffindor |
| Alice | Longbottom | beater | Gryffindor |
| Minerva | McGonagall | beater | Gryffindor |
| Harry | Potter | beater | Gryffindor |
| James | Potter | beater | Gryffindor |
| Dean | Thomas | beater | Gryffindor |
| Arthur | Weasley | beater | Gryffindor |
| Percy | Weasley | beater | Gryffindor |
| Katie | Bell | chaser | Gryffindor |
| Albus | Dumbledore | chaser | Gryffindor |
| Hermione | Granger | chaser | Gryffindor |
| Lily | J. | chaser | Gryffindor |
| Lee | Jordan | chaser | Gryffindor |
| Augusta | Longbottom | chaser | Gryffindor |
| Frank | Longbottom | chaser | Gryffindor |
| Neville | Longbottom | chaser | Gryffindor |
| Peter | Pettigrew | chaser | Gryffindor |
| Alicia | Spinnet | chaser | Gryffindor |
| George | Weasley | chaser | Gryffindor |
| Oliver | Wood | chaser | Gryffindor |
| Cadogan | | keeper | Gryffindor |
| Dennis | Creevey | keeper | Gryffindor |
| Nicholas | de | keeper | Gryffindor |
| Aberforth | Dumbledore | keeper | Gryffindor |
| Angelina | Johnson | keeper | Gryffindor |
| Ginevra | Weasley | keeper | Gryffindor |
| Cuthbert | Binns | seeker | Gryffindor |
| Colin | Creevey | seeker | Gryffindor |
| Godric | Gryffindor | seeker | Gryffindor |
| Romilda | Vane | seeker | Gryffindor |
| Fred | Weasley | seeker | Gryffindor |
| Ronald | Weasley | seeker | Gryffindor |
| William | Weasley | seeker | Gryffindor |
| Hannah | Abbott | beater | Hufflepuff |
| Justin | Finch-Fletchley | beater | Hufflepuff |
| Fat | Friar | beater | Hufflepuff |
| Hepzibah | Smith | beater | Hufflepuff |
| Pomona | Sprout | beater | Hufflepuff |
| Nymphadora | Tonks | beater | Hufflepuff |
| Amelia | Bones | chaser | Hufflepuff |
| Newton | Scamander | chaser | Hufflepuff |
| Susan | Bones | keeper | Hufflepuff |
| Cedric | Diggory | keeper | Hufflepuff |
| Zacharias | Smith | keeper | Hufflepuff |
| Helga | Hufflepuff | seeker | Hufflepuff |
| Penelope | Clearwater | beater | Ravenclaw |
| Quirinus | Quirrell | beater | Ravenclaw |
| Helena | Ravenclaw | beater | Ravenclaw |
| Myrtle | Warren | beater | Ravenclaw |
| Cho | Chang | chaser | Ravenclaw |
| Marietta | Edgecombe | chaser | Ravenclaw |
| Filius | Flitwick | chaser | Ravenclaw |
| Anthony | Goldstein | chaser | Ravenclaw |
| Gilderoy | Lockhart | chaser | Ravenclaw |
| Luna | Lovegood | chaser | Ravenclaw |
| Xenophilius | Lovegood | chaser | Ravenclaw |
| Garrick | Ollivander | chaser | Ravenclaw |
| Michael | Corner | seeker | Ravenclaw |
| Rowena | Ravenclaw | seeker | Ravenclaw |
| Sybill | Trelawney | seeker | Ravenclaw |
| Millicent | Bulstrode | beater | Slytherin |
| Vincent | Crabbe | beater | Slytherin |
| Marcus | Flint | beater | Slytherin |
| Pansy | Parkinson | beater | Slytherin |
| Severus | Snape | beater | Slytherin |
| Blaise | Zabini | beater | Slytherin |
| Bloody | Baron | chaser | Slytherin |
| Bellatrix | Lestrange | chaser | Slytherin |
| Rodolphus | Lestrange | chaser | Slytherin |
| Draco | Malfoy | chaser | Slytherin |
| Lucius | Malfoy | chaser | Slytherin |
| Phineas | Nigellus | chaser | Slytherin |
| Theodore | Nott | chaser | Slytherin |
| Tom | Riddle | chaser | Slytherin |
| Andromeda | Tonks | chaser | Slytherin |
| Regulus | Black | keeper | Slytherin |
| Gregory | Goyle | seeker | Slytherin |
| Rabastan | Lestrange | seeker | Slytherin |
| Narcissa | Malfoy | seeker | Slytherin |
| Salazar | Slytherin | seeker | Slytherin |
| Dolores | Umbridge | seeker | Slytherin |
+-------------+-----------------+--------+------------+
84 rows in set (0.01 sec)
mysql> select firstname, lastname
-> from wizard
-> join player on wizard_id=wizard.id
-> where role='seeker'
-> order by lastname, firstname;
+-----------+------------+
| firstname | lastname |
+-----------+------------+
| Cuthbert | Binns |
| Michael | Corner |
| Colin | Creevey |
| Gregory | Goyle |
| Godric | Gryffindor |
| Helga | Hufflepuff |
| Rabastan | Lestrange |
| Narcissa | Malfoy |
| Rowena | Ravenclaw |
| Salazar | Slytherin |
| Sybill | Trelawney |
| Dolores | Umbridge |
| Romilda | Vane |
| Fred | Weasley |
| Ronald | Weasley |
| William | Weasley |
+-----------+------------+
16 rows in set (0.00 sec)
mysql> select firstname, lastname
-> from wizard
-> join player on wizard_id=wizard.id
-> where role!='quidditch';
+-------------+-----------------+
| firstname | lastname |
+-------------+-----------------+
| Hannah | Abbott |
| Katie | Bell |
| Cuthbert | Binns |
| Phineas | Nigellus |
| Regulus | Black |
| Sirius | Black |
| Amelia | Bones |
| Susan | Bones |
| Lavender | Brown |
| Millicent | Bulstrode |
| Cho | Chang |
| Penelope | Clearwater |
| Michael | Corner |
| Vincent | Crabbe |
| Colin | Creevey |
| Dennis | Creevey |
| Cedric | Diggory |
| Aberforth | Dumbledore |
| Albus | Dumbledore |
| Marietta | Edgecombe |
| Justin | Finch-Fletchley |
| Seamus | Finnigan |
| Marcus | Flint |
| Filius | Flitwick |
| Anthony | Goldstein |
| Gregory | Goyle |
| Hermione | Granger |
| Godric | Gryffindor |
| Rubeus | Hagrid |
| Helga | Hufflepuff |
| Angelina | Johnson |
| Lee | Jordan |
| Bellatrix | Lestrange |
| Rabastan | Lestrange |
| Rodolphus | Lestrange |
| Gilderoy | Lockhart |
| Alice | Longbottom |
| Frank | Longbottom |
| Augusta | Longbottom |
| Neville | Longbottom |
| Luna | Lovegood |
| Xenophilius | Lovegood |
| Draco | Malfoy |
| Lucius | Malfoy |
| Narcissa | Malfoy |
| Minerva | McGonagall |
| Theodore | Nott |
| Garrick | Ollivander |
| Pansy | Parkinson |
| Peter | Pettigrew |
| Harry | Potter |
| James | Potter |
| Lily | J. |
| Quirinus | Quirrell |
| Helena | Ravenclaw |
| Rowena | Ravenclaw |
| Tom | Riddle |
| Newton | Scamander |
| Salazar | Slytherin |
| Hepzibah | Smith |
| Zacharias | Smith |
| Severus | Snape |
| Alicia | Spinnet |
| Pomona | Sprout |
| Dean | Thomas |
| Andromeda | Tonks |
| Nymphadora | Tonks |
| Sybill | Trelawney |
| Dolores | Umbridge |
| Romilda | Vane |
| Arthur | Weasley |
| William | Weasley |
| Fred | Weasley |
| George | Weasley |
| Ginevra | Weasley |
| Percy | Weasley |
| Ronald | Weasley |
| Oliver | Wood |
| Blaise | Zabini |
| Bloody | Baron |
| Cadogan | |
| Fat | Friar |
| Myrtle | Warren |
| Nicholas | de |
+-------------+-----------------+
84 rows in set (0.00 sec)
mysql>
以上是关于text QUETE JOINTURE的主要内容,如果未能解决你的问题,请参考以下文章