I want to find only failed user details, but the below query is giving duplicate records. I am not able to find a proper solution.
To find failed job details I'm using the below query:
select * from executionlog e
join catalog c on e.reportid = c.itemid
where c.name like '%reportname%'
and timestart>= '2013-04-15 09:00:00.000'
and status <> 'rsSuccess'
However, the above query is giving duplicate values for a particular report.
How can I get unique details?
Note: we cannot apply distinct
or group by
because the table contains columns of ntext
and image
data types