Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask DBMS Expert


Home >> DBMS

Assignment

Is this the process you used to do assignment.

STAGE TO 3NF

The following in class projects will prepare you to load your 3NF tables from your stage tables.

In class project part I - This example loads your stage STORE table and your 3NF REGION table. It uses a source qualifier to remove the duplicates.

1. Create the 3NF REGION table. Make sure this table has the correct PK.

2. Create the STAGE store table.

3. Create a SQL task in the control flow to truncate the 3NF REGION table. Make sure you give the SQL task a descriptive name.

4. Create a data flow task to load the STORE stage table from the STORE flat file. Make sure you use add a precedent constraint to ensure the SQL task completes before you execute this control flow. Also make sure you give this task a descriptive name.

5. Now execute this workflow. Make sure is executes correctly.

6. Now to SQL Server Management studio and duplicate all the rows in the store STAGE table. Do this by executing a SELECT INSERT statement.

7. Now modify your workflow by creating another data flow task. This data flow task will load your REGION 3NF table. For this data flow I want you to use a SQL SELECT statement with the keyword distinct in your OLE DB source to remove duplicates before you insert into the 3NF REGION table. Also make sure you have given this data flow task a descriptive name.

8. Execute the workflow.

9. Verify that your 3NF REGION table has all the correct rows.

In class project part II - This example uses a sort transformation instead of a source qualifier to remove the duplicates.

10. Modify the workflow you create in part one (above). Remove the distinct select query from your OLE DB Source.

11. Now to remove the duplicates I want you to add a sorter transformation and use the sorter transformation to remove the duplicates. Give the sorter transformation a descriptive name.

12. Execute the workflow.

13. Verify that your 3NF REGION table has all the correct rows.

In class project part III - Now we will learn about the multicast transformation. We will use the multicast transformation to duplicate the data path and load the STATE and REGION 3NF tables.

14. Modify the workflow you created in part two. Remove the sorter transformation.

15. Add another SQL task in the control flow to delete the rows from the NF3 STATE table.

16. Add a multicast transformation to the workflow where the sorter transformation was. Use the multicast transformation to split the data flow into two paths. One path will include the attributes for the REGION table and the other path will contain the attributes for the STATE table. Make sure you give a descriptive names to the multicast transformation.

17. Add two sorter transformations to remove duplicates for both data paths (STATE and REGION). Also make sure you give the sorter transformations descriptive names.

18. Now that you have removed the duplicates insert the rows into both the STATE and REGION 3NF tables.

19. Execute your workflow.

20. Verify the REGION and STATE tables are populated.

In class project part IIII - Now you will use a stored procedure instead of a multicast transformation to load your STATE and REGION 3NF tables.

21. Disable all the data flow and SQL tasks in your project.

22. Create a stored procedure that will delete the 3NF REGION and STATE tables.

23. Then insert the 3NF REGION and STATE tables.

24. Execute the stored procedure from a SQL Task in your control flow.

25. Execute your workflow.

26. Verify the 3NF state and region tables are populated.

DBMS, Programming

  • Category:- DBMS
  • Reference No.:- M91773744

Have any Question?


Related Questions in DBMS

Sql query assignment -for this assignment you are to write

SQL Query Assignment - For this assignment you are to write your answers in a word document. This assignment is in three parts: Part A (reporting queries), Part B (query performance), Part C (query design). For this assi ...

Systems analysis project scenic routes operates a bus

Systems analysis project Scenic Routes operates a bus company that specializes in travelling on secondary roads, rather than Interstate highways. Their slogan is: "It Takes a Little Longer, But It's Scenic." The firm nee ...

Sqlwrite a select statement that returns one column from

SQL Write a SELECT statement that returns one column from the Vendor table named Full Name. Create this column from the VendorContactFName and VendorContactLName columns. Format it as follows: last name, comma, first nam ...

In sql developercreate a table userpermissions provide

IN SQL DEVELOPER Create a table UserPermissions (provide create and insert statements code) Document UserName Policy SYSTEM Menu JDOW W2 USAM Permissions SYSTEM W2 JDOW Form 1040 USAM Policy JDOW W2 SYSTEM Write a PL/SQL ...

Sql assignmentin these exercises youll enter and run your

SQL Assignment In these exercises, you'll enter and run your own SELECT statements. You will use the MyGuitarShop database for these queries. If you do not already have the MyGuitarShop database, the SQL script and the i ...

Football association of zambia faz super leaguethe faz has

Football Association of Zambia (FAZ) Super League The FAZ has recently decided to reorganise their operations to support both existing and possibly expanded league operations in Zambia and part of preparation for the 201 ...

Question team project submission - submit to the unit 4

Question: Team Project Submission - Submit to the Unit 4 Group Project Area This version of the capstone project assignment is FOR GRADING this week. Submit to the group area the document containing completed Sections On ...

Question lab 1 creating a database designthis assignment

Question: Lab 1: Creating a Database Design This assignment contains two (2) Sections: Database Design Diagram and Design Summary. You must submit both sections as separate files in order to complete this assignment. Not ...

We can represent a data set as a collection of object nodes

We can represent a data set as a collection of object nodes and a collection of attribute nodes, where there is a link between each object and each attribute, and where the weight of that link is the value of the object ...

Objectivethe objective of this lab is to be familiar with a

OBJECTIVE: The objective of this lab is to be familiar with a process in big data modeling. You're required to produce three big data models using the MS PowerPoint software. This tool is available on UMUC Virtual Deskto ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As