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. Database & SysAdmin
  3. Database
  4. Deducting data vs saving it explicitly

Deducting data vs saving it explicitly

Scheduled Pinned Locked Moved Database
questionsharepointvisual-studiocollaborationtutorial
5 Posts 4 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.
  • A Offline
    A Offline
    Alivemau5
    wrote on last edited by
    #1

    Hi, I'm kind of confused on this. If I have data on tables, and I'd like to know something which is deducted from that data, but requires several tables and calculations.. should I make that "something" an explicit data (table, attribute, who knows)? For example: I have a table of "goals", "matches" and "teams" of some football tournament. and I want to know the number of win matches of some team, then I would have to calculate them by comparing the number of goals, etc etc. But if Id put a column of "WonGames" in the table of teams, then this wouldnt be needed What is the correct approach? Thanks

    P G L 4 Replies Last reply
    0
    • A Alivemau5

      Hi, I'm kind of confused on this. If I have data on tables, and I'd like to know something which is deducted from that data, but requires several tables and calculations.. should I make that "something" an explicit data (table, attribute, who knows)? For example: I have a table of "goals", "matches" and "teams" of some football tournament. and I want to know the number of win matches of some team, then I would have to calculate them by comparing the number of goals, etc etc. But if Id put a column of "WonGames" in the table of teams, then this wouldnt be needed What is the correct approach? Thanks

      P Offline
      P Offline
      PIEBALDconsult
      wrote on last edited by
      #2

      Alivemau5 wrote:

      deducted

      Deduced? With some such things, you might want to do both; have a detailed transaction table and a summary table.

      1 Reply Last reply
      0
      • A Alivemau5

        Hi, I'm kind of confused on this. If I have data on tables, and I'd like to know something which is deducted from that data, but requires several tables and calculations.. should I make that "something" an explicit data (table, attribute, who knows)? For example: I have a table of "goals", "matches" and "teams" of some football tournament. and I want to know the number of win matches of some team, then I would have to calculate them by comparing the number of goals, etc etc. But if Id put a column of "WonGames" in the table of teams, then this wouldnt be needed What is the correct approach? Thanks

        G Offline
        G Offline
        Garth J Lancaster
        wrote on last edited by
        #3

        continuuing from PIEBALDconsult, this is why a good deal of time usually goes into data analysis (and sometimes even then it takes multiple evolutions to get it right) If dynamically recalculating the result(s) each time starts getting onerous or you need them elsewehere and dont wish to use temp tables for example, you may need to maintain a transaction table as he suggests 'g'

        1 Reply Last reply
        0
        • A Alivemau5

          Hi, I'm kind of confused on this. If I have data on tables, and I'd like to know something which is deducted from that data, but requires several tables and calculations.. should I make that "something" an explicit data (table, attribute, who knows)? For example: I have a table of "goals", "matches" and "teams" of some football tournament. and I want to know the number of win matches of some team, then I would have to calculate them by comparing the number of goals, etc etc. But if Id put a column of "WonGames" in the table of teams, then this wouldnt be needed What is the correct approach? Thanks

          P Offline
          P Offline
          PIEBALDconsult
          wrote on last edited by
          #4

          P.S.

          Alivemau5 wrote:

          put a column of "WonGames" in the table of teams

          Then I think you could only track one season at a time; you may need a season table -- which might be a good place to store such summary data.

          1 Reply Last reply
          0
          • A Alivemau5

            Hi, I'm kind of confused on this. If I have data on tables, and I'd like to know something which is deducted from that data, but requires several tables and calculations.. should I make that "something" an explicit data (table, attribute, who knows)? For example: I have a table of "goals", "matches" and "teams" of some football tournament. and I want to know the number of win matches of some team, then I would have to calculate them by comparing the number of goals, etc etc. But if Id put a column of "WonGames" in the table of teams, then this wouldnt be needed What is the correct approach? Thanks

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            Alivemau5 wrote:

            What is the correct approach?

            Determining the "cost" of recalculating the results. If it takes a lot of time to reproduce the data, then store it :)

            I are Troll :suss:

            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