Old data access for DBC.ResSpsView - response (1) by dnoeth
There is probably some housekeeping on this table which moves the data to some history database and then deletes it. You should ask your dba or search dbc.TablesV for a TableName LIKE 'ResUsageSPS%'...
View ArticleFind the two pre/post/both the Dates - topic by Mathuram
Hi everyone, I need some help determining the logic for the below scenario, read more
View ArticlePermSpace of a Secondary Index - response (4) by Smarak0604
Thanks Rupert for the Query. I was also looking for a Process to identify Space Used by the SIs without using any Utilities. I do have 1 Question...Is ther any other way of fetching the same...
View ArticleFind the two pre/post/both the Dates - response (1) by DS
May be in this way select case when timeperiod < maturity then timeperiod else timeperiod qualify rank() over (order by maturity, timeperiod desc)<=2
View ArticlePermSpace of a Secondary Index - response (5) by dnoeth
You don't need QCD, simply create a DataDemographics table in any database and then use this instead. Check the "SQL Request and Transaction Processing" manual for the CREATE TABLE: Chapter 6: Query...
View ArticlePartitioning in V12, utilising MOD - response (1) by dnoeth
MLPPI is already available in TD12, you probably mean CHAR-PPI, which was introduced in 13.10. The HASHBUCKET/MOD approach only works for equality-constraints and you have to watch out for different...
View ArticleWhat Is DERV? - response (1) by dnoeth
DERV is a name for a Derived Table, i.e. the previous select in brackets. In Paradox this syntax didn't exist, but you could do something similar: "select ... from filename" where filename was a path...
View ArticleFind the two pre/post/both the Dates - response (2) by dnoeth
Nice puzzle :-) This should work, there are probably other solutions, but this one needs only a single STAT fubnction step: SELECT maturity, timeperiod, COUNT(CASE WHEN timeperiod <= maturity THEN 1...
View ArticlePartitioning in V12, utilising MOD - response (2) by colink2000au
Hi Dieter, Yes, clarifying, I'd like to use the Char-PPI, but I'm stuck with Hashbucket and Mod for now. How are the buckets calculated? For the example I'm working to, I can see the range of days...
View ArticleConvert the strings into Date Format - topic by Mathuram
Hi everyone, i need to convert all the strings into Date format in a single query. 2012/11/24 2012-11-24 2012 11 24 20121124 24/11/2012 24-11-2012 24 11 2012 24112012 11/24/2012 11-24-2012 11 24 2012...
View ArticleFind the two pre/post/both the Dates - response (4) by Mathuram
Thanks Dieter it is working fine.. below is the query i had done... SEL * FROM (SEL MATURITY,TIMEPD, ROW_NUMBER() OVER(PARTITION BY MATURITY ORDER BY TIMEPD DESC) RN FROM DTFD WHERE MATURITY>TIMEPD...
View ArticlePartitioning in V12, utilising MOD - response (3) by dnoeth
HashRow is Terdata's hashing alhorithm and hashbucket extracts the first 20 bits of this 32 bit value as an integer. The MOD 10 creates 10 possible values which are mapped to 10 partitions using EACH 1...
View ArticleConvert the strings into Date Format - response (1) by dnoeth
I don't think it's possible (unless there's additional information): Is there a difference between 12/11/24 and 11/12/24? Both could be 2012-12-11 or 2012-11-12. Dieter
View ArticleCaculate how many bytes of string - response (8) by ricky_ru
Dears, I think i am clear with this problem. Because the collation is ASCII. So, characters out of ascii scope will be considered as '?' in ascii. And 63(HEX 3F) is the ascii code for '?'. The...
View ArticleConvert the strings into Date Format - response (3) by Mathuram
Thanks Dieter, Format of the data keep on changes, so that the month/Year/date position wil get change.. i think it wont possible in a single query..
View ArticleStored PRocedure to Load Date Dim - topic by vidskhare
I have written a Teradata stored procedure to load my date dim for 50 years. when I am compiling the procedure I am getting an error msg(SPL1028:E(L64), Illegal attempt to modify symbol...
View ArticleSpool Space error...please help to optimize - response (1) by rads
Try the below query: SELECT DISTINCT A.USER_ID, C.SUPER_NM_LVL2 AS SUP, C.SUPER_NM_LVL1 AS AD, DIR.SUPER_NM_LVL2 AS DIR, A.ACTIVITY_DT, B.MTN, A.ACCT_NUM, A.PPLAN_CD_CURR FROM (SELECT DISTINCT...
View ArticleConvert the strings into Date Format - response (4) by WAQ
Hi Mathuram, As you already mentioned, it can not be done in a query because the format of your data is not consistent. You can certainly go for workarounds, if you want.
View ArticleConvert the strings into Date Format - response (5) by WAQ
Well one workaround is that if you know that your date would be in specifc formats like YYYY/MM/DD, YYYY-MM-DD etc then u can use: create volatile table te ( date_t varchar(12) ) on commit preserve...
View Article