R
Ronald Reichard
Hi everybody,
I am currently working on a database system that utilizes ruby on rails
with a oracle database. Here's the situation:
the ruby on rails web application is up and running;
my oracle database is full of tables that are populated with data;
there is a successful connection between rails and my oracle database;
however, what isn't finished is I currently have data mining queries in
sql (eg. find minimum time someone has been employed = "Select
min(time) from table...etc") and what I need to do is write one ruby
program for each of my sql queries so that the ruby program:
1) connects to the oracle database each time the query is called
2) runs the sql query on the oracle database
3) takes the results from the query and returns them in an array or
something of that nature (so that I can use the results in an html file
on the ruby on rails web application).
I have some experience writing ruby, although it's been a couple years,
but if someone could give me example code of what this would look like
(using different sql queries) I would really appreciate that. I'm
keeping my fingers crossed,
Thanks
I am currently working on a database system that utilizes ruby on rails
with a oracle database. Here's the situation:
the ruby on rails web application is up and running;
my oracle database is full of tables that are populated with data;
there is a successful connection between rails and my oracle database;
however, what isn't finished is I currently have data mining queries in
sql (eg. find minimum time someone has been employed = "Select
min(time) from table...etc") and what I need to do is write one ruby
program for each of my sql queries so that the ruby program:
1) connects to the oracle database each time the query is called
2) runs the sql query on the oracle database
3) takes the results from the query and returns them in an array or
something of that nature (so that I can use the results in an html file
on the ruby on rails web application).
I have some experience writing ruby, although it's been a couple years,
but if someone could give me example code of what this would look like
(using different sql queries) I would really appreciate that. I'm
keeping my fingers crossed,
Thanks