Purge the work tables cretaed a month before and create report with the list...
try SELECT DISTINCT 'DROP TABLE DB1.' || TABLENAME || ' ; ' !! case when row_number() over (order by tablename) mod 10 = 0 then '.hang 50;' else '' end FROM dbc.tables WHERE tablekind = 'T' AND...
View ArticlePurge the work tables cretaed a month before and create report with the list...
Hi Waq, Can you please explain a bit? I am not aware of this.Thanks.
View ArticlePurge the work tables cretaed a month before and create report with the list...
hm I mixed the 10 and 50... check also dieters posts in http://forums.teradata.com/forum/tools/bteq-cannot-write-hexa-character-... if you have trouble with the newline in the export...
View Articleprimary index using begin(period) - topic by tom.gnade
I have a time-series table with data points that are time periods. I'd like to be able to evaluate the following designs: create multiset table dropme_t0( whatever_id varchar(50),...
View ArticleSlow Left Join query - response (4) by nyemul
Hello Ulrich, All rows have same count value. HASHROW(S_SK) Count(*) ------------------- ----------- 6A330209 14144 9F8501AE 14144 .... C8E817F5...
View ArticleSlow Left Join query - response (5) by ulrich
But in this case it mean that for each matching S_SK your answer set will generate up to 14144 result rows. Is that what you expect? Ulrich
View ArticlePerformance Stats - response (2) by SmarakDas
In addition to the above Performance Metrics, other important factors which also needs to be considered are: (a) ImpactCPU: MaxAMPCPUTime * (HASHAMP() + 1) (b) Parallel Efficiency: AMPCPUTime /...
View ArticleSlow Left Join query - response (7) by ratnamch
sel day_of_year from sys_calendar.calendar where calendar_date=date it displays no of days previous date means (2011/05/03) how to write query
View ArticlePurge the work tables cretaed a month before and create report with the list...
Hi terankit, Use the query provided by Ulrich. It will give you the desired result.
View ArticlePurge the work tables cretaed a month before and create report with the list...
Thanks a lot Ulrich and Waq. That query gave me the desired output perfectly. Thanks again. Terankit
View ArticleHow to get the activity count in a stored Procedure - topic by msuman07
Hello Everyone, I am new to Teradata. I am using Teradata SQL Assistant . I have a requirement where i have to capture the activity counts of each Insert/Update statements in a stored Procedure and...
View ArticleWhat is difference between VDisk and Physical Disk? - response (2) by Jeeva
Hi, Can someone explain what is the VDISK. What it actually contains..
View ArticleUsing SQL to Query for NaN - topic by Paul.Hooper
I have a table (I'll call this DTM) which has a column of the type FLOAT (I'll call this VAL). This table currently includes rows in which the value of that column is NaN (not a number). We are...
View ArticlePerformance Tuning Merge Statement - topic by srilamaiti
Hello Experts, Can you please help me in tuning the below MERGE statement where both the tables have same PPI (loc_id, gnrc_item_id, gnrc_item_lvl_cd) having ~95 millions of records:- read more
View ArticlePerformance Tuning Merge Statement - response (1) by srilamaiti
Here is the explain plan for the same:- 1) First, we lock a distinct EDW_PR_WORK_DB."pseudo table" for read on a RowHash to prevent global deadlock for EDW_PR_WORK_DB.SWM_SLS_AGG_NEW....
View ArticleExternal UDF for strtok function in 13.10? - topic by tstrick4
Hi, I'm looking for an external UDF that will emulate the strtok function in C. I'm aware that it is available as an internal function on TD14, but our client is running 13.10. I am using it in a...
View Articleshow view does not show databasename in viewname - topic by cloghin
I am trying to export all objects from certain databases . I noticed in some cases the show view output does not contain a databasename, probably using the default database. Is it possible to force the...
View Articleshow view does not show databasename in viewname - response (1) by Qaisar...
Try SHOW SEL * FROM DBC.COLUMNS
View ArticleTemporal Macro / Dynamic SQL in a View - topic by sdmody1983
Hi, I have the following tables EMPLOYEE& DEPT. I am writing the following query : read more
View Article