Crystal Report显示数据库查询

时间:2012-10-30 20:07:49

标签: crystal-reports

我是CR的新手。我有一个别人创建的报告。当我使用数据库时 - > 'Show SQL Query'命令WHERE子句有一堆名字。我怎样才能找到这个名单的来源?

SELECT "billing_tx_charge_detail_2004"."date_of_service", "billing_tx_charge_detail_2004"."v_SERVICE_CODE",     "billing_tx_charge_detail_2004"."v_PROVIDER_NAME",     "billing_tx_charge_detail_2004"."service_status_value", "billing_tx_charge_detail_2004"."v_client_name", "billing_tx_charge_detail_2004"."guarantor_liability", "billing_tx_charge_detail_2004"."CLAIM_NUMBER", "billing_tx_charge_detail_2004"."GUARANTOR_ID", "billing_tx_charge_detail_2004"."v_service_value", "billing_tx_charge_detail_2004"."PATID", "cw_patient_notes"."service_duration", "cw_patient_notes"."note_type_value"FROM   "SYSTEM"."billing_tx_charge_detail_2004" "billing_tx_charge_detail_2004" LEFT OUTER JOIN "CWSAVPMLIVESYSTEM"."cw_patient_notes" "cw_patient_notes" ON ((("billing_tx_charge_detail_2004"."FACILITY"="cw_patient_notes"."FACILITY") AND ("billing_tx_charge_detail_2004"."PATID"="cw_patient_notes"."PATID")) AND ("billing_tx_charge_detail_2004"."EPISODE_NUMBER"="cw_patient_notes"."EPISODE_NUMBER")) AND ("billing_tx_charge_detail_2004"."JOIN_TO_TX_HISTORY"="cw_patient_notes"."JOIN_TO_TX_HISTORY")
WHERE  ("billing_tx_charge_detail_2004"."date_of_service">={d '2009-07-01'} 
AND "billing_tx_charge_detail_2004"."date_of_service"<={d '2009-07-31'}) AND 
("billing_tx_charge_detail_2004"."v_PROVIDER_NAME"='BARNHART,SCOTT' OR
 "billing_tx_charge_detail_2004"."v_PROVIDER_NAME"='BINKER,BARB  MSW LISW' OR 
"billing_tx_charge_detail_2004"."v_PROVIDER_NAME"='BRETNAN,BAUNEEN' OR 
"billing_tx_charge_detail_2004"."v_PROVIDER_NAME"='CROWN,DWAYNE  BS  NCAC-I  LADAC' 
OR "billing_tx_charge_detail_2004"."v_PROVIDER_NAME"='COFFEE,RAMBA  BA  LADAC' OR
"billing_tx_charge_detail_2004"."v_PROVIDER_NAME"='DECODE,TENISE  MC LMFT LADAC' OR 
"billing_tx_charge_detail_2004"."v_PROVIDER_NAME"='GONSALEZ,MAREN' OR
"billing_tx_charge_detail_2004"."v_PROVIDER_NAME"='HITAN,TOM' OR 
"billing_tx_charge_detail_2004"."v_PROVIDER_NAME"='KOTUE,SHEENA')
 ORDER BY "billing_tx_charge_detail_2004"."v_SERVICE_CODE",
 "billing_tx_charge_detail_2004"."date_of_service", "billing_tx_charge_detail_2004"."PATID"

2 个答案:

答案 0 :(得分:0)

可在报告中找到 - &gt;选择专家命令!万岁!

我一发现这个问题就知道了,我会找到答案:)

答案 1 :(得分:0)

你有一些选择。它是:

  • 在记录选择公式(报告&gt;编辑选择公式&gt;记录)
  • 在“显示SQL查询”窗口中进行硬编码(尽管不太可能)
  • 在与报告一起保存的参数中,或包含默认值(甚至不太可能)