forked from github/codespaces-blank
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request github#1 from JuanZambrano2000/jpzb
Jpzb
- Loading branch information
Showing
4 changed files
with
51 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
dev -> staging -> production | ||
|
||
# Pull Request | ||
- What | ||
- Why | ||
- How |
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 @@ | ||
git status - see changes | ||
git add ConnectToDB.md Sqlcommands.md - add files | ||
git commit -m "Connection to our Oracle DB" - create commit | ||
git push origin main - push to github | ||
export GITHUB_TOKEN=my_token - create token for github connection | ||
git checkout -b jpzb - create a new branch | ||
git push origin jpzb | ||
code session1.sql - create a file |
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,14 @@ | ||
-- counting records on costumers table | ||
SELECT count(*) from SH.CUSTOMERS; | ||
|
||
-- | ||
-- | ||
select * from SH.CUSTOMERS; | ||
|
||
select * from SH.SALES; | ||
|
||
SELECT cu.CUST_ID, SUM(SA.AMOUNT_SOLD) AS total | ||
FROM SH.CUSTOMERS cu, SH.SALES SALES | ||
WHERE cu.CUST_ID = SA.CUST_ID | ||
GROUP BY cu.CUST_ID | ||
ORDER BY total DESC; |
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,23 @@ | ||
-- comment | ||
-- app_data | ||
CREATE USER app_data IDENTIFIED BY '^SaE9EqS!$%7Hj' | ||
DEFAULT TABLESPACE USERS | ||
QUOTA UNLIMITED ON USERS | ||
ENABLE EDITIONS; | ||
|
||
-- app_code | ||
CREATE USER app_code IDENTIFIED BY '5kbq$eXuJGrZ&2' | ||
DEFAULT TABLESPACE USERS | ||
QUOTA UNLIMITED ON USERS | ||
ENABLE EDITIONS; | ||
|
||
-- app_admin | ||
CREATE USER app_admin IDENTIFIED BY '6yCh89F7tKa^u^' | ||
DEFAULT TABLESPACE USERS | ||
QUOTA UNLIMITED ON USERS | ||
ENABLE EDITIONS; | ||
|
||
-- app_user | ||
CREATE USER app_user IDENTIFIED BY '8s%8JpWPStwh%%' | ||
ENABLE EDITIONS; | ||
|