Professional Documents
Culture Documents
FA20-BCE-034
create database labmid
use labmid
);
);
('SG37','Ann','Beech','Assistant','F','10-nov-60',12000,'B003'),
('SG14','david','Ford','Supervisor','M','24-march-58',18000 ,'B003')
propertyno varchar(234),
street varchar(234),
city varchar(234),
postcode varchar(234),
typee varchar(234),
rooms int,
rent int,
ownerno varchar(234),
staffno varchar(234),
branchno varchar(234),
);
insert into
PropertyForRent(propertyno,street,city,postcode,typee,rooms,rent,ownerno,staffno,branchno
)values('PA14','16 Holhead','Aberdeen','AB7SSU','House',6 ,650 ,'CO46','SA9','B007'),
/* Queries */
select city+ +street+ +propertyno as addres from PropertyForRent where rooms>4 and
rent<500
select fname+ +lname as fullname from PrivateOwner where email like '%hotmail.com'
select fname+ lname as fullname from Staff where sex='F' and position='Assistant'