Noteshub (Noteshub - Co.In) : Dbms Lab File 4 Semester
Noteshub (Noteshub - Co.In) : Dbms Lab File 4 Semester
(noteshub.co.in)
[Name]
[Roll No.]
CREATE TABLES ACCORDING TO THE FOLLOWING
DEFINITION:-
[Name]
[Roll No.]
Create table borrow(loanno varchar2(5), cname varchar2(18),
bname varchar2(18), amount number(8,2));
[Name]
[Roll No.]
DESCRIBE TABLES WHICH ARE ALREADY
DESCRIBED:-
Describe deposit;
Describe branch;
[Name]
[Roll No.]
Describe customers;
Describe borrow;
[Name]
[Roll No.]
INSERT THE DATA AS SHOWN BELOW:-
[Name]
[Roll No.]
Insert into deposit values
(‘105’,’pramod’,’m.g.road’,3000.00,’27-mar-96’);
[Name]
[Roll No.]
Insert into deposit values (‘109’,’minu’,’powai’,7000.00,’10-aug-
95’);
[Name]
[Roll No.]
Insert into branch values (‘chandini’,’delhi’);
[Name]
[Roll No.]
Insert into branch values (‘virar’,’bombay’);
[Name]
[Roll No.]
Insert into customers values (‘mehul’,’baroda’);
[Name]
[Roll No.]
Insert into customers values (‘sandip’,’surat’);
[Name]
[Roll No.]
Insert into borrow values (‘201’,’anil’,’vrce’,1000.00);
[Name]
[Roll No.]
Insert into borrow values (‘375’,’pramod’,’virar’,8000.00);
[Name]
[Roll No.]
SELECTING DATA FROM SINGLE TABLE:-
[Name]
[Roll No.]
List of all data from the table customers
[Name]
[Roll No.]
Give account no. and amount of depositers
[Name]
[Roll No.]
Give the names of customers
[Name]
[Roll No.]
Give the names of borrowers
[Name]
[Roll No.]
Give account date of the customer anil
[Name]
[Roll No.]
Give the names of all branches located in delhi
[Name]
[Roll No.]
Give the name of the city where branch karolbagh is located
[Name]
[Roll No.]
AGGREGATE FUNCTIONS
[Name]
[Roll No.]
LIST TOTAL DEPOSIT OF CUSTOMERS HAVING ACCOUNT DATE
LATER THAN 1-JAN-96
[Name]
[Roll No.]
LIST TOTAL DEPOSIT OF CUSTOMERS LIVING IN BRANCH CITY
DELHI
[Name]
[Roll No.]
GIVE AVERAGE LOAN
[Name]
[Roll No.]
THE UPDATE STATEMENT
[Name]
[Roll No.]
GIVE 10% INTEREST TO ALL DEPOSITERS HAVING BRANCH VRCE
[Name]
[Roll No.]
THE DELETE STATEMENT
[Name]
[Roll No.]
DELETE DEPOSITERS HAVING DEPOSIT LESS THAN 5000
[Name]
[Roll No.]
ARITHEMATIC OPERATORS
[Name]
[Roll No.]
LOGICAL OPERATOR
[Name]
[Roll No.]
RANGE OPERATOR
[Name]
[Roll No.]
PATTERN MATCHING OPERATOR
[Name]
[Roll No.]
NUMERIC FUNCTIONS
[Name]
[Roll No.]
[Name]
[Roll No.]
STRING FUNCTIONS
[Name]
[Roll No.]
[Name]
[Roll No.]
CONSTRAINTS
[Name]
[Roll No.]
[Name]
[Roll No.]
JOIN
[Name]
[Roll No.]