Site icon IT Tutorial

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

ARITHMETIC OPERATORS

 

USAGE OF THE ARITMETHIC OPERATORS

SELECT first_name NAME, last_name SURNAME , salary SALARY,(salary+salary*8/100)as NEW_SALARY FROM hr.employees;

 

THE NULL VALUE

 

SELECT first_name NAME, last_name SURNAME , salary SALARY, (salary*commission_pct)as COMMISSION FROM hr.employees;

 

THE CONCATENATION OPERATOR

 

SELECT first_name||’ ‘||last_name AS “NAME SURNAME “,concat(‘Salary : ‘,salary) “SALARY” FROM hr.employees;

 

REPEATING ROWS

 

SELECT DISTINCT department_name FROM hr.departments;

 

VIEWING THE STRUCTURE OF TABLE

 

DESC hr.employees;

 

You can continue to read from this link ;

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

Exit mobile version