This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select: | |
| dimensions: | |
| - Director | |
| - Producer | |
| dimensionsExclude: true | |
| order_by: | |
| - field: Director | |
| - field: Producer | |
| limit: 50 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| version: 1.0 | |
| dataObjects: | |
| Movies: | |
| code: movies | |
| database: demo | |
| schema: movies | |
| synonyms: [film] | |
| columns: | |
| Movie ID: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Optional cleanup | |
| TRUNCATE TABLE movie_producers, | |
| movie_directors, | |
| movies, | |
| producers, | |
| directors RESTART IDENTITY CASCADE; | |
| -- Directors | |
| INSERT INTO | |
| directors (director_id, name) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CREATE TABLE directors ( | |
| director_id INT PRIMARY KEY, | |
| name VARCHAR(200) NOT NULL | |
| ); | |
| CREATE TABLE producers ( | |
| producer_id INT PRIMARY KEY, | |
| name VARCHAR(200) NOT NULL | |
| ); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- ===================================================================== | |
| -- VIRTUAL PUPPINI BRIDGE - UNIFIED STAR SCHEMA (USS) | |
| -- Schema: uss_1 | |
| -- Purpose: Create a unified fact table combining all business processes | |
| -- (sales, purchases, shipments, returns) with conformed dimensions | |
| -- Author: Ralfo Becher, OrionBelt | |
| -- Date: 2025 | |
| -- ===================================================================== | |
| CREATE OR REPLACE VIEW uss_1.v_unified_star_schema AS |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| SET schema 'orionbelt_1'; | |
| -- Clear existing data (if any) | |
| TRUNCATE TABLE clientcomplaints CASCADE; | |
| TRUNCATE TABLE acctbal CASCADE; | |
| TRUNCATE TABLE returns CASCADE; | |
| TRUNCATE TABLE shipments CASCADE; | |
| TRUNCATE TABLE purchases CASCADE; | |
| TRUNCATE TABLE sales CASCADE; | |
| TRUNCATE TABLE calendar CASCADE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- create schema orionbelt_1; | |
| set schema 'orionbelt_1'; -- ensures that you work on this schema, and not on the default public | |
| -- tables summary: | |
| drop table if exists clients cascade; | |
| drop table if exists products cascade; | |
| drop table if exists sales cascade; | |
| drop table if exists shipments cascade; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ʕ◔ϖ◔ʔ | |
| U+0295, U+25D4, U+03D6, U+25D4, U+0294 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import ( | |
| "context" | |
| "database/sql" | |
| "database/sql/driver" | |
| "errors" | |
| "reflect" | |
| // ... | |
| sf "github.com/snowflakedb/gosnowflake" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var prefix = window.location.pathname.substr(0, window.location.pathname.toLowerCase().lastIndexOf("/extensions") + 1); | |
| var config = { | |
| host: window.location.hostname, | |
| prefix: prefix, | |
| port: window.location.port, | |
| isSecure: window.location.protocol === "https:" | |
| }; | |
| require.config({ | |
| baseUrl: (config.isSecure ? "https://" : "http://") + config.host + (config.port ? ":" + config.port : "") + config.prefix + "resources" | |
| }); |
NewerOlder