--企 create table dbo.em_log_201309 ( tran_date datetime , val int ) create table dbo.em_log_201310 ( tran_date datetime , val int ) go create clustered index cix_tran_date on dbo.em_log_201309(tran_date) create clustered index cix_tran_date on dbo.em_log_201310(tran_date) go create view v_em_log as select tran_date, val from dbo.em_log_201309 where tran_date between '20130901' and '20130930' union all select tran_date, val from dbo.em_log_201310 where tran_date between '20131001' and '20131031' go --讌 譟郁唄 譴 企襷 一危磯ゼ 讓 觸 select * from dbo.v_em_log where 1=1 and tran_date >= '20131011' and tran_date < '20131012'