Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
T-SQL 0.28 KB | None | 0 0
  1. select
  2.     per.id persona,
  3.     d.id Dolg,
  4.     (select a.full_adr from address a where a.id = c.r_adres_id) adres,
  5.     c.typ,
  6.     cast(c.dt as date)
  7. from person per
  8.     inner join debt d on d.parent_id = per.id
  9.     inner join contact_log c on c.r_debt_id = d.id
  10.  
  11. where c.typ = 6
  12.     and d.id in (
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement