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

Problems querying oracle db from Access 2000


I am trying to query a table in oracle from Access 2000 using the
following criteria.

select * from table1 where DATE_RECEIVED between '1/jan/2003' and
'30/jun/2003'

I am using the Oracle odbc driver.

Records should be returned but nothing.

I have tried using different formats, but nothing works.

I am new to Oracle and need some assistance on this small issue.

Any help is appreciated.

Thanks,

Johann

--
Posted via http://dbforums.com
Jul 19 '05 #1
3 3948
Hi Jhweb

Try this
select * from table1
where
DATE_RECEIVED
between to_date('1/jan/2003','dd-mon-yyyy') and
to_date('30/jun/2003','dd-mon-yyyy')
regards
Hrishy

P.S:If now roes are returned then run the query in sql plus and see
what is happening..If there is a mismtach the odbc driver is doin
somethin funny
Jul 19 '05 #2
Hi,

little correction inside.
I point it out because Johann wrote that
he's new to the Oracle world.

"hrishy" <hr*****@yahoo.co.uk> schrieb im Newsbeitrag
news:4e**************************@posting.google.c om...
Hi Jhweb

Try this
select * from table1
where
DATE_RECEIVED
between to_date('1/jan/2003','dd-mon-yyyy') and
between to_date('1/jan/2003','dd/mon/yyyy') and
to_date('30/jun/2003','dd-mon-yyyy')
to_date('30/jun/2003','dd/mon/yyyy')


regards
Hrishy

P.S:If now roes are returned then run the query in sql plus and see
what is happening..If there is a mismtach the odbc driver is doin
somethin funny


Greetings,
Guido
Jul 19 '05 #3
jhweb <me*********@dbforums.com> wrote in message news:<32****************@dbforums.com>...
I am trying to query a table in oracle from Access 2000 using the
following criteria.

select * from table1 where DATE_RECEIVED between '1/jan/2003' and
'30/jun/2003'

I am using the Oracle odbc driver.

Records should be returned but nothing.

I have tried using different formats, but nothing works.

I am new to Oracle and need some assistance on this small issue.

Any help is appreciated.

Thanks,

Johann


You could do what Guido is saying there, but by nature of the ODBC
from Access to Oracle, you should just type in the date format the way
Access normally takes it. Access will format the date to it's liking,
but when it is sent through the ODBC driver to Oracle the date will be
converted to the Oracle date format. FYI...the Oracle date formate is
'04-AUG-03 12:00:00 AM' for today.

Oracle does it's date format as date / time. It's confusing for new
users...I was in your shoes a little over a year ago.

http://sqlzoo.net/howto/oracletip70465.htm
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: Markku Uttula | last post by:
I think I'm doing something wrong. I'm able to connect to Oracle just fine, execute queries and all, but I'm having serious problems with the speed :( For example, the following PHP-script on my...
2
by: neptune | last post by:
I currently link a table to an Oracle db. Anytime I open a query based off it, I have to input username & password. Is there a way to do this automatically? I'd prefer to use linked tables,...
5
by: Shane | last post by:
I wonder if someone has any ideas about the following. I am currently producing some reports for a manufacturing company who work with metal. A finished part can contain multiple sub-parts to...
5
by: premmehrotra | last post by:
I am using Microsoft Access 2000 and Oracle 9.2.0.5 on Windows 2000. When I export a table from Access to Oracle using ODBC I get error: ORA 972 identifier too long I think the error is because...
3
by: premmehrotra | last post by:
I am using Access 2000 and Oracle 9.2.0.x on a Windows 2000. I have setup Oracle 9.2 ODBC Driver (I have not yet figured how to set Microsoft's Oracle ODBC driver). I am exporting a table from...
5
by: Microsoft | last post by:
Hi, I have Visual Basic .net 2003 (Standard Edition) & SQL Server 2000 Developer Edition. When trying to create a connection in the server explorer from the .net IDE I get a number of problems;...
2
by: egoldthwait | last post by:
I need to convert a 17mb access 2000 db to Oracle and house it in a Citrix farm. The issue: we have never converted an Access Db to Oracle but can probably use Oracle's Workbench to assist with...
5
by: dreadnought8 | last post by:
I've worked with mdbs, and with SQL Server to a lesser extent, with Access as a front end, on commercial-strength systems for quite a while, starting with A97. The last 8 months or so, I've been...
3
by: jhweb | last post by:
I am trying to query a table in oracle from Access 2000 using the following criteria. select * from table1 where DATE_RECEIVED between '1/jan/2003' and '30/jun/2003' I am using the Oracle...
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
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.