Open-ended DB querying (??)

I am working on a project with a couple of hundred tables and views. There is one primary table around which all other tables revolve with the primary table having somewhere around 42 to 45 million records. Some of the related tables can have many times this number of records. The data is static in that it only changes at specific intervals (once a month or so) when new records are added and old records are removed.

My problem is that users need to query these tables without any major restrictions. I mean, the front end will allow users to create almost any selection criteria form the many columns in the DB. The selection of values will be controlled via drop-downs and lists from which the user will select the criteria. The other consideration is that the grouping can be for any value and up to ten levels deep. Our users are not sophisticated enough to create their own SQL-like queries so we have to guide them through the process of selecting the values. Although they are very "data-aware"; they know their data and can express very complex data requests.

I am trying to create stored procedures that will allow this behavior but I continue to run into the problem of how to properly join the tables when the combinations are almost endless. My conclusion is that although it seems this is a case where D-SQL is a good choice, there are some draw-backs I am not sure we can afford, specifically the security issues. Furthermore, the creation of a D-SQL code-generator seems like an almost impossible task and time is of the essence. I am also looking at Data Analysis Services (Data Warehousing).

Has anyone here had any experience with a similar situation that can shed some light?
[1724 byte] By [vicar] at [2007-11-19 2:04:33]
# 1 Re: Open-ended DB querying (??)
Are you using SQL Server, because if so it comes with something called English Query.

I have never used it, but the blurb seems to imply that if you set it up correctly, the user can enter an English type question and it will translate for them.

It may be of some use to you?
jp140768 at 2007-11-9 13:39:00 >
# 2 Re: Open-ended DB querying (??)
JP, that is an idea. I have started working with Analysis Services / Data Warehousing and it seems that it may be a solution. Too early to say. Thanks.
vicar at 2007-11-9 13:40:00 >