From the course: Advanced SQL for Data Scientists
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Federated queries
- [Instructor] Now, there may be times we want to work with data that's not in the database, and we don't actually want to load the data either, but we'd still like to have access to it through SQL. In that case, we could use something known as federated queries. Now, federated data is data that's outside a database, but is still accessible by SQL. This is made possible by a SQL standard called SQL/MED, or management of external data. And it defines a number of different abstractions, but the sort of key ones are foreign data wrappers and datalinks. Now, a foreign data wrapper is a specification and a module or a package that allows us to view data that's outside the database. Datalinks compliment foreign data wrappers. They provide functionality we expect to have in a database like integrity, functions, recovery mechanisms, and authorization mechanisms. So, the way we create a federated data source is first we create an…
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
-
-
-
-
-
-
-
(Locked)
Federated queries4m 13s
-
(Locked)
Bloom filters4m 38s
-
(Locked)
Hstore for key-value pairs6m 23s
-
(Locked)
JSON for semi-structured data8m 34s
-
(Locked)
Hierarchical data and ltrees11m 59s
-
(Locked)
Challenge: Design a table to support unstructured data33s
-
(Locked)
Solution: Design a table to support unstructured data58s
-
(Locked)
-