# Index Nested Loop Join (INLJ)
This project is about building and analysing a Data Warehouse prototype with a Semi Stream Join (INLJ) implementation.
## Operating the Data Warehouse
The operation of the data warehouse can be broken down into 3 major steps:
1) Creation of the Data Warehouse.
2) Extraction, Transformation, and Loading using the INLJ algorithm.
3) Creation of Reports using OLAP Queries.
## Requirements
The `CUSTOMERS`, `PRODUCTS`, and `TRANSACTIONS` tables should already be loaded in the database.
## Step 1: Create Data Warehouse
1) Open *SQLDeveloper*.
2) Run the SQL script file *createDW.sql* which will create the necessary tables for the data warehouse according to the star-schema.
All existing tables with the same name will be dropped and replaced by empty tables named
`D_CUSTOMERS`, `D_PRODUCTS`, `D_STORES`, `D_SUPPLIERS`, and `D_TIME` (dimension tables); and `W_FACTS` (fact table).
Once completed, the above **6** tables would have been created.
## Step 2: Extraction, Transformation, & Loading Using The INLJ Algorithm
1) With *SQLDeveloper* open, open and run the *INLJ.sql* PL-SQL file which will implement the INLJ algorithm.
2) The algorithm involves the creation of the `TRANSACTIONSCURSOR` which is a cursor that will be used to read the tuples from the `TRANSACTIONS` table.
3) The `BULK COLLECT...LIMIT=100` statement limits the number of tuples per batch read to **100**.
4) It is possible to change this by replacing the number "100" by any number less than the total number of records in the `TRANSACTIONS` table.
Once completed, the script would have loaded the data in the relevant Data Warehouse tables.
## Step 3: Creation of Reports using OLAP Queries
1) With *SQLDeveloper* open, select which report is to be created.
2) Select the lines relevant to the report to be created - the file contains separations between each query.
3) Select the lines from the comment denoted by `/*....*/` to the end of the code which is denoted by a `;` and precedes another comment denoting the lines used to generate the next report.
没有合适的资源?快使用搜索试试~ 我知道了~
Index-Nested-Loop-Join-INLJ:使用Semi Stream Join实现构建和分析DW原型
共4个文件
sql:3个
md:1个
需积分: 9 2 下载量 135 浏览量
2021-03-29
20:10:57
上传
评论
收藏 4KB ZIP 举报
温馨提示
索引嵌套循环联接(INLJ) 该项目是关于使用半流联接(INLJ)实现构建和分析数据仓库原型。 操作数据仓库 数据仓库的操作可以分为三个主要步骤: 创建数据仓库。 使用INLJ算法提取,转换和加载。 使用OLAP查询创建报告。 要求 CUSTOMERS , PRODUCTS和TRANSACTIONS表应该已经加载到数据库中。 步骤1:建立资料仓库 打开SQLDeveloper 。 运行SQL脚本文件createDW.sql ,它将根据星形模式为数据仓库创建必要的表。 所有具有相同名称的现有表将被删除,并替换为名为D_CUSTOMERS , D_PRODUCTS , D_STORES , D_SUPPLIERS和D_TIME的空表(维度表); 和W_FACTS (事实表)。 完成后,将创建上面的6个表。 步骤2:使用INLJ算法提取,转换和加载 打开SQLDeveloper ,打
资源详情
资源评论
资源推荐
收起资源包目录
Index-Nested-Loop-Join-INLJ-master.zip (4个子文件)
Index-Nested-Loop-Join-INLJ-master
createDW.sql 4KB
INLJ.sql 4KB
README.md 2KB
queriesDW.sql 4KB
共 4 条
- 1
DaleDai
- 粉丝: 24
- 资源: 4724
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0