Data model for storing boolean expressions

Reply

Join Date: Mar 2008
Posts: 38
Reputation: LeBurt is an unknown quantity at this point 
Solved Threads: 1
LeBurt LeBurt is offline Offline
Light Poster

Re: Data model for storing boolean expressions

 
0
  #11
Mar 11th, 2008
The way I designed it so far, the users actually don't need to know the structure of the database. I present them with a web form that contains select boxes for tables, fields, operators and even sometimes values. The table names are comprehensive enough so that someone having the right vocabulary can zoom in on a field in very little time and write a filter (ad-hoc query) fairly quickly. I think this is a strong point of my application and I want to hold on to it.

I'll send you a private message with some info on how to connect. It'll be easier if I show you...
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 2
Reputation: ranchcharm is an unknown quantity at this point 
Solved Threads: 0
ranchcharm ranchcharm is offline Offline
Newbie Poster

Re: Data model for storing boolean expressions

 
0
  #12
Jan 27th, 2009
Dear LeBurt,

Did you figure out a solution? I am in the same boat. Would you mind sharing your soltuion?

I have a fair idea of how I want to store the conditions but haven't got to a point on how to evaulate. I am thinking of accomplishing the whole thing with two tables.

I can elaborate the solution if you are interested.

Thanks,
Nachi
Reply With Quote Quick reply to this message  
Join Date: Mar 2008
Posts: 38
Reputation: LeBurt is an unknown quantity at this point 
Solved Threads: 1
LeBurt LeBurt is offline Offline
Light Poster

Re: Data model for storing boolean expressions

 
0
  #13
Jan 27th, 2009
Hey ranchcharm,

No, I sort of let it go a while back and focused on other things. I kept thinking about it though, on and off. I have a feeling I could possibly apply a stack model used to store and evaluate any kind of expression (arithmetic, boolean). I haven't pushed that wagon very far and therefore don't know how well a database could be used to modelize a stack...

Here's an example: http://www.cse.iitk.ac.in/~sbaswana/.../stack-lec.pdf

I'd be glad to hear about your solution, if you have the time.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the Database Design Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC