473,385 Members | 1,492 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,385 software developers and data experts.

Use Of Between Operator In Teradata

need a help in using between operator in tera data
i want to ose as condition and other conditio too
where H.BILLED_DT BETWEEN Max(H.BILLED_DT) AND add_months(Max(H.BILLED_DT),-1)
ERROR IMPROPER USE OF AN AGGREGATE FUNCTIONIN A WHERE CLAUSE
Feb 26 '07 #1
4 12934
vijaydiwakar
579 512MB
need a help in using between operator in tera data
i want to ose as condition and other conditio too
where H.BILLED_DT BETWEEN Max(H.BILLED_DT) AND add_months(Max(H.BILLED_DT),-1)
ERROR IMPROPER USE OF AN AGGREGATE FUNCTIONIN A WHERE CLAUSE
just give me the qry
i'll try to solve it
Feb 27 '07 #2
just give me the qry
i'll try to solve it
select * from emp H
where H.BILLED_DT BETWEEN Max(H.BILLED_DT) AND add_months(Max(H.BILLED_DT),-1)

ERROR IMPROPER USE OF AN AGGREGATE FUNCTIONIN A WHERE CLAUSE
Feb 27 '07 #3
need a help in using between operator in tera data
i want to ose as condition and other conditio too
where H.BILLED_DT BETWEEN Max(H.BILLED_DT) AND add_months(Max(H.BILLED_DT),-1)
ERROR IMPROPER USE OF AN AGGREGATE FUNCTIONIN A WHERE CLAUSE

select * from emp H
where H.BILLED_DT BETWEEN Max(H.BILLED_DT) AND add_months(Max(H.BILLED_DT),-1)

ERROR IMPROPER USE OF AN AGGREGATE FUNCTIONIN A WHERE CLAUSE
Feb 27 '07 #4
vijaydiwakar
579 512MB
select * from emp H
where H.BILLED_DT BETWEEN Max(H.BILLED_DT) AND add_months(Max(H.BILLED_DT),-1)

ERROR IMPROPER USE OF AN AGGREGATE FUNCTIONIN A WHERE CLAUSE
if i'm not wrong u like to get records between the month which is max?
i.e. data of one month perticular?
Feb 28 '07 #5

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?
0
by: mgnmsoft | last post by:
Looking for experienced Teradata DBA with experience in conversion from Oracle to Teradata. US. Citizens needed for this position. Client will apply for Top Secret clearance. Please email resume at...
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...
0
by: Akrishnamohan | last post by:
Subject:How to Run Action Queries in VBA-TERADATA?? Message: hi, Im trying in exceuting an action queris in Vba. Im able to connect to teradata. after connection,im imporitng through text pad...
4
by: resmi318 | last post by:
I am running a query similar to given below. CREATE TABLE ABC_08 AS (SELECT x.col1, trim(x.col2), x.col3, x.col4, x.col5 FROM Table1 x
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...
7
by: Karol R | last post by:
Can anyone please explain me main differences between relational DB and warehouse (Point me to web site) ? Apart from theoretical differences I would like to know how Warehouse DB is updated ?...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
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$) { } ...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.