100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Other

Database Application Development Assignment SQL Coding-Pearson BTEC Level 5 Higher National Diploma in Software Development (Edexcel HND)

Rating
-
Sold
-
Pages
37
Uploaded on
18-02-2017
Written in
2015/2016

SQL coding for database of Janitorial service provider company

Institution
Course









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
Course

Document information

Uploaded on
February 18, 2017
Number of pages
37
Written in
2015/2016
Type
Other
Person
Unknown

Subjects

Content preview

Creating Tables

--create BRANCH table
Create Table BRANCH(
b_id varchar(10),
b_name varchar(50) not null,
location varchar(50) not null

Constraint Pk_Branch Primary key(b_id)
)


--create EQUIPMENT_AND_MATERIAL table
Create Table EQUIPMENT_AND_MATERIAL(
eq_id varchar(10),
life_time varchar(50),
eq_name varchar(50),
price money not null default 0.00,--decimal(18,2)
purpose varchar(50),
purchased_date date,
warranty_period varchar(20),
eq_description varchar(100),
eq_type char(2)

Constraint Pk_EQUIPMENT_AND_MATERIAL Primary key(eq_id)
)

--create ADMINISTRATOR table
Create Table ADMINISTRATOR(
e_id varchar(10),
e_fname varchar(50),
e_lname varchar(50),
nic_no varchar(30) not null unique,
entered_date date not null,
dob date not null,
gender char(1) default 'M' not null,
basic_salary money default 0.00 check(basic_salary>=20000),
hourly_rate money default 0.00,
b_id varchar(10)

Constraint Pk_ADMINISTRATOR Primary key(e_id),
Constraint Fk_ADMINISTRATOR foreign key(b_id)references BRANCH(b_id)
)


--create ADMINISTRATOR_ADDRESS table
create table ADMINISTRATOR_ADDRESS(
e_id varchar(10),
number varchar(10),
street varchar(20),
city varchar(20)

Constraint Pk_ADMINISTRATOR_ADDRESS primary key(e_id,number,street,city),

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
VirajeeAmarasinghe ICBT Kandy Campus
Follow You need to be logged in order to follow users or courses
Sold
90
Member since
8 year
Number of followers
50
Documents
26
Last sold
4 year ago

I have completed BSc (Hons) in Software Engineering (2017) from Cardiff Metropolitan University and was the batchtop in 2016/2017 intake.

3.9

18 reviews

5
7
4
7
3
2
2
0
1
2

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions