Solved

how to tidy up queries

Posted on 2013-05-16
3
220 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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

QuickBooks® has a great invoice interface that we were happy with for a while but that changed in 2001 through no fault of Intuit®. Our industry's unit names are dictated by RUS: the Rural Utilities Services division of USDA. Contracts contain un…
I originally created this report in Crystal Reports 2008 where there is an option to underlay sections. I initially came across the problem in Access Reports where I was unable to run my border lines down through the entire page as I was using the P…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
What’s inside an Access Desktop Database. Will look at the basic interface, Navigation Pane (Database Container), Tables, Queries, Forms, Report, Macro’s, and VBA code.

760 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

18 Experts available now in Live!

Get 1:1 Help Now