mysql between code example

Example 1: mysql between date range

select * from hockey_stats 
where game_date between '2012-03-11 00:00:00' and '2012-05-11 23:59:00' 
order by game_date desc;

Example 2: between sql

BETWEEN wählt Werte innerhalb eines bestimmten Bereichs aus.
Die Werte können Zahlen, Text oder Datumsangaben sein.

SELECT column_name(s)
FROM table_name
WHERE
    column_name BETWEEN value1 AND value2;

Example 3: difference between sql and mysql

MySQL is a relational database vendor which uses SQL language
on the other hand SQL is a query language which deals with database.

Tags:

Sql Example