Beginning SQL
Beginning SQL Beginning SQL
Chapter 3 76 YearReleased 1947 1967 1967 1967 1975 1977 1980 1984 1987 1988 1989 1989 1997 2001 2005 If you require descending order, however, you must add DESC after the list of columns in the ORDER BY clause: SELECT YearReleased FROM Films ORDER BY YearReleased DESC; If you execute the preceding SELECT statement, the results are displayed from highest to lowest number, as shown in the following table: YearReleased 2005 2001 1997 1989 1989 1988 1987
- Page 142: Exercises 1. Three new members have
- Page 148: Chapter 3 54 MemberId FirstName 1 K
- Page 152: Chapter 3 The results are as follow
- Page 156: Chapter 3 The results to this query
- Page 160: Chapter 3 FavCategory (CategoryId,
- Page 164: Chapter 3 Logical Operators and Ope
- Page 168: Chapter 3 The statement returns the
- Page 172: Chapter 3 NOT Operator Examples thu
- Page 176: Chapter 3 2. Using the following SQ
- Page 180: Chapter 3 When you execute the quer
- Page 184: Chapter 3 Now that you’re acquain
- Page 188: Chapter 3 It’s as simple as that!
- Page 194: YearReleased 1984 1980 1977 1975 19
- Page 198: First, the database system orders t
- Page 202: LastName FirstName DateOfBirth Nigh
- Page 206: The preceding SQL returns the follo
- Page 210: If you put square brackets around i
- Page 214: Finally, if you want to use an alia
- Page 218: Member Name The member is called Ka
- Page 222: FilmName YearReleased Rating Sense
- Page 226: Figure 3-1 The first task when tack
- Page 230: That’s all well and good, but so
- Page 234: Category FirstName LastName War Jen
- Page 238: Extracting Information FirstName La
Chapter 3<br />
76<br />
YearReleased<br />
1947<br />
1967<br />
1967<br />
1967<br />
1975<br />
1977<br />
1980<br />
1984<br />
1987<br />
1988<br />
1989<br />
1989<br />
1997<br />
2001<br />
2005<br />
If you require descending order, however, you must add DESC after the list of columns in the ORDER BY<br />
clause:<br />
SELECT YearReleased<br />
FROM Films<br />
ORDER BY YearReleased DESC;<br />
If you execute the preceding SELECT statement, the results are displayed from highest to lowest number,<br />
as shown in the following table:<br />
YearReleased<br />
2005<br />
2001<br />
1997<br />
1989<br />
1989<br />
1988<br />
1987