Question
  • Query 3: Update the Shelf_Location to KD-2222 for books of a Subject_Code that has the least number of books. For example, if ART and PHL subjects each contains only two books and all other subjects have three or more books, then the Shelf_Location of four books of ART and PHL should be updated. Hint: subquery
  • ISBN Publisher Hill and Wang The Dryden Press Vintage Dell Publishing Wamer Books Wamer Books Wamer Books Subject_Code Sheit_
0 0
Add a comment Improve this question Transcribed image text
Answer #1

Update Book inner join (Select Subject_Code from Book group by Subject_Code having count(ISBN) = min(count(ISBN)) s on Book.Subject_Code = s.Subject_Code set Shelf_Location = 'KD-2222';

Do ask if any doubt. Please upvote.

Add a comment
Know the answer?
Add Answer to:
Query 3: Update the Shelf_Location to KD-2222 for books of a Subject_Code that has the least...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT