Teradata Dbase Error:5758 - response (3) by Swathi Reddy
Hi Raja, Basically I am making sure that if any change happens my End date will be altered and new record will be inserted While Inserting , I am making sure that ALL PI and KEY columns are covered...
View Articlesurrogate scripts - forum topic by Abhireddy
can anyone post the sample surrogate scripts which will help for preparation...Forums: Database
View ArticleTable Partition - response (1) by Raja_KT
all-rows scan with a condition of ("(INFORM_USER.TABLEA.MO_ID = 201202) OR (INFORM_USER.TABLEA.MO_ID = 201201)") Cheers, Raja
View Articleextending MLPPI tables - response (1) by Raja_KT
AFAIK, it is not possible since it is populated table. However, you can think of or try to do thus: Note: to be 100% sure, you can take backup of entire table, because I dont know the version of TD you...
View Articleextending MLPPI tables - response (2) by M.Saeed Khurram
HI, You can use alter table statement to alter partitions on an empty table in any way, but there are certian limitations when the table is populated. When the table is populated, You can add or drop...
View ArticleTable Partition - response (2) by M.Saeed Khurram
Hi, There are some points to notice about your query: The first thing is you have a defined PI on (PLCY_NBR, MPD_ID) but you are using a partial value in your where clause using only MOD_ID. So when...
View ArticleFetching the data for thelast quarter dates - forum topic by bikky6
Hi I am using TD13 version.I have a query which runs for on particular dates.Whenever the query runs it has to pick up the last quarter dates. How to extract last quarter dates in BETWEEN condition...
View ArticleFetching the data for thelast quarter dates - response (2) by Raja_KT
Hi, The discussion , with calendar or without calendar is in this link. You could have searched for it :)....
View ArticleFetching the data for thelast quarter dates - response (3) by M.Saeed Khurram
Hi Bikky, What if you try this? WHERE COL_NAME BETWEEN CURRENT_DATE AND ADD_MONTHS(CURRENT_DATE,-3)
View ArticleTeradata Dbase Error:5758 - response (4) by Raja_KT
Hi Swathi, You can try and run the query and verify with data , step by step and make the changes in INSERT and see. I guess the update is fine. Dont run the entire stuff, just run the query and...
View ArticleInserting to a table incrementally - forum topic by bikky6
Hi What's the best approach to load the target table from the source incrementally.Let's say we have 1 million rows.I need to load the table for every 1 lakh.Forums: Database
View ArticleFetching the data for thelast quarter dates - response (4) by bikky6
Suppose let's take 1st quarter Jan-March.If my job runs in March.I need to pick the data from Oct1st to Dec31st.
View ArticleFetching the data for thelast quarter dates - response (5) by Raja_KT
An easier way is to use a scheduler. Maybe a stored proc too, since you can stuff your logic you want. Cheers, Raja
View ArticleInserting to a table incrementally - response (1) by Raja_KT
Hi Bikky, Tools are always better. But if you dont have tools, then you have to use queries. You can think of this option,keep one table to track load based on identifiable field or fields.Use...
View Articlearc error - forum topic by ZhangJiahao
hi all,when I resore table from backup tape.there are the following error msg.*** Failure 9011:Table being Archived/Restored/Copied was dropped by some other transaction.How to handle it.Thanks.Forums:...
View Articlearc error - response (1) by Raja_KT
Hi Zhang, Explanation: The table that is being Archived/Restored/Copied has been dropped by some other transaction. This can happen when the HUT Lock is released using RELEASE LOCK statement...
View Articlesurrogate scripts - response (1) by Raja_KT
Hi Reddy, There are few ways of generating surrogate, but can't put the script because of restrictions of company's policies. One way you can generate a sequence. Another way is create lookup...
View ArticleInserting to a table incrementally - response (2) by dnoeth
Why do you want to load in bunches of 100.000 rows? This will be (potentially much) slower than loading all rows in a single step.
View ArticleFetching the data for thelast quarter dates - response (6) by dnoeth
What's your TD release? In 14 there's Oracle's TRUNC: WHERE datecol BETWEEN TRUNC(ADD_MONTHS(CURRENT_DATE,-3), 'Q'), TRUNC(CURRENT_DATE, 'Q') - 1 Before it's more complicated: WHERE datecol BETWEEN...
View ArticleTeradata Dbase Error:5758 - response (5) by dnoeth
Hi Swathi, why do you need all those TRIMs? Do you have leading blanks in your data or non matching data types? With TRIM you're simply not matching the PI of the target table.
View Article