Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

Joining tables from two different servers - response (5) by Raja_KT

Hi, You  can fastexport the data from source and then fload into your target. Also you can ask your DBA to do this task. There are other ways to do but these are common and simple ones for one-off job....

View Article


Dynamic Table Names - response (5) by Raja_KT

Hi Lam, I suggest you read Teradata material on partition and see how it suits your requirements. It is easy. Cheers, Raja  

View Article


Delete or Drop a table if it already exists - response (15) by sheridany

This code works great in SQL Assistant.  Any suggestions in making it work in a Teradata odbc connected gui like alteryx?   

View Article

Dynamic Table Names - response (6) by cklam

       Yes, I'm doing this manually right now.  SELECT* FROMABCD_201201UNIONALLSELECT* FROMABCD_201202UNIONALLSELECT* FROMABCD_201203 But I'd like to learn how to create a macro that can help me input...

View Article

Can You Limit Number of Sessions Per User ? - response (4) by vasudev

Hi, I am using TD 12. An application is firing 60 concurrent queries. Our SLA is 10 seconds for a query but its taking 20 secs to execute a query. If we increase the number of sessions for a query can...

View Article


Delete or Drop a table if it already exists - response (16) by M.Saeed Khurram

I believe if this code is working in SQL Assistant then it will run in any odbc compliant GUI. Have you tried it using alteryx? 

View Article

Recursive Query - forum topic by Sarah_07

Hi All, Can you please let me how recursive query works for more than 2 tables. As per my understanding with the syntax, we can take only one source table and the other would be recursive table. My...

View Article

Recursive Query - response (1) by M.Saeed Khurram

Hi Sarah, Yes you can use more than on table in source using joins. Syntax: WITH RECURSIVE <query name> AS (SELECT COL_list FROM A INNER JOIN B ON A.Col = B.Col UNION ALL <RECURSIVE...

View Article


Recursive Query - response (2) by Sarah_07

Hi Khurram, My scenario is CASE WHEN  ( B.REC1 IS NULL OR B.REC1 =0) THEN LATST_DND --this was derived from other case stmt else B.REC1 END AS LATESTDND my sample data would like below B.REC1 A.DND_NO...

View Article


Recursive Query - response (3) by M.Saeed Khurram

Sarah, Can you please paste your recursive query code?  

View Article

Recursive Query - response (4) by Sarah_07

Khurram, Actually I have to modify my code using recursive query. This is my actual query which is not working as expected. So my friend suggested me to use recursive query which is new to me. So...

View Article

Recursive Query - response (5) by dnoeth

Hi Sarah, i don't know your actual business question, but looking at your source code i don't think you need neither recursion nor the TEMP_REC1 table. Seems like a job for OLAP-functions. Could you...

View Article

Delete or Drop a table if it already exists - response (17) by dnoeth

Hi Khurram, sheridany probably referred to the .if activitycount and .label code which are GUI commands in BTEQ and SQLA, but don't exist in ODBC.

View Article


Recursive Query - response (7) by Sarah_07

Hi Dieter, The data in DND_XREF_TEMP looks like, ACT_DATE                  REC1  CC         DND_NO 12/31/2020 0:00:00  0        594051 101 06/17/1999 0:00:00  250    762653 102 06/09/2006 0:00:00  4440...

View Article

Recursive Query - response (8) by dnoeth

Hi Sarah, i can't see any rule how to calculate this data.  Why is LATEST_DND the same as REC1, just for 104 it's 4015? 4015 doesn't seem to be based on any kind of calulation. Is there any...

View Article


Move column data as rows - forum topic by vaishalishetty

Hi, Can you please tell me how can I convert the data which is in multiple columns to 1 single row? Original format:IDNAMEVALUE 123 A 1 123 B 2 123 C 3 123 D 4 123 E 5To be converted like this:...

View Article

Joining tables from two different servers - response (6) by chodankarcc

Ok, Thanks. Hence I assume joining two tables from different server in a single query is not possible. -Chetan

View Article


Move column data as rows - response (1) by Raja_KT

You select a field from the table union all with the second field and union all with the third field. You can convert the data type to the same for all. You can select distinct for the one you want....

View Article

Move column data as rows - response (2) by M.Saeed Khurram

Your data output is not understandable, Can you please give some more description? and also paste the data in correct format? Like currently, it seems that you want to see this data in a coolumn! 

View Article

Monitoring stored procedure runtime (loop query four times) - response (2) by...

Vlad, thanks for the response. It took some time before I could work this case again and I'm made progress but I'm still puzzled. I found out that Teradata (in my case) waits at the end of the loop...

View Article
Browsing all 14773 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>