You must use the Access database and create queries that will answer the request
ID: 3725573 • Letter: Y
Question
You must use the Access database and create queries that will answer the requests below. You may use Query by Example (QBE) or direct SQL to create the queries. Store them using the number of the question (Q1, Q2, etc.).
Obtain the First Name, Initials and Last Name of all second authors whose books were ordered by customers.
We're not using Join or Join In functions. Just SELECT, FROM, WHERE, ORDER BY, and SORT BY Thanks!
Explanation / Answer
Answer)
Obtain the First Name, Initials and Last Name of all second authors whose books were ordered by customers.
select FirstName, Initials, LastName from Author where AuthorID in(
select AuthorId from Wrote where AuthorRank=2 and ISBN in(
select ISBN from Book where ISBN in (
select distinct ISBN from OrderLine;
)
)
);
// From the subqueries we get the ISBN, then we use AurhotRank =2 to find the First Name, Initials and Last Name of all second authors.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.