Subversion Repositories public

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 andreas 1
select distinct on (ta_num) ta_name, ta_num, ta_start, ta_duration, ta_hash
2
from task, allocation 
3
where al_task = ta_num and al_ressource = 1 and
4
ta_meeting = 0 and ta_level > 1 and
5
(ta_plnum = 66 or ta_plnum in (
6
select distinct pl_num from wdone, plan, task where
7
ta_num = wd_task and pl_num = ta_plnum and
8
wd_prnum = 90001 and wd_minum = 1 and
9
wd_datum between 1145577600 and 1146096000 and
10
pl_status in (2,3,4,5) order by pl_num desc)) and
11
 
12
(ta_start <= 1146096000 or
13
 
14
--(ta_start between 1145577600 and 1146096000 or
15
--ta_start+ta_duration*86400 between 1145577600 and 1146096000 or
16
--1145577600 between ta_start and ta_start+ta_duration*86400 or
17
--1146096000 between ta_start and ta_start+ta_duration*86400 or
18
 
19
ta_num in (select distinct wd_task from wdone where 
20
wd_minum = 1 and wd_prnum = 90001 and 
21
wd_datum between 1145577600 and 1146096000)) 
22
order by ta_num desc;
23
 
24
select wd_hours, wd_edit, wd_task from wdone, task
25
where wd_minum = 1 and wd_prnum = 90001 and
26
ta_num = wd_task and ta_hash = '8e65501350b2aaf5f20473adfcbc8d15' and 
27
wd_datum = 1145577600+(86400*2);
28
 
29
select wd_num from wdone, task where
30
wd_minum = 1 and wd_task = ta_num and 
31
wd_datum = 1145577600+(86400*2) and ta_hash = '8e65501350b2aaf5f20473adfcbc8d15';