Oracle Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
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:
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now!
  #1  
Old April 25th, 2008, 01:21 PM
Nallagangu Nallagangu is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 22 Nallagangu New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 5 h 6 m 16 sec
Reputation Power: 0
Question SQL Query

The below query is not working and the error its giving is ORA-01722
Code:
 
SELECT
 c1.certificate_nbr, 
 c2.part_nbr as part171, 
 c2.inactive_ind, 
 c2.hts_cde, 
 c2.originating_ind, 
 c3.iso_country_cde, 
 c2.basis_cde, 
 c2.producer_cde, 
 c2.cert_cde,
 c2.regional_value_content_cde, 
 c2.part_nbr, 
 c1.effective_dte
FROM 
 certificates c1, 
 certificate_parts c2,
 displayed_countries_of_origin c3 
WHERE 
  c1.certificate_nbr=c2.part_nbr 
 AND 
  c2.part_nbr=c3.certificate_nbr;


and i am really not understanding what to.... please help me...

Last edited by pabloj : April 25th, 2008 at 02:00 PM.

Reply With Quote
  #2  
Old April 25th, 2008, 01:45 PM
Nallagangu Nallagangu is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2008
Posts: 22 Nallagangu New User: is a brand new recruit and a unknown entity at this point. 
Time spent in forums: 5 h 6 m 16 sec
Reputation Power: 0
Thanks a lot for viewing it but i sloved it.....

since i am new to oracle developing i will be asking lots lots and lots of questions.... try to help me

Thanking You

Bhagya Sree Nallagangu


Quote:
Originally Posted by Nallagangu
The below query is not working and the error its giving is ORA-01722

select c1.certificate_nbr, c2.part_nbr as part171, c2.inactive_ind,
c2.hts_cde, c2.originating_ind, c3.iso_country_cde, c2.basis_cde, c2.producer_cde, c2.cert_cde,
c2.regional_value_content_cde, c2.part_nbr, c1.effective_dte
from certificates c1 , certificate_parts c2 ,displayed_countries_of_origin c3
WHERE c1.certificate_nbr=c2.part_nbr and c2.part_nbr=c3.certificate_nbr

and i am really not understanding what to.... please help me...

Reply With Quote
  #3  
Old April 25th, 2008, 01:57 PM
pabloj's Avatar
pabloj pabloj is offline
Modding: Oracle MsSQL Firebird
Dev Shed God 6th Plane (7500 - 7999 posts)
 
Join Date: Jun 2001
Location: Outside US
Posts: 7,711 pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level)pabloj User rank is Captain (20000 - 30000 Reputation Level) 
Time spent in forums: 2 Months 2 Weeks 6 Days 5 h 6 m 18 sec
Reputation Power: 259
Hi and welcome to Devshed, please consider this is not a free support service, don't expect an immediate answer, there is no SLA.
Then, in order to improve your chances, learn a few things:
1. use a descriptive subject for your posts
2. include full error messages and table(s) structure
3. add proper formatting to your code, make it easy to read
4. describe your requirements and expected results
5. provide sample data to reproduce your case
6. post the solution if you got it elsewhere

Last edited by pabloj : April 25th, 2008 at 02:01 PM.

Reply With Quote
  #4  
Old May 10th, 2008, 04:26 AM
shijialiang shijialiang is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2008
Posts: 1 shijialiang User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 38 m 28 sec
Reputation Power: 0
desc your tables to check the type of the column. although you see the data of column is number, but the type of column is char type. the connection of different type maybe cause the error which you mentioned. hope it can help you! ^^

Reply With Quote
Reply

Viewing: Dev Shed ForumsDatabasesOracle Development > SQL Query


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 | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway