Question: Repeat Exercise 10.9, but use SQLJ with Java as the host language. Consider the library relational database schema in Figure 6.6. Write a program segment

Repeat Exercise 10.9, but use SQLJ with Java as the host language.

Consider the library relational database schema in Figure 6.6. Write a program segment that retrieves the list of books that became overdue yesterday and that prints the book title and borrower name for each. Use embedded SQL with C as the host language.


Figure 6.6

BOOK Book id Title Publisher_name OK AUTHORS Book id Author_name PUBLISHER Name

BOOK Book id Title Publisher_name OK AUTHORS Book id Author_name PUBLISHER Name Address Phone OK COPIES Book id Branch_id No_of_copies OK LOANS Book id Branch id Card_no Date_out Due_date LIBRARY_BRANCH Branch_id Branch_name Address BORROWER Card no Name Address Phone

Step by Step Solution

3.37 Rating (172 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

Java Code package comjava2novicejdbc import javasqlConnection import javasqlDriverManager import jav... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Fundamentals Of Database Systems Questions!