Skip Site Navigation «

dbrowse

app«dbrowse
MySQL

Selected Data

This node is informative, descriptive, functional and terminating.
[definitions]

Query Path

Interactive Path

Description of Results

Hopefully, you visited the holidays data node before selecting this view. If not, you’ll find some background information there.

Rather than just extracting the raw data from the MySQL events table, I will join the two tables in this view to show you how they are used by the calendar. Recall that years are restricted to the range of 1970 to 2037.

Note: How the foreign key eid is used in the SQL where clause to join the two tables and produce these results:

where year(holidays.date)=2010 and holidays.eid=events.eid

To select US holidays from another year, modify the interactive path and press the Enter key. Given the volatile nature of calendars, there are some bugs in this data. See if you can spot them.

Node/View

Table dcal.holidays,dcal.events: Selected data.
mysql> select holidays.date,events.event
mysql> from dcal.holidays,dcal.events
mysql> where year(holidays.date)=2010 and holidays.eid=events.eid;
date event
16 rows in set (0.0009 seconds)
2010-01-01 New Year's Day
2010-01-18 Martin Luther King Jr. Day
2010-02-14 Valentine's Day
2010-02-15 Presidents' Day
2010-03-17 St. Patrick's Day
2010-04-04 Easter
2010-05-05 Cinco de Mayo
2010-05-31 Memorial Day
2010-07-04 Independence Day
2010-09-06 Labor Day
2010-10-11 Columbus Day
2010-10-31 Halloween
2010-11-11 Veteran's Day
2010-11-25 Thanksgiving
2010-12-25 Christmas Day
2010-10-03 Author's Birthday

Last updated: Friday, October 31st, 2008 @ 3:15 AM EDT [2008-10-31T07:15:33Z]   home

(c) 2008-2010, Douglas W. Clifton, loadaveragezero.com, all rights reserved.