Error 5505 Column data types cannot be specified with a WITH [NO] DATA...
Thanks Khurram for the compliments. I sent you invite on linkedin, stay in touch there.
View ArticleCount the number of words in a phrase using Teradata SQL - response (4) by...
Sree, This might help you to resolve your issue. SELECT COUNT(*)+1 FROM ( SELECT SUBSTR(SENT,POS,1) SINGLE_CHAR FROM (SELECT 'COUNT WORDS FROM THIS SENATANCE FOR ME' SENT) A, ( SELECT ROW_NUMBER() OVER...
View ArticleError 2618 Invalid Calculation Division by Zero - forum topic by tclear
I have checked, and checked, included NULLIFZERO where applicable. When I run the query with this last filter commented out -- AND ABS(REC_VAL - ORIG_VAL)>3 the query returns records. Remove the...
View ArticleSplit the dates bi-weekly - response (6) by Kawish_Siddiqui
Following might solve your issue or help you to solve this query. SELECT Start_Date, End_Date FROM ( SELECT calendar_date End_Date, ROW_NUMBER() OVER(ORDER BY calendar_date) RowNum FROM...
View Articleneed a associated select query defined from view table in teradata? -...
Can you please elaborate what exactly you are looking for? If you just want to see the SQL (View DDL) then why don't you use SHOW VIEW? SHOW VIEW View1;
View ArticleNeed guidance - response (4) by Kawish_Siddiqui
As Dieter already mentioned, more details are needed to pin point the exact problem. specially Spool size, spool allocation, table structure, Merge Statement and Number of AMPs. At a glance, it looks...
View ArticleWhy I do not see all the databases in Teradata Studio - forum topic by pmehrotr
I am using Teradata Studio 14.0 on Windows 7. In database source explorer I do not see all the databases which I have access to, why? In SQL Editor I can netr query like: select * from scdb1_v.myview...
View Articleneed a associated select query defined from view table in teradata? -...
Hi, The easiest way is to export the results. It is available in "File..". You can run the query and it will ask you the directory where you want to place. Hope it helps.Cheers, Raja
View ArticleForced Log Off Session Details - forum topic by Kishore_1
A session has been forced logged of by Admin User. The error that is being thrown when user tries to fire a query is : 08055 Session forced off by PMPC or xgtwglobal How to get is the query details...
View ArticleWhy I do not see all the databases in Teradata Studio - response (1) by...
Hi, it seems that you connection is filtering out some schemas. You can right click on your connection -> go to Properties -> go to default schema filter section and make sure that disable filter...
View ArticleError 2618 Invalid Calculation Division by Zero - response (1) by M.Saeed...
Hi, Can you please peovide the complete Where clause, Or the previous part of this AND condition? It will help us to understand the problem.
View Articleneed a associated select query defined from view table in teradata? -...
I got your problem, I have faced this many times, SQL Assistant sometimes trim the result of show view or table due to its length. What you can do is to use administrator, go to your database and then...
View ArticleCount the number of words in a phrase using Teradata SQL - response (5) by...
Thank you Kawish for sharing a robust version, It helps me learning another way to achieve this :)
View ArticleWhom can help me explain the ‘46.06:18:08’ time. - forum topic by joop_kpn
Dear SQLers, A small question about time presentation using a integer data type. I juesed INTEGER FORMAT '99:99:99' to show time. below in steps my chalance :-) SELECT CAST( 110025 AS INTEGER FORMAT...
View ArticleWhom can help me explain the ‘46.06:18:08’ time. - response (1) by gerardo
You are really substracting two integer numbers not two "time" columns. So you are doing 111033- 1100025 and display the result in the formnmat '99:99:99' You are not converting integer to time....
View ArticleTranspose rows to columns - response (20) by gerardo
try, select id, name, max(case when subjkect ='Maths' then msk else null end), max(case when subjkect ='Science' then msk else null end), max(case when subjkect ='english' then msk else null end)...
View ArticleWhom can help me explain the ‘46.06:18:08’ time. - response (2) by M.Saeed...
Hi gerado, I agree with you to some extent, But convertin this to time is not solving the issue, Can you please try the following queries: --Converting literals to time SELECT CAST( '11:10:25' AS...
View ArticleWhom can help me explain the ‘46.06:18:08’ time. - response (3) by M.Saeed...
Hi, as gerado has explained that even with a format the underlying data type do not change and the resulting arithmatic is simple INTEGER arithmatic not the Time arithmatic. You can use the below...
View ArticleQuery to find tables with no stats defined/old statistics - response (7) by...
Hi Deiter, How are you? I was going through above blog. Actually i dont have access to dbc.tvfields. Is there a way i can get the missing collect stats table and their index in the same query. Thanks,...
View Article