How to display text status instead of CurrentStatusID

I have this SQL query:

  

select Filename,CurrentStatusID

from Documents

where

Filename like 'SUM-00%.xml'

and

Deleted=0

The results look like this:

How do I display the text value of the status instead of the numeric id?

SolidworksSolidworks Pdm enterprise Pdm