在特定月份“好去处”是(a)主观和(b)不是二元决定。
我建议你的“时间表的目的地质量”,你称之为places_months
结构如下。请注意,我建议一个月使用一个简单的小整数。您不需要仅用于月份名称的代码表。
create table places_months
(
place_id int not null
, start_month tinyint not null
, end_month tinyint not null
, quality tinyint not null -- Maybe a score from 0 to 5?
, comment varchar(100) null -- Reason why it is particularly bad (or good)
, constraint pk_places_months PRIMARY KEY (place_id,start_month)
, constraint ck_places_months CHECK (start_month<=end_month)
)
使用这样的表格,您可以给出更细致入微的答案。如果您仍想强制执行某种二元决策,您始终可以基于quality>=3
或类似的方式进行查询。