Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Learn Challenge: Members with No Borrowings | Subqueries in Library Management
Subqueries in SQL

bookChallenge: Members with No Borrowings

Task

Swipe to start coding

You need to write a query to find all members who have never borrowed a book. Use a subquery to identify members whose member_id does not appear in the borrowings table.

  • Select the name of each member.
  • Use a subquery to find all member_id values present in the borrowings table.
  • Return only those members whose member_id is not present in the subquery result.

Solution

Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 5
single

single

Ask AI

expand

Ask AI

ChatGPT

Ask anything or try one of the suggested questions to begin our chat

Suggested prompts:

Can you explain this in simpler terms?

What are the main points I should remember?

Can you give me an example?

close

bookChallenge: Members with No Borrowings

Swipe to show menu

Task

Swipe to start coding

You need to write a query to find all members who have never borrowed a book. Use a subquery to identify members whose member_id does not appear in the borrowings table.

  • Select the name of each member.
  • Use a subquery to find all member_id values present in the borrowings table.
  • Return only those members whose member_id is not present in the subquery result.

Solution

Switch to desktopSwitch to desktop for real-world practiceContinue from where you are using one of the options below
Everything was clear?

How can we improve it?

Thanks for your feedback!

Section 3. Chapter 5
single

single

some-alt