Skip to content

Commit

Permalink
Merge pull request github#1 from JuanZambrano2000/jpzb
Browse files Browse the repository at this point in the history
Jpzb
  • Loading branch information
JuanZambrano2000 authored Mar 4, 2024
2 parents 5c8c786 + bdaa684 commit a8cce6a
Show file tree
Hide file tree
Showing 4 changed files with 51 additions and 0 deletions.
6 changes: 6 additions & 0 deletions devProcess.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
dev -> staging -> production

# Pull Request
- What
- Why
- How
8 changes: 8 additions & 0 deletions gitCommands.md
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
14 changes: 14 additions & 0 deletions session1.sql
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;
23 changes: 23 additions & 0 deletions users.sql
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;

0 comments on commit a8cce6a

Please sign in to comment.