Table 1 Sno 1 2 3 4 5 6 7 8 9 10 11 12 13 14

Customer Master Data Type Int Varchar(50) Char(1) Datetime Varchar(25) Varchar(10) Varchar(25) Varchar(25) Varchar(25) Varchar(50) Varchra(50) varchar(50) varchar(50) Bit

Field Name CustomerId Customer Name Gender DOB Nationality Blood Group Passport Number Profession IT/PAN Number Fathers Name Mothers Name Username password Active Table 2

Customer Contact Details Data Type int int varchar(500) varchar(25) varchar(20) varchar(500) varchar(25) varchar(50) varchar(50)

Sno 1 2 3 4 5 6 7 8 9

Field Name CustomerDetailsid CustomerId Residence Address Phone Number Mobile Number Office Address Office Phone Number Personal Mail Id Officiall e-Mail Id

Table 4 Sno 1 2 3 4 5

Login Details Data Type int int datetime varchar(10) varchar(10)

Field Name LoginDetailsid CustomerId Login date login time Logout Time

Table 5 Sno 1 2 3 4 5 6 7

Branch Details Data Type int varchar(50) varchar(500) varchar(25) varchar(25) int int

Field Name Branchid Branch name Branch Address Branch Phone Number Branch Manager No of Atm centres No of employees Table 6 Account Type

Sno 1 2 3 4 5

Field Name AccoutTypeid Account Type Min Balance Branchid Opening Balance Transactions

Data Type Int varchar(50) money int money

Table 7

Sno Field name 1 TransactionId 2 transaction Type Table 8 Sno 1 2 3 4 5 6 7

Data Type int varchar(50)

Customer Account Details Data Type int varchar(15) int int datetime int money

Field name Accountid Account Number Customer Id Account Type Account Opening Date Branch id Current Balance Customer Transaction

Table 9 Sno 1 2 3

Field Name CustomerTransactionId Transaction id Amount

Data Type Int Int Money

4 5 6

Transaction Date AccountId Tax Amount Tax Master

DateTime Int Money

Table 10 Sno 1 2 3 4 4 Field Name TaxId Transaction id Min Amount Max Amount Tax percentage

Data Type int int money money float

Contraints Identity, Primary key Column check 'M' or 'F' Default Indian

Constraints Identity, Primey Key Column Foreign Key Column

Contraints identity, primary key column foreign key references to Customer Master

Contraints Identity Column, Primary Key

Contraints Identity Primary Key Column

Foreign Key For Bench Details id

Contraints Identity Column, Primary key

Contraints identity Primary key Column unique Foreign Key references to Customer master Foreign Key references to Account Type Foreign key references to Branch master

Contraints identity Column,Primary key Foreign Key references to Transaction

Foreign Key references to Customer Account Details

Contraints identity Column,Primary key Foreign Key references to Transaction

Sno 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15

Questions

Write a trigger for customer master. If the user delete the value in customer details and corresponding contact details. Then ma a record both tables deleted records in one table. And delete the value in this table

Write a trigger for account type that the minimum balance of all the account type should not be lesser than the minimum balanc the salary account Write a trigger for customer account details. Check the account opening date should not be in weekends Write a trigger to avoid deleting the account type master

Write a trigger to avoid updating the customer transaction from last month and before. The user can only update the transaction this month transactions

Write a procedure to get the day,year,month. Check it is not Sunday, If it is Sunday display "Holiday " or some message releva and if it is not Sunday display the customer name who opened the account on that day. If none of them opened the account Dis the message Write a procedure to display the Customer details who maintains the account for past 3 years Write a procedure to get the account type and display the customer and the current balance he possess

Write a procedure to get the customer name as input parameter and display the number of transaction done as an output param Write a procedure to insert,update and delete the tax master Write a cursor to display the customer and beneath it display the transactions made by that customer Write a cursor to diaply the customer who logged in with in 2 months and display the customer and beneath it display the login log in time and log out time Write a cusror to display the branch name and the sum of current balance of its customer Write a cursor to update the tax percentage for each minimum and maximum balance for each account type

Write a cursor to display the username and password of the customer and display that number of times the user loggs every m

Sign up to vote on this title
UsefulNot useful