I am trying to write a query (TSQL) in sql server to derive an imageurl for each employee using their empId.
The images are saved as empId.gif (e.g. 0001.jpg) in this location /images/employeephotos/
How do i write the t-sql return a concantenated url of the location if the employee has an image in the folder, else, the url should return a default imageurl of 0000.jpg
I am pretty new to TSQL PLEASE HELP.
The images are saved as empId.gif (e.g. 0001.jpg) in this location /images/employeephotos/
How do i write the t-sql return a concantenated url of the location if the employee has an image in the folder, else, the url should return a default imageurl of 0000.jpg
I am pretty new to TSQL PLEASE HELP.