eric.dizon
9th December 2013, 18:56
Using query.extend.________ functionality I would like to formulate this following query. It shows no result for both REFERS TO and the following filter
query.extend.where("tccom140.bpid = tccom100.bpid AND tccom100.cadr = tccom130.cadr ")
Can anyone show me how can i apply this query in either query.extend
or is it possible to accomplish same result in main.table.io section ?
This is the query in T-SQL.
SELECT ttccom140600.t_ccnt, ttccom140600.t_finm, ttccom140600.t_surn, ttccom140600.t_jobt, ttccom140600.t_bpid, ttccom140600.t_telp, ttccom140600.t_info,
ttccom100600.t_nama, ttccom100600.t_cadr ,
ttccom130600.t_nama, ttccom130600.t_namc, ttccom130600.t_ccty
FROM ttccom140600 INNER JOIN ttccom100600 ON ttccom140600.t_bpid = ttccom100600.t_bpid
INNER JOIN ttccom130600 ON ttccom130600.t_cadr = ttccom100600.t_cadr
query.extend.where("tccom140.bpid = tccom100.bpid AND tccom100.cadr = tccom130.cadr ")
Can anyone show me how can i apply this query in either query.extend
or is it possible to accomplish same result in main.table.io section ?
This is the query in T-SQL.
SELECT ttccom140600.t_ccnt, ttccom140600.t_finm, ttccom140600.t_surn, ttccom140600.t_jobt, ttccom140600.t_bpid, ttccom140600.t_telp, ttccom140600.t_info,
ttccom100600.t_nama, ttccom100600.t_cadr ,
ttccom130600.t_nama, ttccom130600.t_namc, ttccom130600.t_ccty
FROM ttccom140600 INNER JOIN ttccom100600 ON ttccom140600.t_bpid = ttccom100600.t_bpid
INNER JOIN ttccom130600 ON ttccom130600.t_cadr = ttccom100600.t_cadr