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

JDBC - create timestamp from LogonDate and LogonTime - topic by rcotten

Very new to Teradata but have searched the forums and tried many different technicques and can not get this query to run in either SQL Assistant or via the JDBC driver v14.  (Ideally I want this to...

View Article


show view does not show databasename in viewname - response (2) by Fred

Try SHOW QUALIFIED SELECT * FROM db.viewname;

View Article


Need help with selecting distinct event date within last 180 days - response...

Try this query... SELECT A.SubscriberKey, B.CreatedDate, EventDate,Count(EventDate) as "count" FROM _Open A JOIN _ListSubscribers B ON A.SubscriberKey = B.SubscriberKey WHERE (B.ListID = '10630') AND...

View Article

Temporal Macro / Dynamic SQL in a View - response (1) by WAQ

You can create a parameterized macro which can take the date parameter from you. If you are just running the query manually in SQL assistant and want to make the query dynamic so that everytime it ask...

View Article

Need help with selecting distinct event date within last 180 days - response...

First of all correct this statement in the query: B.CreatedDate Between 'Jan 10 2009' AND 'Nov 06 2012'You are not comparing createdDate with the actual DATES. Cast Jan 10 2009 and Nov 06 2012 to date...

View Article


Queries: Temporal Table - topic by senpsg

We tried to replicate the examples provided in the docs in our Teradata environment but the results we obtained is different from what is expected.   Below is the example,   CREATE MULTISET TABLE...

View Article

Queries: Temporal Table - response (1) by senpsg

We tried to replicate the examples provided in the docs in our Teradata environment but the results we obtained is different from what is expected.   Below is the example,   CREATE MULTISET TABLE...

View Article

"From" clauses in Create database query. - response (2) by yaragalaramesh

Hi dnoeth, i have a query like as follows SELECT c.unit_num ,c.trans_end_dt ,c.Coupon_cd AS Coupon_cd ,COUNT(DISTINCT Loyalty_Member_Id ) AS "Customer count" ,SUM(Net_Sales_Amt) AS Sales...

View Article


Performance Tuning Merge Statement - response (2) by venkylingutla

Hi As per the explain plan its merging the data with low confidence. you are using PI on multile columns.   Please collect the stats on join columns individually it will solve your performance...

View Article


Temporal Macro / Dynamic SQL in a View - response (2) by sdmody1983

Hi, Do you have a sample macro like this for temporal? Thanks. Shraddha.

View Article

When can Aggregate Join Index (AJI) be accessed? - topic by Charudatt

  read more

View Article

JDBC - create timestamp from LogonDate and LogonTime - response (1) by dnoeth

Hi Ray, check the actual datatypes. This looks like a table with data from the AccessLog and within that table the LogonTime is a FLOAT: CAST(LogonDate AS TIMESTAMP(0)) + CAST(TRIM(LogonTime) AS...

View Article

Temporal Macro / Dynamic SQL in a View - response (3) by WAQ

Do you want to parameterized the WHERE clause in the query?

View Article


need to frame a query - topic by thadani

Hello All, I have a requirement with me. I got two tables. Lets say A and B. lets say table A has columns ---------name, location, number,  code, id. unique primary index for this is (number, code) and...

View Article

Seems wrong TO_DATE/TO_TIMESTAMP functions in Teradata 14 - topic by jt185021

Hello,     I tested TO_DATE and TO_NUMBER function in TD 14 Express and I have following results: read more

View Article


Need help with selecting distinct event date within last 180 days - response...

Try this query... SELECT A.SubscriberKey, B.CreatedDate, EventDate,Count(EventDate) as "count" FROM _Open A JOIN _ListSubscribers B ON A.SubscriberKey = B.SubscriberKey WHERE (B.ListID = '10630') AND...

View Article

Filter consecutive records that have same value as preceding record - topic...

I need help implementing a query that filters all consecutive records having same values for either COL_2 or COL_3 and  return only those that had a change in COL_2 or COL_3 against the previous...

View Article


Volatile table trouble - topic by mkua

I'm trying to pass information from a Volatile table to the FROM statement in the query below. The SDATE and EDATE pass just fine, but having trouble with siteA and siteB. It keeps expecting something...

View Article

Update query - response (3) by skotagi

Hi all,    I am new to this forum. I am updating a table here, but I am getting error. Can some ne please help me with it. Thanks in advance.     UPDATE test1 A, test2 B SET A.WK = B.PER_NO  WHERE...

View Article

Validtime as input to Temporal tables - topic by senpsg

Is it possbile to pass the Bus_eff_date/any date as input to Validtime in Temporal Table. Can it be acheived using ETL jobs/Teradata utilities

View Article
Browsing all 14773 articles
Browse latest View live


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