SQL Question

  • Thread starter Thread starter Mike
  • Start date Start date
M

Mike

I'm pulling a data from a column of my SQL DB.The column values are Yes and
No,
what i need to is the value is Yes then write out Helper if its No write
Need Help in my grid

How can i do that?

would this work

SQL = "select RD as type from HelperTable"

if Type = "Yes" then
type = "Helper"
else
type = "Need help"
end if

would this work or no
 
SELECT CASE
WHEN Type = 'Yes' THEN 'Helper'
WHEN Type = 'No' THEN 'Need help'
END as Type
FROM HelperTable
 
Back
Top