Guest User

Untitled

a guest
Dec 16th, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. delete from unique_channels
  2. where exists (
  3. select * from unique_channels u2
  4. where unique_channels.frequenz <> u2.frequenz
  5. and unique_channels.ChannelsConfID = u2.ChannelsConfID
  6. and (select count(distinct ChannelsConfID) from unique_channels u3
  7. where u3.frequenz = unique_channels.frequenz) <
  8. (select count(distinct ChannelsConfID) from unique_channels u4
  9. where u4.frequenz = u2.frequenz)
  10. );
Add Comment
Please, Sign In to add comment