Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using SQL and Adventure Works Datawarehouse database and the code below DELIMITER $$ CREATE PROCEDURE Create_CustomerGeography() BEGIN DROP TABLE IF EXISTS CustomerGeography; CREATE
Using SQL and Adventure Works Datawarehouse database and the code below
DELIMITER $$
CREATE PROCEDURE Create_CustomerGeography()
BEGIN
DROP TABLE IF EXISTS CustomerGeography;
CREATE TABLE CustomerGeography AS
SELECT
DimCustomer.City,
DimGeography.EnglishCountryRegionName
FROM
DimCustomer
INNER JOIN DimGeography ON DimCustomer.GeographyKey = DimGeography.GeographyKey;
END$$
DELIMITER ;
How do I make a log table that has log_date_time, row_count as columns and use this table to log the
above stored procedures executions
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started