Advertisement
Guest User

Untitled

a guest
Nov 18th, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 1.07 KB | None | 0 0
  1. SELECT `thewebsite0_observation`.`id`,
  2.        `thewebsite0_observation`.`tickershort_id`,
  3.        `thewebsite0_observation`.`series_id`,
  4.        `thewebsite0_observation`.`agency_id`,
  5.        `thewebsite0_observation`.`currency`,
  6.        `thewebsite0_observation`.`transformation`,
  7.        `thewebsite0_observation`.`scale`,
  8.        `thewebsite0_observation`.`obs_type`,
  9.        `thewebsite0_observation`.`date`,
  10.        `thewebsite0_observation`.`ref_period`,
  11.        `thewebsite0_observation`.`value`,
  12.        `thewebsite0_observation`.`frequency`,
  13.        `thewebsite0_observation`.`created_on`
  14. FROM `thewebsite0_observation`
  15. INNER JOIN `thewebsite0_obsagency` ON (`thewebsite0_observation`.`agency_id` = `thewebsite0_obsagency`.`id`)
  16. WHERE (`thewebsite0_observation`.`tickershort_id` = 73294
  17.        AND `thewebsite0_obsagency`.`name` = NOT Available
  18.        AND `thewebsite0_observation`.`frequency` = Q
  19.        AND `thewebsite0_observation`.`ref_period` >= 2010-01-01
  20.        AND `thewebsite0_observation`.`ref_period` <= 2019-01-01)
  21. ORDER BY `thewebsite0_observation`.`ref_period` ASC
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement