• Wrong document? Swap it for free
  • Written by students who passed
  • Immediately available after payment
  • Read online or as PDF
Sell
Where do you study
Your language
Document preview thumbnail
Preview 1 out of 3 pages
Judgments

DatabaseSystem-II-.pdf

Document preview thumbnail
Preview 1 out of 3 pages

DatabaseSystem-II-.pdf

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)

Document information

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

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

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
3.7
(3)
Sold
73
Followers
29
Items
1989
Last sold
2 months ago



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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions