Question: Please answer it with a screenshot as soon as possible? Create both the tables Buyer and Loan with appropriate attribute names, primary key, foreign key
Please answer it with a screenshot as soon as possible?
- Create both the tables Buyer and Loan with appropriate attribute names, primary key, foreign key and data type. [3 marks]
- Insert the above records into Buyer and Loan tables. [2 marks]
- Display all the records from Buyer and Loan (Separately) [0.5 mark]
- Display all the details of typeofloan and amount for the amount more than 2200. [1 mark]
- Display the number of buyers from every branch [1 mark]
- Write a PL/SQL program to display all details from the table for L13. [1.5 marks]
- Write a PL/SQL program to display the name and branch of buyers who are from Ibri. [2 marks]
- Update city as Suhar for the buyer named Viba. [1 mark]
- Write a Procedure to receive a Loan Id as Input and display all the related values of that Loan. (Also write the calling program.) [2 marks]
- Include Phone column into the Buyer table.
Buyer BID Name Branch Loan TypeofLoan Amount LID BID 123 Jane Ibri LII Car 2000 123 124 Ann Sohar L12 Personal 1500 124 125 Mary Ibri L13 Car 5000 124 126 1Viba Nizwa L14 Home 3200 127 127 Sam Sohar L15 Study 4700 123
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
