I want to make a update, but i tried a lot. But it isnt working.
Has to be something like this :
Update F_omzet
Set kostenplaatscategoriekey = '1'
HAVING (inkoopomzet * 100 / SUM(inkoopomzet) >= 20 )
The table name = F_omzet.
Every row = <NULL> inside of kostenplaatscategoriekey.
The formula is that i want to sum the whole colomn Inkoopomzet thats 100% then i want to know if the inkoopomzet from the row is higher then 20 percent. When its higher I want to make the Colomn kostenplaatscategoriekey 1.
Can somebody help me how i can do this.
Im sorry for my bad english.
Thanx
Steefmen
Has to be something like this :
Update F_omzet
Set kostenplaatscategoriekey = '1'
HAVING (inkoopomzet * 100 / SUM(inkoopomzet) >= 20 )
The table name = F_omzet.
Every row = <NULL> inside of kostenplaatscategoriekey.
The formula is that i want to sum the whole colomn Inkoopomzet thats 100% then i want to know if the inkoopomzet from the row is higher then 20 percent. When its higher I want to make the Colomn kostenplaatscategoriekey 1.
Can somebody help me how i can do this.
Im sorry for my bad english.
Thanx
Steefmen