From the course: SQL Essential Training
Unlock the full course today
Join today to access over 23,100 courses taught by industry experts.
Filter and analyze using dates - SQL Tutorial
From the course: SQL Essential Training
Filter and analyze using dates
- [Instructor] We have done some excellent work and performed quite a bit of analysis on numeric data. We've also performed analysis using text data, and in very much the same way, we can continue to perform analysis using a new data type, which is date data. Now, management at WSDA Music, they're interested in specific invoices in this part of their analysis. So they'd like to know how many invoices were billed on May 22, 2010. Before we start diving into the equivalent SQL to achieve such a request, we need to familiarize ourselves with how dates are stored in this particular database. So let's jump over to our Browse Data tab and take a look at any table that has the dates. We have our invoice table specified here. And if we take a look, dates are stored by year, followed by month, followed by day. It's very important to take a look as our first step as to how the current database you're working in is storing dates.…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
-
Types of SQL operators2m 35s
-
(Locked)
Filter and analyze numeric data3m 56s
-
(Locked)
BETWEEN and IN operators4m 5s
-
(Locked)
Filter and analyze text data4m 58s
-
(Locked)
Search records without an exact match6m 19s
-
(Locked)
Filter and analyze using dates5m 48s
-
(Locked)
Filter records based on more than one condition3m 36s
-
(Locked)
Logical operator OR2m 39s
-
(Locked)
Brackets and order6m 1s
-
(Locked)
IF THEN logic with CASE9m 52s
-
-
-
-
-
-
-
-
-