Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Select TOP 1 not being respected in Inner query #429

Closed
daryllabar opened this issue Feb 7, 2024 · 1 comment · Fixed by #430
Closed

Select TOP 1 not being respected in Inner query #429

daryllabar opened this issue Feb 7, 2024 · 1 comment · Fixed by #430

Comments

@daryllabar
Copy link

Was trying to cleanup some duplicate records.

Ran this query:

image

Then went and attempted to deactivate the first duplicate record with this query:

image

but as you can see, it updated 2 records, rather than one. Looks to only be an issue with Top 1. Top 2 or more worked...


  • Deployment: Online
  • DB Version: 9.2.23122.208
  • Connection Controls Version: 1.2023.6.56
  • XrmToolBox Version: 1.2023.12.68
  • Tool Version: 8.0.0.0
@MarkMpn
Copy link
Owner

MarkMpn commented Feb 11, 2024

Thanks for the details - I’ve got a fix for this now but it might still be a while until the next release while I’m working on other areas. In the meantime you should get the expected results if you replace IN with = when you only want to update a single record.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants