FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
JavaPerformanceTuning/StockCreateJDBC/stock.sql at master · GKPython/JavaPerformanceTuning · GitHub
GKPython
/
JavaPerformanceTuning
Public
forked from
ScottOaks/JavaPerformanceTuning
Notifications
You must be signed in to change notification settings
Fork
0
Star
0
Code
Pull requests
0
Actions
Projects
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
JavaPerformanceTuning
/
StockCreateJDBC
/
stock.sql
Copy path
More file actions
More file actions
Latest commit
History
History
History
24 lines (23 loc) · 718 Bytes
Breadcrumbs
JavaPerformanceTuning
/
StockCreateJDBC
/
stock.sql
Copy path
File metadata and controls
24 lines (23 loc) · 718 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
DROP
TABLE
STOCKPRICE CASCADE CONSTRAINTS;
CREATE
TABLE
STOCKPRICE
(
SYMBOL
VARCHAR
(
16
)
not null
,
PRICEDATE
DATE
not null
,
LOW
DECIMAL
(
30
,
2
)
not null
,
HIGH
DECIMAL
(
30
,
2
)
not null
,
OPENINGPRICE
NUMERIC
(
30
,
2
)
not null
,
CLOSINGPRICE
NUMERIC
(
30
,
2
)
not null
,
ISYEARHIGH
INTEGER
,
ISYEARLOW
INTEGER
,
primary key
(symbol, pricedate)
);
DROP
TABLE
STOCKOPTIONPRICE;
CREATE
TABLE
STOCKOPTIONPRICE
(
PRICE
NUMERIC
(
30
,
2
)
not null
,
EXPIRATIONPERIOD
INTEGER
,
PRICEDATE
DATE
not null
,
SYMBOL
VARCHAR
(
16
)
not null
,
primary key
(symbol, pricedate, expirationperiod),
CONSTRAINT
FK_OPTION
FOREIGN KEY
(PRICEDATE, SYMBOL)
REFERENCES
STOCKPRICE (PRICEDATE, SYMBOL)
);
Back
|
FazBrowse Home
|
New Git URL