Solved

how to tidy up queries

Posted on 2013-05-16
3
238 Views
Last Modified: 2013-05-16
guys, i've got an access database that has multiple levels of queries. a query queries on another query and that queries on another query etc so on and so forth. sort of like inheritance for objects inheriting all the way till NSObject kinda concept.

how can i organise my queries such that i will always inherit instead of accidentally creating new base queries and possibly missing out one or 2 parameters? is there a way that i can make these queries an object and then deal with them in an OOP manner? and is this the main benefit of ORM? thanks guys!!!!
0
Comment
Question by:developingprogrammer
3 Comments
 
LVL 49

Accepted Solution

by:
Gustav Brock earned 250 total points
ID: 39170984
No. Queries live pretty much by themselves, and it is up to you to use some naming structure to indicate if some "belongs" to each other.

/gustav
0
 
LVL 57

Assisted Solution

by:Jim Dettman (Microsoft MVP/ EE MVE)
Jim Dettman (Microsoft MVP/ EE MVE) earned 250 total points
ID: 39171011
In a RDBM system, more often then not your better off to have a specific query for each need rather then building any type of heirarchy as it's more efficent to do so.

  When working with data, it's not like working with code.   OOP concepts simply don't apply.

  With that said, you can if your using SQL Server, call stored procedures with different parameters, but still you end up getting the same result set returned, which is never the most efficent.

Jim.
0
 

Author Closing Comment

by:developingprogrammer
ID: 39173752
thanks guys, as usual fantastic feedback! = )
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The first two articles in this short series — Using a Criteria Form to Filter Records (http://www.experts-exchange.com/A_6069.html) and Building a Custom Filter (http://www.experts-exchange.com/A_6070.html) — discuss in some detail how a form can be…
Overview: This article:       (a) explains one principle method to cross-reference invoice items in Quickbooks®       (b) explores the reasons one might need to cross-reference invoice items       (c) provides a sample process for creating a M…
Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

932 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now