在我创建的这份报告中,它应该是一个有限的结果。这里有一些截图以及拉动的SQL。期望的结果也将如下:
设计表格:
结果:
预期结果:
连接:
没有Param:
查询:
www.salesforce.com
SELECT Contact_Date_of_Death__c, Type, Centers_Case_Number__c, Id
FROM Case
WHERE Type='Standard'
EXTERNAL JOIN Case.Centers_Case_Number__c={?P:\Crystal Reports\NAV\NAVCrystal.dsn: Center_Trust_Bill_Pay_Job.No_} AND Case.Id={?www.salesforce.com: Opportunity.SF_Case_Id_Import__c}
P:\Crystal Reports\NAV\NAVCrystal.dsn
SELECT "Center_Trust_Bill_Pay_Job"."Description", "Center_Trust_Bill_Pay_Job"."No_", "Center_Trust_Bill_Pay_Job"."Trust Type"
FROM "BFGLLC"."dbo"."Center Trust Bill Pay$Job" "Center_Trust_Bill_Pay_Job"
WHERE "Center_Trust_Bill_Pay_Job"."No_"={?www.salesforce.com: Case.Centers_Case_Number__c}
ORDER BY "Center_Trust_Bill_Pay_Job"."No_"
EXTERNAL JOIN Center_Trust_Bill_Pay_Job.No_={?P:\Crystal Reports\NAV\NAVCrystal.dsn: Center_Trust_Bill_Pay_Job_Ledger_Entry.Job No_}
P:\Crystal Reports\NAV\NAVCrystal.dsn
SELECT "Center_Trust_Bill_Pay_G_L_Account"."No_", "Center_Trust_Bill_Pay_Job_Ledger_Entry"."Posting Date", "Center_Trust_Bill_Pay_Job_Ledger_Entry"."Line Amount (LCY)", "Center_Trust_Bill_Pay_Job_Ledger_Entry"."Job No_"
FROM "BFGLLC"."dbo"."Center Trust Bill Pay$Job Ledger Entry" "Center_Trust_Bill_Pay_Job_Ledger_Entry" INNER JOIN "BFGLLC"."dbo"."Center Trust Bill Pay$G_L Account" "Center_Trust_Bill_Pay_G_L_Account" ON "Center_Trust_Bill_Pay_Job_Ledger_Entry"."No_"="Center_Trust_Bill_Pay_G_L_Account"."No_"
WHERE "Center_Trust_Bill_Pay_Job_Ledger_Entry"."Job No_"={?P:\Crystal Reports\NAV\NAVCrystal.dsn: Center_Trust_Bill_Pay_Job.No_}
www.salesforce.com
SELECT Commissioned_Sales_Rep__c, Biling_Notes__c, SF_Case_Id_Import__c
FROM Opportunity
EXTERNAL JOIN Opportunity.SF_Case_Id_Import__c={?www.salesforce.com: Case.Id}