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

Length function counts only trailing spaces in a string - response (1) by...

Strange:  BTEQ -- Enter your SQL request or BTEQ command: SELECT LENGTH(' VENKAT ') "Length"; *** Query completed. One row found. One column returned. *** Total elapsed time was 1 second. Length...

View Article


Search for first substring in string with condition - forum topic by...

Any help on string search. No problem if recursive. I do not know how to do the following. I want to find the first position of “b” in the string where “b” is not between 2 “a”’s. The select statement...

View Article


Search for first substring in string with condition - response (1) by ulrich

which version are you on?

View Article

Search for first substring in string with condition - response (2) by ulrich

performance depend on your data volumes but at least this does the trick with your data ;-) I used the volatile table to make it a bit more clearer  First splitt your data into chars and keep only  the...

View Article

Query Tuning:PPI not being used in select - forum topic by teradatauser2

Hi, I have a query : sel colw,col2 .. from tab1 inner join tab2 on tab1.cola=tab2.colb and tab1.date1 between tab2.date1 and tab2date2 Here tab1.date1 is a PPI column. Question : Here although my date1...

View Article


Search for first substring in string with condition - response (3) by dnoeth

Hi Peter, based on the data you provided this should work (i just use POSITION instead of INDEX): SELECT Seq, Str, CASE WHEN POSITION('a' IN Str) = 0 OR POSITION('a' IN Str) > POSITION('b' IN Str)...

View Article

Different text formating to decimal - forum topic by joop_kpn

We recently started with a teradata database, before TD we worked mainly with MS-sqlserver and Oracle databases. Now I have a small challenge, so it looked like  We receive often small or medium sized...

View Article

Forming Groups which are circular in nature - forum topic by pavan.polish

Hi All, I have data as below from which I should form the groups: Input:- Table1:- Parent_Char - Child_Char A - B X - Y B - C Y - X C - A M - N N - M Table2:- Char - Value A - 100 X - 600 Y - 40 N -...

View Article


AWT Usage while session in RESPONSE state - forum topic by...

Hi, One of my session is in RESPONSE state for more than 12hrs while trying to export 1.2 billion rows, 53.5GB size. Like to know whether AWT will be in use by the session or released? Also, what I...

View Article


Selecting groups whose member belongs to multiple groups - response (4) by...

Hi All, I got some additional requirement as below: I have data like below with Group ID and Member ID. I want to extract both Group ID and Member ID details for which a member belongs to more than one...

View Article

Selecting groups whose member belongs to multiple groups - response (5) by...

  Hi pavan,  try  select group_id, member_id from your_table qualify count(group_id) over (partition by member_id) > 1 ; 

View Article

Forming Groups which are circular in nature - response (1) by dnoeth

Hi Sagar, how do you know that A is the starting point and not B or C? A ---> B ---> C ---> A B ---> C ---> A ---> B C ---> A ---> B ---> C Dieter

View Article

Search for first substring in string with condition - response (4) by...

Hi, thanks for the answers. I look at it. Yes everything is possible. Problem is: find first "b" not between two "a". There therefore (“-“ just represent random number of char) ababbb should return me...

View Article


Query Tuning:PPI not being used in select - response (1) by teradatauser2

Hi, Can anyone reply on this ?  Thanks

View Article

Updating 2nd row values with 1st row - response (2) by srinu_nistala

Its working.Thanks alot Dieter.

View Article


Search for first substring in string with condition - response (5) by dnoeth

Hi Peter, in cases like this it's better to post the real life question instead of an overly simplified one :-)  Seems like you try to clean DBQL data from comments, this will be a tough one... What's...

View Article

UNION Vs MSR - response (10) by vasudev

Hi, Consider this MSR statements. This involves 2 tables customer and orders Locking table customer for access Locking table order for access Sel c.*,o.* from customer inner join orders on...

View Article


Different text formating to decimal - response (1) by dnoeth

Leading/trailing blanks/zeroes and thousand separators are never a problem, but the wrong (i.e. european) separators. What's your TD release? When you have the oTRANSLATE function installed it's easy...

View Article

UNION Vs MSR - response (11) by dnoeth

When you read the Explain you'll easily see that your assumption is correct.  Dieter

View Article

Teradata Express for WIN 32 BIT - response (13) by rx77

Thansk Rajat it worked! Appreciate your help! Do we know why it is not available in the regular downloads list ?

View Article
Browsing all 14773 articles
Browse latest View live