Creating a Dynamic YoY Date Range in Case Statement for Current Quarter QTD -...
Thank you Dieter this works!
View ArticleSyntax - forum topic by SGIT
I am getting the following error : SPL1027:E(L7), Missing/Invalid SQL statement'E(3706):Syntax error: expected something between the word 'StartDate' and the 'DATE' keyword.'. Looks like a syntax error...
View ArticleFind blocking sessions and tables - forum topic by teradatauser2
Hi, In our environment, we have an application that runs queries and they block each other for some tables. I want to know which all sessions and which all tables are in blocked state with that ID? i...
View ArticleFind blocking sessions and tables - response (1) by teradatauser2
I see the values as blk3objdbid = 1 and blk3objtid = 102, screenshot attached
View ArticleBTEQ:saving output in multiple file - forum topic by vc
Hello All. I am writing a bteq which is saving the output in the One file.Bteq has 3 different queries. I need to save outout of all the three queries in three seprate files using one BTEQ.is it...
View ArticleFind skew with perm over 1gb - forum topic by vc
Hello, I am using the below query SELECT cast(DatabaseName as char(30)), cast(Tablename as char(40)), (100 - (AVG(CURRENTPERM)/MAX(CURRENTPERM)*100) (FORMAT 'zz9.99') )AS Skewfactor_greater_90, cast...
View ArticleFind skew with perm over 1gb - response (1) by AtardecerR0j0
SELECT cast(DatabaseName as char(30)), cast(Tablename as char(40)), (100 - (AVG(CURRENTPERM)/MAX(CURRENTPERM)*100) (FORMAT 'zz9.99') )AS Skewfactor_greater_90, cast (CURRENT_date as timestamp(0)) +...
View ArticleSystem Table for Compression - forum topic by agts
Is there any way for finding compressed columns in database with there values, like system table for compression columns and values? using Select * from dbc.columns where compressible like 'C%'; I can...
View ArticleSystem Table for Compression - response (1) by agts
got it. CompressValueList in dbc.columns can be use for same
View ArticleDrop Table blocked by Read lock session which is not on the machine. - forum...
Hi All,I having an issues, while Dropping a backup table, The drop tables session(Session ID 59678567) is blocked by read lock of some other session (2463583 USER: ALL), this blocking is not even...
View ArticleTeradata block storage - response (2) by pandit
Thanks a lot for the reply Todd. It was really helpful. Just to revise, say on block level, data will be just apended to blocks whereas the index will be in sorted order for performing binary search....
View ArticleWorking with XMLTABLE, problem extracting data where elements have no...
I am working on an XML parsing requirement using XML Table. I am running into a problem with data from elements with no namespaces or prefixes. Extraction using XMLTable doesn't seem to work....
View ArticleCollect Stats with insert statement - forum topic by Aganediwal
Hi all, I am using below two statements to create table and insert some data from an existing table. Is there a way in which stats will be automatically collected after insert statement completes or a...
View ArticleHaving an Issue with CHAR,VARCHAR,DATE Data types while exporting/importing...
Hello, I am trying to Import/Export Tables from/to Teradata into Hive. But If Hive table has CHAR/VARCHAR/DATE data types, I am getting below error from TDCH Connector INFO tool.ConnectorExportTool:...
View ArticleCompute with immediate previous row value derived - forum topic by deven_rk
Hi All, I have the below data, wherein I want to compute 'Amount' data dynamically in a 'Select' statement as given below, here I want to refer the previous row value, apply an equation, compute a new...
View ArticleCompute with immediate previous row value derived - forum topic by deven_rk
Hi All, I have the below data, wherein I want to compute 'Amount' data dynamically in a 'Select' statement as given below, here I want to refer the previous row value, apply an equation, compute a new...
View ArticleTeradata block storage - response (3) by ToddAWalter
Correct. The row index list is just a set of offsets from the beginning of the block rather than a pointer but the effect is the same.
View ArticleFind blocking sessions and tables - response (3) by teradatauser2
Could anyone please help me on this ? --samir
View ArticleArcmain - response (2) by arteaga7
What does T@YS mean? Do you have a sample script you use to backup a teradata database instance?
View Article