Example SIMS query that links photos to EasyBadge database

Modified on Tue, 31 Mar 2020 at 03:28 PM

SELECT a.[surname] as 'Surname'

      ,a.[midname] as 'Midname'

      ,a.[chosen_forename] as 'Forename'

      ,b.admission_number as 'Id Number'



      ,a.[Photo] as 'Image'


  FROM [SIMS].[sims].[sta_vix_StudentBrowse_Browse_WithPhoto] a, [SIMS].[sims].[stud_via_student_browse] b

  where a.person_id = b.person_id

  and a.roll_mode='On Roll'

and (current_year_code='12' or current_year_code='13')

  order by surname asc

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select atleast one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article