Skip to content

Why is my Me. Reference and INSERT INTO causing error?

I am receiving two errors when attempting to create a query which updates my audit log after an update is made to a record. First I am prompted to enter a Parameter Value where I believed my ME. code would point to any record with the current value of field [Corrected Med Ed ID]. Secondly I receive message: S…

Getting the primacy function for an emolyee

I have this following query to get the primacy for an employee : My output is like below : What I want is to get primacy (primary,secondary, tertiary) to each function like below : The function having the minimal sumOrder will be the primary function and so on. Answer You can use a ROW_NUMBER() ordered by the…