2478 | 27 Dec 2013 @ 05:02 PST | Database | Reply | extending MLPPI tables | Before TD14 there's a specific rule for changing the definition of sub-partitions on a populated table:
You can only add a partition when you also drop a partition, i.e. the number of partitio... |
2477 | 27 Dec 2013 @ 04:48 PST | Database | Reply | Table Partition | Did you try to run you query on a table with data in it? According to your explain the table is empty.
|
2476 | 27 Dec 2013 @ 04:45 PST | Database | Reply | Teradata Dbase Error:5758 | Hi Swathi,
why do you need all those TRIMs? Do you have leading blanks in your data or non matching data types?
With TRIM you're simply not matching the PI of the target table.
|
2475 | 27 Dec 2013 @ 04:42 PST | Database | Reply | Fetching the data for thelast quarter dates | What's your TD release?
In 14 there's Oracle's TRUNC:
WHERE datecol BETWEEN TRUNC(ADD_MONTHS(CURRENT_DATE,-3), 'Q'), TRUNC(CURRENT_DATE, 'Q') - 1
Before it's ... |
2474 | 27 Dec 2013 @ 04:35 PST | Database | Reply | Inserting to a table incrementally | Why do you want to load in bunches of 100.000 rows?
This will be (potentially much) slower than loading all rows in a single step.
|
2473 | 24 Dec 2013 @ 06:42 PST | Database | Reply | Does one need unicode compression in Tredata 14.0 | Hi Raja,
this only relates to LATIN vs. UNICODE, of course they hash differently and thus you can't get PI-to-PI joins. But algorithmic compression doesn't change the charset, only the sto... |
2472 | 24 Dec 2013 @ 04:46 PST | Database | Reply | Does one need unicode compression in Tredata 14.0 | Hi Khurram,
TransUnicodeToUTF8 works for any UTF16 character, but if there's a lot of Latin chars it simply compresses better:
Most of the Latin chars are stored in one byte in UTF8 while som... |
2471 | 24 Dec 2013 @ 04:43 PST | Analytics | Reply | Call a macro from a stored procedure? | Hi Ratnam,
yes, if it's the only statement.
Of course you could have tried that easily on your own :-)
|
2470 | 24 Dec 2013 @ 03:47 PST | Database | Reply | Top Function | Hi Ratnam,
SAMPLE (RANDOMIZED ALLOCATION) returns a truely random result while TOP n (without PERCENT/ORDER BY) simply returns the first n rows found on a single AMP (or multiple AMPs). SAMPLE is ... |
2469 | 23 Dec 2013 @ 10:01 PST | Tools | Reply | TPT API, TimeStamp(0) | There's no binary represenation for TIMESTAMPs, it must be a CHAR.
"TPT API Programmer Guide", chapter 9 "Converting TIME, TIMESTAMP, and INTERVAL Data Types":
http://www.... |
2468 | 22 Dec 2013 @ 03:55 PST | Database | Reply | Dual Systems/fallback/replication? | Hi Nishant,
"Fallback" is definitely wrong, this is just protection from hardware failure.
Of course "Journal Tables" might be used to rollback from a wrong load, but this is ... |
2467 | 22 Dec 2013 @ 03:33 PST | Database | Reply | ON and WHERE clause for Joins | In the SQL DML manual there's a lot about placing Outer Join conditions in ON vs. WHERE.
This also includes a rewrite of an old article from the Teradata Review magazine as a case study. ... |
2466 | 21 Dec 2013 @ 07:33 PST | Database | Reply | Does one need unicode compression in Tredata 14.0 |
Only version 14 can store UTF8 on disk
This is obviously wrong.
But the first two sentences are correct :-)
|
2465 | 21 Dec 2013 @ 04:24 PST | Tools | Reply | BTeq date issue | What's the existing format?
You can see it when you do a SHOW TABLE or a SELECT FORMAT(tablename.Date_issue);
|
2464 | 20 Dec 2013 @ 08:28 PST | Tools | Reply | BTeq date issue | A DATE doesn't have a format, it's just formatted for display, internally it's an integer.
If you run that query in SQL Assistant there's a setting how to format dates, BTEQ doesn&... |
2463 | 20 Dec 2013 @ 06:32 PST | Database | Reply | Finding the table size alone? | There's a quite unknown COLLECT DEMOGRAPHICS command (to be used by Index Wizard or Visual Explain) which estimates the size of each subtable per AMP.
You don't need a full Query Capture D... |
2462 | 19 Dec 2013 @ 08:41 PST | Connectivity | Reply | Connecting to Teradata.net | Hi Raja,
WITH SUM is not an OLAP query, it's a proprietary syntax for BTEQ reports which doesn't return a tabular result set and therefore can't be displayed in an answer set grid.
|
2461 | 19 Dec 2013 @ 07:57 PST | Database | Reply | joining two tables using SUBSTR | This will also return a row for 'CH' matching 'CHG', you have to change it slightly:
SEL * FROM tb1 a , tb2 b
WHERE ','||b.cntry_code||',' LIKE '%,'||TRI... |
2460 | 19 Dec 2013 @ 07:49 PST | Database | Reply | Account Strings - AG | Hi Geeta,
i don't know if there's a limit, but i don't think so.
Hopefully there's a pattern, so you can easily map account strings to PG based on wildcards in TDWM.
|
2459 | 19 Dec 2013 @ 07:43 PST | Connectivity | Reply | Connecting to Teradata.net | Hi Raja,
the create works for me using SQL Assistant plus dotNet.
If it's a SLECECT AND CONSUME it must be a plain select without any WHERE/JOIN/GROUP/ORDER. Without CONSUME you can do whatev... |
2458 | 19 Dec 2013 @ 05:54 PST | Database | Reply | two similar tables - very different import speed | Each record is less than 500 bytes and adding 10 bytes shouldn't cause any difference, strange. Without more info it's hard to say what caused this. Is this repeatable?
300.000 rows in 30 ... |
2457 | 19 Dec 2013 @ 05:32 PST | Connectivity | Reply | Connecting to Teradata.net | Hi Raja,
if you don't show the actual query it's hard to tell, but it looks like you wrote CREATE QUEUE TABLE xxx instead of CREATE TABLE xxx, QUEUE
|
2456 | 19 Dec 2013 @ 05:28 PST | Database | Reply | Spool space issue | You should check the spool usage of an individual query based on QueryLog.
Those functional users like BO normally get an insane amount of spool to be able to run multiple reports in paralle... |
2455 | 19 Dec 2013 @ 03:15 PST | Database | Reply | Lock row for access : In insert-Select | Hi Binayak,
as there's no actual lock on a view it's always passed to the table. Simply Explain your query.
|
2454 | 19 Dec 2013 @ 12:02 PST | Database | Reply | Question on Stored procedure | Q1: of course. CREATE PROCEDURE is not part of the default rights granted to a user, it must be granted explicitly by the DBA.
Q2: of course not. There are seperate rights for all CREATEs
Q3: yes... |