0% found this document useful (0 votes)
16 views4 pages

Act1 Mod1 DBMS1 JLCD

Uploaded by

arataladua123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
16 views4 pages

Act1 Mod1 DBMS1 JLCD

Uploaded by

arataladua123
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

DBMS1 – ADVANCE DATABASE ADMINISTRATOR

ACTIVITY WORKSHEET

Name of Student: JENNIE LOU C. DAVID Activity Title: MACHINE PROBLEM 1


Year and Section: BSIT II – ST. ANTHONY Date Submitted: DECEMBER 14, 2023

DATABASE CREATION SCREENSHOT DATABASE NAME


YOUTUBE LINK:
https://youtu.be/P9G_CsrIIZU

TABLE CREATION SCREENSHOT TABLE NAME

tblEmpInfo
TABLE CREATION SCREENSHOT TABLE NAME

tblPosition

TABLE CREATION SCREENSHOT TABLE NAME

tblDepartment

INSERTION OF RECORDS SCREENSHOT TABLE NAME

tblEmpInfo

INSERTION OF RECORDS SCREENSHOT TABLE NAME

tblPosition
INSERTION OF RECORDS SCREENSHOT TABLE NAME

tblDepartment

ASSIGNING PRIMARY KEY AND FOREIGN KEY TABLE NAME

SELECT * FROM tblEmpInfo;

ASSIGNING PRIMARY KEY AND FOREIGN KEY TABLE NAME

SELECT * FROM tblPosition;


ASSIGNING PRIMARY KEY AND FOREIGN KEY TABLE NAME

SELECT * FROM tblDepartment;


THE USE OF INNER JOIN QUERY

SELECT * FROM tblEmpInfo WHERE DepartmentCode = (SELECT DepartmentCode FROM tblDepartment


WHERE Description = 'Human Resource Department');

SELECT * FROM tblEmpInfo WHERE PositionCode = (SELECT PositionCode FROM tblPosition WHERE
POSITION = 'Manager');

SELECT * FROM tblEmpInfo JOIN tblPosition ON tblEmpInfo.PositionCode = tblPosition.PositionCode;

SELECT * FROM tblEmpInfo JOIN tblDepartment ON tblEmpInfo.DepartmentCode =


tblDepartment.DepartmentCode;

SELECT * FROM tblEmpInfo JOIN tblDepartment ON tblEmpInfo.DepartmentCode =


tblDepartment.DepartmentCode JOIN tblPosition ON tblEmpInfo.PositionCode = tblPosition.PositionCode;

You might also like