2128 | 02 Aug 2013 @ 10:23 PDT | Database | Reply | Remove of Period '.' from my concatnated string. | CONCAT is not a built-in Teradata function.
Instead of oREPLACE better use oTRANSLATE, both are built-in since TD14, before they have to be installed as C-UDFs by a DBA.
Or concat the columns on ... |
2127 | 02 Aug 2013 @ 10:10 PDT | General | Reply | Reg: how to extract a week number from date column | What definition of week do you need? Does it start on sunday or monday?
Do you need the actaul week number or just the date of the first day of a week? What rules do you have regarding the startin... |
2126 | 02 Aug 2013 @ 09:44 PDT | General | Reply | How would you access the table when simultanous loading is going on | You should ask a new question in a new post.
I don't completely understand what you want:
sel min(column_name),max(column_name),count(*) from database.table;
Btw, you don't need h... |
2125 | 02 Aug 2013 @ 09:40 PDT | Database | Reply | UNION Vs MSR | When you read the Explain you'll easily see that your assumption is not correct.
LOCKING applies to all statements within a request.
Dieter
|
2124 | 02 Aug 2013 @ 06:29 PDT | General | Reply | Reg: how to extract a week number from date column | Define "week_number", ISO or other?
Depending on your TD release you might use an existing UDF or create a SQL-UDF.
Or simply join to a calendar table.
Dieter
|
2123 | 02 Aug 2013 @ 12:55 PDT | Aster | Reply | Aster_function load_from_teradata |
Don'T use your target table in load_from_teradata, use a dummy instead.
Teradata Aster Big Analytics Appliance Database User Guide
Teradata-Aster Database Connector
C... |
2122 | 01 Aug 2013 @ 10:29 PDT | Database | Reply | UNION Vs MSR | When you read the Explain you'll easily see that your assumption is correct.
Dieter
|
2121 | 01 Aug 2013 @ 10:24 PDT | Database | Reply | Different text formating to decimal | Leading/trailing blanks/zeroes and thousand separators are never a problem, but the wrong (i.e. european) separators.
What's your TD release?
When you have the oTRANSLATE function installed i... |
2120 | 01 Aug 2013 @ 10:00 PDT | Database | Reply | Search for first substring in string with condition | Hi Peter,
in cases like this it's better to post the real life question instead of an overly simplified one :-)
Seems like you try to clean DBQL data from comments, this will be a tou... |
2119 | 01 Aug 2013 @ 09:44 PDT | Teradata Applications | Reply | newbie question getting started |
Hi Gerald,
did you follow this link on the download page?
http://developer.teradata.com/database/articles/introduction-to-teradata-express-for-vmware-player
In the "Getting ... |
2118 | 01 Aug 2013 @ 01:52 PDT | Database | Reply | Forming Groups which are circular in nature | Hi Sagar,
how do you know that A is the starting point and not B or C?
A ---> B ---> C ---> A
B ---> C ---> A ---> B
C ---> A ---> B ---> C
Dieter
|
2117 | 31 Jul 2013 @ 11:29 PDT | Database | Reply | Search for first substring in string with condition | Hi Peter,
based on the data you provided this should work (i just use POSITION instead of INDEX):
SELECT Seq, Str,
CASE
WHEN POSITION('a' IN Str) = 0
OR POSITION(... |
2116 | 30 Jul 2013 @ 02:42 PDT | Database | Reply | Oreplace function throws error select failed.9134 | Is this the old TDExpress version, 14.00.00.01? This might be an old bug, try the new 14.00.03.02 instead
http://downloads.teradata.com/download/database/teradata-express/vmware
Dieter
|
2115 | 27 Jul 2013 @ 05:35 PDT | Aster | Reply | Aster_function GraphGen with JDBC | When you check the resulting SELECT string you will easily see why it fails.
You concat all those parts of the SELECT statement without additional spaces.
It's recommended not to execute a co... |
2114 | 26 Jul 2013 @ 10:33 PDT | Aster | Reply | Aster_function GraphGen with JDBC | Sorry, but my crystal ball didn't show me any details, so it's your turn:
What did you try and how did it fail?
Dieter
|
2113 | 26 Jul 2013 @ 03:13 PDT | Teradata Studio | Reply | ANSI vs TERA auto commit in Studio v14 | Hi Steve,
in fact there's no BEGIN TRANSACTION in Standard SQL, a transaction is automatically opened by the first statement within a session until it's COMMITed (there's a SAVEPOINT s... |
2112 | 26 Jul 2013 @ 02:53 PDT | Database | Reply | Updating 2nd row values with 1st row | Hi Subbu,
you just have to add this condition to the query i posted in:
developer.teradata.com/blog/dnoeth/2013/07/how-to-spell-a-numeric-value-in-english-words#comment-65238
update tab as t
... |
2111 | 26 Jul 2013 @ 01:29 PDT | Connectivity | Reply | .NET Data provider - Canonical functions support | Hi Sundar,
sorry for the late answer.
With "replace" i ment you could write it directly using Teradata SQL, afaik the .NET provider simply translates all those functions to valid Terada... |
2110 | 25 Jul 2013 @ 05:25 PDT | Database | Reply | problem extracting td-express-14.00.00.01-vm-40gb.zip | Hi Andre,
assuming you downloaded correctly (check the MD5) some programs can't unzip files larger than 2GB, you should try 7-zip: www.7-zip.org/download.html
Dieter
|
2109 | 25 Jul 2013 @ 04:17 PDT | Database | Reply | Can I do select from fallback table? | It's not your choice, it's already done by the system, that's why there's Fallback :-)
When an AMP looses it's vDisk, the system restarts and all queries accessing Fallback-pro... |
2108 | 25 Jul 2013 @ 04:04 PDT | Tools | Reply | when replacing view with comments from SQL assistant, comments get truncated on database | In some cases (in ODBC i think it's based on the "Disable Parsing" setting) all comments are removed by the client tool and/or ODBC, etc. before submitting a query.
What usually work... |
2107 | 25 Jul 2013 @ 01:54 PDT | Database | Reply | Immediately exit a query if a condition is verified | The numbering is based on whatever you want and 0001-01-01 was a monday.
SELECT CURRENT_DATE, (CURRENT_DATE - DATE '0001-01-01') MOD 7;
*** Query completed. One row found. 2 columns ... |
2106 | 25 Jul 2013 @ 01:42 PDT | Database | Reply | Implicit and explicit castings results in a bad plan | Hi Troels,
i doubt that it performed better before the upgrade, all TD release ever (and probably all other DBMSes, too) show a similar behaviour. You simply can't get a good plan for queries ... |
2105 | 25 Jul 2013 @ 01:18 PDT | Database | Reply | Immediately exit a query if a condition is verified | Of course is TD12 ok, but you'll probably not migrate to TD12 as this is still a very old version, there's TD13, TD13.10, TD14 and TD14.10 already :-)
You could tell the IT staff to add so... |
2104 | 24 Jul 2013 @ 01:38 PDT | Database | Reply | Issues with MERGE Query | Hi Saravanan,
if this is "a most business critical process" you should open an incident with Teradata support.
Dieter
|