qualify rank() over (partition) - question - response (3) by gksenthilkumar
Sorry for confusion.. I have data like below.. here I want to pick one row for each inr & rd for latest timestamp(dt col).. if we have multiple rows for latest timestamp for that inr & rd then...
View Articlequalify rank() over (partition) - question - response (4) by gksenthilkumar
I am pasting the output here as above highlighted are not showing highlighted rows properly1 1 2000-01-01 10:10:10 4444 4 4 … 1 2 2000-01-01 10:10:10 4444 5 5 … 1 3 2000-01-01 10:10:10 3333 5 5 …
View ArticleAccess Right Abbreviations - response (3) by PeterJ
Thank you, foxbat! Another one to include, for newer versions of Teradata, is 'ST' for 'COLLECT STATISTICS'.
View ArticleTPT Load Operator: How to handle numeric data in file that is larger than the...
Hi, I am trying to load a file into a table using TPT Load operator. I am using TPT version 14.00.00.09. I am facing the following problem while loading the data. My target table has a column...
View ArticleError 8017 - The UserId, Password or Account is invalid - response (5) by ilf
A user was unable to login. Even after changing the password. Then i check the table dbc.logonoff which showed it was locked. Released the user. It worked.
View ArticleODBC datetime format 'III' causing timestamp to time conversion to fail? -...
Hi Dieter, Recently came across this issue and am changing the Format. Can you please let me know what the formats III, IAI, AAA, IAA etc mean / How they are different?
View ArticleSave output of mutlitple SHOW STATISTICS - response (1) by sachin.sebastian
If you want to just save the output you can use .export in bteq .export report file=<file path> *** To reset export, type .EXPORT RESET BTEQ -- Enter your SQL request or BTEQ command: SHOW...
View ArticleTeradata SQL? - forum topic by TcognosD
how can I merge these two sql in to one query? SELECT MONTH_BGN_DATE FROM MONTHDAY_DIM WHERE MONTHDAY_KEY = ADD_MONTHS(DATE , -4)) SELECT MONTH_END_DATE FROM MONTHDAY_DIM WHERE MONTHDAY_KEY =...
View ArticleFind position of a character in a string - forum topic by jacky464
Hi Everyone, Anyone could help with this question? I want to select part of a string. The string is like abc_def_dfsfs_dfdfasdfs_fsdfs_fbc_fsd_sfs_sdfsd. I want to select fbc and fsd, but the issue is...
View ArticleTerdata online training - forum topic by learndwh
Hi Everyone, Looking for best online tranining. LearnDWH team provides best in class online trianing on Teradata Development. We also provide tranining on Informatica. Please contact learntd@gmail.com...
View ArticleFind position of a character in a string - response (1) by Harpreet Singh
Hi, You can try recursive view to search for 5th and 6th '_' and then substring from there to next '_'. Thanks
View ArticleSave output of mutlitple SHOW STATISTICS - response (2) by Harpreet Singh
After export is complete as mentioned by Sachin, you can then run the same exported file within your same script using below command after .export reset. .run file <file path>
View ArticleIs there any way to handle single digit's in date? - response (9) by Harpreet...
Thanks Dieter. Learnt a new way rather than using all that substring, position combinations :)
View ArticleTPT - HELP COMMAND EXECUTION. - forum topic by achikan01
We are in the process of converting some load script to TPT. In our script , there are some help and show commands are there. How can i migrate the script to TPT.Currently it is running using bteq....
View ArticleHow to get columns in collect stats - forum topic by dr.murthy_td
Hi, in my project few of the tables have collect stats on some columns... Could you guys let me know how to get on what tables having collect stats on what fields???Forums: Database
View ArticleSequnce generated column in Volatile table - forum topic by bala2121
Hi All, I need to have a unique column as row_id in a volatile table, with values to be populated based on the order of Insertion happened. I cannot have it based on the timestamp of insert, since...
View ArticleHow to create records from a defined range - response (9) by dnoeth
Simply use two Derived Tables producing the required numbers and then cross join them. Dieter
View ArticleImplicit conversion of Integer to VARCHAR - response (3) by dnoeth
Hi Nishant,"group_amps" during an all-AMPs step usually means the optimizer assumes that less than 50% of the AMPs in the system will actually do some work, but the actual AMPs are not known before the...
View ArticleUnable To Create Stored Procedure Using JDBC !! - response (1) by dnoeth
Hi Rajeev, in BTEQ you have to put the source code of the SP in a file and then use .COMPILE But in Studio this should run as-is, 5526 indicates there were errors or warnings during compilation, check...
View Articlequalify rank() over (partition) - question - response (5) by dnoeth
Did you try the query i posted, this should work as expected. But performnace on a 5 billion rows table will be probably poor when you actually need all those 100 columns (all data will be put in spool...
View Article