Hour 12. Understanding Dates and Times

In this hour, you learn about the nature of dates and time in SQL. Not only does this hour discuss the DATETIME data type in more detail; you see how some implementations use dates, some of the common rules, and how to extract the date and time in a desired format.

The highlights of this hour include

  • Understanding dates and time

  • How date and time are stored

  • Typical date and time formats

  • How to use date functions

  • How to use date conversions

Note

As you know by now, there are many different SQL implementations. This book shows the ANSI standard and the most common non-standard functions, commands, and operators. Oracle is used for the examples. Even in Oracle, the date can be stored in different formats. You ...

Get Sams Teach Yourself SQL in 24 Hours, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.