0,0 → 1,31 |
select distinct on (ta_num) ta_name, ta_num, ta_start, ta_duration, ta_hash |
from task, allocation |
where al_task = ta_num and al_ressource = 1 and |
ta_meeting = 0 and ta_level > 1 and |
(ta_plnum = 66 or ta_plnum in ( |
select distinct pl_num from wdone, plan, task where |
ta_num = wd_task and pl_num = ta_plnum and |
wd_prnum = 90001 and wd_minum = 1 and |
wd_datum between 1145577600 and 1146096000 and |
pl_status in (2,3,4,5) order by pl_num desc)) and |
|
(ta_start <= 1146096000 or |
|
--(ta_start between 1145577600 and 1146096000 or |
--ta_start+ta_duration*86400 between 1145577600 and 1146096000 or |
--1145577600 between ta_start and ta_start+ta_duration*86400 or |
--1146096000 between ta_start and ta_start+ta_duration*86400 or |
|
ta_num in (select distinct wd_task from wdone where |
wd_minum = 1 and wd_prnum = 90001 and |
wd_datum between 1145577600 and 1146096000)) |
order by ta_num desc; |
|
select wd_hours, wd_edit, wd_task from wdone, task |
where wd_minum = 1 and wd_prnum = 90001 and |
ta_num = wd_task and ta_hash = '8e65501350b2aaf5f20473adfcbc8d15' and |
wd_datum = 1145577600+(86400*2); |
|
select wd_num from wdone, task where |
wd_minum = 1 and wd_task = ta_num and |
wd_datum = 1145577600+(86400*2) and ta_hash = '8e65501350b2aaf5f20473adfcbc8d15'; |