How to use regexp_instr in Teradata such that start position of the search start at the end? Unlike INSTR its not taking -1 as position argument?I was ...
How to use regexp_instr in Teradata such that start position of the search start at the end? Unlike INSTR its not taking -1 as position argument?I was ...
I want to calculate the average of sales per article_no for the last 7 calendar days. For example, for 30.01.2023 will be the value for sell_val for 3 ...
I need to connect to a Teradata table which has encoding = "Latin-OA", using teradatasql in python. I tried to pass encoding as a parameter but I don ...
I want to find out the previous weeks's last day in Teradata SQL using Sunday as the last day of the week. For example, today is Friday 1/27, so the l ...
I want to sum the values in the 'Count' column where the 'ID' = 1 and divide them by the total sum of the 'Count' column, grouping by 'Name'. This is ...
I have a dataset that looks similar to the below: I would like to count the total number of distinct ID's that have both a 'SEND' and 'REC'. In oth ...
I'm trying to export a table from Teradata into a file in my hdfs using TDCH. I'm using the below parameters : It's working, but I need the header ...
Hello Stack Overflow community, I would like to consolidate multiple fields within the same table. Among other fields,'Table1' contains a number of f ...
For my analysis, I need 10 records from each combination two columns that hold channel and category codes. For example: I only have tried filtering ...
I have a few Teradata jobs that have SQL's with multiple joins that run in about 3 mins. We are trying to get rid of Teradata for budget reasons, and ...
I am trying to extract the DDL of tables and store it in .sql files using pandas The code I have tried is : This creates a .sql file with the DDL ...
I'm writing a SQL query in Teradata to determine which members had an eGFR and uACR test done within 4 days of each other. All of the tests are being ...
I found the following query in teradata and there is no error when I run it. what is the use of Both '00'XC function? when I run it on hive there i ...
I have a python script in which I make an SQL query to my Teradata server. I use teradatasql python library for that: And instead of getting the " ...
I'm attempting to Sample specific a percentage or a whole number of products in specific rows in Snowflake, but unsure of which Syntax to use. I norm ...
When running the following Python code and SQL query on a Teradata Vantage Express server: I get the following error: teradatasql.OperationalError ...
I am trying to use regexp_substr to break up table data held in one cell to the individual fields. the data is , delimited. individual cells can also ...
I have a field in a Teradata database and I want to extract the text after a specific value. I can't use substring as there is sometimes more than 1 s ...
Assume I have a table A with 100 records in it in Teradata. Now I have to pass 20-20 rows 5 times to a specific process. I am struggling to segment th ...
When I run both queries individually, they run correctly. But when I try to combine both result sets into one table using the UNION operator, it doesn ...