Aan de slagGa gratis aan de slag

Creating satellites

With the hubs established, the next step is to create satellites that store descriptive information related to each hub. Satellites provide context and depth to the keys stored in hubs, and they capture the descriptive attributes, changes over time, and the history of business concepts.

Your task will be to create these satellites.

Deze oefening maakt deel uit van de cursus

Introduction to Data Modeling in Snowflake

Cursus bekijken

Praktische interactieve oefening

Probeer deze oefening eens door deze voorbeeldcode in te vullen.

-- Create a new satellite
___ (
	sat_employee_key NUMBER(10,0) AUTOINCREMENT PRIMARY KEY,
	hub_employee_key NUMBER(10,0),
   	employee_name VARCHAR(255),
    gender CHAR(1),
    age NUMBER(3,0),
	-- Add history tracking attributes
	___ TIMESTAMP
    ___ VARCHAR(255),
	-- Add a reference to foreign hub
    FOREIGN KEY (___) REFERENCES ___(___)
);
Code bewerken en uitvoeren