Summary
This brings us to the end of this chapter, and by now, you should have learned about the following:
- The different ways to store date and time information in a SQL database, specifically the
DATETIME
,DATE
, andTIME
data types - The syntax and format for each of these data types
- Various built-in functions provided by SQL for manipulating and extracting information from DateTime data, such as
NOW()
,DATE()
, andDATEDIFF()
- How to perform calculations and comparisons with DateTime data using SQL functions
- The importance of good data validation and integrity in order to ensure that the data stored in DateTime columns is accurate, consistent, and in the correct format
In the next chapter, we will learn about Null
values in a dataset and will look at ways to avoid and handle such values in a dataset. Handling null
values in SQL is an important step before introducing data wrangling, as it ensures that your data is accurate, consistent, and ready for data...