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

bookChallenge: Members with No Borrowings

Uppgift

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.

Lösning

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 5
single

single

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

close

bookChallenge: Members with No Borrowings

Svep för att visa menyn

Uppgift

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.

Lösning

Switch to desktopByt till skrivbordet för praktisk övningFortsätt där du är med ett av alternativen nedan
Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 3. Kapitel 5
single

single

some-alt