Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Need SQL Commands for 1.) Using the actor table, select the Actors ID, and first

ID: 3605143 • Letter: N

Question

Need SQL Commands for

1.) Using the actor table, select the Actors ID, and first and last name. Sort the list by actors last name and then first name. Change the column titles to Actor ID, First Name, and Last Name.

Hint – first line: select actor_id, first_name, last_name

2.) Using the address table, select the Address, District, City ID, and postal code for all actors. Sort by District, and then City ID.

3.) Using the address table, select the Address, District, City ID, and postal code for those actors that live in England.

Explanation / Answer

Please give the thumbs up, if it is helpful for you!!. Let me know if you have any doubts.

Solutions:

Query1)
SELECT actor_id as 'Actor ID', first_name as 'First Name', last_name as 'Last Name'
FROM actor
ORDER BY last_name

Query2)
SELECT Address, District, CityID, postal_code
FROM address
ORDER BY District, CityID ;

Query3)
Using the address table,
SELECT Address, District, CityID, postal_code
FROM address
WHERE CityID = 'England';

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote