Skip to content
Advertisement

Tag: teradata

Calculate Days Between Based on 3 Variables & Syntax Error

I’m hoping you can provide some insights on a couple of issues: ISSUE 1 – i’m receiving the following error message running in Teradata: “Syntax error, expected something like ‘)’ between an integer and the ‘then’ keyword.” There are some duplicate records in my data and what I am trying to say is if all conditions are met, then Age

Teradata – How to understand data distribution?

I’ve been looking everywhere how I can improve my Teradata views performance by choosing the right primary index in my tables. I have found multiple answers pointing to the same thing, by using this query to see how data is distributed through the AMPs : I get that I need to have an even distribution, but is it better to

Query to deduplicate based on one columns

My data looks like this in Teradata How do I construct my sql query to pull the latest loaded data like so: Basically every field will match except the id and the load_number. So given that every field matches except those two fields, can I remove ‘duplicates’ by taking the row with the higher load_number. The data can differ in

Advertisement