Lesson 4: Sorting Data Flashcards
1
Q
Sort or Sorting
A
The process of organizing data in a particular order allowing for information to be found more easily. For example, sorting names in alphabetical order.
2
Q
ORDER BY
A
SQL clause used to sort the result-set in either ascending or descending order.
3
Q
DESC
A
SQL keyword used with the ORDER BY clause to indicate descending order. For example, 5, 4, 3, 2, 1 or E, D, C, B, A.
4
Q
ASC
A
SQL keyword used with the ORDER BY clause to indicate ascending order. For example, 1, 2, 3, 4, 5 or A, B, C, D, E. (default sorting and doesn’t need to be added)
5
Q
Default
A
The default is a setting that is done automatically. The default can be changed by being specific in the SQL query statement.