Database design

10 pts.
Tags:
Database administration
Database design
Hi all, I have a condition and formula generator in my application. I must save this condition and formula in database and calculate formulas for each condition. I want to model these conditions and formulas. For example:
Condition:
Education=BS AND MaritalStatus=Married AND YearsOfService>10
Formula:
Salary=2.5*EducationFactor+BaseSalary
I modeled conditions and formula separately and using Interpreter Pattern. *Condition
<a href=http://www.freeimagehosting.net/image.php?87d5753b0f.jpg><img src=http://www.freeimagehosting.net/uploads/th.87d5753b0f.jpg alt="Free Image Hosting by FreeImageHosting.net"></a>
*Formula
<a href=http://www.freeimagehosting.net/image.php?de66e96277.jpg><img src=http://www.freeimagehosting.net/uploads/th.de66e96277.jpg alt="Free Image Hosting by FreeImageHosting.net"></a>
Now my questions:
  1. Are these model Correct?
  2. What are context and client in this pattern?
  3. In these models , I have to model Coefficients and Items as subclass of Expression, because of Interpreter Pattern, but naturally they aren't. How can I handle this problem?
  4. What are equal tables for these models?
Thanks alot

Answer Wiki

Thanks. We'll let you know when a new response is added.

Your image links didn’t come through. Attempting to repost here:

These are the images:
<img src=”http://www.freeimagehosting.net/image.php?87d5753b0f.jpg” alt=”Condition” />
<img src=”http://www.freeimagehosting.net/image.php?de66e96277.jpg” alt=”Formula” />

Elham, I really do not see the relation of these models with your description of ‘formula’ and ‘condition’. The models do not seem to use any of the variables mentioned. Could you please explain the models a little, so we can better understand how they are constructed in order to provide some help ?

Thanks

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • AshishSingh10
    Hi, 
    The image link provided by you is not working.

    Thanks and regards
    Ashish@S
    875 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following