|
se poate optimiza in vreun fel .... sql server 2005
-
01-07-2009, 12:50 PM |
|
-
Alex
-
-
-
Joined on 10-25-2006
-
Bucuresti
-
sysadmin
-
-
|
se poate optimiza in vreun fel .... sql server 2005
salut,
Select b.ExternalCode, a.*, c.CodStare
from tbl1 a,
( select * from tbl2 union select * from tbl2_hist) b,
tbl3 c
where DataExecutiei = @Data
and a.CodMesajOut = b.MessageCode
and c.CodMesajOut = a.CodMesajOut
and c.CodStare = 32
and a.CodMesaj = 8
Order by a.CodMesaj
multumesc.
alex.
|
|
View Complete Thread
|
|
|