Using MS SQL I have this query that returns records in SSMS.
But it does not work when adding the query as a SQL local data source.
Problem is in when I create a new data source then add the same query I get the error "Parsing of SQL Query Failed"
How can I get this to work?