各位大神,求思路。。。
////体征表
create table sign (
tzdm varchar(4) null , //体征代码
tzmc varchar(200 ) null, //体征名称
cjbx varchar(200 ) null ///表现形式
) ;
create unique index i_sign on sign (tzdm);
////体质表
create table constitution
(tz varchar(4) null , ///体质
tzmc varchar(200 ) null, ///体质名称
create unique index i_constitution on constitution (tz);
////由体征决定体质
create table signto
(tzdm varchar(4) null , //体征代码
tz varchar(4) null , ///体质
main char(1) null , //主要体征
secondary char(1) null ); //次要体征
create unique index i_signto on signto (tzdm ,tz);
就是做一个由体征决定体质的判断查询,实在没思路,求各位大神明示