Quantcast
Channel: Teradata Forums - All forums
Viewing all 27759 articles
Browse latest View live

incorrect use of subquery error - response (1) by Fred

$
0
0

Move the calculation of REJ_CNT from the DERV2 subquery to the outer query.
Also note that a CASE expression must return the same data type for all conditions (e.g. the numeric value will be implicitly converted to VARCHAR).


cast date between 2 different data types - response (3) by CarlosAL

$
0
0

Hi.
Check your data for the column jsdate. It seems you may have INTEGERs that don't correspond to licit DATEs.
HTH.
Cheers.
Carlos.

Could you please provide Guidence for learning Teradata SQL - forum topic by ahmed1729

$
0
0

Hi Gurus,

 

 

Could any one please provide guidence for learning Teradata SQL.

 

My problem is i don't know where to start. I know SQL and database concepts from Engineering,

have used SQL (moslty select statements) while doing ETL Testing in 4 years of my career.

 

Now I have a need that i have to learn Teradata SQL completely (including DML,DDL,DCL). 

I started looking into info.teradata.com; they have huge comprehensive information. 

But i could not understand how this site is organized.

 

for example 

view can be learnt from here.

http://www.info.teradata.com/htmlpubs/DB_TTU_15_10/index.html#page/SQL_Reference/B035_1144_151K/CREATE_REPLACE_VIEW.html

but there is no explanation about why views are used.

 

 

Please provide a road map for learning Teradata SQL. Thank you.

 

Forums: 

Teradata Studio Express 15 (mac) slow & laggy - response (5) by egillen

$
0
0

Hi. When I open the terdataStudioExpress.ini file in TextEdit on Mac, I'm able to see the text but when I try to edit the setting I get this warning;
"You don’t own the file “TeradataStudioExpress.ini” and don’t have permission to write to it."
Any advice on how i can change these settings?

Equivalent sentence in Teradata for the Oracle "CONVERT"? - forum topic by juanalfonso

$
0
0

Hello everybody,
I can't find a sentence to make the same as "CONVERT" does in Oracle. For example:

  • select CONVERT('José se comprò un camiôn', 'US7ASCII', 'WE8ISO8859P1') from DUAL; --> Jose se compro un camion
  • select CONVERT('Gta. Pérez Cidón 1; 3º B', 'US7ASCII', 'AL32UTF8') from DUAL; --> Gta. Perez Cidon 1; 3? B

​So I would like to know what I could use to make US7ASCII to WE8ISO8859P1 and US7ASCII to AL32UTF8 text conversions.
Thanks in advance and best regards

Forums: 

RDBMS error 3813: The positional assignment list has too many values - response (1) by 31_resu

$
0
0

A few more things to add, I added in this to the DEFINE to skip the 1st row header of the flat file:
, VARCHAR SkipRowsEveryFile    = 'Y'
, Integer SkipRows         = 1
And that the target table I'm trying to load with the flat file is empty, and all columns defined as VARCHAR, mostly all varchar(255) with an exception of a few at VARCHAR(8000).
Do I need to mod the target table as well as the define schema datatypes to be more of what is ultimately in the production table? Do certain columns like a date, or a number need to be something other than VARCHAR? I'm basically converting a manual FASTLOAD to TPT, and am still trying to follow some of the process of stage load, cleanup and transformation before ins/sel into a production table.
 
 

Windows Defender Trojan detected - install for Studio 15.10.01.01 - forum topic by todddube

$
0
0

I was installing the latest 15.10.01.01 on my windows VM and Defender detected a Trojan on the setup.exe file ? I've since stopped the install and cleaned up the files.  Probably need to have this validated by someone quickly ?
See screen shot I've uploaded on this post.
 
Todd 

Find Only Duplicates - forum topic by abhijeetgupta29nov

$
0
0

Hi All,
I have very big table and it has around 250 columns and this table may have duplicates.
this table does not have any UPI or USI or event primary index also based on many columns.
Now my requirement to find the duplicate so tell me what is the best way to find the dups.
I am aware about GroupBY , ROW_NUMBER, UNION. But I am thinking these all will take more CPU and will hit performance.
And its not feasible to group by on all 250 columns or use row_number on these many columns.
So do we have another approach to finnd only duplicate.
 
Thanks in Advance..
AG

Forums: 

Teradata Studio Express 15 (mac) slow & laggy - response (6) by fgrimmer

$
0
0

@egillen, The TeradataStudioExpress.ini is located in the install directory. You will need admin privileges to modify it. 

Unstable explain plan - forum topic by HateOra

$
0
0

Hi,
We have observed weird behavior in the Teradata environment , Basically some of the SQLs suddenly starts running slow and when checked and compared to the previous explain plan for which it ran with optimal efficiency , there was deviation in the number of steps and even the plan was slightly different.
 
 Did anyone ever faced similar situation? 
 
