Guest User

Untitled

a guest
Apr 17th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.73 KB | None | 0 0
  1. PatNr   EventDate   MTA
  2. 1   2003-09-01  3
  3. 4   2008-10-21  3
  4. 4   2008-04-23  3
  5. 4   2007-03-05  3
  6. 4   2007-10-31  3
  7.  
  8. SELECT Patienten . * , GROUP_CONCAT( IF( CerebrovaskulaereEreignisse.PatNr = Patienten.PatNr, CerebrovaskulaereEreignisse.MTA, NULL ) ) AS 'MTA'
  9. FROM Patienten
  10. JOIN CerebrovaskulaereEreignisse ON Patienten.PatNr = CerebrovaskulaereEreignisse.PatNr
  11. GROUP BY Patienten.PatNr
  12. LIMIT 0 , 30
  13.  
  14. PatNr   BirthDate   Begin           Status  Sex     MTA
  15. 1   1940-04-29  2001-09-10  1   2   [BLOB - 1B]
  16. 4   1948-01-24  2002-01-29  1   2   [BLOB - 7B]
  17. 6   1969-02-02  2001-02-13  1   1   [BLOB - 1B]
  18. 7   1940-06-06  2001-02-13  1   2   [BLOB - 1B]
  19. 11  1952-05-31  2001-07-09  1   1   [BLOB - 1B]
  20. 12  1961-08-11  2000-11-29  1   1   [BLOB - 3B]
Add Comment
Please, Sign In to add comment