I have setup a view in an Oracle database that runs the code:
select *
from Availabilities
This returns the results
Roster | StartDate | EndDate
Avail | 18/5/16 | 18/5/16
Train | 19/5/16 | 19/5/16
Avail | 20/5/16 | 30/5/16
these results are correct and are as expected, however...
I have linked the server that this view is on to an SQL server. From there I run an OpenQuery directly to the view that produced that results set on the linked server through the code:
select *
from OpenQuery(LinkedServer,'SELECT *
FROM REPORT_USR.AvailabilitiesView')
The results it returns have combined the first and the third results:
Roster | StartDate | EndDate
Train | 18/5/16 | 30/5/16
Avail | 19/5/16 | 19/5/16
Why would it do this? Is there a way to stop it doing this?
Thanks