Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • You want to eliminate row 6 because row 1 has an higher COUNT for the same IDVACCINE, but what about row 4? Shouldn't you also eliminate that one? If not, then it's unclear what you're trying to accomplish by treating row 4 and 6 differently. Commented Nov 3, 2021 at 23:28
  • Yes you are right @MarcoBonelli, i didn't finish writing the example. Also it should be deleted the row 7 and 4 Commented Nov 3, 2021 at 23:44
  • Wrap your query in a sub-query and then use any of the linked duplicates. Commented Nov 4, 2021 at 8:47