A Gentle Introduction to

SQL

DATES

How to work with dates; adding, subtracting and formatting.

Date and time types.| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Format a date and time.| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Specify a date (date literal).| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Match a range of dates| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Subtract dates.| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Add days to a date. INTERVALS. Also subtract, also years, months, hours ...| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Components of a date: such as the year or the month| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Group by day of the week (using date functions)| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Group by day of the week (using arithmetic)| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
How can I select the oldest person in the table PERSON by birthday?| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
Select a record with the latest date| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
How to format a date like yyyymmdd| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |
How can I get the Lastest record from SQL| SQLite | DB2 | Access | Postgres | Oracle | SQL Server | MySQL | Mimer | Sybase |