create table brand
(
year number not null -- 年,
week number not null -- 一年中的第几个星期,
cost number
)
求这样的条件的记录
条件:记录在2004年第40星期至2006年第13星期之间的记录
(
year number not null -- 年,
week number not null -- 一年中的第几个星期,
cost number
)
求这样的条件的记录
条件:记录在2004年第40星期至2006年第13星期之间的记录
from brand
where year||week between '200440' and '200613'
FROM brand
WHERE to_char(YEAR) || to_char(week) BETWEEN '200840' AND '200913';