LOC: Leaf Transmission Fraction Database Query

Back to Database Queries
         
        SELECT
          "institution"."name",                                 -- anonymized name of institution
          "machine"."id",                                       -- anonymized name of machine
          "machineType"."model",                                -- type of machine
          "multileafCollimator"."model",                        -- HD or Millenium
          "output"."dataDate",                                  -- time and date that data was collected
       -- "output"."analysisDate",                              -- time and date that data was analyzed
          "leafTransmission"."section",                         -- section
          "leafTransmission"."leafIndex",                       -- leaf number
          "leafTransmission"."transmission_fract"               -- transmission fraction
        FROM
          public."leafTransmission",
          public."institution",
          public."machine",
          public."machineType",
          public."multileafCollimator",
          public."output"
        WHERE
              ("leafTransmission"."outputPK" = "output"."outputPK")
          AND ("output"."machinePK" = "machine"."machinePK")
          AND ("machine"."institutionPK" = "institution"."institutionPK")
          AND ("machine"."machineTypePK" = "machineType"."machineTypePK")
          AND ("machine"."multileafCollimatorPK" = "multileafCollimator"."multileafCollimatorPK")
        ORDER BY
          "institution"."name",
          "machine"."id",
          "output"."dataDate",
		  "leafTransmission"."section",
          "leafTransmission"."leafIndex"
        ASC LIMIT 10;