database.sarang.net
UserID
Passwd
Database
DBMS
ㆍMySQL
PostgreSQL
Firebird
Oracle
Informix
Sybase
MS-SQL
DB2
Cache
CUBRID
LDAP
ALTIBASE
Tibero
DB 문서들
스터디
Community
공지사항
자유게시판
구인|구직
DSN 갤러리
도움주신분들
Admin
운영게시판
최근게시물
MySQL Q&A 28143 게시물 읽기
No. 28143
제가한 정규화가 맞나요?? 부탁드립니다
작성자
박민범(박민범)
작성일
2009-04-07 05:12
조회수
5,521

   안녕하세요

제가 프로그램을 잘못다루는데 이번에 데이터 베이스 수업이 있네요

그래서 죄송하지만 질문이 좀 있습니다 ^^;

제가 er diagram을 그려야하는데요...

그전에 정규화로 틀좀 잡을라고 했는데

영 잘모르겠어요,,

제가 primary key 와 foreign key 를 맞게썼는지 궁굼하네요

그리고 정규화도 맞게했는지 부탁좀 드려요

그리고 여기서 staffNo, Appointment No 그리고 Invoice No 는 primary key로 좋을것 같은데요...

다른 테이블과 연결이 안되있으면 primary key로 쓸수없는거죠?^^;


감사합니다

primary key는  아래 바 이구요
foreign key 는  * 표시에요  



Pet treatment

Pet owner

* Examination No and data

Owner No

* Pet NO

Owner name

Treatment No

Adress

Description

Home telephone No

Quantity of each type of treatment

The data the treatment is to begin and end

Additional comment

Pets

Pet No

Pet name

Treatment

Type of pet

* Treatment No.

Description

Full description of the treatment

D.O.B

Cost to the pet owner

Data registrated

* Detail of pet owner (Owner No)

Appointment

Appointment No   

Staff

* Owner No.

Staff No

* Pet No

Name

(Name+Postion=the name of vet)

Appointment data and time

Position

compound primary key

Address

Telephone No

Invoice

D.O.B

Invoice No

Gender

Invoice date

National insurance No

* Owner No

Current annual salary

* Pet No

Detail of treatment

Cost of each type of treatment

Examination

Total cost

Examination No

payment of invoice

Date and time of examination

The data the invoice paid

*The name of vet     

Method of payment

* Pet No.

Full description of examination results

future treatment

[Top]
No.
제목
작성자
작성일
조회
28146[질문]있는지 없는지 체크해서 추가하기 [1]
민현호
2009-04-07
5710
28145이런 테이블 구조에서 시간대별 통계 구하기 [1]
푸르미
2009-04-07
9401
28144com.mysql.jdbc.CommunicationsException 오류에 대해 아시는 분 계신지요?
김승동
2009-04-07
6839
28143제가한 정규화가 맞나요?? 부탁드립니다
박민범
2009-04-07
5521
28142mysqladmin -u -p processlist 로 확인해보면 50개 정도 떠 있는데.... [3]
김승동
2009-04-07
5912
28141mysql 조인방식은 nested loop 인가요? hash 인가요? [1]
mysql초보
2009-04-06
7308
28140DISTINCT와 SUM동시 적용 질문입니다. [1]
꿍스
2009-04-05
5896
Valid XHTML 1.0!
All about the DATABASE... Copyleft 1999-2024 DSN, All rights reserved.
작업시간: 0.018초, 이곳 서비스는
	PostgreSQL v16.2로 자료를 관리합니다