Site icon IT Tutorial

Oracle SQL Tutorials – Chapter 2 (Part 1 of 3)

CHAPTER 2

 

RESTRICTING ROWS WITH WHERE

 

SELECT employee_id, first_name,last_name, job_id, department_id 
FROM hr.employees
WHERE department_id=80;

 

COMPARISON OPERATORS

 

SELECT first_name,last_name, salary 
FROM hr.employees 
WHERE salary <= 3000 ;

 

IN OPERATOR

SELECT employee_id, first_name,last_name, salary, manager_id 
FROM hr.employees 
WHERE manager_id IN (100, 101, 201) ;

 

LIKE OPERATOR

SELECT first_name,last_name 
FROM hr.employees 
WHERE first_name LIKE '%e%' ;

 

SELECT first_name,last_name
FROM hr.employees
WHERE last_name LIKE '_o%' ;

 

You can contunie to read from this link ;

Oracle SQL Tutorials – Chapter 2 (Part 2 of 3)

Exit mobile version