fund_style_stats_dolphin.sql 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. USE raw_db;
  2. -- DROP TABLE fund_style_stats_dolphin;
  3. CREATE TABLE `fund_style_stats_dolphin` (
  4. `fund_id` varchar(10) NOT NULL COMMENT '基金id',
  5. `end_date` varchar(7) NOT NULL COMMENT '截至日期',
  6. `upsidecapture_ret_6m` decimal(22,6) DEFAULT NULL,
  7. `downsidecapture_ret_6m` decimal(22,6) DEFAULT NULL,
  8. `upsidecapture_ratio_6m` decimal(22,6) DEFAULT NULL,
  9. `downsidecapture_ratio_6m` decimal(22,6) DEFAULT NULL,
  10. `upsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
  11. `downsidecapture_ret_1y` decimal(22,6) DEFAULT NULL,
  12. `upsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
  13. `downsidecapture_ratio_1y` decimal(22,6) DEFAULT NULL,
  14. `upsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
  15. `downsidecapture_ret_2y` decimal(22,6) DEFAULT NULL,
  16. `upsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
  17. `downsidecapture_ratio_2y` decimal(22,6) DEFAULT NULL,
  18. `upsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
  19. `downsidecapture_ret_3y` decimal(22,6) DEFAULT NULL,
  20. `upsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
  21. `downsidecapture_ratio_3y` decimal(22,6) DEFAULT NULL,
  22. `upsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
  23. `downsidecapture_ret_4y` decimal(22,6) DEFAULT NULL,
  24. `upsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
  25. `downsidecapture_ratio_4y` decimal(22,6) DEFAULT NULL,
  26. `upsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
  27. `downsidecapture_ret_5y` decimal(22,6) DEFAULT NULL,
  28. `upsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
  29. `downsidecapture_ratio_5y` decimal(22,6) DEFAULT NULL,
  30. `upsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
  31. `downsidecapture_ret_10y` decimal(22,6) DEFAULT NULL,
  32. `upsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
  33. `downsidecapture_ratio_10y` decimal(22,6) DEFAULT NULL,
  34. `upsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
  35. `downsidecapture_ret_ytd` decimal(22,6) DEFAULT NULL,
  36. `upsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
  37. `downsidecapture_ratio_ytd` decimal(22,6) DEFAULT NULL,
  38. `upsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
  39. `downsidecapture_ret_incep` decimal(22,6) DEFAULT NULL,
  40. `upsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
  41. `downsidecapture_ratio_incep` decimal(22,6) DEFAULT NULL,
  42. PRIMARY KEY (`fund_id`,`end_date`)
  43. ) COMMENT='DolphinDB写回的基金历史捕获率指标表'