teradata sql update statement with join