A Guide to SQL
A Guide to SQL
9th Edition
ISBN: 9781111527273
Author: Philip J. Pratt
Publisher: Course Technology Ptr
bartleby

Concept explainers

Question
Book Icon
Chapter 5, Problem 6SCG
Program Plan Intro

ORDER BY Clause:

SQL contains “ORDER BY” clause in order to sort rows. The values get sorted in ascending as well as descending order. The keyword used to sort values in ascending order is “ASC” and for descending order is “DESC”. By default, it sorts values by ascending order.

Syntax:

SELECT column_Name1, column_Name2 FROM table_Name ORDER BY column_Name2;

Blurred answer
Students have asked these similar questions
11.use the following picture to answer the question below Show Customer name (concatenate First Name and Last Name with a space between) and total number of orders for each customer.  Name the total number of orders column as 'NumberOfOrders'.  Sort based on Number of orders in descending order.
This dataset “Birthweight_reduced_kg_R" contains information on new born babies and their parents. In the following a description of each variable is given: Name Variable Baby number Length of baby (cm) Weight of baby (kg) headcirumference Head Circumference ID length Birthweight Gestation Gestation (weeks) smoker Mother smokes 1 = smoker 0 = non-smoker motherage Maternal age Number of cigarettes smoked per day by mother mnocig Mothers height (cm) Mothers pre-pregnancy weight (kg) Father's age mheight mppwt fage Father's years in education Number of cigarettes smoked per day by father fedyrs fnocig Father's height (kg) Low birth weight, 0 = No and 1 = yes Mother over 35, 0 = No and 1 = yes fheight lowbwt mage35 Task 1: Load the csv file into Python environment and get the required columns to be used as x and y. Task 2: Use correlation coefficient to find and discuss the following: 1. Relationship between maternal height and baby length. 2. Relationship between mother's pre-pregnancy…
Find the first names and last names of employees if they got a salary increase more than 10% in the first month of 2000 together with their salary change dates, old salaries, new salaries, and increase percentages in descending order by their increase percentages.
Knowledge Booster
Background pattern image
Computer Science
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
SEE MORE QUESTIONS
Recommended textbooks for you
Text book image
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:9781337508841
Author:Carey
Publisher:Cengage