Kunsuluu Dzhanyshbekova 201816073 Veritabani Odev

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

Kunsuluu Dzhanyshbekova 201816073 Veritabani odev

1) create view KOOG(idg, pozisyon) as select staffno,title from staff


where title='Res. Asst.';
2)
select * from KOOG where yearsworked=(select max(yearsworked) from
KOOG);
3)
drop view KOOG;
4)
alter table staff alter domain fname type varchar(25);
alter table staff alter domain lname type varchar(25);
alter table staff alter domain fname type varchar(25);
5)
ALTER TABLE Staff ADD COLUMN Salary decimal(3,2);
ALTER TABLE Staff ADD COLUMN phoneNo varchar(11);
alter table staff add column DOB date;
6)
select c.*,p.iddepo from staff c left join depobilgileri p on
c.firmaid=p.firmaid;

You might also like