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 E-commerce Analytics
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Subqueries in SQL
SectionΒ 1. ChapterΒ 17
single

single

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Β 1. ChapterΒ 17
single

single

Ask AI

expand

Ask AI

ChatGPT

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

some-alt