File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ dev -> staging -> production
2+
3+ # Pull Request
4+ - What
5+ - Why
6+ - How
Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 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 ;
Original file line number Diff line number Diff line change 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+
You can’t perform that action at this time.
0 commit comments