Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
学ぶ Sorting by Multiple Columns | Sorting Data
/
Introduction to SQL

bookSorting by Multiple Columns

メニューを表示するにはスワイプしてください

Summary:

  • The retrieved data can be sorted with respect to the values of multiple columns as well using the ORDER BY clause;
  • The general syntax of the ORDER BY clause is: SELECT column1, column2, … FROM table_name ORDER BY columnA [ASC|DESC], columnB [ASC|DESC], …;;
  • SELECT name, age FROM students ORDER BY age, first_name.
question mark

In case of the expression ORDER BY age, first_name, the fetched rows are sorted first by:

正しい答えを選んでください

すべて明確でしたか?

どのように改善できますか?

フィードバックありがとうございます!

セクション 3.  3

AIに質問する

expand

AIに質問する

ChatGPT

何でも質問するか、提案された質問の1つを試してチャットを始めてください

セクション 3.  3
some-alt