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

How do I see a Table's partition metadata? - topic by RachelEbert

I'm very new at using Teradata and I have a question about a partitioned table. When I create a partitioned table, how do I verify that the partitions were set up as I intended BEFORE any data is...

View Article


convert string to date format - response (6) by Qaisar Aftab Kiani

SELECT '8/12/2012' COL1, CAST('0'||COL1 AS DATE FORMAT 'DD-MM-YYYY')

View Article


CREATE TABLE Failed. 3933: The Maximum Possible Row Length in the Table is...

In Teradata, the maximum row size is approx 64K bytes. The table definition already contains one column of 62K bytes plus some other columns (which are not commented) and the size of the expected row...

View Article

convert string to date format - response (7) by Arash

Thank you for your response. This worked well when the date is like '8/17/2012', however I also have dates like '8/7/2012' or '10/7/2012'. I.e. each of the day or month can be one or two digits in my...

View Article

Timestamp difference help needed! - topic by ajscatam

The below query has given me alot of trouble as I am new to writing.  I am trying to segment sales calls based on how quickly after the sales call, that the rep "closes/completes" the call.  While I...

View Article


convert string to date format - response (8) by Qaisar Aftab Kiani

You can check the length of the date string and convert it accordingly... SELECT '8/12/2012' AS COL1 , CASE WHEN CHAR_LENGTH(COL1) = 9 THEN CAST('0'||COL1 AS DATE FORMAT 'DD-MM-YYYY') ELSE CAST(COL1 AS...

View Article

Compile Stored Procedures in Batch - response (4) by gsoh

Can we find the referenced object information in SP ?

View Article

Compile Stored Procedures in Batch - response (5) by Qaisar Aftab Kiani

for example?

View Article


CREATE TABLE Failed. 3933: The Maximum Possible Row Length in the Table is...

Also depends upon the max Data Block size set by the DBA since a table row has to completely fit inside a Data Block.

View Article


Compile Stored Procedures in Batch - response (6) by ulrich

If I understand your question correctly the answer would be no: see Carries comment in  http://developer.teradata.com/blog/ulrich/2011/11/extract-and-analyse-da...

View Article

coverting a SQL Server function into a TD SQL UDF - response (1) by td_admirer

Hi experts, Any ideas or suggestions are greatly appreciated.   Thank you.

View Article

How to force duplication of the rows from a small table on all AMPs -...

All, I understand that this discussion is old but my problem is new. I am using Teradat 13.10. I have a large table eg: tablea with NUPI as (col1,col2,col3) . This table has approx 400 million rows....

View Article

convert string to date format - response (9) by Arash

But this still would't work for some dates, e.g. '10/2/2012'

View Article


convert string to date format - response (10) by ulrich

see my last comment on http://forums.teradata.com/forum/general/a-wish-list-for-future-versions...

View Article

convert string to date format - response (11) by Qaisar Aftab Kiani

SELECT '8/12/2012' AS COL1 , CAST(CASE WHEN CHAR_LENGTH(SUBSTRING(COL1 FROM 1 FOR POSITION('/' IN COL1)-1))=1 THEN '0'||SUBSTRING(COL1 FROM 1 FOR POSITION('/' IN COL1)-1) ELSE SUBSTRING(COL1 FROM 1...

View Article


How to force duplication of the rows from a small table on all AMPs -...

Hi Ayush, The reason that your tablea is redistributed is because the join is on UPI and no index. TableA has a three columns NUPI, and in the join condition you are only using one column, so basically...

View Article

convert string to date format - response (12) by Arash

Many thanks for all the help Teradata! It solved my problem.  

View Article


How to force duplication of the rows from a small table on all AMPs -...

Aftab, Thanks for the response and the suggestion. What if I move all the data from the smaller table 'tableb' which has only 15 million rows into another table and create an altogether different...

View Article

How to force duplication of the rows from a small table on all AMPs -...

Hi Ayush, In that case the join will cost more as you are joining two non-index columns. TD will be redistributing the data for both of the tables on the joining columns to make sure that the data is...

View Article

SQL to find Row Count - topic by chand308

Hi,   I am trying to find if there is any way we can find the record count of queries that logged into DBQL with Insert or Update statement types. I tring to see the row count by taking the queryid and...

View Article
Browsing all 14773 articles
Browse latest View live


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