Galgotias College of Engineering & Technology Department of Computer Science & Engineering
Galgotias College of Engineering & Technology Department of Computer Science & Engineering
Name
Roll no.
Section
Batch (D1/D2)
Deeksha Tripathi (2100971540022)
EXPERIMENT 1
Select Prod_name
From home.prod;
Deeksha Tripathi (2100971540022)
Select Prod_name,Prod_price
From home.prod;
Select Prod_price,Prod_color
from home.prod
6.Print the manufacturer name of all the television and vaccume cleaner.
Select Prod_price,Manufacturer
from home.prod
7.Print the name of product which have price is greater than 30000.
Select Prod_name
from home.prod
8.Print the name and color of product which have price is greater than 30000 and less then 40000.
Select Prod_name
from home.prod
9.Print the name of product which have color is black and price is less than 30000
Select Prod_name
from home.prod
DELETE:
EXPERIMENT 2 A
create schema store;
Fname varchar(8),
Lname varchar(8),
Country varchar(4)
);
Values('1','John','Doe','USA'),
('2','Robert','Luna','USA'),
('3','David','Robinson','UK'),
('4','Mark','Cage','UK'),
('5','Betty','Taylor','UAE');
set Phone='817-466-8833'
where Cid=1;
update store.cust
set Phone='412-862-0502'
where Cid=2;
update store.cust
set Phone='208-340-7906'
Deeksha Tripathi (2100971540022)
where Cid=3;
update store.cust
set Phone='307-242-6285'
where Cid=4;
update store.cust
set Phone='806-749-2958'
values('6','Mark','Alexander','Denmark','990-267-9088');
4.Perform suitable changes in table schema or values to store the record of ‘Mark Alexander’
values('6','Mark','Alexander','Denmark','990-267-9088');
Deeksha Tripathi (2100971540022)
EXPERIMENT 2 B
create schema office;
Ename varchar(20),
Salary varchar(20)
);
values('1','Ajay','83020.561'),
('2','Ravi','50666.567'),
('3','Rajesh','78110.487'),
('4','Prakash','67230.678'),
('5','Anurag','777901.456'),
('6','Bharat','64000.287');
select Ename,Salary
from office.emplo;
2.Select all employees who have salary greater than 55000 and less than 80000
select Ename
from office.emplo
update office.emplo
set Salary='80000.45'
where Ename='Anurag';
update office.emplo
set Salary='110000.45'
where Ename='Ajay';
update office.emplo
set Salary=''
where Ename='Ravi';
Deeksha Tripathi (2100971540022)
EXPERIMENT 3