Answered step by step
Verified Expert Solution
Question
1 Approved Answer
You want to retrieve a list of employees in alphabetical order of Lastname from the Employees table. Which SQL statement should you use? 1 point
You want to retrieve a list of employees in alphabetical order of Lastname from the Employees table. Which SQL statement should you use?
point
SELECT FROM Employees GROUP BY Lastname;
SELECT FROM Employees SORT BY Lastname;
SELECT FROM Employees ORDER BY Lastname;
SELECT FROM Employees ORDER BY Lastname DESC;
Question
Which of the following keyword should be used in order to set a filtering condition, when using GROUPBY clause?
point
WHERE
ORDER BY
HAVING
SELECT
Question
You want to retrieve a list of authors from Australia, Canada, and India from the table Authors. Which SQL statement is correct?
point
SELECT FROM Author IF Country Australia 'Canada', 'India';
SELECT FROM Author WHERE Country IN Australia 'Canada', 'India';
SELECT FROM Author WHERE Country BETWEENAustraliaCanadaIndia;
SELECT FROM Author WHERE Country LIST CAIN;
Question
You want to retrieve a list of books priced in the range $ to $ from the table Book. What are the two ways you can specify the range?
point
SELECT Title, Price FROM Book WHERE Price and Price ;
SELECT Title, Price FROM Book WHERE Price to ;
SELECT Title, Price FROM Book WHERE Price IN ;
SELECT Title, Price FROM Book WHERE Price BETWEEN and ;
Question
You want to retrieve Salary information for an employee called Ed from the Employee table. You write the following statement:
SELECT Firstname, Lastname, Salary FROM Employees
You see all the employees listed, and its hard to find Eds information. Which clause should you add to reduce the number of rows returned?
point
WHERE Employees Ed;
GROUP BY Firstname Ed;
ORDER BY Firstname;
WHERE Firstname Ed;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started