I am moving a SQL Server db to mySQL. I'm new to mySQL.
I am trying to create a view in mySQL equivalent to this view from SQL Server:
"SELECT Project, Requirement, SubmitDate,
CASE WHEN [Rush] = 1 THEN '*' ELSE ' ' END AS 'InRush'
FROM ProjectTable"
Rush is a true false field. I am displaying data in a table and I need to display an asterisk if Rush = true, and blank if Rush = false.
Can someone help me with the correct SQL for this query?
Thanks,
Sup
I am trying to create a view in mySQL equivalent to this view from SQL Server:
"SELECT Project, Requirement, SubmitDate,
CASE WHEN [Rush] = 1 THEN '*' ELSE ' ' END AS 'InRush'
FROM ProjectTable"
Rush is a true false field. I am displaying data in a table and I need to display an asterisk if Rush = true, and blank if Rush = false.
Can someone help me with the correct SQL for this query?
Thanks,
Sup