473,386 Members | 1,706 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

need help with dates in teradata

Please somebody could help me with dates .. its giving me error thanks
select c.bill_dt from
emp c,dept b
where c.ban=b.ban
and c.BILLED_DT Between (add_month(b.STATUS_EFF_DT,-1)
And b.STATUS_EFF_DT
May 31 '07 #1
9 2144
debasisdas
8,127 Expert 4TB
for between operator u need 2 dates
where is the second date.
May 31 '07 #2
well STATUS_EFF_DT is a date record .. so that not the problem.. thanks
May 31 '07 #3
debasisdas
8,127 Expert 4TB
Try manipulating with some parenthesis in the later part

I hope it will solve your problem
May 31 '07 #4
r035198x
13,262 8TB
Please somebody could help me with dates .. its giving me error thanks
select c.bill_dt from
emp c,dept b
where c.ban=b.ban
and c.BILLED_DT Between (add_month(b.STATUS_EFF_DT,-1)
And b.STATUS_EFF_DT
Looks like you are missing a closing bracket.
May 31 '07 #5
not working still :(
May 31 '07 #6
debasisdas
8,127 Expert 4TB
I have tried similar code in Oracle its working fine

sample code
==============
Expand|Select|Wrap|Line Numbers
  1. select * from emp e ,dept d where e.deptno=d.deptno and
  2. hiredate between (add_months(e.hiredate,-1)) And e.hiredate
  3.  
hope that helps you.
Jun 1 '07 #7
r035198x
13,262 8TB
not working still :(
What do you have now?
Jun 1 '07 #8
frozenmist
179 Expert 100+
Hi,
May I know what is the error you are getting?
Also ,Is it
select c.bill_dt or

Select c.billed_dt
??

Cheers
Jun 1 '07 #9
r035198x
13,262 8TB
Hi,
May I know what is the error you are getting?
Also ,Is it
select c.bill_dt or

Select c.billed_dt
??

Cheers
Good pick frozen. That must be the problem.
Jun 1 '07 #10

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Paul Watson | last post by:
Is there a DB-API for Teradata? Is there any access to Teradata?
1
by: Michael L. | last post by:
hi everyone, It is relatively easy to translate RANK() from teradata to DB2, but I get to a glitch when I realize what Qualify RANK does. I know that there are a lot of experienced DB2...
12
by: jdokos | last post by:
Does anyone know of any good sources (white papers, etc.) regarding migrating from Teradata to DB2 UDB EEE? We are in the very beginning stages of investigating this as an option for some of the...
3
by: nolanmadson | last post by:
I'm creating a front-end for some Teradata user maintenance tables in MS Access. I've started having problems in occasionally not being able to insert or update records in these tables. I've been...
1
by: terrordata | last post by:
Hey... i have a major doubt. is it possible to use an insert command in a loop while inserting data into a teradata table from java? if so can someone please give me the syntax?
2
by: mohanpadamata | last post by:
Hi frnds, I am searching for teradata material.its an urgent requirement in my project. i couldnt find materila to learn it.i dont have even a document.plz help me in this regard.if anyone has plz...
4
by: KMEscherich | last post by:
Version of Access = 2003 Hi there, is there a way to capture data using TERADATA SQL Assistant and import a portion of this database table into a Microsoft Access database table??? I currently...
2
by: iceman23 | last post by:
Hello, Any suggestion in the way I used CAST in TERADATA SQL: AND CAST (EXCEPTION_EVENT_TS AS TIMESTAMP(0) FORMAT 'MM/DD/YYYY HH:MI:SS') = EXCEPTION_EVENT_TS AND EXCEPTION_EVENT_TS BETWEEN...
1
by: iceman23 | last post by:
Hello, My question in teradata would be, will it be possible to get the time difference of 2 given date/time, given that the first value of the would be the 1st row of 2nd column then the second...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.