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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

ORDER BY

A

SQL clause used to sort the result-set in either ascending or descending order.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly