Hi,
I am not that experienced in SQL. Please help me.
I have the following scenario:
Within a table there is a possibility of having duplicate account numbers with different status
Example:
Account # Status
1 03
1 08
2 05
3 01
4 04
4 08
My specification state the following:
If one account is 08 and the other is not, keep the account that is not = 08.
The result I want to achieve is the following from above:
Account # Status
1 03
2 05
3 01
4 04
How can I do this in Teradata?
I actually want to update a existing work table using the Query.
I will appreciate if someone could guide me how to use Update statement to achieve the above result.
Thanks,
Paul
I am not that experienced in SQL. Please help me.
I have the following scenario:
Within a table there is a possibility of having duplicate account numbers with different status
Example:
Account # Status
1 03
1 08
2 05
3 01
4 04
4 08
My specification state the following:
If one account is 08 and the other is not, keep the account that is not = 08.
The result I want to achieve is the following from above:
Account # Status
1 03
2 05
3 01
4 04
How can I do this in Teradata?
I actually want to update a existing work table using the Query.
I will appreciate if someone could guide me how to use Update statement to achieve the above result.
Thanks,
Paul