ShawnMolloy
MIS
Hey,
I have a column that returns an INT. I want to replace the int with a word, like if Status = 1 then Status = "Read". Here is my query:
SELECT
A.MessageId, A.Sender, A.Recipient, A.Status, A.Subject,A.Message,A.DateSent,
B.UserName, B.MainImage
FROM message [A]
LEFT JOIN user B ON A.Sender = B.UserId
WHERE A.Recipient=@userId
Thanks!
- shawn
I have a column that returns an INT. I want to replace the int with a word, like if Status = 1 then Status = "Read". Here is my query:
SELECT
A.MessageId, A.Sender, A.Recipient, A.Status, A.Subject,A.Message,A.DateSent,
B.UserName, B.MainImage
FROM message [A]
LEFT JOIN user B ON A.Sender = B.UserId
WHERE A.Recipient=@userId
Thanks!
- shawn