1 / 3

CUSTOMER (Cust#, Cname, City) ORDER (Order#, Odate, Cust#, Ord_Amt)

스키마에 대한 설명을 듣고 키와 외래키를 찾는다. CUSTOMER (Cust#, Cname, City) ORDER (Order#, Odate, Cust#, Ord_Amt) ORDER_ITEM (Order#, Item#, Qty) ITEM (Item#, Unit_price) SHIPMENT (Order#, Warehouse#, Ship_date) WAREHOUSE (Warehouse#, City). COMPANY DB 에 다음 갱신을 실행하였을 경우 제약 조건위반 ?.

dorcas
Download Presentation

CUSTOMER (Cust#, Cname, City) ORDER (Order#, Odate, Cust#, Ord_Amt)

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. 스키마에대한 설명을듣고 키와 외래키를 찾는다 CUSTOMER (Cust#, Cname, City) ORDER (Order#, Odate, Cust#, Ord_Amt) ORDER_ITEM (Order#, Item#, Qty) ITEM (Item#, Unit_price) SHIPMENT (Order#, Warehouse#, Ship_date) WAREHOUSE (Warehouse#, City)

  2. COMPANY DB에 다음 갱신을 실행하였을 경우 제약 조건위반? (a) Insert < 'Robert', 'F', 'Scott', '943775543', '21-JUN-42', '2365 Newcastle Rd, Bellaire, TX', M, 58000, '888665555', 1 > into EMPLOYEE. (b) Insert < 'ProductA', 4, 'Bellaire', 2 > into PROJECT. (c) Insert < 'Production', 4, '943775543', '01-OCT-88' > into DEPARTMENT. (d) Insert < '677678989', null, '40.0' > into WORKS_ON. (e) Insert < '453453453', 'John', M, '12-DEC-60', 'SPOUSE' > into DEPENDENT. (f) Delete the WORKS_ON tuples with ESSN= '333445555'. (g) Delete the EMPLOYEE tuple with SSN= '987654321'. (h) Delete the PROJECT tuple with PNAME= 'ProductX'. (i) Modify the MGRSSN and MGRSTARTDATE of the DEPARTMENT tuple with DNUMBER=5 to '123456789' and '01-OCT-88', respectively. (j) Modify the SUPERSSN attribute of the EMPLOYEE tuple with SSN= '999887777' to '943775543'. (k) Modify the HOURS attribute of the WORKS_ON tuple with ESSN= '999887777' and PNO= 10 to '5.0'.

  3. CLASS(Course#, Section#, Instructor#, Semester, Year,BuildingCode, Room#, TimePeriod, Weekdays, CreditHours) • 상식적인 가정 + 과목의 분반은 특정 요일(월)의 특정 시간(3)에만 열린다. 즉, 일주일에 한 시간대에만 강의한다. • 다음의 추가 가정에 따라 후보키를 찾으시오: • Section#는 Course#, 년도, 학기에 무관하게 unique한 경우 • Section#는 특정년도, 특정학기에개설된 Course에 따라 순번으로 부여하는 경우 • Instructor는 한 학기에 한 과목만 강의할 수 있는 경우 • 위의 테이블에서 중복된 정보가 있는가? • 분반이 일주일에 여러 번 열린다면 무엇이 문제인가? 후보키는? DB 설계는?

More Related