query on CSUM - response (4) by vuyyuru
Thank you dietier... but my requirement is not this... I want to get the cumulative sum for the missing dates in the source table ..... example... In the above source table i do not have any...
View ArticleSQL to drop last four digits from a 9 digit zip code - response (3) by teraforsk
http://bloghick.blog.com/2013/08/17/teradata-substring-function-with-integer/ useful post on substring with numeric columns.
View ArticleMigrating From Oracle To Teradata Help With DDL Generation - forum topic by...
Hi All, As part of my current project there is a need to migrate a number of tables from Oracle to Teradata, i would like to know if there is some sort of an automated way using which once could create...
View Articlequery on CSUM - response (5) by vuyyuru
Hi Dieter, We are trying to find the missing dates from the source table with the sys calendar date. the query is like below. SEL NAME, MEASURE, DATE, SUM(MEASURE) OVER(PARTITION...
View Articlequery on CSUM - response (6) by vuyyuru
SEL t1.name, t2.calendar_date FROM (SEL name FROM hbarch.ram GROUP BY 1) AS t1, sys_calendar.Calendar AS t2 WHERE t2.calendar_date NOT IN (SEL tran_date FROM hbarch.ram WHERE name = t1.name) AND...
View ArticleIssue with Number data type in Teradata 14.0 - response (1) by Adharssh
Hi Suresh, In Teradata, We don't have NUMBER datatype prior to TD 14 instead we have Decimal Datatype which is more equivalent to Number datatype in Oracle. AS you have mentioned,the Datatype in...
View Articlequery on CSUM - response (7) by dnoeth
Hi Ramaiah, what's your release? In TD13.10 you can use EXPAND ON to get the missing dates. How is the minimum/maximum date determined, is it the same for all names or different for each name? Dieter
View Articlequery on CSUM - response (8) by vuyyuru
Hi Dieter, 13.10 version we are using. Regards, Ramaiah
View Articlequery on CSUM - response (9) by dnoeth
Hi Ramaiah, you reveal information only one at a time :-) So again: How is the minimum/maximum date determined, is it the same for all names or different for each name? Dieter
View Articlequery on CSUM - response (10) by vuyyuru
mindate may be same or it may be different for each name......
View Articlequery on CSUM - response (11) by dnoeth
Last try: How is the minimum/maximum date determined? Dieter
View Articlequery on CSUM - response (12) by vuyyuru
the minimum date is the first(intial) transaction of the each name and Maxdate is current date \ system date of each person i.e as of today.... i tried using expand ... clause but iam getting error...
View Articlequery on CSUM - response (13) by dnoeth
EXPAND only works on PERIODs, you have to construct one on the fly. SELECT name, newdate, SUM(CASE WHEN datecol = newdate THEN measure ELSE 0 END) OVER (PARTITION BY name ORDER BY newdate ROWS...
View Articlequery on CSUM - response (14) by vuyyuru
Hi Dieter, fact table is having mesures with per day bookings.... the business requirement is to find out the number of bookings happed as off that day.... in between some of the days may not have...
View ArticleHow to define ARRAY of varying length? - response (1) by Adharssh
Hi Avi, I didn't understand the Question Properly. The question from you must be The Array is of size VARCHAR(100) in length and the no of Array Elements would be passed in Run Time. The Array Syntax...
View Articlehelp me to group the records - response (9) by Gowtham
tusharraste, i checked your query it is working fine, thanks for your efforts dieter and tusharraste.
View ArticleMigrating From Oracle To Teradata Help With DDL Generation - response (1) by...
There is a teradata tool called TMA(teradata migration accelerator) which i hope can do the DDl convertion. -Aravind
View ArticlePrimary key and Primary index on a same column - response (1) by chinmay...
Hello Sachin, When you specify Primary Kay keyword inside create table, Teradata will be default consider as a Unique Primary Index. So in addition, if you specify another non unique primary index on...
View ArticlePrimary key and Primary index on a same column - response (3) by barani_sachin
Hi Chinmay, Thanks for the response :-) But Primary Key will be implemented as UPI only if there is no Primary Index specified in the DDL right?? In my case i am explicitly specifying that. If...
View ArticleUsing static Day value in a particular Date - forum topic by janthony
Hi .. Have a requirement in which I have to search particular day for the current month , the query is running .. For ex . If I am running query for May'2013 the where condition should be resolved to...
View Article