how to find the start dates from history - response (9) by sunny.j
your second query is not working for case:2 scenario. any one would please help me
View Articlehow to find the start dates from history - response (10) by CarlosAL
Sunny: Maybe this approach will help you: BTEQ -- Enter your SQL request or BTEQ command: SELECT * FROM YOUR_TABLE ORDER BY 1,2; *** Query completed. 8 rows found. 4 columns returned. *** Total...
View ArticleETL Process results in contention on Teradata table - response (3) by Fred
If the WHERE clause allows Teradata to identify a single specific RowHash to be updated by the statement (e.g. access by PI or USI) then RowHash locking can be used. Otherwise (e.g. access by scanning...
View ArticleQuery Band Syntax - response (4) by iqbal898
Thanks for the great feedback guys in general and gryback in particular. I'd like to use Query band with SAS queries and wondering how this can be used and the advantages through SAS. Any example would...
View ArticleHow to retrieve the Relative Record Number? - response (2) by fkeith
Doesn't ROW_NUMBER just provide the position in the return result set not the actual row position in the table?
View ArticleHow to retrieve the Relative Record Number? - response (3) by dnoeth
There's is no "row position" in a relational table, looks like you worked on a mainframe DB2 before, afaik it's using VSAM flat files. The closest match is a ROWNUM on Oracle or the Standard SQL...
View ArticleHow to retrieve the Relative Record Number? - response (4) by KS42982
If I understood you correctly, then below solution would solve your problem. SELECT a.blank8, b.rownum ( SELECT -- add PK , CAST(CAST(t.blank8 AS FORMAT'9(6)') AS CHAR(8)) FROM ji_core_v.keepH T WHERE...
View ArticleInvalid Timestamp - response (2) by KS42982
Try like below (assuming the DATE format is MM/DD/YYYY. If not then, you can change it accordingly) SELECT (CAST( (CAST(TRIM(Stg.Fecha_Ejecucion_OOSS) AS CHAR(10)) || ' ' ||...
View ArticleHow do you maintain long complex SQL scripts? - topic by dsldsl1980
We have quite a few processes that include 10+ files with 20+ scripts per file. It is very complex trying to dig into where the problem might be when you have to dig through a bunch of text files. Is...
View ArticleCreate Trigger At Database Level - topic by usmans
Hi, I am faced with this difficulty. At the start of the month, the client requested me to make a trigger that will fire (an email or insert a row in a table for logging) when ever a "non ETL User"...
View ArticleDatabase access issue - topic by lionelsubedi
I have installed teradata express (server version 13.10) for windows. But the database created by me is not visible in other client Machine(who have installed teradata tools and utilities 13.10). How...
View ArticleTop 10 Databases And Tables According To Size? - response (2) by usmans
Thanks Sachin, I am confused by the formula you used in the upper query ",MAX(CurrentPerm) * (HASHAMP()+1)/1024/1024 AS USEDSPACE_IN_MB " Can you tell me what is being done here? I think that by...
View ArticleDatabase access issue - response (1) by CarlosAL
Lionel: Check the VMware virtual network configuration. You should have chosen 'bridged' connections in order to allow other machines access the VM (and thus the database). HTH. Cheers.
View ArticleHow to retrieve the Relative Record Number? - response (5) by fkeith
Hi, This table is very old and was never setup with a primary key or any other unique identifier so it's possible that some rows have duplicate data. I don't want to accidently update a row that...
View ArticleHow to retrieve the Relative Record Number? - response (6) by KS42982
Sorry, I am confused now. If there are duplicate dates and you afraid of updating the both the dates thinking one could be valide ? As per your initial query, you check for the bad date from...
View Articlerename USI/NUSI - topic by knowledge
Hi, the UPI (NUPI) can be renamed but for the USI (NUSI) i have only to drop it and recreate it with the new name? Thanks
View ArticleHow to retrieve the Relative Record Number? - response (7) by fkeith
Sorry, I don't mean to be confusing. I guess I should clarify what I am trying to accomplish. I need to find the invalid dates and update them to be valid. The table is still in use and new rows added...
View ArticleTeradata Database does not start..!!!!!!!!!! - response (2) by smeastim
I am having the exact same issue with TD Express (non VMWare edition). Could I get some advice as to the statement "The work-around is to direct the various pieces of Teradata software to use a...
View ArticlePerformance of MERGE versus SQL INSERT - response (2) by dnoeth
In your case there's probably no difference, but if it's a bit more complex (e.g. SIs or any kind of calculation/WHERE-condition in the Select part) MERGE tends to be more efficient than Ins/Sel or...
View ArticleTop 10 Databases And Tables According To Size? - response (3) by Fred
SUM(CurrentPerm) is the actual space. MAX(CurrentPerm)*(HashAmp()+1) = MAX(CurrentPerm)*NumberOfAMPs can be regarded as the "effective space" allowing for skew. Both values can be calculated at either...
View Article