Question: 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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!