Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. The Weird and The Wonderful
  4. What can you do when you have different timetable

What can you do when you have different timetable

Scheduled Pinned Locked Moved The Weird and The Wonderful
databasesales
5 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    Mohibur Rashid
    wrote on last edited by
    #1

    Here is a situation: we have few customer who take international calling service from us. well, for all the customer there is a common rate table. but there is other 10 + customer who has their won rate table, they got cheaper service. so the genius engineer developed that code in VBA: the code is something like below:

    SELECT * FROM commontimetable WHERE CustomerId <> 'Customer one' AND CustomerId <> 'Customer tow' AND .... CustomerId <> 'Customer ***'

    and then for all the customer with own time table get their own query and when a new customer get added with different rate table I had to add another AND + condition I wish I was smart like him

    R I 2 Replies Last reply
    0
    • M Mohibur Rashid

      Here is a situation: we have few customer who take international calling service from us. well, for all the customer there is a common rate table. but there is other 10 + customer who has their won rate table, they got cheaper service. so the genius engineer developed that code in VBA: the code is something like below:

      SELECT * FROM commontimetable WHERE CustomerId <> 'Customer one' AND CustomerId <> 'Customer tow' AND .... CustomerId <> 'Customer ***'

      and then for all the customer with own time table get their own query and when a new customer get added with different rate table I had to add another AND + condition I wish I was smart like him

      R Offline
      R Offline
      RobCroll
      wrote on last edited by
      #2

      I totally agree but I've worked in environments where that is the best option. 1. KPI is based on the number of tasks completed. In which case this would have been the quickest resolution. 2. Only implement the requirements. Nothing more. Nothing less. It's sad but true that in some environments, adding a flag to the database schema and a check box to the UI, can lead to problems. Unless that was specifically requested.

      "You get that on the big jobs."

      1 Reply Last reply
      0
      • M Mohibur Rashid

        Here is a situation: we have few customer who take international calling service from us. well, for all the customer there is a common rate table. but there is other 10 + customer who has their won rate table, they got cheaper service. so the genius engineer developed that code in VBA: the code is something like below:

        SELECT * FROM commontimetable WHERE CustomerId <> 'Customer one' AND CustomerId <> 'Customer tow' AND .... CustomerId <> 'Customer ***'

        and then for all the customer with own time table get their own query and when a new customer get added with different rate table I had to add another AND + condition I wish I was smart like him

        I Offline
        I Offline
        Ingo
        wrote on last edited by
        #3

        Isn't there a table, where you can get all the Customest with own timetable from? Then you could use a sub-select instead of coding it hard. When not: bad database-draft, when yes: bad select-query. :)

        ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

        M 1 Reply Last reply
        0
        • I Ingo

          Isn't there a table, where you can get all the Customest with own timetable from? Then you could use a sub-select instead of coding it hard. When not: bad database-draft, when yes: bad select-query. :)

          ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

          M Offline
          M Offline
          Mohibur Rashid
          wrote on last edited by
          #4

          That's what I did, I updated the system. Where each user has a timetable name. if there is different then I put the different table name, I put this on customer basic info table.

          I 1 Reply Last reply
          0
          • M Mohibur Rashid

            That's what I did, I updated the system. Where each user has a timetable name. if there is different then I put the different table name, I put this on customer basic info table.

            I Offline
            I Offline
            Ingo
            wrote on last edited by
            #5

            :thumbsup:

            ------------------------------ Author of Primary ROleplaying SysTem How do I take my coffee? Black as midnight on a moonless night. War doesn't determine who's right. War determines who's left.

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups