May I know the database that you are using. Let me know the output you received by executing the first query.
Regards,
Priya K
SDP Support - FAQ
ServiceDesk Plus - Help Desk Software of your Choice
Regards,
Priya K
SDP Support - FAQ
ServiceDesk Plus - Help Desk Software of your Choice