Computers and Technology

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

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 05:00, yddlex
Modern businesses use different technologies to accomplish work tasks
Answers: 2
image
Computers and Technology, 22.06.2019 21:00, jarrettashlyn
Write a method so that the main() code below can be replaced by the simpler code that calls method original main(): public class calcmiles { public static void main(string [] args) { double milesperhour; double minutestraveled; double hourstraveled; double milestraveled; milesprhour = scnr. nextdouble(); minutestraveled = scnr. nextdouble(); hourstraveled = minutestraveled / 60.0; milestraveled = hourstraveled * milesperhour; system. out. println("miles: " + milestraveled); } }
Answers: 2
image
Computers and Technology, 23.06.2019 00:30, Thisisdifinite
Which of the following would you find on a network
Answers: 3
image
Computers and Technology, 24.06.2019 14:30, thelordoftheknowwjo4
In a home that has 120 v service, there is an electric appliance that has a resistance of 12 ohms. how much power will this appliance consume? a. 10 w b. 120 w c 1200 w d. 1440 w
Answers: 1
Do you know the correct 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 in other subjects:

Konu
English, 07.12.2021 19:00