SET & Multiset Tables - response (6) by jlasheras
Hi Harpreet, I'd recommend you please review option #3 in your first answer, if table SET and NUPI, complete row needs to be scanned *unless* a unique index (USI) is also defined, in which case the...
View ArticleI am NEW to SQL writing and I am getting a error message - response (1) by...
I think the last condition in the AND clause is causing the problem. You can't have LIKE operator in a JOIN clause. You need to move the LIKE condition (MASTER_AGENT_ID LIKE '%APPLE%') in WHERE clause...
View ArticleConvert integer to TIME - response (10) by aarsh.dave
Yes ... it does work in BTEQ ... if nothing else works, I will use this one ... However, am still looking for a more generalised solution :)
View Articlehelp in a view - topic by eejimkos
Hello, I would like to thank you in advance for the help. I will provide a example of my real situation.If it will not be possible to solve it,i may provide the ddl,plan and so on. I have a view...
View ArticleExplain plans differ when object (view) names are fully qualified and when...
I've just seen this exact same issue. Peformance is better with the full qualified version of the SQL.
View ArticleExplain plans differ when object (view) names are fully qualified and when...
And the connection method is irrelevant...same behavior whether connecting via ODBC or Teradata. It tough to diagnose a fix for an issue that cannot be recreated because of what looks like a Teradata...
View ArticleRow Lock - response (3) by Harpreet Singh
May be you can use this If I get you correct BT Locking row for write select * from tableA; --- to read -------- Update tableA ........................................; ET or you can use...
View ArticleMerge Over Update - topic by rajeev saravanan
Hi, What are the advantages of using Merge ? and when do we prefer using MERGE over the UPDATE Does using a merge give better performance every time ?
View ArticleMerge Over Update - response (1) by Wasif.Kabeer
Traditionally, the MERGE is considered to be a better choice than Update & Insert (UPSERT) due to it's strength and flexibility. UPSERT The Update and Insert part need to reference: The same...
View ArticleBTEQ Equivalent to SQL+ "EDIT" Command - response (3) by Qaisar Aftab Kiani
True but I think thats the limitation we have to live with while using BTEQ
View ArticleBTEQ Equivalent to SQL+ "EDIT" Command - response (4) by Wasif.Kabeer
@Qaisar, Anyhow, thanks for looking into this.
View ArticleI am NEW to SQL writing and I am getting a error message - response (2) by...
thanks for your advise Qaisar, but I made the changes you remended but the query is still NOT running. I am getting the same error code.
View ArticleI am NEW to SQL writing and I am getting a error message - response (3) by...
I thought it would work. Anyways, can you share the DDL of referenced tables to have a look.
View ArticleRange of values in single row to multiple rows - response (3) by TedK
Dieter, The above solution works great when the range of data (in the between statment) is less than 73,414, since there are only 73,414 rows in the CALENDAR table. In my case some of the ranges I need...
View ArticleRange of values in single row to multiple rows - response (4) by dnoeth
Hi Ted, don't do that using millions of rows because it will result in a product join. What are you trying to achieve? Dieter
View ArticleI am NEW to SQL writing and I am getting a error message - response (4) by...
Of course you can have a LIKE in a join condition. You just wrote the joins in wrong order. In ON you can/must use columns from any of the previously defined tables. Rearrange it like this: FROM...
View ArticleRange of values in single row to multiple rows - response (5) by TedK
I have a table which have IP ranges assigned to a country. however it is very difficault to join this table with a particular IP address/number. So I wanted to expand the values in this table. Current...
View ArticleError Msg 2666 - topic by dsaini
I have timestamp values in Varchar field. Trying to populate this data in a table where field types are properly defined, and I am unable to push data from table a (timestamp is in varchar) to table b...
View ArticleUser PROMPT - response (2) by bibek0134@gmail.com
Hello Adeel, I ran my SQL statement designed exactly as you have mentioned in your post, it goes through but doesn't prompt me for the input value. When I run my SQL it will only generate the titles...
View Article