Question
Consider the following relations
Account(ac_number,ac_holdername,ac_holderaddress,ac_balance)
Withdrawal(ac_number,wi_type,wi_date,wi_amount)
Deposit(as_number, de_by,de_date, de_type,de_amount)
Type of deposit or withdrawal may be –cash or cheque
Perform the following operations on these tables using SQL
- Create the three tables giving suitable domains and constraints including referential actions.
- Add one additional filed ac_type(it can be saving account, current account or student account) in the accounts table. Create a secondary index on ac_number for the withdrawal and deposit tables.
- Create a view named my_account that contains the information about my account.
- Give only READ only permission to see my_account view to a user.
Answer :
Word Count : 42
__________ ______ ______ ____ ______ __________ __________ _______.
______ ____ ____ _____ ______ ______ _____.
______ ________ ___ __________ ________.
____ ____ _______ ______ ____.
____ ______ _____ _____ _________ _________ ______ _______ _____.
Skip in 10
select ac_number:
From account)
(select ac_number)
From deposit
______ ____ ____ _____ ______ ______ _____.
______ ________ ___ __________ ________.
____ ____ _______ ______ ____.
____ ______ _____ _____ _________ _________ ______ _______ _____.
IGNOU ACADEMY
Your IGNOU journey, made easier.
- Solved Assignments
- Study Notes
- Guess Papers
- Question Papers
Continue Reading — It's Free
Sign in with Google to unlock more of this answer.
✓ Free access
✓ Unlock up to 60% of the answer
✓ No payment required
✓ Unlock up to 60% of the answer
✓ No payment required
Quick Google sign-in. No separate registration form.