You are on page 1of 9

COURSE: SQL QUERY FOR TESTING

Start Date
Description

Expectation

Activities

Report the Progress

Submit Result

Pass/Fail Criterias
(assess by mentor)

Reference resource
QUERY FOR TESTING

Learn how to use SQL to store, query, and manipulate data. SQL is a special-purpose programming language designed for
managing data in a relational database, and is used by a huge number of apps and organizations

- The main components of relational databases


- Basic syntax of SQL
- SQL statements that are most useful for testing
- Duration in 6 days.

Prepare Database environment with your personal computer:


- Install SQL Express version (can get the latest one, free version)
- Install SQL client to connect Database Server (can install SQL Management Studio or other client tools for connection)

Create Tables for HumanResource database as 'Entity_Relationship_Diagram' sheet


Create scripts to insert data into tables of HumanResource for practicing with meaningful data.
- Study the slides to get the scope for practicing.
- Practice and save the exercise SQL queries files.

- Update progress, discuss study activity daily.


- Join meeting to discuss each 2 days (first 2 days, second 2 days and last one) during training course as plan with trainer.

Send or upload result (documents) to trainer:


- The script file to insert meaningful data into tables of HumanResource DB
- The sql query files to practice 5 lessons
- The FinalExam_Answer list

- Submit enough documents


- The script file to insert meaningful data into tables of HumanResource DB
- The sql query files to practice 5 lessons correctly
- The FinalExam_Answer list has at least 8 corrected answers to above

https://www.w3schools.com/sql/default.asp…other resources.
departments
Column Name Data Type
department_id numeric(4, 0)
department_name varchar(30)
manager_id numeric(6, 0)
location_id numeric(4, 0)
dept_loc_fk

lo

countries
Column Name Data Type Allow Nulls
country_id char(2)
country_name varchar(40)
loc_c_id_fk
region_id numeric(18, 0)

countr_reg_fk

regions
Column Name Data Type Allow Nulls
region_id numeric(18, 0)
region_name varchar(25)
jobs
Column Name Data
job_id varchar(10
job_title varchar(35
min_salary numeric(6
max_salary numeric(6

emp_job_fk
emp_manager_fk

employees
Column Name Data Type Allow Nulls
employee_id numeric(6, 0)
first_name varchar(20)
last_name varchar(25)
email varchar(25)
Name Data Type Allow Nulls
phone_number varchar(20)
numeric(4, 0) dept_mgr_fk
hire_date date
me varchar(30)
emp_dept_fk
job_id varchar(10)
numeric(6, 0)
salary numeric(8, 2)
numeric(4, 0)
commission_pct numeric(2, 2)
manager_id numeric(6, 0)
department_id numeric(4, 0)

jhist_emp_fk

jhist_dept_fk
jhist_dept_fk

dept_loc_fk

locations
Column Name Data Type Allow Nulls
location_id numeric(4, 0)
Allow Nulls
street_address varchar(40)
postal_code varchar(12)

loc_c_id_fk city varchar(30)


state_province varchar(25)
country_id char(2)

Allow Nulls
Column Name Data Type Allow Nulls
b_id varchar(10)
b_title varchar(35)
in_salary numeric(6, 0)
ax_salary numeric(6, 0)

_job_fk

Allow Nulls
jhist_job_fk

jhist_emp_fk

job_history
Column Name Data Type Allow Nulls
employee_id numeric(6, 0)
start_date date
end_date date
job_id varchar(10)
department_id numeric(4, 0)
job_history
Column Name Data Type Allow Nulls
employee_id numeric(6, 0)
start_date date
end_date date
job_id varchar(10)
department_id numeric(4, 0)

You might also like