다른 기준 테이블여러 테이블의 데이터를 연결하는 방법은 무엇입니까?
부서 테이블
╔═══════════╦════════════════╗ ║ deptID ║ DeptName ║ ╠═══════════╬════════════════╣ ║ 1 ║ abc ║ ║ 2 ║ def ║ ║ 3 ║ ghi ║ ╚═══════════╩════════════════╝
인 다음 I 많은 관계를 많이 갖는 2 개 테이블을 동적으로 별도의 테이블에 다수의 관계에 다수로 증가
╔════════╦════════════════════════╗ ║ id ║ criteria ║ ╠════════╬════════════════════════╣ ║ 1 ║ number of Employees ║ ║ 2 ║ status ║ ║ 3 ║ nature of products ║ ║ . ║ --- ║ ║ . ║ --- ║ ║ . ║ --- ║ ║ . ║ --- ║ ║ . ║ --- ║ ║ . ║ --- ║ ║ . ║ --- ║ ╚════════╩════════════════════════╝
다음과 같이 각 부서에 대해 각 기준에 값을 부여하십시오.
╔════════╦══════╦═════════════════════╗ ║ DeptID ║ CrID ║ value ║ ╠════════╬══════╬═════════════════════╣ ║ 1 ║ 1 ║ 20 ║ ║ 1 ║ 2 ║ currently active ║ ║ 1 ║ 3 ║ mechanical ║ ║ 1 ║ . ║ ..... ║ ║ 1 ║ . ║ ..... ║ ║ 1 ║ . ║ ..... ║ ║ 2 ║ 1 ║ 40 ║ ║ 2 ║ 2 ║ paused for transfer ║ ║ 2 ║ 3 ║ software ║ ║ 2 ║ . ║ ..... ║ ║ 2 ║ . ║ ..... ║ ║ 2 ║ . ║ ..... ║ ║ 3 ║ 1 ║ 50 ║ ║ 3 ║ 2 ║ heavy duty ║ ║ 3 ║ 3 ║ support ║ ║ 3 ║ . ║ ..... ║ ║ 3 ║ . ║ ..... ║ ║ 3 ║ . ║ ..... ║ ║ ║ ║ ║ ║ . ║ . ║ ..... ║ ║ . ║ . ║ ..... ║ ║ . ║ . ║ ..... ║ ║ ║ ║ ║ ╚════════╩══════╩═════════════════════╝
1) 방법이 결과
╔═══════╦═════════════╦═════════════════════╦════════════╦═════╦═════╗ ║ name ║ number of ║ status ║ nature of ║ ... ║ ... ║ ║ ║ Employees ║ ║ products ║ ║ ║ ╠═══════╬═════════════╬═════════════════════╬════════════╬═════╬═════╣ ║ abc ║ 20 ║ currently active ║ mechanical ║ ... ║ ... ║ ║ def ║ 40 ║ paused for transfer ║ software ║ ... ║ ... ║ ║ ghi ║ 50 ║ heavy duty ║ support ║ ... ║ ... ║ ║ . ║ .. ║ ... ║ ... ... ║ ║ ║ ║ . ║ .. ║ ... ║ ... ... ║ ║ ║ ║ . ║ .. ║ ... ║ ... ... ║ ║ ║ ╚═══════╩═════════════╩═════════════════════╩════════════╩═════╩═════╝
2)
이╔══════╦═══════════════════════════════════════════════════════════════════════════════════╗ ║ name ║ notes ║ ╠══════╬═══════════════════════════════════════════════════════════════════════════════════╣ ║ abc ║ number of Employees 20 , status currently active , nature of products mechanical ║ ║ def ║ number of Employees 40 , status paused for transfer , nature of products software ║ ║ ghi ║ number of Employees 50 , status heavy duty, nature of products support ║ ║ ║ ║ ║ ... ║ .................................................. ║ ║ ... ║ .................................................. ║ ║ ... ║ .................................................. ║ ║ ║ ║ ╚══════╩═══════════════════════════════════════════════════════════════════════════════════╝
이 숙제인가? 너 뭐 해봤 니? 또한 질문을 다시 시도해보십시오. –
미안해. 포맷하는 법을 알지 못 했어. 지금 끝났어..이게 내가 일하고있는 자원 관리 시스템이야. (그리고 나는 이것에 갇혀있다. – Mariam
당신은 자신의 propernames와 fields로 모든 테이블을 넣을 수 있니 ..? ? –