大虾们帮忙看条SQL语句哇 1.SELECT * FROM [Logging].[dbo].[ExceptionLog] WHERE (LogId IN(SELECT MIN(LogId) AS Expr1 FROM [Logging].[dbo].[ExceptionLog] AS ExceptionLog_1 GROUP BY StackTrace ) )
2. SELECT * FROM [Logging].[dbo].[ExceptionLog] WHERE (LogId IN(SELECT MIN(LogId) AS Expr1 FROM [Logging].[dbo].[ExceptionLog] AS ExceptionLog_1 where( (CreateDate<'2012-05-17' ) or (CreateDate='2012-05-17' and CreateTime<='15:02:21.9070000')) GROUP BY StackTrace))
3. SELECT * FROM [Logging].[dbo].[ExceptionLog] WHERE (LogId IN(SELECT MIN(LogId) AS Expr1 FROM [Logging].[dbo].[ExceptionLog] AS ExceptionLog_1 where ((CreateDate>'2012-05-17' ) or (CreateDate='2012-05-17' and CreateTime>'15:02:21.9070000')) GROUP BY StackTrace))