Quantcast
Browsing all 14773 articles
Browse latest View live

SQL Workaround - response (8) by dnoeth

There's a specific case i know of when it's not changing the result: e.g. orders and lineitem, both with PI(ordernumber) PARTITON BY orderdate, the join based on the FK will be (ordernumber), but this...

View Article


Equivalent function for DATEADD - forum topic by Monica_a

Hi all,       I need to calculate 8 weeks of data is there any function related to this?? Tags: #sqlForums: Database

View Article


Equivalent function for DATEADD - response (1) by dnoeth

  What do you need exactly? There simple math on DATEs like DATE +/- n, there's ADD_MONTHS(DATE or TIMESTAMP, n), there are INTERVALs...  Dieter

View Article

Equivalent function for DATEADD - response (2) by Monica_a

Hi, I need to get data of  8 consucutive weeks from the current date by displaying first Monday  of each week. I have used this query which will give 1 week data by displaying first  monday  of the...

View Article

untranslatable character error teradata - forum topic by cyrusrijju

I am getting error of untranslatable character in teradata as target table definition is LATIN.I changed my source stage table definition to UNICODE.Now that particular record is getting inserted. But...

View Article


Equivalent function for DATEADD - response (3) by dnoeth

DAYOFWEEK is no Teradata syntax, might be a UDF installed at your system. Anyway it's returning the weekday based on sunday as starting day. But you need ISO weeks :-) What is your TD release?  In...

View Article

select failed 3504 selected non-aggregate values must be part of the...

I'm having trouble with the following SQL and am receiving the error message in the subject line.  I know it has something to do with adding a GROUP BY because of the second item in my SELECT clause,...

View Article

INSERT query of view column data types - response (2) by Nolan Madson

Thanks for the suggestions.  The decision to not use MDS was made way over my pay-grade many years ago. Nolan

View Article


select failed 3504 selected non-aggregate values must be part of the...

It depends on the expected result set. You might have to put all other columns in your select list in a GROUP BY 1,3,4,5,6,7,8,9 or you might need a MAX(b.Effective_Dt) OVER (PARTITION BY whatever)....

View Article


Difference Between Restore Job and Copy Job - response (41) by usmans

Hi Amolph, During the time of FastLoad or MultiLoad some tables having extensions (‘ET_’, ‘UV_’, ‘WT_’, ‘LT_’) are created in the database during loading operation and are automatically dropped upon...

View Article

OLAP not allowed in Subquery - forum topic by Malvi Jaggi

I am coding a SQL ( and I know a solution which is working). However I want to fix an alternative code. The code intents to find the first monday after the last friday of the last month( Here I have...

View Article

OLAP not allowed in Subquery - response (1) by dnoeth

Well, the 2nd QUALIFY is definitely not part of the subquery :-)  Dieter

View Article

Use of CTE within stored procedures - forum topic by andrewah

Hi all  I am using Teradata Express 13.10 & I am trying to write a stored procedure which uses multiple references to dataset defined using a 'common table expression.'  I have a test case below:...

View Article


Challenges in migrating from Informix to Teradata 13 - forum topic by anirbanpal

Hi, We are working on a solution of migrating a datawarehouse from Informix to Teradata. We are looking for what can be the high level challenges while this migration - specifically from Physical...

View Article

Use of CTE within stored procedures - response (1) by M.Saeed Khurram

It is strange that this SQL works fine in SQL-Assistant, but when called througha procedure throws error. I have checked with recursive CTE as well, but it throws the same error.  But it works fine the...

View Article


Use of CTE within stored procedures - response (3) by Harpreet Singh

It works with derived table ..  CREATE TABLE with_source ( a INT GENERATED always AS IDENTITY , b INT ); CREATE TABLE with_target ( a INT GENERATED always AS IDENTITY , b INT ); INSERT INTO with_source...

View Article

Use of CTE within stored procedures - response (4) by dnoeth

SQL Data Manipulation Language  Chapter 1: The SELECT Statement WITH [RECURSIVE] Request Modifier Rules and Restrictions for the WITH and WITH RECURSIVE Request Modifiers   You cannot specify a WITH...

View Article


Use of CTE within stored procedures - response (5) by M.Saeed Khurram

Many thanks Dieter for the valuable information!  

View Article

Challenges in migrating from Informix to Teradata 13 - response (2) by Raja_KT

Hi Anirban,  I think you are talking about Informix Dynamic.  When we migrate from one db to another, we make sure that the functionalities remain the same.  One has to know the features of both source...

View Article

upgrading table/varchar columns definition from latin to unicode - content...

Hi there, I am planning to upgrade the content of existing table defined as varchar latin  to a new table definition with column varchar unicode. Basic Question: will the physical representation of the...

View Article
Browsing all 14773 articles
Browse latest View live


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