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

DatabaseSystem-II-.pdf

Rating
-
Sold
-
Pages
3
Uploaded on
29-10-2023
Written in
2023/2024

DatabaseSystem-II-.pdf









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

Document information

Uploaded on
October 29, 2023
Number of pages
3
Written in
2023/2024
Type
Judgments

Content preview

TERTIARY AND VOCATIONAL EDUCATION COMMISSION

COMMON WRITTEN EXAMINATION


All rights reserved.
NVQ Level 05 –Semester II

Information & Communication Technology



Database Systems 11 – Theory K72T001M02 Three Hours


Answer only 03 questions (Question 01 and 02 are COMPULSORY).


Usethe given tables below to answer your questions.

Employee (Empid char(04), Fname varchar(10), Lname varchar(20), City varchar(75), Bdate
Date, Designation varchar(25), Date_Joined Date, Salary Number(7,2), Dnum
char(03))

Project (Pnumber, Pname, Plocation, Dnum)

Department (Dnum, Dname, Mgr_Id, Dlocation, Total_Salary)

Works_on(Empid, Pnumber, Date_joined, Payment, Hours)

Note:

Mgr_Id denotes the Empid of the employee who manages the department

Question 01:

1. Write suitable code to create a database named ‘Company’. (3 marks)

2. Write SQL Statement to create the Employee table with the given data types (No need
to insert the records) (6 marks)

3. Write SQL Statement to add a new record to Department table with following details
Dnum- ‘025’, Dname - ‘Marketing’, Mgr_Id-–‘M324’, Dlocation - ‘Kandy’ (4 marks)

4. Update salaries of all employees in the ‘Research’ department with a 10 percent raise
in salary. (6 marks)

5. Write the code to delete the records from Works_on table with respect to the
employees who have joined the project 10 years before the current date. (6 marks)

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.
Studyabroad Oxford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
67
Member since
4 year
Number of followers
29
Documents
1985
Last sold
1 month ago
schoooldays

shop affordably

5.0

2 reviews

5
2
4
0
3
0
2
0
1
0

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