I have the following table
CREATE TABLE Book
(
book_id INTEGER NOT NULL ,
isbn VARCHAR2 (20) NOT NULL,
tittle VARCHAR2 (100) NOT NULL ,
shelf_letter CHAR (1) NOT NULL ,
call_number INTEGER ,
no_of_copies INTEGER NOT NULL ,
) ;
I need to write a function to retrieve book_id, title,call_number, shelf_letter, no_of_copies
for a given isbn
.
Input parameters: isbn
Output parameters: title, no_of_copies,call_number,shelf_letter.
Return book_id
if the query is successful and -1 if not.
How can I properly write this function?