一个数据库设计的面试题,请教高手帮下忙,我初学不太会 中国人事部想要开发一个系统,记录所有国民的跳槽记录,资源有:中国所有企业信息,中国国民信息。让设计个数据库 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 发挥下想象力,想象下这些资源有哪些相关属性,差不多就可以了重要的是表的设计,分成几张表,和字段的设置,要符合3个范式参考下http://monsoonzeng.javaeye.com/blog/84227http://www.php100.com/html/webkaifa/PHP/PHPyingyong/2009/0830/3245.html 企业表:create table dat_enterprise( enterprise_id number(10) not null, enterprise_name varchar2(50 char) not null,--一堆其他信息constraint PK_dat_enterprise primary key (enterprise_id));国民表:create table dat_employee( employee_id number(10) not null, employee_name varchar2(20 char) not null,--一堆其他信息constraint PK_dat_employee primary key (employee_id));工作记录表create table dat_work_list( work_list_id number(10) not null, --另设主键,因为你可能从那个公司跳出去,又跳回来,哈哈 enterprise_id number(10) not null, employee_id number(10) not null, start_time timestamp, end_time timestamp,--如果需要。。一堆其他信息constraint PK_dat_work_list primary key (work_list_id)); GOOGLE一下,找个数据库设计范例,再去替换一下名称不就行了 使用vc进行oci编程,能否不装oracle客户端 如何在只有plsql客户端的情况下备份Oracle中的某个数据库? pro*c oracle函数变量的问题 oracle developer suite 10g如何将form发布到web上? 如何保证 insert 唯一? 如果用一个存储过程来查询 并返回多行记录 应该怎样实现?30分 初级问题,简单得很,可是我太菜了。关于查询 关于oracle里面boolean类型的表达…… ORACLE的异常处理为啥不执行 这个SQL如何写??? 新人提一个弱弱的问题 请看看这个语句有什么问题?
重要的是表的设计,分成几张表,和字段的设置,要符合3个范式
参考下
http://monsoonzeng.javaeye.com/blog/84227
http://www.php100.com/html/webkaifa/PHP/PHPyingyong/2009/0830/3245.html
create table dat_enterprise(
enterprise_id number(10) not null,
enterprise_name varchar2(50 char) not null,
--一堆其他信息
constraint PK_dat_enterprise primary key (enterprise_id)
);国民表:
create table dat_employee(
employee_id number(10) not null,
employee_name varchar2(20 char) not null,
--一堆其他信息
constraint PK_dat_employee primary key (employee_id)
);工作记录表
create table dat_work_list(
work_list_id number(10) not null, --另设主键,因为你可能从那个公司跳出去,又跳回来,哈哈
enterprise_id number(10) not null,
employee_id number(10) not null,
start_time timestamp,
end_time timestamp,
--如果需要。。一堆其他信息
constraint PK_dat_work_list primary key (work_list_id)
);