SQL 1 Intro
SQL 1 Intro
Example:
Car insurance: to issue you a policy which
information they will be collecting from
you?
To issue you a policy which information will a car insurance company
collect from you?
⮚ Age
⮚ Gender
⮚ Location
⮚ Driving Record
⮚ Number of Accidents
⮚ Number of Years Driving
⮚ Car Manufacturer
⮚ Car Model
⮚ Car Mileage
⮚ Vehicle Identification number
⮚ Number of miles driven per week
⮚ Car Usage
⮚ Financed / Leased
What is DataBase?
Select phone_number
From employees;
Task
He needs the department id column from the Employees table ?
Select department_id
From employees;
Task
The HR Manager needs all the records from Jobs table ?
Select *
From jobs;
Task
To understand the company structure he asked you to collect all
the information about department id and department name ?
Select department_id,
department_name
From departments;
Task
To understand the salary range for every job id he asked you to
collect the information about job id, max and min salary ?
Select salary
From employees
Where employee_id = 120;
Task
He asked you to collect all the unique job ids from the employees
table?
Select *
From employees
Where Job_id = ‘ST_CLERK’
Task
Finally he needs you to gather unique manager ids from
departments.
THANK YOU
QUESTIONS & ANSWERS