Guest User

Untitled

a guest
Dec 14th, 2017
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.49 KB | None | 0 0
  1. SELECT DISTINCT
  2. chb.ck_filename, chb.ck_reason, ' ' as reason , chb.ck_id, chb.ck_remarks, '
  3. ' pr_teuda, dls.degarrant,
  4. trn.trdate ,trn.trvid ,plh.ph_name ,bsn.bu_name , dls.deid, chb.ck_trid
  5. trid,trn.tramount, dls.debuid,bsn.bu_mobiles,plh.ph_phone,
  6. chb.ck_created,emp.emp_name as sohen,plh.ph_id,
  7. (
  8. select gvpl.gvpl_descr from gviya gv1, gviya_place gvpl where
  9. gv1.gv_gvpl_id = gvpl.gvpl_id
  10. and gv1.gv_id =
  11. (select max(gviya.gv_id) from gviya
  12. where gv_trid = chb.ck_trid)
  13. ) as gv_place,
Add Comment
Please, Sign In to add comment