2803 | 11 Jun 2014 @ 02:32 PDT | Database | Reply | DBQLFlushRate under 60 sec | I don't know about the exact impact of a more frequent flush, but 600 seconds are just a recommendation and the minimum value is 1 second, so 30 seconds should be ok.
There size of the DBQL sh... |
2802 | 11 Jun 2014 @ 02:08 PDT | Database | Reply | How to read VARBYTE | @HateOra:
Define "readable format" :-)
It's binary, so you (or you application) should know what it's supposed to be, e.g. JPEG, MP3, etc.
|
2801 | 11 Jun 2014 @ 02:05 PDT | Database | Reply | need syntax for for last 2 years data | There were already multile threads on first/last day of month.
first day = dt - (extract(day from dt) -1)
last day = first day of the following month - 1 (or your TD version supports LAST_D... |
2800 | 07 Jun 2014 @ 10:27 PDT | Database | Reply | need syntax for for last 2 years data | Don't use the INTERVAL syntax as it will fail on 2016-02-29, better use ADD_MONTHS instead.
|
2799 | 07 Jun 2014 @ 10:24 PDT | General | Reply | Spool error | Did you check dbc.QryLogStepsV which step failed?
Could you show the DDLs?
I would suggest to switch to a MERGE instead, this might be more efficient.
|
2798 | 07 Jun 2014 @ 10:18 PDT | Database | Reply | Group By an Partition by in a single query | Your query doesn't make sense, as the combination of COL1,COL2,COL3 is unique, so SUM(COL2) OVER (PARTITION BY COL1,COL2,COL3) returns the same as a simple COL2.
Of... |
2797 | 30 May 2014 @ 09:24 PDT | Tools | Reply | BTEQ - show command loses formatting | This might be due to different linebreaks on Unix/windows.
Did you use SHOW TABLEs?
Did you run BTEQ on Linux and open the DDLs on Windows?
e.g. WordPad can deal with Unix linebreaks, but not No... |
2796 | 29 May 2014 @ 08:44 PDT | Database | Reply | optimization of query | "Additional details" means DDL, actual query and Explain...
|
2795 | 28 May 2014 @ 12:00 PDT | Database | Reply | Collecting Sample Stats | The "official" recommendations by Carrie Ballinger can be found here:
Statistics collection recommendations – Teradata 14.0
Teradata 13.10 Statistics Collection Recommendations &n... |
2794 | 27 May 2014 @ 01:06 PDT | Database | Reply | optimization of query | Posting the same question repeatedly will not provide you with any additional answer than the one posted by Raja:
http://forums.teradata.com/forum/general/teradata-pivot-function-equivalence-of-or... |
2793 | 27 May 2014 @ 09:28 PDT | Database | Reply | Statistics Collection Replication | You can run TSET on command line, check the "Teradata System Emulation Tool User Guide" manual, "Chapter 4: Command-Line Interface"
|
2792 | 27 May 2014 @ 04:10 PDT | Database | Reply | Stored Procedure | The CALL step is always the longest because it's the overall runtime, it sums up the runtimes of each SQL within the SP.
In QryLogV you get the CALL step with a RequestNum x, the SQLs within t... |
2791 | 27 May 2014 @ 02:51 PDT | Database | Reply | optimization of query | If your query runs "absolutely fine" without MIN then why do you want to use it? :-)
Without additional details nobody will be able to help.
|
2790 | 27 May 2014 @ 02:29 PDT | Database | Reply | Expanding the column size | Is there any relation to the existing topic? No? So why don't you open a new topic?
where col like '%a%_%a%_%a%'
|
2789 | 27 May 2014 @ 02:24 PDT | Database | Reply | Rights held by DB/User | Press F12 to get the SQL History window where you see all SQL submitted by TD Administrator.
|
2788 | 25 May 2014 @ 10:23 PDT | Database | Reply | Avoid all rows scan on partial varchar access | Is there any rule how to extract info from that column like "check the first 3 chars"? Some kind of intelligent key compsed from subparts? Them splitting the key into those subparts and a... |
2787 | 25 May 2014 @ 10:11 PDT | Database | Reply | How display list of foreign key constraints, including WITH [NO] CHECK OPTION setting? | There's no way to get that info from the dbc tables/views, this is only stored in the table header :-(
|
2786 | 25 May 2014 @ 10:08 PDT | General | Reply | Installation of Teradata on Linux | Hi Achyuth,
yes, Teradata only runs on SLES.
For pricing there's
http://www.teradata.com/brochures/teradata-workload-specific-platform-family/
|
2785 | 25 May 2014 @ 06:44 PDT | Database | Reply | Why is this statistic recommended? | Hi Joe,
this might be due to better row estimations, is it a 1:many or many:many join.
Based on you narration you're not joining on the UPI, which is known to optimizer.
|
2784 | 25 May 2014 @ 06:42 PDT | Connectivity | Reply | teradata and password expired! | When you simply look at the "ODBC Driver for Teradata User Guide" you'll find an option for SQLDriverConnect and SQLBrowseConnect() named "PWD2":
"If PWD2... |
2783 | 25 May 2014 @ 06:33 PDT | Database | Reply | Statistics Collection Replication | What's your TD release?
You can extract stats from prod and re-apply them to DR using the System Emulation Tool (TSET)
In TD14 you can also simply catch the output of a SHOW STATS V... |
2782 | 22 May 2014 @ 11:38 PDT | Database | Reply | String pattern match using regular expressions | Hi Aarsh,
you should clearly specifiy what you want. In your first example there's a number 15419928832 which is not within the expected range :-)
So you need exactly 10 digits, are you ... |
2781 | 22 May 2014 @ 01:48 PDT | Database | Reply | SUBSTRING in ODBC Vs Teradata.Net mode | Hi Sau,
SUBSTRING(COL1, 0,10) is ODBC syntax, based on a setting within the ODBC driver options it's automatically rewritten to valid Teradata SQL:
SUBSTRING(COL1 FROM 1 FOR 10) -- ANSI Sta... |
2780 | 22 May 2014 @ 12:13 PDT | General | Reply | Merge Statement for inserts only | Insert/Select might perform a bit faster, but needs a spool, while Merge probably doesn't need spooling (check Explain).
For an insert only Merge you usually add a dummy condition:
MERGE IN... |
2779 | 22 May 2014 @ 12:03 PDT | Database | Reply | String pattern match using regular expressions | Hi Aarsh,
WHERE CAST(REGEXP_SUBSTR(col, '[0-9]+') AS BIGINT) BETWEEN 5419928000 AND 5419928999
If you care about a leading sign you can add it to the regex: '[+-]?[0-9]+'
|