oracle - Storing conditional logic for compliance in a database -


I'm creating an advertising system, which should be shown at the ATM. For now, I have to create a database structure where advertising, ATM and customer compliance will be stored.

The advertising system must choose an advertisement based on ATMs and customers.

The issue is that the customer is not strictly defined, it can be filtered with any of your property (card number, account, customer ID, client age, ...). For example:

  1. ATM = 1 should be shown at ADV = 2 when the customer '1111%' on the card like
  2. ATM = 1 ADV = 3, all the ATMs except


    How can I store this data in a relational database?

    I have a solution, but I do not like it, I will create a table where SEL will save. For example:

    Ad Table
    Adv_ID
    Terminal_ID
    Status (can be values: Allow / Reject)
    The order (for example: "1111% 'and card like" client_id! = 10230 "); screen_id (which should be shown on this ad) order (for priority) < P> Do you have any other suggestions?

    By trying to design your configuration in this way Can you :

    • Column
      • column_name
      • Data_type ( number , VARCHAR )
      • Advertising
        • adv
        • seq (to assign priority)
        • Modifier: not (check-in)
        • li> Operator: , IN ( = and ! = will be covered, but you can explicitly specify them
        • Values ​​(Child-table)

          This is WU UlseeTypos and SQL En While avoiding Ekshn allow to generate all circumstances. Whenever I allow numbers, and when quotes should be added / ran, then data_type has been added to check.

            adv column_name modifier operator value (shown denormalized) 2 ATM 1 2 1111% like customers 3 ATM no 1 3 in customer ID 1,2    

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -