Advertisement
frankster

Untitled

Mar 10th, 2017
469
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 6.14 KB | None | 0 0
  1. SELECT EXP(SUM(ln(combined."manufacturingMultiplier"))) AS "combManufMultiplier", EXP(SUM(ln(combined."researchMultiplier"))) AS "combResearchMultiplier", combined."solarSystemName", combined."solarSystemID"
  2. FROM
  3.         (SELECT "manufacturingMultiplier", "researchMultiplier", ss."solarSystemName", ss."solarSystemID" FROM evesde."mapSolarSystems" AS ss
  4.           INNER JOIN evesde."staStations" AS st
  5.             ON ss."solarSystemID" = st."solarSystemID"
  6.           INNER JOIN evesde."staOperations" AS op
  7.             ON op."operationID" = st."operationID"
  8.           INNER JOIN nonccp."operationSystemIndexMultipliers" AS osim
  9.             ON op."operationID" = osim."operationID"
  10.            ) AS combined GROUP BY combined."solarSystemName", combined."solarSystemID";
  11.  
  12.  
  13. The TABLE nonccp."operationSystemIndexMultipliers" follows.
  14.  
  15. ┌─────────────┬─────────────────────────┬────────────────────┐
  16. │ operationID │ manufacturingMultiplier │ researchMultiplier │
  17. ├─────────────┼─────────────────────────┼────────────────────┤
  18. │          49 │                     0.5 │                0.6
  19. │          45 │                     0.6 │                0.8
  20. │          48 │                     0.6 │                0.5
  21. │          50 │                     0.6 │                0.6
  22. │           4 │                    0.95 │               0.98
  23. │          14 │                    0.95 │               0.98
  24. │          17 │                    0.95 │               0.98
  25. │          20 │                    0.95 │               0.98
  26. │          24 │                    0.95 │               0.98
  27. │           6 │                    0.97 │               0.98
  28. │          12 │                    0.97 │               0.98
  29. │          32 │                    0.97 │               0.98
  30. │          37 │                    0.97 │               0.98
  31. │          10 │                    0.98 │               0.97
  32. │          11 │                    0.98 │               0.97
  33. │          16 │                    0.98 │               0.95
  34. │          18 │                    0.98 │               0.95
  35. │          19 │                    0.98 │               0.95
  36. │           1 │                    0.98 │               0.98
  37. │           2 │                    0.98 │               0.98
  38. │           7 │                    0.98 │               0.98
  39. │           8 │                    0.98 │               0.98
  40. │           9 │                    0.98 │               0.98
  41. │          15 │                    0.98 │               0.98
  42. │          22 │                    0.98 │               0.98
  43. │          23 │                    0.98 │               0.98
  44. │          25 │                    0.98 │               0.98
  45. │          26 │                    0.98 │               0.98
  46. │          28 │                    0.98 │               0.98
  47. │          30 │                    0.98 │               0.98
  48. │          31 │                    0.98 │               0.98
  49. │          33 │                    0.98 │               0.98
  50. │          34 │                    0.98 │               0.98
  51. │          35 │                    0.98 │               0.98
  52. │          36 │                    0.98 │               0.98
  53. │          40 │                    0.98 │               0.98
  54. │          41 │                    0.98 │               0.98
  55. │          42 │                    0.98 │               0.98
  56. │          43 │                    0.98 │               0.98
  57. │          44 │                    0.98 │               0.98
  58. │          52 │                    0.98 │               0.98
  59. │          53 │                    0.98 │               0.98
  60. │          54 │                    0.98 │               0.98
  61. │          55 │                    0.98 │               0.98
  62. │          51 │                     0.7 │                0.6
  63. │          47 │                     0.8 │                0.7
  64. │           3 │                    0.98 │               0.98
  65. │          13 │                    0.97 │               0.97
  66. │          29 │                    0.98 │               0.98
  67. │          38 │                    0.98 │               0.98
  68. │          39 │                    0.98 │               0.98
  69. │          27 │                    0.98 │               0.98
  70. │          21 │                    0.98 │               0.98
  71. │           5 │                    0.95 │               0.98
  72. │          46 │                    0.95 │                0.8
  73. └─────────────┴─────────────────────────┴────────────────────┘
  74.  
  75. The same TABLE IN CSV format
  76.  
  77. operationID,manufacturingMultiplier,researchMultiplier
  78. 49,0.5,0.6
  79. 45,0.6,0.8
  80. 48,0.6,0.5
  81. 50,0.6,0.6
  82. 4,0.95,0.98
  83. 14,0.95,0.98
  84. 17,0.95,0.98
  85. 20,0.95,0.98
  86. 24,0.95,0.98
  87. 6,0.97,0.98
  88. 12,0.97,0.98
  89. 32,0.97,0.98
  90. 37,0.97,0.98
  91. 10,0.98,0.97
  92. 11,0.98,0.97
  93. 16,0.98,0.95
  94. 18,0.98,0.95
  95. 19,0.98,0.95
  96. 1,0.98,0.98
  97. 2,0.98,0.98
  98. 7,0.98,0.98
  99. 8,0.98,0.98
  100. 9,0.98,0.98
  101. 15,0.98,0.98
  102. 22,0.98,0.98
  103. 23,0.98,0.98
  104. 25,0.98,0.98
  105. 26,0.98,0.98
  106. 28,0.98,0.98
  107. 30,0.98,0.98
  108. 31,0.98,0.98
  109. 33,0.98,0.98
  110. 34,0.98,0.98
  111. 35,0.98,0.98
  112. 36,0.98,0.98
  113. 40,0.98,0.98
  114. 41,0.98,0.98
  115. 42,0.98,0.98
  116. 43,0.98,0.98
  117. 44,0.98,0.98
  118. 52,0.98,0.98
  119. 53,0.98,0.98
  120. 54,0.98,0.98
  121. 55,0.98,0.98
  122. 51,0.7,0.6
  123. 47,0.8,0.7
  124. 3,0.98,0.98
  125. 13,0.97,0.97
  126. 29,0.98,0.98
  127. 38,0.98,0.98
  128. 39,0.98,0.98
  129. 27,0.98,0.98
  130. 21,0.98,0.98
  131. 5,0.95,0.98
  132. 46,0.95,0.8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement