gs gs114 Practical Questions Subjective Solved Past Paper No.1
gs gs114 Relational Database Management System Solved Past Papers
This subjective solved past paper is related to book/course code gs gs114 Relational Database Management System which belongs to gs organization. We have 1 past papers available related to the book/course Relational Database Management System. This past paper has a total of 38 subjective questions belongs to topic Practical Questions to get prepared. NVAEducation wants its users to help them learn in an easy way. For that purpose, you are free to get prepared for exams by learning subjective questions online on NVAEducatio.
NVAEducation also facilitates users to download these solved past papers with an affordable prices. However, users are not enforced to pay for money, rather they can use credits to buy such stuff on NVAEducation. Users can earn credits for doing some little tasks and then you will be able to use that credits to buy solved past papers on NVAEducation.
account(account_number, branch_name, balance)
branch (branch_name, branch_city, assets)
customer (customer_name customer_street, customer_city)
loan (loan_number, branch_name, amount)
depositor((customer_name, account_number)
borrower(customer_name, loan_number)
branch_name varchar(15) not null,
balance number not null,
primary key(account_number));
create table branch
(branch_name varchar(15) not null unique,
branch_city varchar(15) not null,
assets number not null,
primary key(branch_name));
create table customer
(customer_name varchar(15) not null unique,
customer_street varchar(12) not null,
customer_city varchar(15) not null,
primary key(customer_name));
create table loan
(loan_number varchar(15) not null unique,
branch_name varchar(15) not null,
amount number not null,
primary key(loan_number));
create table depositor
(customer_name varchar(15) not null,
account_number varchar(15) not null,
primary key(customer_name, account_number),
foreign key(account_number) references account(account_number),
foreign key(customer_name) references customer(customer_name));
create table borrower
(customer_name varchar(15) not null,
loan_number varchar(15) not null,
primary key(customer_name, loan_number),
foreign key(customer_name) references customer(customer_name),
foreign key(loan_number) references loan(loan_number));
when account_number=’A-101′ then balance-100
when account_number=’A-215′ then balance+100
else balance
end;
delete from loan where branch_name=’Perryridge’;
delete from loan where amount<1000;
delete from account where branch_name=’Downtown’;
delete from borrower where loan_number IN
(select loan_number from loan where branch_name=’Downtown’);
delete from loan where branch_name=’Downtown’;
select customer_name from borrower;
select customer_name from borrower;
group by branch_name;
group by branch_name;
having avg(balance)>1200
customer_name in
(select customer_name from account natural join depositor
where branch_name = ‘Perryridge’);
(select customer_name from account natural join depositor);
(‘Smith’, ‘Jones’);
where branch_city = ‘Brooklyn’);
where branch_city = ‘Brooklyn’);
where b1.customer_name = b2.customer_name);
where exists (select * from branch
where b1.branch_name = ‘Downtown’
and b1.branch_name=’Brighton’);
having count(account_number)<=1;