100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 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, something went wrong. Due to a technical error, we're unable to show you the document in the online viewer. Please try to download the file or get in touch with our support team.

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),
CA$3.08
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached


Also available in package deal

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.
paperbark_Emblemaria.pandionis ICBT Kandy Campus
Follow You need to be logged in order to follow users or courses
Sold
48
Member since
9 year
Number of followers
28
Documents
33
Last sold
6 year ago

4.2

13 reviews

5
6
4
5
3
1
2
0
1
1

Why students choose Stuvia

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Student with book image

“Thanks to Stuvia I've passed my exams with no stress!”

Alisha Student

Frequently asked questions