Forum Discussion

sabrinekalbousi's avatar
sabrinekalbousi
Regular Visitor
5 years ago
Solved

Update a column in SQL based on field frequency

Hello SQL query  team ,   I need to create a dimension in my database ( to create later a report in Power BI) and I am struggling with the stored procedure. In fact, I need to have the following ta...
  • lbendlin's avatar
    5 years ago

    That's not a valid SQL syntax

     

    UPDATE table

    SET field= CASE WHEN THEN ELSE END

    WHERE <filter condition>

     

    The FROM statement is only needed when you update one table's columns from another related table's content.