I have users worked in different department. User should see only data of his department.
I create Profile Attribute "department" and can assign it for different user. Now I want use value of this attribute in SQL-query.
How can I refer on it in SQL?