• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Problem in executing SQL statement

 
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,
I have some problem in executing my nested SQL Statement.
what i want to do is :-
I have 3 tables;
1.Server
2.resource
3.executable.
->server contains:- id and server_name.
->resource contains:- id ,service_id(another table) and resource_name.
->excutable contains :- id,server_id,resource_id,executable_path.
I want to retrive "resource_name".

SQL statement which I write(showing syntax error at "select resource_id from executable... ) is this

select resource_name from resource where id IN (select resource_id from executable where server_id IN (select id from server server_name='qi-125'));

plz help me in solving this ..
Thanx in advance
 
Ranch Hand
Posts: 51
Hibernate Eclipse IDE Oracle
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Unless there is something different with the types you might be better off with normal joins.

Like
 
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Dear Ahmad,

Can you describe the three tables, and post them , not forgetting to show the error too.

Regards.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic