-
-
Notifications
You must be signed in to change notification settings - Fork 273
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
451e922
commit 8cefe5a
Showing
12 changed files
with
141 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
**Table 1: STREAM_HACKATHON.STREAMLIT.CUSTOMER_DETAILS** (Stores customer information) | ||
|
||
- CUSTOMER_ID: Number (38,0) [Primary Key, Not Null] - Unique identifier for customers | ||
- FIRST_NAME: Varchar (255) - First name of the customer | ||
- LAST_NAME: Varchar (255) - Last name of the customer | ||
- EMAIL: Varchar (255) - Email address of the customer | ||
- PHONE: Varchar (20) - Phone number of the customer | ||
- ADDRESS: Varchar (255) - Physical address of the customer | ||
|
||
**Table 2: STREAM_HACKATHON.STREAMLIT.ORDER_DETAILS** (Stores order information) | ||
|
||
- ORDER_ID: Number (38,0) [Primary Key, Not Null] - Unique identifier for orders | ||
- CUSTOMER_ID: Number (38,0) [Foreign Key - CUSTOMER_DETAILS(CUSTOMER_ID)] - Customer who made the order | ||
- ORDER_DATE: Date - Date when the order was made | ||
- TOTAL_AMOUNT: Number (10,2) - Total amount of the order | ||
|
||
**Table 3: STREAM_HACKATHON.STREAMLIT.PAYMENTS** (Stores payment information) | ||
|
||
- PAYMENT_ID: Number (38,0) [Primary Key, Not Null] - Unique identifier for payments | ||
- ORDER_ID: Number (38,0) [Foreign Key - ORDER_DETAILS(ORDER_ID)] - Associated order for the payment | ||
- PAYMENT_DATE: Date - Date when the payment was made | ||
- AMOUNT: Number (10,2) - Amount of the payment | ||
|
||
**Table 4: STREAM_HACKATHON.STREAMLIT.PRODUCTS** (Stores product information) | ||
|
||
- PRODUCT_ID: Number (38,0) [Primary Key, Not Null] - Unique identifier for products | ||
- PRODUCT_NAME: Varchar (255) - Name of the product | ||
- CATEGORY: Varchar (255) - Category of the product | ||
- PRICE: Number (10,2) - Price of the product | ||
|
||
**Table 5: STREAM_HACKATHON.STREAMLIT.TRANSACTIONS** (Stores transaction information) | ||
|
||
- TRANSACTION_ID: Number (38,0) [Primary Key, Not Null] - Unique identifier for transactions | ||
- ORDER_ID: Number (38,0) [Foreign Key - ORDER_DETAILS(ORDER_ID)] - Associated order for the transaction | ||
- PRODUCT_ID: Number (38,0) - Product involved in the transaction | ||
- QUANTITY: Number (38,0) - Quantity of the product in the transaction | ||
- PRICE: Number (10,2) - Price of the product in the transaction |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
create or replace TABLE CUSTOMER_DETAILS ( | ||
CUSTOMER_ID NUMBER(38,0) NOT NULL, | ||
FIRST_NAME VARCHAR(255), | ||
LAST_NAME VARCHAR(255), | ||
EMAIL VARCHAR(255), | ||
PHONE VARCHAR(20), | ||
ADDRESS VARCHAR(255), | ||
primary key (CUSTOMER_ID) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
create or replace TABLE ORDER_DETAILS ( | ||
ORDER_ID NUMBER(38,0) NOT NULL, | ||
CUSTOMER_ID NUMBER(38,0), | ||
ORDER_DATE DATE, | ||
TOTAL_AMOUNT NUMBER(10,2), | ||
primary key (ORDER_ID), | ||
foreign key (CUSTOMER_ID) references STREAM_HACKATHON.STREAMLIT.CUSTOMER_DETAILS(CUSTOMER_ID) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
create or replace TABLE PAYMENTS ( | ||
PAYMENT_ID NUMBER(38,0) NOT NULL, | ||
ORDER_ID NUMBER(38,0), | ||
PAYMENT_DATE DATE, | ||
AMOUNT NUMBER(10,2), | ||
primary key (PAYMENT_ID), | ||
foreign key (ORDER_ID) references STREAM_HACKATHON.STREAMLIT.ORDER_DETAILS(ORDER_ID) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
create or replace TABLE PRODUCTS ( | ||
PRODUCT_ID NUMBER(38,0) NOT NULL, | ||
PRODUCT_NAME VARCHAR(255), | ||
CATEGORY VARCHAR(255), | ||
PRICE NUMBER(10,2), | ||
primary key (PRODUCT_ID) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
CREATE OR REPLACE TABLE TRANSACTIONS ( | ||
TRANSACTION_ID NUMBER(38,0) NOT NULL, | ||
ORDER_ID NUMBER(38,0), | ||
PRODUCT_ID NUMBER(38,0), | ||
QUANTITY NUMBER(38,0), | ||
PRICE NUMBER(10,2), | ||
PRIMARY KEY (TRANSACTION_ID), | ||
FOREIGN KEY (ORDER_ID) REFERENCES STREAM_HACKATHON.STREAMLIT.ORDER_DETAILS(ORDER_ID) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.