Concatenate o/p of two select statements - response (5) by Mathuram
Query below is the another way to achieve the result.... SEL Col1,Col2,Col3,MaxCol FROM table1, (SEL MAX(eff_date) MaxCol FROM table2)t
View ArticleConcatanation of the rows from one columns - response (18) by extreme_logic
Here's a link with a sample. http://thesimpleprogrammer.blogspot.com/2013/02/concat-rows-as-single-co...
View ArticleTransform rows to one column string - response (6) by extreme_logic
Here's a link to a sample. http://thesimpleprogrammer.blogspot.com/2013/02/concat-rows-as-single-co...
View ArticleProblem: concatenate multi rows in one row and column - response (2) by...
Here's a link to a sample. http://thesimpleprogrammer.blogspot.com/2013/02/concat-rows-as-single-co...
View ArticleCan't compile UDF's on Windows - response (1) by tdgi
Had a browser/network error earlier today while I was posting my question. So sorry for the extra threads and please forgive me for the noise! (The question still stands though) :)
View ArticleUpgrading the 4Gb Teradata Studio Express 14 to 1Tb - response (1) by fgrimmer
You have confused Teradata Studio Express with Teradata Express. Please post you question regarding Teradata Express to the Cloud Computing Forum, http://forums.teradata.com/forum/cloud-computing...
View ArticleHelp required on the query using analytic function - response (2) by BalaAG
Hi Dieter, Thanks for your response.I usually follow up your posts.Also will check out your SQL. Please clarify my queries regading the OLAP functions: 1. As per my knowledge,the reset command within...
View ArticleConcatenate o/p of two select statements - response (6) by teradatauser2
SEL col1,col2,col3, MAX(eff_date), COUNT(table2.xyz), ... FROM table1, table2 GROUP BY 1,2,3 sel col1,col2.. DW_ACCT_ID_MAX.MAX_ID FROM (SELECT MAX(ACCT_ID) MAX_ID FROM table2) DW_ACCT_ID_MAX,...
View ArticleBest approach to handle partition in truncate load table - topic by arbiswas
Dear Expert, I have a table which is loaded daily and loading mechnism is Truncate-Load. The table has EMPLOYEE_ID as PI and Range partition on transaction date. The user queries on this table are...
View ArticleTeradata Error Code 7693 - response (3) by taruntrehan
Thanks for the inputs. Resoved as the exception was thrown by a user defined fucntion.
View ArticleCommand Help : Alter table modify column - topic by taruntrehan
Hi All, I have an existing table in TERADATA and it has a field named log_dttm defined as timestamp. I want to change the column data type to varchar(30). "alter table modify" failed to convert....
View ArticleConcatenate o/p of two select statements - response (7) by mohan.mscss
Hi Teradatauser2, All the queries which is posted here will get product join except the query which is posted from Mathuram especially when you are performing with more than one table process. if we...
View ArticleConcatenate o/p of two select statements - response (8) by mohan.mscss
To add, the query posted by Dieter is a scalar sub query which will work with TD 13 onwards.. Hence I am not sure about whether this will get product join or not..
View ArticleAdd comment on a COLUMN or TABLE - topic by veskojl
Hi, I'm trying to add a comment whithin the CREATE TABLE ddl. I've check that Teradata supports comments via statements of the type: COMMENT ON COLUMN table.col 'A comment!'but the problem is SQL...
View ArticleAdd comment on a COLUMN or TABLE - response (1) by mohan.mscss
if you just need it in the query then use double hypen to put comments ct dummy( int a --value of a ,int b -- value of b ) But make sure, the comma has to be on the next line :-). . Regards, Mohan K
View ArticleCommand Help : Alter table modify column - response (1) by Qaisar Aftab Kiani
ALTER TABLE to change the datatype of existing columns is very limited. You can use this statement to change the VARCHAR and increase the number of characters but I don't think you can do that to...
View ArticleAdd comment on a COLUMN or TABLE - response (2) by veskojl
I've just realized that adding regular comments will do the trick. CREATE TABLE test( id INT /* This is the ID! */ )
View ArticleCommand Help : Alter table modify column - response (2) by taruntrehan
Thanks for your inputs ... I am aware of this approach. However, wanted some inputs as there are 25 columns to be renamed !!! Further, i need to maintain the same order of columns as there is load...
View ArticleConcatenate o/p of two select statements - response (9) by KS42982
I don't think any of the above queries (except Dieter's) would work without having product join. To ask your question on what is the better solution, then in my opinion, as in your scenario - where you...
View ArticleCommand Help : Alter table modify column - response (3) by KS42982
As you need to rename so many columns, I'd suggest, you create a new table with desired datatypes, copy all the data from the existing table to this new table by casting to varchar, drop the existing...
View Article