Skip to content

Commit

Permalink
머야 ㅅㅂ
Browse files Browse the repository at this point in the history
  • Loading branch information
hjkimxoxo committed Aug 25, 2020
2 parents 443ca20 + d411133 commit c8e5fb2
Show file tree
Hide file tree
Showing 358 changed files with 37,232 additions and 20 deletions.
8 changes: 5 additions & 3 deletions .classpath
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,10 @@
<classpathentry kind="src" path="resource"/>
<classpathentry kind="src" path="test"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="lib" path="jcalendar-1.4.jar"/>
<classpathentry kind="lib" path="lib/ojdbc8-19.7.0.0.jar"/>
<classpathentry kind="lib" path="D:/Hairrang_ing/lib/orai18n.jar"/>
<classpathentry kind="lib" path="D:/teamproject_workspace/Hairrang_git/lib/jcalendar-1.4.jar"/>
<classpathentry kind="lib" path="D:/teamproject_workspace/Hairrang_git/lib/jcommon-1.0.23.jar"/>
<classpathentry kind="lib" path="D:/teamproject_workspace/Hairrang_git/lib/jfreechart-1.0.19.jar"/>
<classpathentry kind="lib" path="D:/teamproject_workspace/Hairrang_git/lib/ojdbc8-19.7.0.0.jar"/>
<classpathentry kind="lib" path="D:/teamproject_workspace/Hairrang_git/lib/orai18n.jar"/>
<classpathentry kind="output" path="bin"/>
</classpath>
Binary file modified .dbeaver/.credentials-config.json.bak
Binary file not shown.
74 changes: 74 additions & 0 deletions .dbeaver/.data-sources.json.bak
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"folders": {},
"connections": {
<<<<<<< HEAD
"oracle_thin-1740e7eaa2d-57c233a1a5937a07": {
"provider": "oracle",
"driver": "oracle_thin",
Expand Down Expand Up @@ -72,6 +73,79 @@
"database": "orcl",
"url": "jdbc:oracle:thin:@//localhost:1521/orcl",
"home": "D:\\app\\lenovo\\product\\11.2.0\\dbhome_1",
=======
"oracle_thin-1740eb0bec6-534c958eed59b6ed": {
"provider": "oracle",
"driver": "oracle_thin",
"name": "orcl - HAIRRANG",
"save-password": true,
"show-system-objects": true,
"read-only": false,
"configuration": {
"host": "localhost",
"port": "1521",
"database": "orcl",
"url": "jdbc:oracle:thin:@//localhost:1521/orcl",
"home": "D:\\app\\lenovo\\product\\11.2.0\\dbhome_1",
"type": "dev",
"provider-properties": {
"@dbeaver-check-schema-content@": "false",
"@dbeaver-always-show-dba@": "false",
"@dbeaver-always-use-dba-views@": "false",
"@dbeaver-meta-use-sys-schema@": "false",
"@dbeaver-meta-use-simple-constraints@": "false",
"@dbeaver-use-rule-hint@": "false",
"@dbeaver-use-meta-optimizer@": "false",
"@dbeaver-connection-type@": "BASIC",
"@dbeaver-sid-service@": "SERVICE"
},
"auth-model": "oracle_native",
"handlers": {}
}
},
"oracle_thin-17419d62da0-3c2175c2121261f4": {
"provider": "oracle",
"driver": "oracle_thin",
"name": "orcl - system",
"save-password": true,
"show-system-objects": true,
"read-only": false,
"configuration": {
"host": "localhost",
"port": "1521",
"database": "orcl",
"url": "jdbc:oracle:thin:@//localhost:1521/orcl",
"home": "C:\\Users\\kdh01\\product\\11.2.0\\dbhome_1",
"type": "dev",
"provider-properties": {
"@dbeaver-check-schema-content@": "false",
"@dbeaver-always-show-dba@": "false",
"@dbeaver-always-use-dba-views@": "false",
"@dbeaver-meta-use-sys-schema@": "false",
"@dbeaver-meta-use-simple-constraints@": "false",
"@dbeaver-use-rule-hint@": "false",
"@dbeaver-use-meta-optimizer@": "false",
"@dbeaver-connection-type@": "BASIC",
"@dbeaver-sid-service@": "SERVICE"
},
"auth-model": "oracle_native",
"handlers": {}
}
},
"oracle_thin-1741a1b2805-58c9588d49a6f6b5": {
"provider": "oracle",
"driver": "oracle_thin",
"name": "orcl - hair",
"save-password": true,
"show-system-objects": true,
"read-only": false,
"configuration": {
"host": "localhost",
"port": "1521",
"database": "orcl",
"url": "jdbc:oracle:thin:@//localhost:1521/orcl",
"home": "C:\\Users\\kdh01\\product\\11.2.0\\dbhome_1",
>>>>>>> branch 'master' of https://github.com/DaeguIT-MinSuKim/yi_java4st_1team.git
"type": "dev",
"provider-properties": {
"@dbeaver-check-schema-content@": "false",
Expand Down
Binary file modified .dbeaver/credentials-config.json
Binary file not shown.
45 changes: 45 additions & 0 deletions .dbeaver/data-sources.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"folders": {},
"connections": {
<<<<<<< HEAD
"oracle_thin-1740e7eaa2d-57c233a1a5937a07": {
"provider": "oracle",
"driver": "oracle_thin",
Expand Down Expand Up @@ -72,6 +73,50 @@
"database": "orcl",
"url": "jdbc:oracle:thin:@//localhost:1521/orcl",
"home": "D:\\app\\lenovo\\product\\11.2.0\\dbhome_1",
=======
"oracle_thin-1740eb0bec6-534c958eed59b6ed": {
"provider": "oracle",
"driver": "oracle_thin",
"name": "orcl - HAIRRANG",
"save-password": true,
"show-system-objects": true,
"read-only": false,
"configuration": {
"host": "localhost",
"port": "1521",
"database": "orcl",
"url": "jdbc:oracle:thin:@//localhost:1521/orcl",
"home": "D:\\app\\lenovo\\product\\11.2.0\\dbhome_1",
"type": "dev",
"provider-properties": {
"@dbeaver-check-schema-content@": "false",
"@dbeaver-always-show-dba@": "false",
"@dbeaver-always-use-dba-views@": "false",
"@dbeaver-meta-use-sys-schema@": "false",
"@dbeaver-meta-use-simple-constraints@": "false",
"@dbeaver-use-rule-hint@": "false",
"@dbeaver-use-meta-optimizer@": "false",
"@dbeaver-connection-type@": "BASIC",
"@dbeaver-sid-service@": "SERVICE"
},
"auth-model": "oracle_native",
"handlers": {}
}
},
"oracle_thin-17419d62da0-3c2175c2121261f4": {
"provider": "oracle",
"driver": "oracle_thin",
"name": "orcl - system",
"save-password": true,
"show-system-objects": true,
"read-only": false,
"configuration": {
"host": "localhost",
"port": "1521",
"database": "orcl",
"url": "jdbc:oracle:thin:@//localhost:1521/orcl",
"home": "C:\\Users\\kdh01\\product\\11.2.0\\dbhome_1",
>>>>>>> branch 'master' of https://github.com/DaeguIT-MinSuKim/yi_java4st_1team.git
"type": "dev",
"provider-properties": {
"@dbeaver-check-schema-content@": "false",
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/.classpath
/.project
/.settings/
/bin/
/.dbeaver/
24 changes: 24 additions & 0 deletions Scripts/Script- system.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
SELECT * FROM dba_users;

CREATE USER hairrang IDENTIFIED BY rootroot;

GRANT CONNECT, RESOURCE, CREATE VIEW TO hairrang;

SELECT
username,
default_tablespace,
profile,
authentication_type
FROM
dba_users
WHERE
USERNAME = 'hairrang';

SELECT
username,
default_tablespace,
profile,
authentication_type
FROM
dba_users;

1 change: 1 addition & 0 deletions Scripts/Script.sql
Original file line number Diff line number Diff line change
Expand Up @@ -23,3 +23,4 @@ SELECT GUEST_NO, GUEST_NAME, BIRTHDAY, JOIN_DAY, PHONE, GENDER, GUEST_NOTE FROM
INSERT INTO GUEST
VALUES(GUEST_SEQ.NEXTVAL, '고연정', TO_DATE('1990-02-20', 'YYYY-MM-DD'), SYSDATE, '010-1234-5678', 2, NULL);

SELECT * FROM HAIR;
49 changes: 49 additions & 0 deletions Scripts/hairrang - test.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
SELECT * FROM SALES;

SELECT * FROM GUEST;

SELECT * FROM EVENT;

SELECT * FROM HAIR;

SELECT * FROM booking;

SELECT SALES_NO, SALES_DAY , SALES_TIME , s.GUEST_NO , s.EVENT_NO
FROM SALES s JOIN GUEST g ON (g.GUEST_NO = s.GUEST_NO )
JOIN EVENT e ON (s.EVENT_NO = e.EVENT_NO );

SELECT * FROM SALES WHERE SALES_NO = 2;

UPDATE SALES
SET SALES_DAY = TO_DATE('2001-01-01','yyyy-mm-dd'),
SALES_TIME = TO_DATE('11:11','HH24:Mi'),
GUEST_NO = 1,
EVENT_NO = 1
WHERE SALES_NO =3;

DELETE SALES WHERE SALES_NO =4;

<<<<<<< HEAD
SELECT DETAIL_NO , s.*,h.*,g.*,e.*
FROM SALES_DETAIL sd
JOIN SALES s ON (sd.SALES_NO = s.SALES_NO )
JOIN HAIR h ON (sd.HAIR_NO = h.HAIR_NO )
JOIN GUEST g ON (g.GUEST_NO = s.GUEST_NO )
JOIN EVENT e ON (s.EVENT_NO = e.EVENT_NO );





=======
INSERT INTO guest
VALUES(1, '이지수', TO_DATE('1994-03-15', 'YYYY-MM-DD'), SYSDATE, '010-7423-3200', 2, NULL);
>>>>>>> branch 'master' of https://github.com/DaeguIT-MinSuKim/yi_java4st_1team.git

INSERT INTO HAIR
VALUES(1, '컷트', 10000);

INSERT INTO BOOKING
values(BOOKING_SEQ.NEXTVAL, 1, SYSDATE, 1, '10분 늦을 수도 있다고 하심');


61 changes: 61 additions & 0 deletions Scripts/hairrang_admin_ddl.sql
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
CREATE TABLE Guest(
GUEST_NO NUMBER(10) PRIMARY KEY,
GUEST_NAME VARCHAR2(20) NOT NULL,
BIRTHDAY DATE,
JOIN_DAY DATE,
PHONE VARCHAR2(13),
GENDER NUMBER(1),
GUEST_NOTE VARCHAR2(500)
);

CREATE TABLE SALES(
SALES_NO NUMBER(10) PRIMARY KEY,
SALES_DAY DATE,
SALES_TIME DATE,
GUEST_NO NUMBER(10),
EVENT_NO NUMBER(10)
);

CREATE TABLE SALES_DETAIL(
DETAIL_NO NUMBER(10) PRIMARY KEY,
SALES_NO NUMBER(10) NOT NULL,
HAIR_NO NUMBER(10)
);

CREATE TABLE EVENT(
EVENT_NO NUMBER(10) PRIMARY KEY,
EVENT_NAME VARCHAR2(20) NOT NULL,
SALE NUMBER(3, 2) NOT NULL CONSTRAINT EVENT_SALE_CK CHECK (SALE BETWEEN 0 AND 1)
);

CREATE TABLE HAIR(
HAIR_NO NUMBER(10) PRIMARY KEY,
HAIR_NAME VARCHAR2(20) NOT NULL,
PRICE NUMBER NOT NULL
);

CREATE TABLE BOOKING(
BOOK_NO NUMBER(10) PRIMARY KEY,
GUEST_NO NUMBER(10),
BOOK_DAY DATE,
HAIR_NO NUMBER(10),
BOOK_NOTE VARCHAR2(500)
);

ALTER TABLE SALES
ADD CONSTRAINT SALES_GUESTNO_FK FOREIGN KEY (GUEST_NO) REFERENCES GUEST(GUEST_NO);

ALTER TABLE SALES
ADD CONSTRAINT SALES_EVENTNO_FK FOREIGN KEY (EVENT_NO) REFERENCES EVENT(EVENT_NO);

ALTER TABLE SALES_DETAIL
ADD CONSTRAINT SALDE_EVENTNO_FK FOREIGN KEY (SALES_NO) REFERENCES SALES(SALES_NO);

ALTER TABLE SALES_DETAIL
ADD CONSTRAINT SALDE_HAIRNO_FK FOREIGN KEY (HAIR_NO) REFERENCES HAIR(HAIR_NO);

ALTER TABLE BOOKING
ADD CONSTRAINT BOOK_GUESTNO_FK FOREIGN KEY (GUEST_NO) REFERENCES GUEST(GUEST_NO);

ALTER TABLE BOOKING
ADD CONSTRAINT BOOK_HAIRNO_FK FOREIGN KEY (HAIR_NO) REFERENCES HAIR(HAIR_NO);
Loading

0 comments on commit c8e5fb2

Please sign in to comment.