Hour 12. Understanding Dates and Times

Team-Fly    

 
Sams Teach Yourself SQL in 24 Hours, Third Edition
By Ronald R. Plew, Ryan K. Stephens
Table of Contents
Part III.  Getting Effective Results from Queries


Hour 12. Understanding Dates and Times

In this hour, you will learn about the nature of dates and time in SQL. Not only does this hour discuss the DATETIME data type in more detail, but you will also 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

graphics/note_icon.gif

As you know by now, there are many different SQL implementations. This book shows the ANSI standard and the most common nonstandard functions, commands, and operators. Oracle is used for the examples. Even in Oracle, the date can be stored in different formats. You must check your particular implementation for the date storage. No matter how it is stored, your implementation should have functions that convert date formats.



Team-Fly    
Top
 


Sams Teach Yourself SQL in 24 Hours
Sams Teach Yourself SQL in 24 Hours (5th Edition) (Sams Teach Yourself -- Hours)
ISBN: 0672335417
EAN: 2147483647
Year: 2002
Pages: 275

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net