ak2766

Sorted SQL Query Results

Jun 22nd, 2017
861
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 24.17 KB | None | 0 0
  1. MariaDB [thetvdb]>
  2. SELECT (@rn := @rn + 1) Num, sea.season Season, ep.EpisodeNumber Episode, ep.EpisodeName Title
  3.   FROM tvseasons sea
  4.  INNER JOIN tvepisodes ep ON ep.seasonid = sea.id
  5.  INNER JOIN tvseries ser ON ser.id = ep.seriesid
  6.  CROSS JOIN (select @rn := 0) params
  7.  WHERE ser.id = '78857' and season != 0
  8.  ORDER BY Season,Episode ASC;
  9. +------+--------+---------+-------------------------------------------------------------------------------+
  10. | Num  | Season | Episode | Title                                                                         |
  11. +------+--------+---------+-------------------------------------------------------------------------------+
  12. |    1 |      1 |       1 | Enter: Naruto Uzumaki!                                                        |
  13. |    2 |      1 |       2 | My Name is Konohamaru                                                         |
  14. |    3 |      1 |       3 | Sasuke and Sakura: Friends or Foes?                                           |
  15. |    4 |      1 |       4 | Pass or Fail: Survival Test                                                   |
  16. |    5 |      1 |       5 | You Failed! Kakashis Final Decision                                          |
  17. |    6 |      1 |       6 | A Dangerous Mission! Journey to the Land of Waves!                            |
  18. |    7 |      1 |       7 | The Assassin of the Mist!                                                     |
  19. |    8 |      1 |       8 | The Oath of Pain                                                              |
  20. |    9 |      1 |       9 | Kakashi: Sharingan Warrior!                                                   |
  21. |   10 |      1 |      10 | The Forest of Chakra                                                          |
  22. |   11 |      1 |      11 | The Land Where a Hero Once Lived                                              |
  23. |   12 |      1 |      12 | Battle on the Bridge! Zabuza Returns!                                         |
  24. |   13 |      1 |      13 | Hakus Secret Jutsu: Crystal Ice Mirrors                                      |
  25. |   14 |      1 |      14 | The Number One Hyperactive, Knucklehead Ninja Joins the Fight!                |
  26. |   15 |      1 |      15 | Zero Visibility: The Sharingan Shatters                                       |
  27. |   16 |      1 |      16 | The Broken Seal                                                               |
  28. |   17 |      1 |      17 | White Past: Hidden Ambition                                                   |
  29. |   18 |      1 |      18 | The Weapons Known as Shinobi                                                  |
  30. |   19 |      1 |      19 | The Demon in the Snow                                                         |
  31. |   20 |      1 |      20 | A New Chapter Begins: The Chūnin Exam!                                        |
  32. |   21 |      1 |      21 | Identify Yourself: Powerful New Rivals                                        |
  33. |   22 |      1 |      22 | Chūnin Challenge: Rock Lee vs. Sasuke!                                        |
  34. |   23 |      1 |      23 | Genin Takedown! All Nine Rookies Face Off!                                    |
  35. |   24 |      1 |      24 | Start Your Engines: The Chūnin Exam Begins!                                   |
  36. |   25 |      1 |      25 | The Tenth Question: All or Nothing                                            |
  37. |   27 |      1 |      26 | Special Report: Live from the Forest of Death!                                |
  38. |   28 |      1 |      27 | The Chunin Exam Stage 2: The Forest of Death                                  |
  39. |   26 |      1 |      28 | Eat or Be Eaten: Panic In the Forest                                          |
  40. |   29 |      1 |      29 | Narutos Counterattack: Never Give In!                                        |
  41. |   30 |      1 |      30 | The Sharingan Revived: Dragon Flame Jutsu!                                    |
  42. |   31 |      1 |      31 | Bushy Brows Pledge: Undying Love and Protection                              |
  43. |   32 |      1 |      32 | Sakura Blossoms!                                                              |
  44. |   33 |      1 |      33 | Battle Formation: Ino-Shika-Cho!                                              |
  45. |   34 |      1 |      34 | Akamaru Trembles: Gaaras Cruel Strength!                                     |
  46. |   35 |      1 |      35 | The Scrolls Secret: No Peeking Allowed                                       |
  47. |   36 |      2 |       1 | Clone vs. Clone: Mine are Better than Yours!                                  |
  48. |   37 |      2 |       2 | Surviving the Cut! The Rookie Nine Together Again!                            |
  49. |   38 |      2 |       3 | Narrowing the Field: Sudden Death Elimination!                                |
  50. |   39 |      2 |       4 | Bushy Brows Jealousy - Lions Barrage Unleashed!                              |
  51. |   40 |      2 |       5 | Kakashi and Orochimaru: Face-to-Face!                                         |
  52. |   41 |      2 |       6 | Kunoichi Rumble: The Rivals Get Serious!                                      |
  53. |   42 |      2 |       7 | The Ultimate Battle: Cha!                                                     |
  54. |   43 |      2 |       8 | Killer Kunoichi and a Shaky Shikamaru                                         |
  55. |   44 |      2 |       9 | Akamaru Unleashed! Whos Top Dog Now?                                         |
  56. |   45 |      2 |      10 | Surprise Attack! Narutos Secret Weapon!                                      |
  57. |   46 |      2 |      11 | Byakugan Battle: Hinata Grows Bold!                                           |
  58. |   47 |      2 |      12 | A Failure Stands Tall!                                                        |
  59. |   48 |      2 |      13 | Gaara vs. Rock Lee: The Power of Youth Explodes!                              |
  60. |   49 |      2 |      14 | Lees Hidden Strength: Forbidden Secret Jutsu!                                |
  61. |   50 |      2 |      15 | The Fifth Gate: A Splendid Ninja is Born                                      |
  62. |   51 |      2 |      16 | A Shadow in the Darkness: Danger Approaches Sasuke                            |
  63. |   52 |      2 |      17 | Ebisu Returns: Narutos Toughest Training Yet!                                |
  64. |  206 |      2 |      18 | Long Time No See: Jiraiya Returns!                                            |
  65. |   54 |      2 |      19 | Summoning Jutsu; Wisdom of the Toad Sage!                                     |
  66. |   55 |      2 |      20 | A Feeling of Yearning, A Flower Full of Hope                                  |
  67. |   56 |      2 |      21 | Live or Die: Risk It All to Win It All!                                       |
  68. |   57 |      2 |      22 | He Flies! He Jumps! He Lurks! Chief Toad Appears!                             |
  69. |   58 |      2 |      23 | Hospital Besieged: The Evil Hand Revealed!                                    |
  70. |   59 |      2 |      24 | The Final Rounds: Rush to the Battle Arena!                                   |
  71. |   60 |      2 |      25 | Byakugan vs. Shadow Clone Jutsu!                                              |
  72. |   61 |      2 |      26 | Ultimate Defense: Zero Blind Spot!                                            |
  73. |   62 |      2 |      27 | A Failures True Power                                                        |
  74. |   63 |      2 |      28 | Hit It or Quit It: The Final Rounds Get Complicated!                          |
  75. |   64 |      2 |      29 | Zero Motivation: The Guy with Cloud Envy!                                     |
  76. |   65 |      2 |      30 | Dancing Leaf, Squirming Sand                                                  |
  77. |   66 |      2 |      31 | Bushy Brows Jutsu: Sasuke Style!                                             |
  78. |   67 |      2 |      32 | I Wasnt Late for Nothing! Ultimate Move - Chidori Revealed!!                 |
  79. |   68 |      2 |      33 | Zero Hour! Destruction of Konoha Commenced!                                   |
  80. |   69 |      2 |      34 | Village in Distress: A New A-Ranked Mission!                                  |
  81. |   70 |      2 |      35 | A Shirkers Call to Action: Layabout No More!                                 |
  82. |   71 |      2 |      36 | Absolutely Incomparable! A Hokage-Level Battle!                               |
  83. |   72 |      2 |      37 | A Mistake from the Past: A Face Revealed!                                     |
  84. |   73 |      2 |      38 | Forbidden Secret Jutsu! Shiki-Fujin                                           |
  85. |   74 |      2 |      39 | Astonishment! Gaaras True Identity!                                          |
  86. |   75 |      2 |      40 | Over the Limit! Sasukes Decision                                             |
  87. |   76 |      2 |      41 | An Assassin in the Moonlight!                                                 |
  88. |   77 |      2 |      42 | Light and Shadow: The Name of Gaara!                                          |
  89. |   53 |      2 |      43 | Narutos Ninja Handbook                                                       |
  90. |   78 |      2 |      44 | Beyond the Limit of Darkness and Light                                        |
  91. |   79 |      2 |      45 | The Third Hokage, Forever...                                                  |
  92. |   80 |      2 |      46 | Coming Home in the Morning Mist                                               |
  93. |   81 |      2 |      47 | Sharingan vs. Sharingan!                                                      |
  94. |   82 |      2 |      48 | Jiraiya: Narutos Potential Disaster!                                         |
  95. |   83 |      3 |       1 | Roar, Chidori! Brother vs. Brother!                                           |
  96. |   84 |      3 |       2 | Foolish Little Brother: Despise Me, Hate Me!                                  |
  97. |   85 |      3 |       3 | The Pursuit of Knowledge! Ill Definately Get Stronger!!!                     |
  98. |   86 |      3 |       4 | Will Power! Break the Water Balloon!!!                                        |
  99. |   87 |      3 |       5 | Focal Point: The Symbol of the Hidden Leaf                                    |
  100. |   88 |      3 |       6 | Impossible Choice: The Pain in Tsunades Heart                                |
  101. |   89 |      3 |       7 | Angry Explosion! I Wont Forgive You!                                         |
  102. |   90 |      3 |       8 | Inheritance: The Necklace of Death                                            |
  103. |   91 |      3 |       9 | Yes or No! Tsunades Decision!                                                |
  104. |   92 |      3 |      10 | Negotiations Breakdown                                                        |
  105. |   93 |      3 |      11 | Attack! Fury of the Rasengan!                                                 |
  106. |   94 |      3 |      12 | The Fifth Hokage! Sacrificing Her Life to Fight!                              |
  107. |   95 |      3 |      13 | Three-way Battle! Tsunade and Jiraiya vs. Orochimaru!                         |
  108. |   96 |      3 |      14 | Narutos Hot Springs Adventure                                                |
  109. |   97 |      3 |      15 | Tsunades Warning: Ninja No More                                              |
  110. |   98 |      3 |      16 | The One Who Inherits the Will of Fire                                         |
  111. |   99 |      3 |      17 | Sensei and Student: The Bond of a Shinobi!                                    |
  112. |  100 |      3 |      18 | I Want to See it! Kakashi-senseis True Face                                  |
  113. |  101 |      3 |      19 | New Missions! Rescue the Tea Country!                                         |
  114. |  102 |      3 |      20 | The Race is On! Trouble on the High Seas!                                     |
  115. |  207 |      3 |      21 | Run Idate, Run! Nagi Island Awaits!                                           |
  116. |  104 |      3 |      22 | A Fierce Battle of Rolling Thunder!                                           |
  117. |  105 |      3 |      23 | The Last Leg: A Final Act of Desperation                                      |
  118. |  106 |      3 |      24 | The Battle Begins: Naruto vs. Sasuke                                          |
  119. |  107 |      3 |      25 | Bitter Rivals and Broken Bonds                                                |
  120. |  108 |      3 |      26 | An Invitation from the Sound                                                  |
  121. |  109 |      3 |      27 | Formation! The Sasuke Retrieval Squad                                         |
  122. |  110 |      3 |      28 | Sound vs. Leaf                                                                |
  123. |  111 |      3 |      29 | Squad Mutiny: Everything Falls Apart!                                         |
  124. |  112 |      3 |      30 | Full Throttle Power! Choji, Ablaze!                                           |
  125. |  113 |      3 |      31 | Good-bye Old Friend...! Ill Always Believe in You!                           |
  126. |  114 |      3 |      32 | Your Opponent Is Me!                                                          |
  127. |  115 |      3 |      33 | 360 Degrees of Vision: The Byakugans Blind Spot                              |
  128. |  116 |      3 |      34 | Losing is Not an Option!                                                      |
  129. |  117 |      3 |      35 | The Vessel Arrives Too Late                                                   |
  130. |  118 |      3 |      36 | Miscalculation: A New Enemy Appears!                                          |
  131. |  119 |      3 |      37 | Roar and Howl! The Ultimate Tag-Team!                                         |
  132. |  120 |      3 |      38 | To Each His Own Battle                                                        |
  133. |  121 |      3 |      39 | Fakeout: Shikamarus Comeback!                                                |
  134. |  122 |      3 |      40 | The Leafs Handsome Devil!                                                    |
  135. |  123 |      3 |      41 | The Beast Within                                                              |
  136. |  124 |      3 |      42 | The Sand Shinobi: Allies of the Leaf                                          |
  137. |  125 |      3 |      43 | Showdown: Gaara vs. Kimimaro                                                  |
  138. |  126 |      3 |      44 | Vengeful Strike! The Bracken Dance!                                           |
  139. |  127 |      3 |      45 | A Cry on Deaf Ears                                                            |
  140. |  103 |      3 |      46 | Brothers: Distance Among the Uchihas                                          |
  141. |  208 |      3 |      47 | Father and Son, the Broken Crest                                              |
  142. |  129 |      3 |      48 | The Secrets of the Mangekyō Sharingan                                         |
  143. |  130 |      4 |       1 | For a Friend...                                                               |
  144. |  131 |      4 |       2 | A Plea from a Friend                                                          |
  145. |  132 |      4 |       3 | The End of Tears                                                              |
  146. |  133 |      4 |       4 | The Promise That Could Not Be Kept                                            |
  147. |  134 |      4 |       5 | Deep Cover?! A Super S-Ranked Mission!                                        |
  148. |  135 |      4 |       6 | A Town of Outlaws, The Shadow of the Fuma Clan                                |
  149. |  136 |      4 |       7 | The Promise Betrayed, The Fleeting Request                                    |
  150. |  137 |      4 |       8 | Fear! Orochimarus Castle!                                                    |
  151. |  138 |      4 |       9 | Two Beats, Kabutos Trap!                                                     |
  152. |  139 |      4 |      10 | Sakuras Determination                                                        |
  153. |  140 |      4 |      11 | The Evil Trio of the High Security Installation!                              |
  154. |  141 |      4 |      12 | Run, Ton-ton! Im Depending on Your Nose!                                     |
  155. |  142 |      4 |      13 | Newly Formed Three Man Cell! Two People and an Animal!                        |
  156. |  143 |      4 |      14 | Explosion! New Formation! Ino-Shika-Cho                                       |
  157. |  144 |      4 |      15 | Leftover Ambitions and Orochimaru                                             |
  158. |  145 |      4 |      16 | Fateful Showdown! You Wont Defeat Me                                         |
  159. |  146 |      4 |      17 | Super Pursuit Power Even Akamaru is Jealous of! Seek the Mysterious Bikouchuu |
  160. |  147 |      4 |      18 | How Are They Different? Dont All Bugs Look the Same?                         |
  161. |  148 |      4 |      19 | Deceive, Confuse, and Be Deceived. The Grand Bug Battle                       |
  162. |  149 |      4 |      20 | Blaze Away, Byakugan! This is My Ninja Way!                                   |
  163. |  150 |      4 |      21 | Requiem for the Living                                                        |
  164. |  151 |      4 |      22 | A Lesson Learned: The Iron Fist of Love!                                      |
  165. |  209 |      4 |      23 | The Enemy of the Byakugan                                                     |
  166. |  210 |      4 |      24 | The Dark Creeping Clouds                                                      |
  167. |  211 |      4 |      25 | Raigas Counterattack                                                         |
  168. |  152 |      4 |      26 | Run!!! Curry of Life                                                          |
  169. |  153 |      4 |      27 | Everyone, Come With Me! Great Sweat and Tears Survival Plan                   |
  170. |  154 |      4 |      28 | Enemy or Ally?! Wilderness Bounty Hunting                                     |
  171. |  155 |      4 |      29 | Take or Be Taken?! Showdown at the Okay Temple!                               |
  172. |  156 |      4 |      30 | Meeting the Strange Visitor, Green Beast? Wild Beast?...Animal?               |
  173. |  157 |      4 |      31 | White Cursed Warrior                                                          |
  174. |  158 |      4 |      32 | Tactician - Expectation of Koumei                                             |
  175. |  159 |      4 |      33 | The Late Supporter                                                            |
  176. |  160 |      4 |      34 | Naruto Dies                                                                   |
  177. |  161 |      4 |      35 | The Time That is Stopped                                                      |
  178. |  162 |      4 |      36 | White Herons Flapping Wings of Time                                          |
  179. |  163 |      4 |      37 | Burn Zundou! Mix, Stretch, Boil!                                              |
  180. |  164 |      4 |      38 | Memory, the Lost Page                                                         |
  181. |  165 |      4 |      39 | Impact, the Closed Door                                                       |
  182. |  166 |      4 |      40 | Infiltration, the Devised Trap                                                |
  183. |  167 |      4 |      41 | Despair, the Broken Heart                                                     |
  184. |  168 |      4 |      42 | Sea Battle, the Released Power                                                |
  185. |  169 |      4 |      43 | No Waaaay! Celebrity Ninpou: Kinton no Jutsu                                  |
  186. |  170 |      4 |      44 | Dig Here! Woof! Woof! Search for Buried Treasure                              |
  187. |  171 |      4 |      45 | Zig Zag Run! Chase, Chased, Mistaken                                          |
  188. |  172 |      4 |      46 | OH?! Please, Mister Postman                                                   |
  189. |  173 |      4 |      47 | Encounter, The Boy Named “Star”                                               |
  190. |  128 |      4 |      48 | The Remembered Lullaby                                                        |
  191. |  212 |      5 |       1 | Hidden Jutsu! The Price of the Ninja Art: Kujaku                              |
  192. |  213 |      5 |       2 | Hoshikage: The Buried Truth                                                   |
  193. |  214 |      5 |       3 | Reunion: The Remaining Time                                                   |
  194. |  174 |      5 |       4 | The Stars Radiance                                                           |
  195. |  175 |      5 |       5 | Kibas Long Day                                                               |
  196. |  176 |      5 |       6 | A Legend from the Hidden Leaf: The Onbaa!                                     |
  197. |  177 |      5 |       7 | Laughing Shino                                                                |
  198. |  178 |      5 |       8 | Open for Business! The Leaf Moving Service                                    |
  199. |  179 |      5 |       9 | The Mystery of the Targeted Merchants                                         |
  200. |  180 |      5 |      10 | A Limitless Supply of Ninja Tools                                             |
  201. |  181 |      5 |      11 | The Byakugan Sees the Blind Spot!                                             |
  202. |  182 |      5 |      12 | Forecast: Death! Cloudy with Chance of Sun!                                   |
  203. |  183 |      5 |      13 | Ino Screams! Chubby Paradise!                                                 |
  204. |  184 |      5 |      14 | Viva Dojo Challenge! Youth is All About Passion!                              |
  205. |  185 |      5 |      15 | The Mysterious Curse of the Haunted Castle                                    |
  206. |  186 |      5 |      16 | The Third Super-Beast!                                                        |
  207. |  187 |      5 |      17 | Hot-Blooded Confrontation: Student vs. Sensei                                 |
  208. |  188 |      5 |      18 | Crisis: The Hidden Leaf 11 Gather!                                            |
  209. |  189 |      5 |      19 | The Anbu Gives Up? Narutos Recollection                                      |
  210. |  190 |      5 |      20 | The Missed Target                                                             |
  211. |  191 |      5 |      21 | The Powerful Helper                                                           |
  212. |  192 |      5 |      22 | Multiple Traps! Countdown to Destruction                                      |
  213. |  193 |      5 |      23 | The Top 5 Ninja Battles!                                                      |
  214. |  215 |      5 |      24 | Kurenais Decision: Squad 8 Left Behind                                       |
  215. |  216 |      5 |      25 | Yakumos Sealed Power                                                         |
  216. |  217 |      5 |      26 | Kurenais Top Secret Mission: The Promise with the Third Hokage               |
  217. |  218 |      5 |      27 | Genjutsu or Reality?                                                          |
  218. |  219 |      5 |      28 | The Supposed Sealed Ability                                                   |
  219. |  220 |      5 |      29 | The Weight of the Prized Artifact!                                            |
  220. |  194 |      5 |      30 | The Enemy                                                                     |
  221. |  195 |      5 |      31 | Labyrinth Forest                                                              |
  222. |  196 |      5 |      32 | Memories of Fire                                                              |
  223. |  197 |      5 |      33 | Everyones Paths                                                              |
  224. |  198 |      5 |      34 | The Lost Memory                                                               |
  225. |  199 |      5 |      35 | Take Back Reality                                                             |
  226. |  200 |      5 |      36 | Erasing the Past                                                              |
  227. |  201 |      5 |      37 | The Disappearing Craftsman, the Targeted Shukaku                              |
  228. |  202 |      5 |      38 | The Sands Allies - The Leafs Shinobi                                        |
  229. |  203 |      5 |      39 | The Sealed Sand Water Tigers Counterattack                                   |
  230. |  204 |      5 |      40 | The Resurrected Ultimate Weapon                                               |
  231. |  205 |      5 |      41 | Heading Out                                                                   |
  232. +------+--------+---------+-------------------------------------------------------------------------------+
  233. 220 rows in set (0.01 sec)
Advertisement
Add Comment
Please, Sign In to add comment