Hi,
I am converting what I believe is T-SQL into MySQL. I have done pretty good so far but I ran into this and needed some help explaining this part of the query:
I understand the SELECT statement. The part I am having trouble with is:
I think this is the equivalent to a CASE statement and CONCATE and it is saying (CASE) if the value in the table tblstrat column StratNum is a number then CONCAT these values as Startum. But I get a little lost with the multiple '&'.
I am not totally sure and what I have tried isn't working. Can someone explain that part and maybe know the MySQL equivalent to it?
Thanks,
Stan
I am converting what I believe is T-SQL into MySQL. I have done pretty good so far but I ran into this and needed some help explaining this part of the query:
Code:
SELECT tblStratProfile.ProfileNum, tlkpProfileView.ProfViewDesc, IIf((IsNumeric([tblStrat]![StratNum])),[tlkpSUTyp]![SUTyp] & ' ' & [tblStrat]![SUNum] & ' (' & [tlkpSUDesc]![SUDesc] & '), Surface ' & [tblStrat]![SUSurfNum],[tblStrat]![StratNum]) AS Stratum, tblStrat.SUNum, .....
I understand the SELECT statement. The part I am having trouble with is:
Code:
IIf((IsNumeric([tblStrat]![StratNum])),[tlkpSUTyp]![SUTyp] & ' ' & [tblStrat]![SUNum] & ' (' & [tlkpSUDesc]![SUDesc] & '), Surface ' & [tblStrat]![SUSurfNum],[tblStrat]![StratNum]) AS Stratum
I think this is the equivalent to a CASE statement and CONCATE and it is saying (CASE) if the value in the table tblstrat column StratNum is a number then CONCAT these values as Startum. But I get a little lost with the multiple '&'.
I am not totally sure and what I have tried isn't working. Can someone explain that part and maybe know the MySQL equivalent to it?
Thanks,
Stan