978 | 27 Apr 2011 @ 01:44 PDT | Database | Reply | query that shows appointments in two days from "today" | You should post Sybase questions on a Sybase forum :-)
In Teradata it would be an additional WHERE-condition
AND appt_date = current_date + 2
Dieter |
977 | 27 Apr 2011 @ 01:41 PDT | Database | Reply | Executing DDL in a Store Procedure | If the SP is running in Teradata Mode there's probably a BEGIN TRANSACTION submitted by DataStage, you should check the QueryLog.
You could try an END TRANSACTION before the DDLs and maybe anoth... |
976 | 20 Apr 2011 @ 04:05 PDT | Tools | Reply | BTEQ .PACK and deadlock | SERIALIZE sends rows with the same Row Hash to the same session, thus avoids different sessions locking the same value.
ARRAYSUPPORT is exactly the same as BTEQ's PACK. Based on the SQL in DML L... |
975 | 19 Apr 2011 @ 02:18 PDT | Database | Reply | How to import from an Oracle .dmp file? | An Oracle DUMP is proprietary, you might find third party tools to extract the data and produce some flat files.
But i'm not aware of any tool to directly import it into TD.
Dieter |
974 | 19 Apr 2011 @ 02:07 PDT | Tools | Reply | BTEQ .PACK and deadlock | BTEQ INSERTs require a Write lock on a Row Hash level.
When you got 2 rows with the same PI in different sessions both try to place the same lock, if it's a single row insert one session has to wa... |
973 | 19 Apr 2011 @ 01:54 PDT | Database | Reply | Describe table | HELP TABLE is only returning column definition, but SHOW TABLE gives the full CREATE TABLE statement.
Dieter |
972 | 19 Apr 2011 @ 01:51 PDT | Tools | Reply | Regarding Temporary Space | Both user A and user B have exactly the same limits, not the spool/temp space is inherited, just the numbers.
And spool is not based on the owner's perm space, it's all currently not used perm sp... |
971 | 15 Apr 2011 @ 12:15 PDT | Database | Reply | Scripting Primary Keys | Retaining the PK definition was implemented a few month ago, but i don't remember which release/patch level.
I have to admit that i didn't like it, because it changed the output of SHOW TABLE with... |
970 | 15 Apr 2011 @ 12:01 PDT | Database | Reply | Not updating correctly | Nothing wrong, this should work as expected.
Did you double check everything?
Can you provide a script (+ output) reproducing this result?
Then you should open an incident.
Dieter |
969 | 13 Apr 2011 @ 02:14 PDT | Database | Reply | Performance tuning | A table with "a little over 11,000 recs" is small, probably just a single datablock per AMP.
The optimizer will not choose an SI access for such small tables, as it's not faster than a Full Table ... |
968 | 13 Apr 2011 @ 02:04 PDT | General | Reply | Need help on DATE function | DATE '2011-03-31' is a date literal, which must be a single expression.
You have to change the condition depending on the datatype of THIS_END_DATE:
= (:THIS_END_DATE - EXTRACT(DAY FROM :THIS_E... |
967 | 13 Apr 2011 @ 05:55 PDT | Database | Reply | volatile table as select..with data - not loading data | Just add ON COMMIT PRESERVE ROWS, as the default is ON COMMIT DELETE ROWS.
Dieter |
966 | 13 Apr 2011 @ 03:19 PDT | Database | Reply | How to find list of database objects in teradata | Hi Mandar,
of course a dba could revoke all access rights to the system views, but this would be totally stupid :-)
Regarding dbc.tvm (and other system *tables*), it's similar to other DBMSes. ... |
965 | 12 Apr 2011 @ 06:42 PDT | Database | Reply | Help with Count Distribution | Oops, i forgot "=1", this should work now:
select zip_code, count(*)
from
(
Sel zipcode, trackingnumber, eventdatetime
from tracking
-- last event of each trackingnumber
qualify row_number... |
964 | 12 Apr 2011 @ 01:20 PDT | Database | Reply | How to find list of database objects in teradata | Hi Mandar,
every Teradata user will have access to system views in dbc.
It depends on the dba which views are accessible, there are two sets, views with and without an appended X.
These are s... |
963 | 11 Apr 2011 @ 02:26 PDT | Database | Reply | Help with Count Distribution | select zip_code, count(*)
from
(
Sel zipcode, trackingnumber, eventdatetime
from tracking
-- last event of each trackingnumber
qualify row_number()
over (partition by trackingnumber order b... |
962 | 08 Apr 2011 @ 01:19 PDT | Database | Reply | Value compression on timestamp column | If there's both start and end timestamp switching to Period in TD13 will save disk space, too.
UNTIL_CHANGED is stored in a single byte.
Dieter |
961 | 07 Apr 2011 @ 12:57 PDT | UDA | Reply | Difference in output | You need to know about the data to be loaded into that column.
The benefit of LATIN is size, it's a single byte character set whereas UNICODE is implemented as UTF-16 (=2 bytes) in Teradata.
... |
960 | 07 Apr 2011 @ 12:50 PDT | Database | Reply | Reverse string search (right to left)? | I don't know, but it's easy to rewrite:
right(col, 3) -> substring(col from char_length(col) - 2)
In TD13.10 you simply put this into a SQL UDF
Dieter |
959 | 07 Apr 2011 @ 12:49 PDT | Training | Reply | few Ques | The limits for each release are listed in an appendix in the Database Design manual
Dieter |
958 | 07 Apr 2011 @ 12:40 PDT | Database | Reply | Installation Teradata 13 Express - 64 bit Windows OS. | I can't help you with TD Express on 64-bit Windows, i try to avoid Windows as much as possible :-)
The only one i got is a 32-bit XP running in a virtual machine on my Mac.
I think VMWare is th... |
957 | 06 Apr 2011 @ 02:22 PDT | Database | Reply | Integer (with Unix epoch time) convert to timestamp? | See the second last comment at:
http://developer.teradata.com/blog/robg/2011/02/using-interval-to-add-or-subtract-fractional-seconds-to-or-from-timestamp-values
Dieter |
956 | 06 Apr 2011 @ 02:15 PDT | Connectivity | Reply | problem with hibernate and mapped entity | You didn't show the output, but i assume there were some blanks :-)
Of course i assume that the target column is defined as VARCHAR instead of CHAR.
Teradata doesn't append trailing blanks on... |
955 | 06 Apr 2011 @ 02:08 PDT | Database | Reply | Specify datablock size, Percent freespace | You're right, 127 is the default (might be different on the appliance-style systems).
The only way to find out about the default datablocksize is the dbscontrol utility, but only DBAs have acces... |
954 | 06 Apr 2011 @ 01:47 PDT | Database | Reply | Installation Teradata 13 Express - 64 bit Windows OS. | AFAIK TD Express on Windows is 32-bit only.
So you need to run it on VMWare (as an extra benefit you get Teradata on Linux, which is the common Teradata OS nowadays).
Dieter |