Writing OLAP SQL query

Posted by user1859596 on Stack Overflow See other posts from Stack Overflow or by user1859596
Published on 2012-12-16T10:01:31Z Indexed on 2012/12/16 11:05 UTC
Read the original article Hit count: 231

Filed under:
|
|
|

I have a project I am working on that requires the following :

  1. create a normalized sample rdbms (5 tables)
  2. using Java I entered 1 million rows of data to each table
  3. run two OLTP and two OLAP queries on the normalized tables.
  4. Denormalized tables.
  5. run the same OLTP and OLAP queries on them and compare time.

What does OLAP query mean? I've searched the internet and all that I can find is that I have to make a cube, and apply queries on it. How can I write an OLAP query on a RDBMS? I have a sample : tables normalized(orders,product,customer,branch,sales)

  1. sales : order_id,product_id,quantity
  2. product : product_id,name,description,price,sales_tax
  3. customer : customer_id,f_name,l_name,tel_no,addr,nic,city
  4. branch : branch_id,name,tel_no,addr,city
  5. orders : order_id,customer_id,order_date,branch_id

I want to write an OLAP query on the above tables. I am using Oracle Express with SQL Developer.

© Stack Overflow or respective owner

Related posts about sql

Related posts about Oracle