DECLARE @dt DATETIMESET @dt ='20121210'SELECT * FROM table1 AJOIN table2 B ON B.col1 = A.col1JOIN table3 C ON C.col1 = A.col1JOIN table4 D ON D.col2 = C.col1WHERE D.col3 LIKE '%test%' AND D.coldate > @dt
We walk in the dark places no others will enterWe stand on the bridge and no one may pass