Join Sheeri Cabral for an in-depth discussion in this video Building OCCUR tables, part of MariaDB for MySQL Users.
…If you can pivot tables to summarize them,…you may want to un-pivot a table to un-summarize it.…This is possible with the CONNECT storage engine using the occur table type.…One of the limitations of the occur table type is that it cannot be used…with a base table that is already a pivot table, or else MariaDB will crash.…So first, let's create a new table that we will then un-summarize.…This new table will be called contributor summary and…let's populate with information from our pivot table.…
So let's select the contributor date, the support, the tickets, and…the code FROM our contributors_by_source pivot table.…And we want to have all the records, so we'll say WHERE 1 equals 1, so…that anyone who sees this query knows that we intended to get all the records.…At this point, our table is a non-virtual table populated with data.…To un-summarize our table, we create an occur table to un-pivot our table.…So first, we give it a table name and we can call it anything we want.…
I'll call it contributor_occur.…
- Why use dynamic columns?
- Creating, updating, and querying dynamic columns
- Installing the CONNECT storage engine
- Connecting to remote data
- Connecting to CSV, INI, and XML files
- Using PIVOT tables
- Accessing database metadata
- Working with the Cassandra storage engine
Skill Level Intermediate
Ruby on Rails 4 Essential Trainingwith Kevin Skoglund12h 41m Beginner
1. Dynamic Columns
2. The Power of CONNECT
3. Advanced CONNECT Storage Engine
4. The Cassandra Storage Engine
Next steps1m 46s
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.