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

substring() on huge text column - response (1) by sachin.sebastian

It would be easier to export the required columns from dbc.dbqlsqltbl into a file; and then use grep /awk in Unix to extract in the required format

View Article


substring() on huge text column - response (2) by hpscheepers

Thank you for getting back to me Sachin. Exporting to Unix would be easier, but unfortunately I need to run my script through Cognos Report Studio via tabular SQL. My reporting requirement is to match...

View Article


Creating a view from multiple tables in SQL 2012 - topic by jstrack13

Hello, I am very green in SQL and am trying to create a view from multiple tables in SQL. I do not what the common columns to be duplicated in the view. I have seen some syntax statements that show...

View Article

How to export Teradata access log and DBQL from Teradata table to a file -...

Hi, I am trying to audit Teradata database.I have enabled DBQL and access log auditing. Now i want to export audit logs to logfile in human readable format. I have tried BTEQ but it exports to file...

View Article

Get Prior record in Teradata based on date - topic by aminsachin

Hello Guru's I am stuck with this scenario and need your expert advice in achieving this here is my source table in teradata : I want current status codes based on last date 12/21/2012 and immediate...

View Article


substring() on huge text column - response (3) by dnoeth

Hi Herman, this error is not because of the long string, there are some rows where there's a "user=", but no "reportPath=" resulting in a negative value in FOR which errors out. You need a WHERE...

View Article

substring() on huge text column - response (4) by dnoeth

Hi Herman, this error is not because of the long string, there are some rows where there's a "user=", but no "reportPath=" resulting in a negative value in FOR which errors out. You need a WHERE...

View Article

Stored Procedure Input Parameter Problem - response (1) by dnoeth

Hi Joe, i don't think it's a problem of the input parameters, it looks like there's some malformed Dynamic SQL submitted within the SP's body. Is there and "call dbc.sysexecsql" or "execute"? Dieter

View Article


parse sqltextinfo column in dbc.dbqlsqltbl - response (3) by suhailmemon84

It will be a very complex awk command. There are several types of complex queries and the where clause can be anywhere. Not sure if this is an ideal solution to achieve what I need.   -Suhail

View Article


SQL Parser - response (3) by suhailmemon84

It will be a very complex awk command. There are several types of complex queries and the where clause can be anywhere. Not sure if this is an ideal solution to achieve what I need. Plus we certainly...

View Article

MERGE-INO - response (2) by KS42982

Just remove the PI or partition column from below statement and it should work. SET D = G_T1.D,  E = G_T1.E,  F = G_T1.F,  G = G_T1.G,  H = G_T1.H    

View Article

Converting Oracle code to Teradata for counting/rolling up days to report on...

I found a way to handle this problem. Hopefully someone else can use this if they run into some old code. I used cast(extract(month from adate ) +2 )/ 3 as char(1). This will get the month for the...

View Article

Optimizer choses different path when a meaningless group by is added to a...

Is anyone able to show me the syntax for a group by function in Teradata?   -New User.  One Teradata step at a time.

View Article


Get Prior record in Teradata based on date - response (1) by sachin.sebastian

Assuming the value of SEQ column will be in order, you can use the below sql to get the result: SEL CURR.AppNo,CURR.STS_CD,PREV.STS_CD,CURR.LOAN_NUM,CURR.DTE,PREV.DTE FROM <TABLE> CURR LEFT JOIN...

View Article

substring() on huge text column - response (5) by hpscheepers

Hi Dieter   Thanks.  Your solution worked perfectly.  I thought Teradata would create a null value and continue if the "reportPath=" was missing.   Thanks, Herman

View Article


Optimizer choses different path when a meaningless group by is added to a...

Group by <<comma separated list of column names>>

View Article

Optimizer choses different path when a meaningless group by is added to a...

Thanks!

View Article


New user. Tyring to figure out how to group two statements - topic by wilsonjr5

For some reason I cannot figure out how to group these two statements.  I want the values of trxn_dt to match up with a.debt_mgr_rtr_acct_num.  I have included the code below and if anyone could help...

View Article

New user. Tyring to figure out how to group two statements - topic by wilsonjr5

For some reason I cannot figure out how to group these two statements.  I want the values of trxn_dt to match up with a.debt_mgr_rtr_acct_num.  I have included the code below and if anyone could help...

View Article

New user. Tyring to figure out how to group two statements - topic by wilsonjr5

For some reason I cannot figure out how to group these two statements.  I want the values of trxn_dt to match up with a.debt_mgr_rtr_acct_num.  I have included the code below and if anyone could help...

View Article
Browsing all 14773 articles
Browse latest View live


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