Day Of Week or Week-Ending Function? - response (9) by Raja_KT
I feel Sys_calendar.calendar is fine , until and unless we are driven to model another calendar, because of geography etc. Cheers, Raja
View ArticleDay Of Week or Week-Ending Function? - response (10) by Nishant.Bhardwaj
Hi Experts, In addition to the discussion above, I require the calcualtion logic of fin_cal_week , just like we have cal_week in sys_calendar.calendar table for population values in our date dimension...
View ArticleDay Of Week or Week-Ending Function? - response (11) by Raja_KT
Hi Nishant, You can just see (similar to) in 'show select * from Sys_calendar.calendar' maybe, there you can get the logic of how you can get it. It is something using a mod function divided by 7....
View ArticleNeed guidance - response (3) by Raja_KT
You can log the merge errors into an error table. But I dont know from which version, this is available. But 14 I see this option. Cheers, Raja
View ArticleRounding hour and minute from time stamp to the closest hour - response (3)...
Try this: SELECT CURRENT_TIME(0), CASE WHEN EXTRACT(MINUTE FROM CURRENT_TIME(0)) - 30 >= 0 THEN CURRENT_TIME(0) + ((60 - EXTRACT(MINUTE FROM CURRENT_TIME(0))) * INTERVAL '1' MINUTE) ELSE...
View ArticleSplit the dates bi-weekly - response (4) by bikky6
Hi Dieter I am maintaining a process table with start date and end date.I need to run a job on Monday's only that too bi weekly.So that if i give the dates as sample Jan-1-2013 to Dec-31-2013.Then the...
View ArticleSplit the dates bi-weekly - response (5) by bikky6
For eg:If I want to run my job on Jan14th 2013 then i should process the data from 31-Dec-2012 to jan-13-2013.
View Articleget the list of System / Critical stored procedures in Teradata - forum topic...
Hi ALL I wanted the list of System / Critical stored procedures in Teradata . Working on a tera data document and need this info If anyone can provide this info it will be great Gajanan Forums:...
View Articleget the list of System / Critical stored procedures in Teradata - response...
Hi Gajanan, You can run the query : select * from dbc.tables where tablekind='P' . The field creatorname may help you identify the critical one as per your organization policy. Check the other fields...
View ArticleTeradata equivalent function to FROM_TZ in Oracle - forum topic by M.Saeed...
Hi, Is there any built in function available in Teradata with similar functionality as FROM_TZ function in Oracle? Or we will have to do it using INTERVAL or CAST function? Tags:...
View ArticleTeradata equivalent function to FROM_TZ in Oracle - response (1) by Raja_KT
Hi Khurram, This is we normally do: First we run the help session to see the current setting; help session;You can set the default time zone at DBS control or User level when you create user (TIME ZONE...
View ArticleTeradata equivalent function to FROM_TZ in Oracle - response (2) by ulrich
wouldn't it be just a cast? select cast('2012-12-12 23:12:59+03:00' as timestamp(0) with time zone); If you need FROM_TZ with two inpurt parameter you could create a SQL udf where you !! the two input...
View ArticleTeradata equivalent function to FROM_TZ in Oracle - response (3) by M.Saeed...
Thanks Raja and Ulrich, I think I will have to go for Ulrich's approach to write a UDF.
View ArticleTeradata equivalent function to FROM_TZ in Oracle - response (4) by M.Saeed...
Ulrich, Can we use Oracle UDF to do this? Just like we use oReplace? just a thaught, please guide!
View ArticleError 5505 Column data types cannot be specified with a WITH [NO] DATA...
I tested this scenario using same statements, and it is working fine for me. Versions details: SQL Assistant : 14.0.0.1 Database : 13.00.00.12 Provider : Teradata.Net 13.11.0.1 This is also working...
View ArticleError 5505 Column data types cannot be specified with a WITH [NO] DATA...
Dear Kawish, You are the man I have always idealized throughout my career, from Info-Architects to GCC, But I am unable to connect with you. Can I have your email or some other link? I am even unable...
View ArticleNeed to increase the query performance - response (2) by tdice
As suggested by doneth, Change the target table(PAMKTB.CUSTOMER_POS) as a MULTISET TABLE. Then in your select statement add group by condition to remove duplicate records getting inserted to the...
View ArticleRe-writing a query interms of performance - response (9) by Kawish_Siddiqui
If you have option to revise PI, you can improve performance of this query. You might need to implement following in CUST_T table. This will help to maintain uniquness, support to other queries using...
View ArticleTeradata equivalent function to FROM_TZ in Oracle - response (6) by ulrich
REPLACE FUNCTION mydb.FROM_TZ (ts_str char(19),tz_str char(6) ) RETURNS timestamp(0) with time zone SPECIFIC mydb.FROM_TZ RETURNS NULL ON NULL INPUT LANGUAGE SQL CONTAINS SQL DETERMINISTIC SQL...
View Article