Advertisement

10.11.2005 at 12:34AM PDT, ID: 21590546
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

5.8

Data Structure to hold a SELECT statement

Asked by johan777 in Oracle Database

Tags: , ,

Hi all,

Here's a difficult one:

I already have two tables, Object and Attribute with a one to many relation between them.
I need to set up a table structure to hold all possible select type statements. This needs to be in such a format that it is broken down completely and so that it is reversable, meaning I must be able to reconstruct the select statement from it.
The idea is to create a meta-data structure to hold select statements, but based upon tables similar to the Oracle dictionary tables. Hope this makes sense.

I need to make privision for:
select fld1, fld2, fld3 ...
  from tbl1 inner join tbl2 on (fld1 = fld2) left outer join tbl3 on (fld3 = fld4) ...
 where fld5 = 'a'

It can even get more complicated:
select fld1 || fld2, subtr(fld3, 1, 30)
  from tbl1 inner join tbl2 on (fld1 = fld2) left outer join tbl3 on (fld3 = fld4) ...
 where exists (select 1 from tbl4 where fld6 = fl7)

I would like to have included a diagram of some sorts, and I can see the only real way to explain this would be via a diagram. Therefore, I have include my email address for those who would like to send me a diagram as explanation. Preferrably Acrobat Reader, MS Visio or ERWin.

I wish I could give more than 500 points as this is a very difficult question and not for the meek. Even a partial answer, something that can save a simple select statement would be appreciated.

I suspect that the only accurate way to store this would be by using XML in the database. Unfortunately I do not know how. So, if you woul like to suggest this solution, please explain a bit more as to how I can write and access the in there.

Regards,
Johan Swart
jiswart@absamail.co.zaStart Free Trial
 
 
[+][-]10.11.2005 at 06:30AM PDT, ID: 15060110

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.11.2005 at 04:01PM PDT, ID: 15065248

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.11.2005 at 11:47PM PDT, ID: 15066649

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.12.2005 at 01:57AM PDT, ID: 15067138

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.12.2005 at 02:08AM PDT, ID: 15067184

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.12.2005 at 02:15AM PDT, ID: 15067207

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Oracle Database
Tags: object_attributes, oracle, select
Sign Up Now!
Solution Provided By: twentyfour_seven
Participating Experts: 2
Solution Grade: C
 
 
[+][-]10.12.2005 at 03:27AM PDT, ID: 15067477

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.12.2005 at 05:38AM PDT, ID: 15068150

Assisted solutions are selected by the member who asked the question as a comment that contributed to their question's solution.

Start your 7-day free trial to view this Assisted Solution or ask the Experts your question.

 
[+][-]10.12.2005 at 06:48AM PDT, ID: 15068720

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.12.2005 at 09:57AM PDT, ID: 15070654

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32