2453 | 18 Dec 2013 @ 11:59 PST | Database | Reply | Spool space issue | According to Standard SQL FROM is processed before WHERE in theory, but all optimizers try to push the WHERE-conditions into the join, thus they're are practically done before or during th... |
2452 | 18 Dec 2013 @ 01:54 PST | Teradata Studio | Reply | Unable to parse simple query: version 14.10.01 | There's no YEAR function in Teradata or Standard SQL.
Depending on some ODBC settings this might still run (the ODBC driver replaces it with valid Teradata SQL), but it will fail if when it... |
2451 | 18 Dec 2013 @ 09:07 PST | Database | Reply | Joining tables on fields with varying lengths | I would strongly recommend to change the join-condition to a less resource-consuming and easier-to-understand
INNER JOIN TABLE B ON A.ACCT_NB = TRIM(LEADIMNG '0' FROM B.ACCT_NUM)
In fac... |
2450 | 18 Dec 2013 @ 06:30 PST | Database | Reply | Joining tables on fields with varying lengths | You don't have to care about CHARs or VARCHARs, because trailing spaces simply don't matter, e.g. '0123' and '0123 ' compare equal.
But the leadi... |
2449 | 17 Dec 2013 @ 09:47 PST | Analytics | Reply | Why FastLoad Does not support NUSI ? | IMHO there's no need for FastLoad to support NUSIs as the target table must be empty and you can easily add an index after load.
Regarding MLoad: you can load 5 tables with 32 NUSIs each using... |
2448 | 17 Dec 2013 @ 09:40 PST | Connectivity | Reply | Mac/OSx TTU or CLI Target or Release Dates? | Hi Michael,
i just checked the patch server and found a "MacOSX Suite" with an availability date of yesterday :-)
|
2447 | 17 Dec 2013 @ 08:24 PST | Database | Reply | Multiple Grand Totals | Hi Bill,
almost any reporting tool should be able to do what you want, but why changing it when it suits you?
I just wondered because such BTEQ reports used to be printed directly on that nice gr... |
2446 | 17 Dec 2013 @ 08:18 PST | Database | Reply | ObjectUseCountCollectRate | All dbscontrol options are described in detail in the Utilities Volume 1 manual:
Changes Take Effect
After the DBS Control Record has been written.
|
2445 | 16 Dec 2013 @ 11:24 PST | Teradata Applications | Reply | Limit on a table | @Raja:
Temporal will not help in that case as deleting rows will not remove them from the table, but update them to closed.
@Sankalp:
How do you determine which rows to be moved? I... |
2444 | 16 Dec 2013 @ 11:00 PST | Database | Reply | Multiple Grand Totals | Hi Bill,
there's only one grand total.
But when you need multiple aggregates on the same level you can simply delimit them by comma:
with sum(RACK_UNITS)(title 'Total Rack Units:')... |
2443 | 15 Dec 2013 @ 11:58 PST | Database | Reply | Delete or Drop a table if it already exists | You can't do that in SQLA 12, you have to use BTEQ instead or maybe unchecking "Stop query execution if an SQL error occurs" in the query options helps.
|
2442 | 15 Dec 2013 @ 11:55 PST | Database | Reply | Why teradata does not give access to statistics views in dbc by default? | What is your TD release?
You can always get detailed stats for a table using HELP STATS table plus HELP STATS table COLUMN xy up to 13.10 and SHOW STATS VALUES ON table in 14.
Which system views ... |
2441 | 15 Dec 2013 @ 11:51 PST | Database | Reply | How to go last week of end date ? | Did you reading/answer the old post instead of opening a new one?
Why do you use a very old version, 12.0.0.03, which is definitely no production system?
dayofweek is based on a week starting on ... |
2440 | 15 Dec 2013 @ 10:50 PST | Database | Reply | FastLoad lock Type | It's not an exclusive lock, but a special lock in the table header preventing any SQL access until it's release by an END LOADING.
|
2439 | 15 Dec 2013 @ 10:46 PST | Database | Reply | Syntax error: expected something between '(' and the 'current_date' keyword. | When you're on TD13.10 you can use a SQL UDF, otherwise simply use the calculation:
REPLACE FUNCTION WEEK_BEGIN(cdate DATE)
RETURNS DATE
SPECIFIC week_begin_DA
RETURNS NULL ON NULL INPUT
... |
2438 | 15 Dec 2013 @ 10:39 PST | Analytics | Reply | Why UV in MLOAD? | Hi Sankalp,
of course the UV table is needed and any errors in this table will not pause the job (ERRLIMIT is only for the ET table).
This is a cut&paste from the MLoad manual:
The sec... |
2437 | 15 Dec 2013 @ 10:32 PST | Database | Reply | How to grant UPDATE to DBC on DBC.IDCol Tables? | Hi Kawish,
all important system tables are secured, nobody including DBC has rights to INSERT/UPDATE/DELETE/DROP them. This is done to protect the system from getting damaged.
There's no... |
2436 | 13 Dec 2013 @ 05:59 PST | Database | Reply | vproc types | Hi Raja,
may i know what is the 6th type?
I thought there are only 5 :-)
AMP, PE, GTW, RSG and TVS.
Type 6 and 7 are currently not used.
|
2435 | 13 Dec 2013 @ 04:25 PST | Database | Reply | Delete or Drop a table if it already exists | Hi koushiksaha83,
the article is called "What's new in Teradata SQL Assistant 13.10" and you're SQLA version is 12 :-)
|
2434 | 13 Dec 2013 @ 04:22 PST | Database | Reply | find Percentage |
select
apple, 100 * count(*) / sum(count(*)) over ()
from a
group by apple
|
2433 | 12 Dec 2013 @ 02:31 PST | Analytics | Reply | Round Up and Round to Nearest? | Hi jprakash025,
did you actually read the answer to your post two days ago asking the same question?
|
2432 | 12 Dec 2013 @ 09:51 PST | Database | Reply | Syntax error: expected something between '(' and the 'current_date' keyword. | There's no dayofweek function in SQL, you probably run this query from SQL Assistant using ODBC and the ODBC driver replaced it with valid Teradata SQL, but this is not done in Derived Tables o... |
2431 | 10 Dec 2013 @ 05:26 PST | Database | Reply | UTF -8 or UTF-16? | Hi Nishant,
UNICODE in Teradata is always stored as UTF-16, i.e. two bytes per character.
In 13.10 there's COMPRESS USING TransUnicodeToUTF8 DECOMPRESS USING TransUTF8ToUnicode to change inte... |
2430 | 07 Dec 2013 @ 02:19 PST | Database | Reply | Default date column not aligning in xcel | Hi uco,
the sample data is not from a file created by BTEQ, a FORMAT 'DD/MM/YYYY' will never create single digit month/day values.
When you import the data into Excel it will automat... |
2429 | 07 Dec 2013 @ 02:13 PST | Analytics | Reply | Merge Joining on non-indexed column. | There's no situation where a Merge join is unavoidable :-)
Merge Join is only one possible way for the optimizer to do a join, there are always others like Product or Hash Join.
But stats on ... |