SELECT RestrictionDefinition_ID FROM RestrictionDispProps2 RDP2 left join RestrictionDispProps RDP on RDP2.Parent_ID = RDP.ID left join restrictiondefinitions RD on RDP2.restrictiondefinition_id = RD.ID WHERE ((RDP.User_ID = :User_ID) or (RDP.User_ID is Null)) and (RDP.Site = :Site) and (RDP.ProgramPoint = :ProgramPoint) and (RD.visibilitykind <> 2)
Generated by ABRA Software a.s. 27.10.2021 16:34:11