Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

ol-explore.sql 516 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
  1. --- Views and such for understanding the contents of the OpenLibrary data
  2. CREATE MATERIALIZED VIEW ol_edition_json_keys
  3. AS SELECT json_key, COUNT(edition_id)
  4. FROM (SELECT edition_id, jsonb_object_keys(edition_data) AS json_key
  5. FROM ol_edition) eks
  6. GROUP BY json_key;
  7. CREATE MATERIALIZED VIEW ol_work_json_keys
  8. AS SELECT json_key, COUNT(work_id)
  9. FROM (SELECT work_id, jsonb_object_keys(work_data) AS json_key
  10. FROM ol_work) eks
  11. GROUP BY json_key;
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...