Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Database Management

Authors: Jeff Hoffer, Ramesh Venkataraman, Heikki Topi

12th edition

133544613, 978-0133544619

More Books

Students also viewed these Databases questions

Question

What additional information would you want to know?

Answered: 1 week ago

Question

Explain why a profit-maximizing firm must also minimize costs.

Answered: 1 week ago