Answered step by step
Verified Expert Solution
Question
1 Approved Answer
BANK_DETAILS (Product, Customer_id, Quantity, Price, Purchase cost, Estimated_sale_price) BANK_CUSTOMER (Customer id, Customer name, Address, State code, Telephone) BANK ACCOUNT (Account Number, Account_type, Balance Amount,
BANK_DETAILS (Product, Customer_id, Quantity, Price, Purchase cost, Estimated_sale_price) BANK_CUSTOMER (Customer id, Customer name, Address, State code, Telephone) BANK ACCOUNT (Account Number, Account_type, Balance Amount, Account_status, i. Relationship type, Customer_id) Write DDL command to create table BANK_DETAILS. Include ON DELETE CASCADE in the DDL command. ii. Explain ON DELETE CASCADE in the above DDL command. iii. Insert a record into BANK_DETAILS. Product: Paycard Quantity: 10 Price: 500 Purchase cost: 7007 (6 marks) (3 marks) Estimate sale price: 8008 (4 marks) iv. Alter product field from CHAR to VARCHAR in BANK_DETAILS. (3 marks) V. Display all columns and their datatype and size in BANK_DETAILS. (3 marks) vi. Display customer Id, customer name and average account balance maintained by each customer for all of his/her accounts in the bank. (6 marks)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started