Help on Query Tunning - response (5) by JGP@1979
Hi Dieter, Please find the explain plan below. Explain SELECT DP.Party_Id, ECD.Clndr_Dt, DL.Soi_Num AS RM_Cust_Res_Soi_Num, DL.Street_Nm AS RM_Cust_Res_Street_Nm , DL.Moo_Num AS RM_Cust_Res_Moo_Num,...
View ArticleHelp required on the query using analytic function - response (5) by BalaAG
Thanks a lot Dieter.Your SQL worked as expected. I have few questions regarding my old query with analytic functions: 1. As per my knowledge,the reset command within the OLAP function should create the...
View ArticleI need to add starbox comments to table DDL. Works with view DDL, but not...
Hi Agrias, I am not sure about the earlier versions, We are using 13.10, dbc.Tables stores last run of the definitions including the starbox comments in Request_Text Column. Show Request_Text FROM...
View ArticleCommand Help : Alter table modify column - response (8) by asadali.khan
Pretty Simple. ADD command would be used to alter the datatype of the existing field. ALTER TABLE <DatabaseName>.<TableName> ADD <ExistingColumnName> <New Data Type> ; Br,...
View Articlestring not terminated error - response (2) by Fred
Is there a semicolon after the last apostrophe as well as before?
View ArticleQuery Tuning - topic by MBR
Hi, i am using TRIM function on 7 columns those columns are considering as a single column like read more
View ArticleGetting a dynamic Sample - topic by smull
I am attempting to extract Control Groups in our Automated Batch. The table in the batch I hope to extract from contains a Communication_ID and a Customer_id. Each night the no of COMMUNICATION_IDs...
View ArticleGetting a dynamic Sample - response (1) by dnoeth
Is the number of COMMUNICATION_IDs known and small: SAMPLE WHEN COMMUNICATION_ID = x1 THEN 0.1 WHEN COMMUNICATION_ID = x2 THEN 0.1 WHEN COMMUNICATION_ID = x3 THEN 0.1 WHEN COMMUNICATION_ID = x4 THEN...
View ArticleQuery Tuning - response (1) by dnoeth
Hi MBR, of course it's using a lot of CPU when you trim/concate a lot. But what do you mean by "huge time to load"? Runtime of a SELECT? SI on the result of the concat? No. Dieter
View ArticleHelp required on the query using analytic function - response (6) by dnoeth
Hi Bala, #1: This is not going to reset START_TIME when the first row evaluates to true. It's simply creating a new partition *after* the first row evaluates to true. This would require a kind of...
View ArticleHelp on Query Tunning - response (6) by dnoeth
So this was not the actual query :-( Of course this is different now. This view is dangerous: What if a user uses multiple dates or omits the WHERE-condition? Each qualifying row from each table will...
View ArticleFull join on 1=2 - topic by Tnewbee
Hi !! I have a view (definition below) which is further used in queries which run really long. I am trying to figure out wat could be the cause. The first indication is this Full join . When a query...
View ArticleFull join on 1=2 - response (1) by KS42982
First, I do not understand why you would need to do FULL JOIN between same tables (dbname.table2). I am sure we can avoid that if we know what is the exact requirement. Anyways, for any reason if you...
View ArticleFull join on 1=2 - response (2) by dnoeth
Without showing the actual view source it's impossible to find out *what* this code is supposed to do. Dieter
View ArticleFull join on 1=2 - response (3) by Tnewbee
What does "on 1=2"mean? Does is mean first column of table2 with second column of table2?
View ArticleQuery Tuning - response (2) by MBR
Thanx Dieter, TFD having 21 cr of data and as i said as above thread , i am selecting those columns and doing trim() function,its taking time while selecting ,is there any way to get the records in...
View ArticleQuery Tuning - response (3) by dnoeth
Hi MBR, 21 crore => 210 million rows => select for an export Did you test which part of the export is slow: the actual select or the export of the answer set? A NUSI just for an export is...
View ArticleFull join on 1=2 - response (5) by dnoeth
"1=2" means a join condition which aways evaluates to false. For an inner join this results in an empty set, but here it's a combination of both tables similar to a UNION: t1: colB,colB,colC t2:...
View ArticleIndex traversal forbidding the use of Partitions - topic by mjasrotia
I have a 8 billion record Shipments table which is joined to couple other tables. The Shipments tables has some indexes defined and those index columns are being used as filters in my query. The...
View Article