QueryStash
This will find DN's assigned to more than 1 device. You can then research the devices.
1SELECT numplan.dnorpattern, 2 routepartition.NAME, 3 Count(*) 4FROM numplan, 5 devicenumplanmap, 6 routepartition 7WHERE numplan.fkroutepartition = routepartition.pkid 8 AND numplan.pkid = devicenumplanmap.fknumplan 9GROUP BY 1, 10 2 11HAVING Count(*) > 1 12ORDER BY 1, 13 2
Jeremy Worden
Created: Jan 18th 2023
Made with ❤️ by @Yekalb
© 2024 Query Stash. All rights reserved
Resources
Examples
Stay up to date