MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.
SELECT b.* , FROM dbo.batchtable b, dbo.sessiontable st WHERE b.BatchID = st.BatchID AND MAX(st.EndTime) < DATEADD(mi,-10,GETDATE()) AND b.JobName = 'JOB1' -- ORDER BY b.Priority , b.BatchID
|Is there a better way to combine two queries||7||25|
|Select statement with COUNT (SQL Server) and return records that have 0 count as well||13||21|
|Run Stored Procedure uisng ADO||5||20|