Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsDatabasesOracle Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 7th, 2011, 05:47 AM
Headworth Headworth is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2011
Posts: 1 Headworth User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 36 m 6 sec
Reputation Power: 0
Question Select statement

I am using oracle 10g i have a table on my computer that i made for a friend when i load it on their computer the select statements say no data found
if i use select * from table name all the data will show
but if a column name select * from table name where duty_date = '05-JAN-11'
no data found
Please can you help

Reply With Quote
  #2  
Old June 7th, 2011, 07:05 AM
LKBrwn_DBA's Avatar
LKBrwn_DBA LKBrwn_DBA is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Sep 2006
Posts: 757 LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level)LKBrwn_DBA User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 1 Week 4 h 52 m 13 sec
Reputation Power: 349
Cool

Quote:
Originally Posted by Headworth
I am using oracle 10g i have a table on my computer that i made for a friend when i load it on their computer the select statements say no data found
if i use select * from table name all the data will show
but if a column name select * from table name where duty_date = '05-JAN-11'
no data found
Please can you help


Always compare DATES to DATES:
Code:
SELECT *
  FROM table_name
 WHERE duty_date = TO_DATE('05-JAN-11','DD-Mon-YY')

__________________

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > Select statement

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap