Quantcast
Channel: Teradata Forums - Database
Browsing all 14773 articles
Browse latest View live

Distinct Logic - response (2) by Raja_KT

Hi, Can you please explain the logic how do you arrive at the output so that it will be easier put forth? How do you get ABC Y Y, because I can see ABC in four places. Cheers, Raja

View Article


recursive table - response (3) by bikky6

This is the output of my recursive query.My strong point is Is it necessary to give any control like LEVL<10 like that or Will it stop based on the data.Please give me clarity. MERGE_ID REM__ID...

View Article


Whom can help me explain the ‘46.06:18:08’ time. - response (7) by gerardo

when you wrote SELECT CAST( '11:10:25' AS TIME(0)) - CAST('11:00:33' AS TIME(0)) you are missing HOUR TO SECOND You should write  SELECT CAST( '11:10:25' AS TIME(0)) - CAST('11:00:33' AS TIME(0)) HOUR...

View Article

Whom can help me explain the ‘46.06:18:08’ time. - response (8) by M.Saeed...

Hi gerado, This query is not working for me, Have you tested it on your machine? 

View Article

Distinct Logic - response (3) by M.Saeed Khurram

Hi Bikky, Hope the following query will dolve your problem, Or at least give you a start. CT TD3471.table1(name1 VARCHAR(10),name2 VARCHAR(10)); INS INTO TD3471.table1 VALUES('ABC','XYZ'); INS INTO...

View Article


recursive table - response (4) by M.Saeed Khurram

Bikky, As you do not have any other condition except the join condition. on the basis of information you provided, I belive you should add WHERE LEVL<10 to avoid any unexpected recursion. 

View Article

MVC generated out of V14.00 statistics - forum topic by r.sagner

The "SHOW STATISTICS VALUES COLUMN col ON db.tab; " shows the Biased values of the statistics. In my opinion this is exactly a very good list for multi value compression. The following scripts should...

View Article

MVC generated out of V14.00 statistics - response (1) by M.Saeed Khurram

Hi Roland, Thank you for sharing your work, It would be great if you share your thaughts in a blog in Developer Exchange. Good Luck! 

View Article


MVC generated out of V14.00 statistics - response (2) by r.sagner

Unfortunately version lacks of two facts: * Biased values are truncated to 26 Characters in the "SHOW STATISTICS VALUES COLUMNSHOW STATISTICS VALUES COLUMN" * Script fails when column is part of multi...

View Article


How to use CASE statement when having multiple hierarchy picks - forum topic...

Hello Experts, I am  fairly new to Teradata and need help  to sort my issue. I have a scenario where one line item has multiple status_codes. there is a hierarchy  preference set for these...

View Article

How to use CASE statement when having multiple hierarchy picks - response (1)...

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_CODE WHEN 'A' THEN 1 WHEN 'U' THEN 2 WHEN '1'...

View Article

Distinct Logic - response (4) by dnoeth

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, 'N' AS Name2 FROM table1...

View Article

Teradata Data Types to Oracle - response (217) by DIECORP24

Hi Santanud, What ODBC Oracle version are you using? 

View Article


Teradata BTEQ - Error: Invalid logon! - forum topic by NormaBP

Hi!! Help please!!! I Install TDExpree14.10_Sles11_40GB, how to logon dteq??  .logon dbc/dbc, dbc; ***Error: invalid logon! .logon 127.0.0.1/dbc,dbc; ***Error: Invalid logon! Tkns!!  Forums: Database

View Article

Teradata sql grouping - forum topic by uco

Hi   I have source data froma a table in the following way  Source  Data table  Date_key          Location       Vendor           call_cnt 2013-09-09      Highlands         att               1500...

View Article


Teradata BTEQ - Error: Invalid logon! - response (1) by dnoeth

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.

View Article

Why I do not see all the databases in Teradata Studio - response (6) by pmehrotr

Thanks a lot. What do you mean connecting using DBC. Do you mean do not use LDAP.

View Article


Stroed Procedure:Executing succesfully without errors while calling but the...

Hi, I have a stored procedure to drop the join indexes when databasename and indexname are passed as parameters. REPLACE  PROCEDURE db1.DROP_JI( IN databasename VARCHAR(130), IN jiname VARCHAR(130))...

View Article

Why I do not see all the databases in Teradata Studio - response (7) by...

I meant to login using DBC user. loging in using DBC will confirm either it is an issue with the connection or it is an access rights issue hiding other schemas. 

View Article

Stroed Procedure:Executing succesfully without errors while calling but the...

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't you check in dbc.TablesV for the JI name...

View Article
Browsing all 14773 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>