我有以下模式:計數與內具體領域加入
create table myapp_task
(
title varchar(100) not null,
state varchar(11) not null,
estimate date not null,
my_id int not null auto_increment
primary key,
road_map_id int not null,
create_date date not null,
constraint myapp_task_road_map_id_5e114978_fk_myapp_roadmap_rd_id
foreign key (road_map_id) references myapp_roadmap (rd_id)
);
— auto-generated definition
create table myapp_roadmap
(
rd_id int not null auto_increment
primary key,
name varchar(50) not null
);
我想拿到號,開始和CREATE_DATE一週的結束,所有的任務數,(的就緒任務數的狀態=「準備/ IN_PROGRESS')
這裏是我的查詢:
其實,我有一個問題只與準備任務數。
這真的是一個很大的要求,指定什麼是你的查詢問題? – Shadow