Skip to content

Commit a8cce6a

Browse files
Merge pull request github#1 from JuanZambrano2000/jpzb
Jpzb
2 parents 5c8c786 + bdaa684 commit a8cce6a

4 files changed

Lines changed: 51 additions & 0 deletions

File tree

devProcess.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
dev -> staging -> production
2+
3+
# Pull Request
4+
- What
5+
- Why
6+
- How

gitCommands.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
git status - see changes
2+
git add ConnectToDB.md Sqlcommands.md - add files
3+
git commit -m "Connection to our Oracle DB" - create commit
4+
git push origin main - push to github
5+
export GITHUB_TOKEN=my_token - create token for github connection
6+
git checkout -b jpzb - create a new branch
7+
git push origin jpzb
8+
code session1.sql - create a file

session1.sql

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
-- counting records on costumers table
2+
SELECT count(*) from SH.CUSTOMERS;
3+
4+
--
5+
--
6+
select * from SH.CUSTOMERS;
7+
8+
select * from SH.SALES;
9+
10+
SELECT cu.CUST_ID, SUM(SA.AMOUNT_SOLD) AS total
11+
FROM SH.CUSTOMERS cu, SH.SALES SALES
12+
WHERE cu.CUST_ID = SA.CUST_ID
13+
GROUP BY cu.CUST_ID
14+
ORDER BY total DESC;

users.sql

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
-- comment
2+
-- app_data
3+
CREATE USER app_data IDENTIFIED BY '^SaE9EqS!$%7Hj'
4+
DEFAULT TABLESPACE USERS
5+
QUOTA UNLIMITED ON USERS
6+
ENABLE EDITIONS;
7+
8+
-- app_code
9+
CREATE USER app_code IDENTIFIED BY '5kbq$eXuJGrZ&2'
10+
DEFAULT TABLESPACE USERS
11+
QUOTA UNLIMITED ON USERS
12+
ENABLE EDITIONS;
13+
14+
-- app_admin
15+
CREATE USER app_admin IDENTIFIED BY '6yCh89F7tKa^u^'
16+
DEFAULT TABLESPACE USERS
17+
QUOTA UNLIMITED ON USERS
18+
ENABLE EDITIONS;
19+
20+
-- app_user
21+
CREATE USER app_user IDENTIFIED BY '8s%8JpWPStwh%%'
22+
ENABLE EDITIONS;
23+

0 commit comments

Comments
 (0)