Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jordisala1991/cbde

CBDE
https://github.com/jordisala1991/cbde

Last synced: 12 days ago
JSON representation

CBDE

Awesome Lists containing this project

README

        

CBDE
====

CBDE

### Insert a les taules

Lineitems = 20.000
Orders = 5.000
Customers = 500
Partsupp = 2.666
Part = 666
Supplier = 33
Nation = 25
Region = 5

### Restriccions inserts

CREATE TABLE customer(
C_CustKey int NULL,
C_Name varchar2(64) NULL,
C_Address varchar2(64) NULL,
C_NationKey int NULL,
C_Phone varchar2(64) NULL,
C_AcctBal number(13, 2) NULL,
C_MktSegment varchar2(64) NULL,
C_Comment varchar2(120) NULL,
skip varchar2(64) NULL
);

CREATE TABLE lineitem(
L_OrderKey int NULL,
L_PartKey int NULL,
L_SuppKey int NULL,
L_LineNumber int NULL,
L_Quantity int NULL,
L_ExtendedPrice number(13, 2) NULL,
L_Discount number(13, 2) NULL,
L_Tax number(13, 2) NULL,
L_ReturnFlag varchar2(64) NULL,
L_LineStatus varchar2(64) NULL,
L_ShipDate date NULL,
L_CommitDate date NULL,
L_ReceiptDate date NULL,
L_ShipInstruct varchar2(64) NULL,
L_ShipMode varchar2(64) NULL,
L_Comment varchar2(64) NULL,
skip varchar2(64) NULL
);

CREATE TABLE nation(
N_NationKey int NULL,
N_Name varchar2(64) NULL,
N_RegionKey int NULL,
N_Comment varchar2(160) NULL,
skip varchar2(64) NULL
);

CREATE TABLE orders(
O_OrderKey int NULL,
O_CustKey int NULL,
O_OrderStatus varchar2(64) NULL,
O_TotalPrice number(13, 2) NULL,
O_OrderDate date NULL,
O_OrderPriority varchar2(15) NULL,
O_Clerk varchar2(64) NULL,
O_ShipPriority int NULL,
O_Comment varchar2(80) NULL,
skip varchar2(64) NULL
);

CREATE TABLE part(
P_PartKey int NULL,
P_Name varchar2(64) NULL,
P_Mfgr varchar2(64) NULL,
P_Brand varchar2(64) NULL,
P_Type varchar2(64) NULL,
P_Size int NULL,
P_Container varchar2(64) NULL,
P_RetailPrice number(13, 2) NULL,
P_Comment varchar2(64) NULL,
skip varchar2(64) NULL
);

CREATE TABLE partsupp(
PS_PartKey int NULL,
PS_SuppKey int NULL,
PS_AvailQty int NULL,
PS_SupplyCost number(13, 2) NULL,
PS_Comment varchar2(200) NULL,
skip varchar2(64) NULL
);

CREATE TABLE region(
R_RegionKey int NULL,
R_Name varchar2(64) NULL,
R_Comment varchar2(160) NULL,
skip varchar2(64) NULL
);

CREATE TABLE supplier(
S_SuppKey int NULL,
S_Name varchar2(64) NULL,
S_Address varchar2(64) NULL,
S_NationKey int NULL,
S_Phone varchar2(18) NULL,
S_AcctBal number(13, 2) NULL,
S_Comment varchar2(105) NULL,
skip varchar2(64) NULL
);