• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 561
  • Last Modified:

how to tidy up queries

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
developingprogrammer
Asked:
developingprogrammer
2 Solutions
 
Gustav BrockCIOCommented:
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
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
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
 
developingprogrammerAuthor Commented:
thanks guys, as usual fantastic feedback! = )
0

Featured Post

 [eBook] Windows Nano Server

Download this FREE eBook and learn all you need to get started with Windows Nano Server, including deployment options, remote management
and troubleshooting tips and tricks

Tackle projects and never again get stuck behind a technical roadblock.
Join Now