Forum Discussion
sabrinekalbousi
5 years agoRegular Visitor
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...
- 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.
v-xuding-msft
5 years agoCommunity Support
Hi sabrinekalbousi ,
If you think lbendlin's answer is helpful, please accept it as a solution. And if you still need help, it is better to get dedicated support from the database forum.