Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

Target row updated by multiple source rows. - response (2) by WAQ

Note:- for COL1,COL2 combination in where clause i am getting single row Doesn't look from the error.

View Article


BTEQ is not returning proper error code when run file is not present. -...

ERRORCODE is the database error code from the most recent database request - and since the last database request was a successful LOGON, ERRORCODE is zero. Perhaps you want to use ERRORLEVEL, which is...

View Article


Conversion of oracle query into teraadata query(Row id is not working) -...

Hi All, I have an issue while converting oracle query into teradata.below is the oracle query, select table1.productid,table2.productid,table2.max_rowid from table1,table2 where...

View Article

Conversion of oracle query into teraadata query(Row id is not working) -...

What is this query supposed to return? Seems to be a single row per productid, but as ROWID without unique ordering is not reliable there's no guarantee for a consistent result set. Or are table1 and...

View Article

Conditional Rollback (Oracle PLSQL to TD SP) - response (1) by dnoeth

Hi Eshan, in your example you simply remove the COMMITs and the WHEN OTHERS THEN ROLLBACK, because any error automatically rolls back. Of course you can simply avoid the division-by-zero error: SELECT...

View Article


Responsibility – Definition FREESPACE - response (1) by dnoeth

I wouldn't say it's very important, most environments don't change it at all (they keep the default of 0 from the dbscontrol setting). Only in rare cases for specific types of loading there might be a...

View Article

Date variable to be applied to all date prompts - Teradata - response (1) by...

Check the SQLA help topic "Parameterized Queries". In SQL Assistant you can define a parameter and use it multiple times within a request.  select date '?dateparam', ... from tab where datecol between...

View Article

Skew Calculation At Database Level - response (2) by sachin.sebastian

No. It will not be correct to check Skew at Database level. Skew factor makes sense at a Table level and not at Database level, because Skew is determined by the PI chosen for each table and the data...

View Article


how to logon to bteq - response (13) by laeeq.ahmad@teradata.com

@Cheeli,   Teradata is listening to port 1025. You need to make sure that none of other application is using the same port.   I believe the error ("ODBC HY00: WSA E HostUnreach: The Teradata server...

View Article


Calculate week of year when Monday is the first day of week - topic by UM

Hi, I can get week of year from sys_calendar but it assumes sunday as the first day of week. How can I calculate week of year if I consider Monday to be the first day of week Thanks!

View Article

Amp CPU time and query optimization - response (2) by dsldsl1980

Ok, thank you!

View Article

DBQL SQLTextInfo 3577: row size or sort key size overflow - response (4) by...

Hi Dieter, I am facing a similar issue. I have 2 tables A and B and they each have 60 columns each. When I run the below statement in Teradata Studio, I get the error 3577: row size or sort key size...

View Article

Date variable to be applied to all date prompts - Teradata - response (2) by...

Thanks Dieter!!   Exactly what I needed, Thanks How do I add thanks on this site for your help?   Peter  

View Article


Delete or Drop a table if it already exists - topic by DataHead

Hi, In order fro my code to run, I want to ensure my tables are clear before the query runs again & adds extra data.   So I want to add some code like "If Table_x' Exists, Then Drop Table_x,...

View Article

Date variable to be applied to all date prompts - Teradata - response (3) by...

Just one more question Dieter,   I read the Parameterised Queries stuff in the Help menu, checked the checkbox etc. I cant see a place where I actually name a variable a certain date? Did you mean add...

View Article


Provisioning more space - topic by tdgi

This is a "theory" question on how it's done, since I know it doesn't work that way on Teradata Express, but since I'm curious about the details...   In "real" Teradata, what happens when the end-user...

View Article

Delete or Drop a table if it already exists - response (1) by Qaisar Aftab Kiani

SQL Assistant only supports SQL statements and IF-ELSE are not SQL commands. I don't think you can do this in SQLA, BTEQ scripts are the options where you can implement this functionality!

View Article


Calculate week of year when Monday is the first day of week - response (2) by...

Hi, Below SQl will help you to get week of year for week starting on monday. SEL calendar_date, (day_of_year - (day_of_calendar -1) mod 7 + 6) / 7 as week_of_year FROM sys_calendar.calendar where...

View Article

Teradata Table Naming - response (11) by casablanca

I agree with Alexander Davis. The limitations cause extra non-value add work and they should be changed. Dieter, thanks for the information posted.  However, it seems strange that compatability with...

View Article

Delete or Drop a table if it already exists - response (2) by WAQ

In order fro my code to run, I want to ensure my tables are clear before the query runs again & adds extra data Why don't you just DELETE the existing data then?

View Article
Browsing all 14773 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>