{µo°Ý}sql ¨â¬q»yªk²Õ¦¨¤@Ó
- ©«¤l
- 62
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 253
- ÂI¦W
- 0
- §@·~¨t²Î
- xp , win7
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¤H¤ß
- µù¥U®É¶¡
- 2010-5-21
- ³Ì«áµn¿ý
- 2012-8-3
|
{µo°Ý}sql ¨â¬q»yªk²Õ¦¨¤@Ó
¦U¦ì¥ý¶i..¥i§_À°Ó¦£
³o¨â¬q sql n²Õ¦¨¤@¬q¡An¦p¦ó³sµ²°_¨Ó©O¡A¤p§Ì¸Õ¤F«Ü¤[¡A²Õ¥X¨Ó³£¤£¹ï
¥i§_À°²Õ¤@¤U¡A¨ÃÀu¤Æ¤@¤U...
select *
from WorkItem W,ProcessInstance P ,
(SELECT MAX(P1.createdTime ) AS m FROM WorkItem W1 ,ProcessInstance P1
Where P1.contextOID= W1.contextOID
And P1.processDefinitionId='PerformanceAssessment_003'
And W1.workItemName='¦Ûµû¶ñ¼g'
And W1.performerOID in ('c7324cb4cd6a1004885f3408ccd4a6ff','ea0d8b04cd7e1004889adc3e5719cbd7','d9e70f44cd7d1004837699664bd98c42')
GROUP BY W1.performerOID) AS B
where
P.contextOID=W.contextOID
And P.processDefinitionId='PerformanceAssessment_003'
And workItemName='¦Ûµû¶ñ¼g'
And performerOID in ('c7324cb4cd6a1004885f3408ccd4a6ff','ea0d8b04cd7e1004889adc3e5719cbd7','d9e70f44cd7d1004837699664bd98c42')
And P.createdTime =B.m
And P.currentState in ('3','1')
select Us.OID,uid,ddate,depId,umasterId,cdepId
from
Users Us,
PerformanceAssessment_007_Grid0 G0,
(SELECT MAX(formSerialNumber) AS m FROM PerformanceAssessment_007_Grid0 PG0
Where PG0.depId ='J010'
And PG0.ddate='2011-¤W¥b¦~'
And PG0.umasterId='MH0433') AS B
where
G0.formSerialNumber = B.m
And G0.depId= 'J010'
And ddate='2011-¤W¥b¦~'
And umasterId='MH0433'
AND Us.id = uid |
|
¬O¾Çµ{¦¡¦Ó¤£¬Onµ{¦¡¡A¬O¶i¨Bªº°ò¦
|
|
|
|
|
- ©«¤l
- 62
- ¥DÃD
- 10
- ºëµØ
- 0
- ¿n¤À
- 253
- ÂI¦W
- 0
- §@·~¨t²Î
- xp , win7
- ³nÅ骩¥»
- office2003
- ¾\ŪÅv
- 20
- ©Ê§O
- ¨k
- ¨Ó¦Û
- ¤H¤ß
- µù¥U®É¶¡
- 2010-5-21
- ³Ì«áµn¿ý
- 2012-8-3
|
¸Ñ¥X¨Ó¤F- select *
- from WorkItem W,ProcessInstance P ,
- (SELECT MAX(P1.createdTime ) AS m FROM WorkItem W1 ,ProcessInstance P1
- Where P1.contextOID= W1.contextOID
- And P1.processDefinitionId='PerformanceAssessment_003'
- And W1.workItemName='¦Ûµû¶ñ¼g'
- And W1.performerOID in (
- select Us.OID,uid,ddate,depId,umasterId,cdepId
- from
- Users Us,
- PerformanceAssessment_007_Grid0 G0,
- (SELECT MAX(formSerialNumber) AS m ,performerOID FROM PerformanceAssessment_007_Grid0 PG0
- Where PG0.depId ='J010'
- And PG0.ddate='2011-¤W¥b¦~'
- And PG0.umasterId='MH0433') AS C
- where
- G0.formSerialNumber = C.m
- And G0.depId= 'J010'
- And ddate='2011-¤W¥b¦~'
- And umasterId='MH0433'
- AND Us.id = uid
- )
- GROUP BY W1.performerOID) AS B
- where
- P.contextOID=W.contextOID
- And P.processDefinitionId='PerformanceAssessment_003'
- And workItemName='¦Ûµû¶ñ¼g'
- And performerOID in (B.performerOID)
- And P.createdTime =B.m
- And P.currentState in ('3','1')
½Æ»s¥N½X |
|
¬O¾Çµ{¦¡¦Ó¤£¬Onµ{¦¡¡A¬O¶i¨Bªº°ò¦
|
|
|
|
|