Solved

how to tidy up queries

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

Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

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…
I see at least one EE question a week that pertains to using temporary tables in MS Access.  But surprisingly, I was unable to find a single article devoted solely to this topic. I don’t intend to describe all of the uses of temporary tables in t…
Basics of query design. Shows you how to construct a simple query by adding tables, perform joins, defining output columns, perform sorting, and apply criteria.
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.

813 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

10 Experts available now in Live!

Get 1:1 Help Now