Quantcast
Browsing all 14773 articles
Browse latest View live

How to store a field value of a table column into variables in Stored...

Hi all, I would like to put a value from a column field int a variable and I cannot find a way how to do it in Stored procedures. What I would need: to count number of rows of a table and compare it...

View Article


rename USI/NUSI - response (1) by knowledge

no one have 1 minute for to reply me? it's possible to rename the USI or NUSI? THX

View Article


rename USI/NUSI - response (2) by dnoeth

No. But why do you need to rename it? Dieter

View Article

How to store a field value of a table column into variables in Stored...

Hi Dan, of course it is: Select count(*) into TableRowsCount from TeradataTable;Dieter

View Article

Can you join using wild cards col_a like %col_b% - response (2) by dnoeth

Just a remark: When you join like this, you'll always get a product join and you got a really strange data model. Dieter 

View Article


rename USI/NUSI - response (4) by knowledge

Thank you very much for the reply Dieter. When i having to rename the PI or to create a name for the PI without name, i found the solution but when i wanted to do the same for the SI of a tables no...

View Article

Counting records according to their date range - topic by h-man2013

Hi Guys Total newbie here. I am trying to learn teradata and struggling with some basic SQL. I've had experience in a few other db's in the (sort of distant past) but Teradata's syntax is throwing me...

View Article

Boils down to the difference between user and database - topic by quest

Hello, I have set of tables defined in Teradata and need those to be imported into Informatica ETL tool. I setup the connections using user id and pwd (different from database name) and connect. In the...

View Article


Index Cocepts in Teradata - response (3) by vinay7

If primary index and secondary index is in same amp than how can we tell it as two amp operation....?

View Article


rename USI/NUSI - response (5) by Santosh Jodangi

Hi All,   If user having spool space of 1tb. The user retrieving data. But the user get the error like. What is the solution of that ? If user1 data in GTT. the another user can use this data? 

View Article

How to parametrize WHERE IN clause in stored procedure? - topic by veskojl

I'm trying to parametrize a stored procedure, which takes one input string parameter and use it in the where clause in dynamic cursor. The following snippet works with one parameter but when the list...

View Article

How to parametrize WHERE IN clause in stored procedure? - response (1) by dnoeth

A parameter is a single value, not a list of values. You need a dynamic SQL string: SET QUERY = 'SELECT * FROM SOME_TABLE WHERE country_cd IN ('|| varlist || ');'; PREPARE S1 FROM QUERY; OPEN C1...

View Article

Teradata Error Code 7693 - response (2) by dnoeth

7693 User-defined exception is raised from stored procedure Explanation: User attempted to raise a user-defined exception explicitly through a SIGNAL or RESIGNAL statement in the stored procedure and...

View Article


Boils down to the difference between user and database - response (1) by dnoeth

When the default database is specified, it should be set during logon, might be an Informatica problem. You could check the actual DefaultDatabase column for this session in dbc.SessionInfoV Dieter

View Article

How to parametrize WHERE IN clause in stored procedure? - response (2) by...

Hi Dieter, I understant that 'US,GE' <> 'US','GE' , the question is how to get the second from first? I alreary tried what you suggest and it doesn't work. SET QUERY = 'SELECT * FROM SOME_TABLE...

View Article


Calculating the actual query run time - topic by rajeev saravanan

Hi, Many a times when we submit queries in production they go into delayed state and the total execution time displayed in the SQLA doesnt show the real picture, in such cases how can we calculate the...

View Article

How to parametrize WHERE IN clause in stored procedure? - response (3) by dnoeth

Ok, if you want to pass a list of strings, you have to escape all strings: call test( '''US'',''GE''')or you pass 'US,GE' and add the quotes within your SP using SQL or simply use oReplace: '''' ||...

View Article


Can you join using wild cards col_a like %col_b% - response (3) by ulrich

Strange data model: Depends on the use case.  Can be very sufficient for specific problems. For example data quality checks ELT processes. Filter out email addresses containing specific pattern or...

View Article

Counting records according to their date range - response (1) by dnoeth

Something like this? select count(*) from tab where datecol between date '2012-01-01' and date '2012-12-31' Dieter

View Article

Need to calculate using LEAD, LAG function - response (1) by dnoeth

Is is actually possible to have multiple rows with the same effdt (2/1/2009) and the same or different empl_status? Dieter

View Article
Browsing all 14773 articles
Browse latest View live


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