subject

Let’s try a query: for all the orders report: a. the date an order took place b. the id of the products included in the order c. the quantity ordered d. productstandardprice e. the calculated column: order_sales_price as productstandardprice* orderedquantity for those orders that do not have an associated orderline assign a productid = -99 and quantity ordered = -99, productstandardprice = 0 part 02 let’s create some tables: 1. create a table named product_dim that holds the products and their product lines, including both id’s and names. it should also hold a new column called product_key that will be the primary key. 2. insert data into product_dim. do not allow null values: substitute possible nulls with ‘undefined’ hint: 1. create a sequence that you will use to populate the product_key: create sequence product_seq start with 1; 2. write a query that selects the product and productline information from the operational database tables. within this query you can also use the sequence as: select product_seq. nextval as product_key, product_id, ….. from product_t …. ; 3. use this query to insert the data as: insert into product_dim select …. ; 3. insert into table product_dim a new record with: productid = -99, productlineid = -99 and ‘undefined’ descriptions 4. create a table named sales_fact with columns: sales_date_key, product_key, order_sales_price 5. insert data into sales_fact hint: modify the query of part 01, so that you also select the corresponding datekey from date_dim instead of order_date and the product_key from product_dim instead of product_id. be careful, when you are joining the tables you should take into account that sometimes the product id is null and in these cases you will be using the new undefined record of product_dim. yes, you have just created a mini star let’s try a query: for all the orders report: a. the date an order took place b. the id of the products included in the order c. the quantity ordered d. productstandardprice e. the calculated column: order_sales_price as productstandardprice* orderedquantity for those orders that do not have an associated orderline assign a productid = -99 and quantity ordered = -99, productstandardprice = 0 part 02 let’s create some tables: 1. create a table named product_dim that holds the products and their product lines, including both id’s and names. it should also hold a new column called product_key that will be the primary key. 2. insert data into product_dim. do not allow null values: substitute possible nulls with ‘undefined’ hint: 1. create a sequence that you will use to populate the product_key: create sequence product_seq start with 1; 2. write a query that selects the product and productline information from the operational database tables. within this query you can also use the sequence as: select product_seq. nextval as product_key, product_id, ….. from product_t …. ; 3. use this query to insert the data as: insert into product_dim select …. ; 3. insert into table product_dim a new record with: productid = -99, productlineid = -99 and ‘undefined’ descriptions 4. create a table named sales_fact with columns: sales_date_key, product_key, order_sales_price 5. insert data into sales_fact hint: modify the query of part 01, so that you also select the corresponding datekey from date_dim instead of order_date and the product_key from product_dim instead of product_id. be careful, when you are joining the tables you should take into account that sometimes the product id is null and in these cases you will be using the new undefined record of product_dim. yes, you have just created a mini star

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 09:00
Create a cell reference in a formula by typing in the cell name or         a. right-clicking the cell. b. clicking the cell. c. clicking the column where the cell is located. d. clicking the row where the cell is located.
Answers: 1
question
Computers and Technology, 23.06.2019 09:30
The place where the extended axis of the earth would touch the celestial sphere is called the celestial
Answers: 1
question
Computers and Technology, 24.06.2019 02:20
The first time a user launches the powerpoint program, which view is shown allowing the user to access recent presentations or create new presentations based on templates?
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
You know the right answer?
Let’s try a query: for all the orders report: a. the date an order took place b. the id of the pro...
Questions
Questions on the website: 13722361