2428 | 07 Dec 2013 @ 02:03 PST | Database | Reply | TD Lock Upgrade and Downgrade Options | Hi Santanu,
there's no automatic downgrade. When you request a READ lock you get a READ lock, the session will be blocked until the other session commits.
You can check if the request will be... |
2427 | 06 Dec 2013 @ 01:57 PST | Database | Reply | Default date column not aligning in xcel | This is probably because Excel can't handle dates before 1900, regardless of how it's formatted. You can only use that date as a string.
|
2426 | 06 Dec 2013 @ 01:14 PST | Database | Reply | Stroed Procedure:Executing succesfully without errors while calling but the output is not being affected | It's working using dbc.TableSize, but it's not the best way to get that info. TableSize returns multiple rows per table while it's only a single row in TablesV
|
2425 | 05 Dec 2013 @ 11:59 PST | Database | Reply | Stroed Procedure:Executing succesfully without errors while calling but the output is not being affected | The SP is running in ANSI mode and there's no COMMIT within the SP.
Do you COMMIT after the CALL?
CALL db1.DROP_JI('DB1','INDEXNAME');
COMMIT;
And why don... |
2424 | 05 Dec 2013 @ 02:51 PST | Database | Reply | Teradata BTEQ - Error: Invalid logon! | When you use BTEQ in interactive mode you can't specify the password in your logon string, this is just for batch mode.
Just use .logon 127.0.0.1/dbc and BTEQ prompts for the password.
|
2423 | 05 Dec 2013 @ 09:34 PST | Viewpoint | Reply | Users Online at a particular time duration | Hi Mohammad,
what do you mean by "online"?
Logged on to your Teradata system?
dbc.LogonoffV keeps the history of sessions, there's a row with LogonDate/LogonTime for ... |
2422 | 05 Dec 2013 @ 09:03 PST | Database | Reply | Distinct Logic | Seems you want an indicator if a Name exists in Name1 or Name2, but your result doesn't match.
SELECT name, MAX(Name1), MAX(Name2)
FROM
(
SELECT name1 AS name, 'Y' AS Name1, &... |
2421 | 05 Dec 2013 @ 08:55 PST | Database | Reply | How to use CASE statement when having multiple hierarchy picks | Put a filter using ROW_NUMBER in a Derived Table and join to it:
SELECT *
FROM tab
QUALIFY
ROW_NUMBER()
OVER (PARTITION BY LINE_ITEM
ORDER BY
CASE STATUS_... |
2420 | 04 Dec 2013 @ 12:12 PST | Database | Reply | Whom can help me explain the ‘46.06:18:08’ time. | This strange value is only returned when you have an ODBC connection, so it seems to be a SQLA or ODBC bug:
SELECT
CAST(-1008 AS SMALLINT FORMAT '99:99:99'),
CAST(-1008 AS ... |
2419 | 04 Dec 2013 @ 11:36 PST | Database | Reply | Query to find tables with no stats defined/old statistics | Hi Nilesh,
if you need to get that info you have to talk to your DBA to grant access.
|
2418 | 02 Dec 2013 @ 07:47 PST | Database | Reply | Need guidance | Can you share the definition of both fact tabe and JI, the MERGE and explain?
What's the spool size assigned to your load user?
|
2417 | 02 Dec 2013 @ 07:45 PST | Database | Reply | Need help getting rid of parcel length error in BTEQ script | Hi Mike,
yes, REPEAT repeats the following SQL-command. In your case it run the ";" 230 times :-)
.REPEAT *
EXECUTE DBADMIN.ShowDatabase (:DatabaseName);
There's "=n... |
2416 | 01 Dec 2013 @ 07:55 PST | Database | Reply | Conversion of Time to INTERVAL | Hi Khurram,
simply change the resulting type:
Converted_Time - time '00:00:00' hour to minute
|
2415 | 01 Dec 2013 @ 05:08 PST | Aster | Reply | Aster Demo on running on OS X | Hi Vinay,
could you please elaborate?
I use VMWare Fusion on my Mac and never had problems running a Teradata or Aster VM.
Should be similar with Parallels or Virtual Box, but you probably have ... |
2414 | 01 Dec 2013 @ 05:01 PST | Database | Reply | Split the dates bi-weekly | I don't get what your exactly trying to achieve.
"run my job bi-weekly": scheduling a job on Unix or retriving rows in a SELECT?
"nearest monday": based on what, first of ... |
2413 | 01 Dec 2013 @ 04:53 PST | Cloud Computing | Reply | TD-14 VM Ware Issue | Hi Khurram,
does the GUI start when you enter a "init 5" after logging on a root on command line?
|
2412 | 01 Dec 2013 @ 04:52 PST | Database | Reply | Error 7628 happened in TRANSACTION mode whiling trying to insert a table that has "WITH CHECK OPTION" foreign key≈ | Hi Khurram,
within the transaction the row will be visible without commiting it, the error must be caused by something else.#
@zhiyanshao:
What do you mean by TRANSACTION mode?
ANSI vs.... |
2411 | 01 Dec 2013 @ 04:41 PST | Data Modeling | Reply | PPI VS NPPI | Hi Khurram,
afaik there's no such term, UPI/NUPI/USI/NUSI/VOSI/NoPI/PPI/MLPPI/CPPI/JI/AJI/HI are more than enough :-)
I never use NPPI, it's just the same as PI, a table which is not part... |
2410 | 01 Dec 2013 @ 04:35 PST | Database | Reply | Conversion of Time to INTERVAL | Hi Khurram,
TIME -TIME results in an interval:
Converted_Time - time '00:00:00' hour to second(0)
|
2409 | 29 Nov 2013 @ 02:03 PST | Database | Reply | Regarding StatementText in accesslog | Hi Praveen,
if this was an ANSI session it might be due to case sensitivity, but based on explain you seem to run in Teradata session mode.
Are you shure that Access Logging is switched on for th... |
2408 | 28 Nov 2013 @ 07:41 PST | Database | Reply | Regarding StatementText in accesslog | Your WHERE-condition on LogonDate is not valid, 11/28/2013 is not a DATE, it's a numeric calculation resulting in an INTEGER 0.
sel StatementText
from dbc.accesslog where UserName= ... |
2407 | 28 Nov 2013 @ 05:48 PST | Teradata Applications | Reply | FAST LOAD FAILING | FastLoad doesn't support concatenation, you need to use the MultiLoad protocol for that.
|
2406 | 28 Nov 2013 @ 05:40 PST | Database | Reply | Rounding hour and minute from time stamp to the closest hour | Hi Ozge,
ROUND always results in a DATE (blame Oracle), so you can't use it in that case.
What's the datatype of solved_at_ts and what datatype do you need as result? When you add 30... |
2405 | 28 Nov 2013 @ 04:04 PST | Database | Reply | Re-writing a query interms of performance | There's no PARTITION stats on KEY_T and no re-collection for three weeks.
The UPI on T_CUST does not provide a better distribution than a NUPI (FIRST_DT ,VISITOR_ID), but prevents a fast ... |
2404 | 28 Nov 2013 @ 03:17 PST | Database | Reply | Re-writing a query interms of performance | The explain looks like expected, redistributing CUST_T and then a local join to KEY_T.
There's "no confidence" for join and aggregate (which stats are collected?), if the actual numb... |