Chapter 7 – CREATING AND MANAGING TABLES Classify Main Database Objects Examining Table Structure Data Types of the Columns Creating a Simple Table Understanding How Schema Objects Work DATABASE OBJECTS …
Read More »Tag Archives: oracle sql tutorials
Oracle SQL Tutorials
Hi, I’m writing Oracle SQL articles and sharing with you. You can learn SQL by following my articles and trying example SQL’s. Here are the SQL Tutorials, I highly recommend …
Read More »Oracle SQL Tutorials – Chapter 5
Chapter 5 – Selecting Data From Multiple Tables Usage of multiple tables in one query Combining tables – JOIN Different Types of SQL Join Left Outer Join Right Outer Join …
Read More »Oracle SQL Tutorials – Chapter 4
Chapter 4 – Group Functions AVG Function SUM Function MIN Function MAX Function COUNT Function DISTINCT Function GROUP BY Statement HAVING Statement One row functions can be applied to …
Read More »Oracle SQL Tutorials – Chapter 3 (Part 3 of 3)
CONVERSION FUNCTIONS TO_CHAR (DATE) TO_CHAR(date, ‘format’) It’s case-sensitive and must be written between quotes. It must contain a valid date format. Let’s list the hire dates of employees like below. …
Read More »Oracle SQL Tutorials – Chapter 3 (Part 2 of 3)
NUMERIC FUNCTIONS ROUND Let’s try some different usages of the ROUND function. SELECT ROUND (45.923), ROUND (45.943, 1), ROUND (45.924, 2), ROUND (44.923, -1), ROUND (55.923, -2) FROM DUAL; …
Read More »Oracle SQL Tutorials – Chapter 3 (Part 1 of 3)
Chapter 3 – Single Row Functions Charcter Functions Numeric Functions Date Functions Converting Functions NVL Function Decode Function CASE Statement SQL FUNCTIONS SQL Functions can be classiifed under 2 …
Read More »Oracle SQL Tutorials – Chapter 2 (Part 3 of 3)
OPERATOR PRECEDENCE Let’s list the employees which JOB_ID is SA_REP or AD_PRES , and have salary more than 15000. SELECT first_name,last_name, job_id, salary FROM hr.employees WHERE job_id = 'SA_REP‘ …
Read More »Oracle SQL Tutorials – Chapter 2 (Part 2 of 3)
IS NULL OPERATOR Let’s list the employees that have manager. SELECT first_name,last_name, manager_id FROM hr.employees WHERE manager_id IS not NULL; LOGICAL OPERATORS AND : It returns TRUE if all …
Read More »Oracle SQL Tutorials – Chapter 2 (Part 1 of 3)
CHAPTER 2 WHERE Conditions Comparison operators BETWEEN operator IN operator LIKE operator IS NULL operator Logical operators AND operator OR operator NOT operator ORDER BY operator RESTRICTING ROWS WITH …
Read More »