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

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 17:00, dylancasebere
In microsoft word, you can change the look of paragraphs by:
Answers: 1
image
Computers and Technology, 22.06.2019 13:00, Cookie320
Write a program which asks you to enter a name in the form of first middle initial last. so you might enter for example samuel p. clemens. use getline to read in the string because it contains spaces. also, apparently the shift key on your keyboard doesn’t work, because you enter it all lower case. pass the string to a function which uses .find to locate the letters which need to be upper case and use toupper to convert those characters to uppercase. the revised string should then be returned to main in the form last, first mi where it will be displayed.
Answers: 1
image
Computers and Technology, 22.06.2019 18:30, lailahussain99
Which of the following is an example of intellectual properly! oa. new version of a novelb. journal of ideasc. pages of a bookood. lines of a poem
Answers: 2
image
Computers and Technology, 23.06.2019 00:30, lm18618
Which one of the following is considered a peripheral? a software b mouse c usb connector d motherboard
Answers: 2
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 in other subjects:

Konu
Mathematics, 29.06.2019 22:00
Konu
English, 29.06.2019 22:00