3504: Selected non-aggregate values must be part of the associated group...
Lol... how I didnt find it myself? :) Thanks Wasif! You are great help!
View ArticleBTEQ is not returning proper error code when run file is not present. -...
Here is the output from the script BTEQ 13.10.00.08 Thu Jan 10 09:17:52 2013 +---------+---------+---------+---------+---------+---------+---------+---- .logmech LDAP...
View ArticleResponsibility – Definition FREESPACE - topic by G_Smith
Hi. For a good operation of a Teradata environment, setting parameter FREESPACE in CREATE TABLE is very important. Through experience you usually work this definition of value for the FREESPACE...
View ArticleString Replacements in Teradata Sql - topic by Kavitha.P
Hi, I am new to Teradata, learning SQL queries and I have a query regarding string replacement. for ex. if i have a table data as below: Id, name 1 john xyz 2 john abcd 3 john abded I want to...
View ArticleTarget row updated by multiple source rows. - response (1) by sachin.sebastian
You can find out the dupes/ cross join that is causing the issue with the sql below: select a.COL1,a.COL2, count(*) FROM a, tmp WHERE a.COL1 = tmp.COL1 and a.COL2 = tmp.COL2 and a.flag <> 'N'...
View ArticleCollect stats - response (3) by sachin.sebastian
If you want all Stats on the new table, then you can do the following: CREATE TABLE tab2_new AS tab1_old with data and stats;It copies bot data and Stats to the new table
View ArticleConditional Rollback (Oracle PLSQL to TD SP) - topic by ehsanabbasi
Hi, I am converting and Oracle PL/SQL Code that supports COMMIT and ROLLBACK. I know we can use BT, ET statements to enclose the transactions. But what about if I want to do conditional Commit and...
View ArticleChecking sequence of numbers and populate a flag if number is out of sequence...
Hi Rajeev, Yes, the query is working and thanks for the link and it is very much useful. Regards, Sagar
View Article3504: Selected non-aggregate values must be part of the associated group...
Hi there again. I mus say that I could not find any proper syntax explanation in teradata document about RANK() OVER. How to make the select so it will show it will return top date result for each...
View ArticleDBSControl Internal flag DISABLECAR - topic by Duri83
Hello, does anyone know what does internal DBSControl flag called DISABLECAR do? Thanks, GLHF, Yuri
View Article3504: Selected non-aggregate values must be part of the associated group...
A complete reference to the Teradata SQL: Functions & Operators is provided in the below document: http://www.info.teradata.com/do_redirect.cfm?itemid=072600012
View ArticleLog Option While Creating Table - response (1) by rajeev saravanan
Hi, Can any one help me with the above query Thanks in advance Rajeev
View ArticleAmp CPU time and query optimization - topic by dsldsl1980
I have been tasked with optimizing a few complex queries and would like to gauge my over all effectivness of doing so. AMPCPUTIME seems to be the most logical measure of this but can this measurement...
View ArticleMERGE-INO - response (1) by Qaisar Aftab Kiani
The error message is pretty clear that you have PI or Partition Column included in your SQL statement, you need to remove those columns. As you haven't provided the ddl so its difficult to suggest...
View ArticleString Replacements in Teradata Sql - response (1) by Wasif.Kabeer
The following posts would provide you the material of relevant interest: http://forums.teradata.com/forum/tools/using-oreplace-function http://forums.teradata.com/forum/analytics/oreplace-function...
View ArticleString Replacements in Teradata Sql - response (2) by Qaisar Aftab Kiani
Teradata doesn't have a REPLACE function like Oracle does. If you are looking for some complex replace functionality like replacing multiple instances of the same set of characters in the given string...
View ArticleLog Option While Creating Table - response (2) by dnoeth
Hi Rajeev, the NO LOG option is only available for temporary tables. It switches off the Transient Journal, which is Teradata's transaction log. As a result insert/update/deletes usually run faster,...
View ArticleAmp CPU time and query optimization - response (1) by dnoeth
Cputime is not affected by the load on the system as the cpu used to process a query is the same regardless of the runtime. Your queries are reported because they are on the TOP N list of all queries...
View ArticleString Replacements in Teradata Sql - response (3) by WAQ
Just to add one more thing to what Qaiser suggested, you can also use recursive SQL to replace more than one occurances of a string. By the way in your example, you are not replacing one particluar...
View Article