Thanks

Forums: 

Windows Defender Trojan detected - install for Studio 15.10.01.01 - response (1) by fgrimmer

$
0
0

@toddube, We have run Virus Scan but turned up nothing. We will dig deeper into this!

Unstable explain plan - response (1) by ulrich

$
0
0

Usualy you find this kind of behaviour in case of missing / stale stats.
And the cost based optimizer might decide to chose a different plan in case the demographics change. To an extreme one single additional row might change a plan...

How to modify datatype of a column using alter table command - response (11) by asampson68

$
0
0

K... is there seriously no option in Teradata Studio to simply access the same graphic editor used to create the table in the first place to make such simple changes? I'm evaluating this product as a seasoned MSSQL DBA and I cannot believe such a simple feature is missing (at least not that I can find). You can right-click a database and choose Teradata - Modify and up pops the editor. No such option for Tables. Really??

Find Only Duplicates - response (1) by ulrich

$
0
0

I don't think you will have much other options the the big group by or the row_number() with big partition.
Sorted export and doing the check via an external program will also require huge resources...
That's the downside of of big multiset tables if you require unique rows and don't enforce it during ETL processes...

Equivalent sentence in Teradata for the Oracle "CONVERT"? - response (1) by ulrich

$
0
0

Not sure that this will work in TD - not all character sets are supported. Usually you store international data as unicode.
Did you check the Translate function?
Depending on you DB release you can also check the python script option...
 


Flyout weirdness - forum topic by KerryMcClain

$
0
0

I've got a co-worker who's having an issue in Studio.  When you right click a view or table, and select Teradata> the flyout only contains 3 items (Find Next, Row Count..., SELECT Statement).  When I do the same, my flyout contains 11 items.  We've poked around in the preferences, but weren't able to come up with anything that helped.  Anybody know what's causing this & how to show the full list of items in the flyout?
Thanks!

Logon credentials in BTEQ script not working - response (3) by Ranganathan_Sriraman

$
0
0

check if your login mechanism is LDAP n include it
.LOGMECH LDAP;

Flyout weirdness - response (1) by fgrimmer

$
0
0

Kerry, The right click context menu (flyout) depends on what Perspective you are in. If you are in the Administration perspective, the menu context will relate to administration actions vs the Query Development menu is more for SQl related tasks. There is also a third perspective called Data Transfer. The meny context will also change depending on the selected object in the Data Source Explorer. The perspectives are at the top toolbar. You can click on a perspective to change perspectives. You can reset the views (display windows) within the perspective by choosing the Window>Reset Perspective option.

Increase Performance of ADS - forum topic by lukelake

$
0
0

Hi,
Configuraton of the machine is out of my control. So how can I increase the performance of ADS and other alogorithms please?
Ta
Luke Lake
 
 
 
 
 
 

Forums: 

ERROR: Unable to start viewpoint - forum topic by ab186024

$
0
0

Hi All,
I'm unable to start viewpoint in TD Express 15.10
All services are running fine but can't start viewpoint:

TD-EXPRESS:/opt/teradata/viewpoint/bin # vp-control.sh start

Thu Feb 4 20:42:26 EST 2016  Starting all Teradata Viewpoint services.

Thu Feb 4 20:42:26 EST 2016  tdactivemq: starting...

Starting Teradata ActiveMQ                                                                                                                      done

Thu Feb 4 20:42:26 EST 2016  tdactivemq: started

Thu Feb 4 20:42:26 EST 2016  camalert: starting...

Starting Teradata Alert Service                                                                                                                 done

Thu Feb 4 20:42:26 EST 2016  camalert: started

Thu Feb 4 20:42:26 EST 2016  tmsmonitor: starting...

Starting TMSMonitor                                                                                                                             done

Thu Feb 4 20:42:26 EST 2016  tmsmonitor: started

Thu Feb 4 20:42:26 EST 2016  dcs: starting...

Starting DCS                                                                                                                                    done

Thu Feb 4 20:42:26 EST 2016  dcs: started

Thu Feb 4 20:42:26 EST 2016  viewpoint: starting...

Starting Viewpoint                                                                                                                              failed

Thu Feb 4 20:42:37 EST 2016  ERROR: Unable to start viewpoint.

 

Firefox:

Firefox can't establish a connection to the server at 127.0.0.1

Firefox can't establish a connection to the server at 127.0.0.1/c

Firefox can't establish a connection to the server at 127.0.0.1:80

Firefox can't establish a connection to the server at 127.0.0.1:9080

 

Anyone having the same issue or know to fixe this. Thank you

 

 
 

Forums: 
Viewing all 27759 articles
Browse latest View live


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