Hi
I have a column that lists a product description. I want to populate a new column if a certain word exists in the description.
Si if like 'red' in the description I want the Wood Type column to be Red Wood. If Like White then White Wood. Else Other. I cannot seem to find an example anywhere on line, any ideas please. Thanks
I cannot figure out how to do this in my query. The column the description is in is dbo.[148-vwWOFinishedProducts].[Source Description]
I have a column that lists a product description. I want to populate a new column if a certain word exists in the description.
Si if like 'red' in the description I want the Wood Type column to be Red Wood. If Like White then White Wood. Else Other. I cannot seem to find an example anywhere on line, any ideas please. Thanks
I cannot figure out how to do this in my query. The column the description is in is dbo.[148-vwWOFinishedProducts].[Source Description]
SQL:
SELECT dbo.[148-vwWOFinishedProducts].WorksOrderNumber, dbo.[148-vwWOFinishedProducts].ProductCode, dbo.[148-vwWOFinishedProducts].Description,
dbo.[148-vwWOFinishedProducts].ProductID, dbo.[148-vwWOFinishedProducts].[Source Product], dbo.[148-vwWOFinishedProducts].[Source Description], dbo.[148-vwWOFinishedProducts].Thickness,
dbo.[148-vwWOFinishedProducts].Width, dbo.WorksOrderSchedule.ScheduleNumber
FROM dbo.WorksOrderScheduleLine INNER JOIN
dbo.WorksOrderSchedule ON dbo.WorksOrderScheduleLine.WorksOrderScheduleID = dbo.WorksOrderSchedule.WorksOrderScheduleID INNER JOIN
dbo.[148-vwWOFinishedProducts] ON dbo.WorksOrderScheduleLine.WorksOrderID = dbo.[148-vwWOFinishedProducts].WorksOrderID
WHERE (dbo.WorksOrderSchedule.ScheduleNumber = 27624)
ORDER BY dbo.[148-vwWOFinishedProducts].WorksOrderNumber