1

I'm trying to clean some data in Azure ML. I have an Apply SQL Transform block with the following code in it:

UPDATE t1
SET CreditScore = -1 
WHERE CreditScore>900; 

It is a numeric column. When I visualize the output, there are 0 rows and 0 columns. Going into the block there are 225k rows. Anybody have a clue what is going on?

Ionuț G. Stan
  • 176,118
  • 18
  • 189
  • 202

1 Answers1

1

"You cannot execute a DELETE, INSERT, or UPDATE statement on a view. However, you can create a trigger that fires on an attempt to DELETE, INSERT, or UPDATE on a view and perform other operations in the body of the trigger." https://msdn.microsoft.com/en-us/library/azure/dn905914.aspx

I found an other solution. Go over SELECT DISTINCT - create a new table and make an innter join. Works fine for me :-)

Christian
  • 11
  • 1