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 23:20
How can you tell if someone sent you a text message to your email instead of a email
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Which of these is a benefit of using objects in a powerpoint presentation? a. collaborators can create the external files while you create and edit the slide show. b. you can easily change the theme and design of the presentation. c. you can have older data in the source file while having up-to-date data in the presentation. d. collaborators can easily share the presentation.
Answers: 2
question
Computers and Technology, 24.06.2019 05:30
Hey i really need some solving this problem: 1. encrypt this binary string into cipher text: 110000. include in your answer the formula the decoder would use to decrypt your cipher text in the format (coded answer) x n mod (m) = y & 2. decrypt this cipher text into a binary string: 106 you.
Answers: 2
question
Computers and Technology, 24.06.2019 13:00
Ais a built in formula in spread spread a is any math process such as addition or subtraction. options are function and operation
Answers: 1
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
question
History, 11.03.2020 18:42
question
Social Studies, 11.03.2020 18:42
question
Mathematics, 11.03.2020 18:42
question
History, 11.03.2020 18:48
Questions on the website: 13722360