如何写语句:查询1999年上半年?
怎么写SQL语句:要查询1999年上半年的时间
------解决方案--------------------yourdate > = to_date( '1999-01-01 ', 'yyyy-mm-dd ') and yourdate  < to_date( '1999-07-01 ', 'yyyy-mm-dd ')
------解决方案--------------------select * 
 from 表名 
 where  year(日期字段名)=1999 and (datepart(q,日期字段名)=1 or datepart(q,日期字段名)=2) 
------解决方案--------------------select 时间字段 from t where 时间字段> = '1999-01-01 ' and 时间字段 <= '1999-06-30 '