cowandbodygrade.frm 1.5 KB

123456789101112131415
  1. TYPE=VIEW
  2. query=select `b`.`bgId` AS `bgId`,`b`.`intCowId` AS `evtCowId`,`b`.`scoreDate` AS `scoreDate`,substring_index(group_concat(`b`.`score` order by `e`.`dateEvtDate` DESC,`e`.`intEvtId` ASC separator \',\'),\',\',1) AS `score`,`b`.`empId` AS `empId`,`b`.`reproductionStep` AS `reproductionStep`,`b`.`intPastureId` AS `intPastureId` from (`heatwatch`.`bodygrade` `b` join `heatwatch`.`events` `e` on((`b`.`intEvtId` = `e`.`intEvtId`))) group by `e`.`intCowId`
  3. md5=862893bfb2d5d7b1510eeb3b199e1914
  4. updatable=0
  5. algorithm=0
  6. definer_user=roo
  7. definer_host=%
  8. suid=1
  9. with_check_option=0
  10. timestamp=2022-12-14 10:07:38
  11. create-version=1
  12. source=select `b`.`bgId` AS `bgId`,`b`.`intCowId` AS `evtCowId`,`b`.`scoreDate` AS `scoreDate`,substring_index(group_concat(`b`.`score` order by `e`.`dateEvtDate` DESC,`e`.`intEvtId` ASC separator \',\'),\',\',1) AS `score`,`b`.`empId` AS `empId`,`b`.`reproductionStep` AS `reproductionStep`,`b`.`intPastureId` AS `intPastureId` from (`bodygrade` `b` join `events` `e` on(`b`.`intEvtId` = `e`.`intEvtId`)) group by `e`.`intCowId`
  13. client_cs_name=utf8
  14. connection_cl_name=utf8_general_ci
  15. view_body_utf8=select `b`.`bgId` AS `bgId`,`b`.`intCowId` AS `evtCowId`,`b`.`scoreDate` AS `scoreDate`,substring_index(group_concat(`b`.`score` order by `e`.`dateEvtDate` DESC,`e`.`intEvtId` ASC separator \',\'),\',\',1) AS `score`,`b`.`empId` AS `empId`,`b`.`reproductionStep` AS `reproductionStep`,`b`.`intPastureId` AS `intPastureId` from (`heatwatch`.`bodygrade` `b` join `heatwatch`.`events` `e` on((`b`.`intEvtId` = `e`.`intEvtId`))) group by `e`.`intCowId`