Answered step by step
Verified Expert Solution
Link Copied!

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?
1 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;
2.
Question 2
Which of the following keyword should be used in order to set a filtering condition, when using GROUPBY clause?
1 point
WHERE
ORDER BY
HAVING
SELECT
3.
Question 3
You want to retrieve a list of authors from Australia, Canada, and India from the table Authors. Which SQL statement is correct?
1 point
SELECT * FROM Author IF Country (Australia, 'Canada', 'India');
SELECT * FROM Author WHERE Country IN (Australia, 'Canada', 'India');
SELECT * FROM Author WHERE Country BETWEEN(Australia,Canada,India);
SELECT * FROM Author WHERE Country LIST ('CA','IN');
4.
Question 4
You want to retrieve a list of books priced in the range $10 to $25 from the table Book. What are the two ways you can specify the range?
1 point
SELECT Title, Price FROM Book WHERE Price >=10 and Price <=25;
SELECT Title, Price FROM Book WHERE Price 10 to 25;
SELECT Title, Price FROM Book WHERE Price IN (10,25);
SELECT Title, Price FROM Book WHERE Price BETWEEN 10 and 25;
5.
Question 5
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?
1 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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

Explain the pages in white the expert taxes

Answered: 1 week ago

Question

D How will your group react to this revelation?

Answered: 1 week ago