Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jordisala1991/cbde
CBDE
https://github.com/jordisala1991/cbde
Last synced: 12 days ago
JSON representation
CBDE
- Host: GitHub
- URL: https://github.com/jordisala1991/cbde
- Owner: jordisala1991
- Created: 2013-04-30T14:07:40.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2013-06-17T20:34:18.000Z (over 11 years ago)
- Last Synced: 2024-10-11T13:13:54.695Z (about 1 month ago)
- Language: Java
- Size: 19 MB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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
);