0% found this document useful (0 votes)
0 views2 pages

SQL Practical Assignment

The document outlines the creation of a BANK database with four tables: deposit, branch, customer, and borrow. It includes SQL commands for creating these tables and inserting various records into them, detailing customer deposits, branch information, customer details, and loan records. The data spans multiple cities and includes various customers and their respective transactions.

Uploaded by

The Seeker 18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
0 views2 pages

SQL Practical Assignment

The document outlines the creation of a BANK database with four tables: deposit, branch, customer, and borrow. It includes SQL commands for creating these tables and inserting various records into them, detailing customer deposits, branch information, customer details, and loan records. The data spans multiple cities and includes various customers and their respective transactions.

Uploaded by

The Seeker 18
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

CREATE DATABASE BANK;

Use BANK;
TABLES:

1) create table deposit(actno varchar2(5),cname varchar2(18),bname varchar2(18),amount


number(8,2),adate date);

2) create table branch(bname varchar2(18),city varchar2(18));

3) create table customer(cname varchar2(18), city varchar2(18));

4) create table borrow(loanno varchar2(5),cname varchar2(18),bname varchar2(18),amount number(8,2));

DEPOSIT TABLE:

1) insert into deposit values('100','Anil','VRCE',1000.00,'1-mar-95');

2) insert into deposit values('101','Sunil','AJNI',5000.00,'4-jan-96');

3) insert into deposit values('102','Mehul','KAROLBAGH',3500.00,'17-nov-95');

4) insert into deposit values('104','Madhuri','CHANDNI',1200.00,'17-dec-95');

5) insert into deposit values('105','Pramod','M.G.ROAD',3000.00,'27-mar-96');

6) insert into deposit values('106','Sandip','ANDHERI',2000.00,'31-mar-96');

7) insert into deposit values('107','Shivani','VIRAR',1000.00,'5-sep-95');

8) insert into deposit values('108','Kranti','NEHRU PLACE',5000.00,'2-jul-95');

9) insert into deposit values('109','Minu','POWAI',7000.00,'10-aug-95');

BRANCH TABLE:

1) insert into branch values('VRCE','Nagpur');

2) insert into branch values('AJNI','Nagpur');

3) insert into branch values('KAROLBAGH','Delhi');

4) insert into branch values('CHANDNI','Delhi');

5) insert into branch values('DHARAMPETH','Nagpur');

6) insert into branch values('M.G.ROAD','Bangalore');

7) insert into branch values('ANDHERI','Bombay');

8) insert into branch values('VIRAR','Bombay');

9) insert into branch values('NEHRU PLACE','Delhi');


10) insert into branch values('POWAI','Bombay');

CUSTOMER TABLE:

1) insert into customer values('Anil','Calcutta');

2) insert into customer values('Sunil','Delhi');

3) insert into customer values('Mehul','Baroda');

4) insert into customer values('Mandar','Patna');

5) insert into customer values('Madhuri','Nagpur');

6) insert into customer values('Pramod','Nagpur');

7) insert into customer values('Sandip','Surat');

8) insert into customer values('Shivani','Bombay');

9) insert into customer values('Kranti','Bombay');

10) insert into customer values('Naren','Bombay');

BORROW TABLE:

1) insert into borrow values('201','Anil','VRCE',1000);

2) insert into borrow values('206','Mehul','AJNI',5000);

3) insert into borrow values('311','Sunil','DHARAMPETH',3000);

4) insert into borrow values('321','Madhuri','ANDHERI',2000);

5) insert into borrow values('375','Pramod','VIRAR',8000);

6) insert into borrow values ('481','Kranti','NEHRU PLACE',3000);

You might also like