SQL help - response (3) by todil
Dieter, I tried and iam getting this error. Failed 3504 I am getting selected non-aggregrated values must be part of associated group. SELECT acct_id, MRCH_NM, EXTRACT(YEAR FROM trxn_post_dt) AS...
View ArticleSQL help - response (4) by dnoeth
Strange, this should work as-is. Maybe the parser is a bit confused, try GROUP BY 1,2,3,4 Btw, what's your TD release?
View ArticleSQL help - response (5) by todil
Dieter, Actually it worked.. I gave GROUP BY 1,2,3,4,5
View ArticleTeradata Spool issue in Recursive issue - response (6) by abhishek_abhishek
Hi Raja & Dieter .. Thanks a lot for valuable input. here my requirement is like :<Input Set table data> DAY_ID CONTENT_ID LINE_ID...
View ArticleConverting Number to Character - forum topic by Stiphu
I have a numeric value which I want to divide by 1000: SELECT DISTINCT Speed_Val_Down AS svd, CAST(svd AS FLOAT) / 1000 AS div, CAST(res AS VARCHAR(50)) AS res FROM SPH ORDER BY...
View ArticleConverting Number to Character - response (1) by M.Saeed Khurram
Hi Stiphu, Try this: SELECT CAST(CAST(2400 AS DECIMAL(18,1)) / 1000 AS VARCHAR(6))AS div
View ArticleConverting Number to Character - response (2) by Raja_KT
Hi Stiphu, You can cast as you require: /*created table*/ CREATE MULTISET TABLE db1.raja_test ,NO FALLBACK , NO BEFORE JOURNAL, NO AFTER JOURNAL, CHECKSUM = DEFAULT, DEFAULT...
View ArticleSpecial charcters/XML - forum topic by Nishant.Bhardwaj
Hi Experts, Need ur suggestions in Updating XML string present in table by first adding 2 column tags in it. for e.g the Table has currently similar data like '<?xml version =...
View ArticleSpecial charcters/XML - response (1) by Raja_KT
Are you facing the same in bteq in unix environment? or you can use Teradata admin tool, Query. Cheers, Raja
View ArticleSpecial charcters/XML - response (2) by Nishant.Bhardwaj
thanks Raja for the Reply. but i dont have access to the Teradata admin tool. I just have access to Unix/sql assitant. I tried in Sql assiatnt earlier not in unix. Cheers! Nishant
View ArticleSpecial charcters/XML - response (3) by Raja_KT
Hi Nishant, Maybe this link will help you? This link is form Dieter's http://forums.teradata.com/forum/database/issue-in-loading-as-first-character-in-the-field I work more in unix env :). Cheers, Raja
View ArticleTeradata Spool issue in Recursive issue - response (7) by abhishek_abhishek
Hi Experts , can you please help me for this scenario :)
View ArticleMODE and FORMAT - TD Utilities. - response (13) by Raj kumar T
Thanks Raja and dnoeth. You guys have been really helpful.. !!!
View ArticleConverting Number to Character - response (3) by Stiphu
Thank you for the responses. It's not exactly what I wanted. @Saeed: I tried this as well. The result is fine for a number which has a value behind the comma, but not for all of the following...
View ArticleConverting Number to Character - response (4) by M.Saeed Khurram
Stephen, Basically in order to avoid this round off you need to devide by the same percision as the value. for example in case of 18750 we need to case it to decimal to get result as decimal and we...
View ArticleConverting Number to Character - response (5) by Stiphu
Khurram, I don't need a fix amount of digits. for the number 0.011 for instance, i need 3 digits after the comma. For the number 12.100, I need one digit (12.1), for the number 14.000 I need no digits...
View ArticleConverting Number to Character - response (6) by M.Saeed Khurram
So you want to suppress any trailing 0z, This will work for you: SELECT CAST(11 AS DECIMAL(18,6)) / 1000.00 (FORMAT 'GZ(I)DZZZZZ')
View ArticleResource Partition Weight for Default partition in Priority Scheduler in...
When there is production support workload, used for the purpose of troubleshooting data issues and needs a gaurented decent response, why not have it in RP0 under Low AG locked down to 1.8% CPU (out of...
View ArticleConverting Number to Character - response (7) by dnoeth
What's your TD release? In TD14 there's a new FORMAT used for NUMBERs, the default FORMAT 'FN9' should work: CAST(svd AS NUMBER) / 1000 as div, CAST(div AS VARCHAR(50)) AS resBefore TD14 you can do...
View ArticleOREPLACE - forum topic by JF230042
I am interested in using the function OREPLACE in the TD_SYSFNLIB. Can anyone tell me how to find out the max sizes of the input values. It accepts source_string, search_string and replace_string....
View Article