Professional Documents
Culture Documents
SELECT DAY(column_name) FROM DAY function returns the day of SELECT DAY(b_date) FROM
DAY employees where emp_id =
table the month for a given date 'E1002';
is used to display SELECT YEAR(CURRENT DATE -
CURRENT DATE
CURRENT SELECT (CURRENT DATE - the current date.This can be b_date) As AGE,
DATE COLUMN) FROM table; subtracted from the previous CURRENT_DATE, b_date FROM
date to get the difference. employees;
Subquery SELECT column_name [, Subquery is a query within SELECT emp_id, fmame, lname,
column_name ] FROM table1 [, another SQL query and salary
table2 ] WHERE column_name
embedded within the WHERE FROM
employees
OPERATOR (SELECT column_name where salary
[, column_name ] FROM table1 clause. < (SELECT AVG(salary)
[, table2 ] [WHERE]) FROM employees);
A subquery is used to return
data that will be used in the
about:blank 1/2
6/21/23, 3:51 PM about:blank
Author(s)
Lakshmi Holla
Changelog
Date Version Changed by Change Description
2023-05-04 1.1 Benny Li Formatting changes
2021-07-28 1.0 Lakshmi Holla Initial Version
about:blank 2/2