Ver Mensaje Individual
  #7 (permalink)  
Antiguo 22/11/2005, 13:35
SOFIA_ME_GUSTA
 
Fecha de Ingreso: octubre-2005
Mensajes: 365
Antigüedad: 19 años, 5 meses
Puntos: 0
Aquí pongo el codigo original de lo que estoy intentando hacer, es decir reemplazar el WHERE ya mencionado por



Código PHP:
FROM Claims LEFT JOIN ClaimsFollowUp ON Claims.ClaimID=ClaimsFollowUp.RepricingID
LEFT JOIN Repricing ON ClaimsFollowUp
.RepricingID=Repricing.RepricingID 
Con el error de que me Falta operador, lo cual me parece inconcebible (já, estoy en Acces)

Bueno si alguien me socorre le estaré inmensamente agradecirdo.

Saludos.


Código PHP:
SELECT Claims.ClaimIDClaims.PatientID AS PatientClaims.ProviderID AS ProividerClaims.InsurerID AS InsurerClaims.DateOfService AS DOS
Claims.DateOfReceiptByMDabroad AS DORRepricing.ConvertedHospitalCharges AS Hosp_ChargesRepricing.HospitalChargesDiscountAmount AS Hosp_Dct_to_InsurerRepricing.ConvertedProfessionalCharges AS Prof_ChargesRepricing.ProfessionalChargesDiscountAmount AS Prof_Dct_to_Ins, (Repricing.ConvertedTotalCharges-(Prof_Dct_to_Ins+Hosp_Dct_to_Insurer)) AS Due_By_InsurerClaims.HospitalChargesDiscount AS Hosp_Pct_to_MDClaims.ProfessionalChargesDiscount AS Prof_Pct_to_MDSUM(ClaimsFollowUp.AmountReceived) AS IPDue_By_Insurer-IP AS Balance, (((Hosp_Charges-Hosp_Dct_to_Insurer)*100)/Due_By_Insurer) AS perc_hospital, (((Prof_Charges-Prof_Dct_to_Ins)*100)/Due_By_Insurer) AS perc_professional, ((Balance*perc_hospital)/100) AS Hosp_Balance, ((Balance*perc_professional)/100
AS 
Prof_Balance, (Hosp_Balance*Hosp_Pct_to_MD) AS Hosp_Fees_Outs, (Prof_Balance*Prof_Pct_to_MD) AS Prof_Fees_Outs, (Hosp_Fees_Outs+Prof_Fees_Outs
AS 
Total_Fees_OutstandingClaims.ClaimStatusClaims.Responsible


FROM Claims LEFT JOIN ClaimsFollowUp ON Claims
.ClaimID=ClaimsFollowUp.RepricingID
LEFT JOIN Repricing ON ClaimsFollowUp
.RepricingID=Repricing.RepricingID 



GROUP BY Claims
.ClaimStatusClaims.ClaimIDRepricing.ConvertedTotalChargesRepricing.ConvertedProfessionalChargesRepricing.ConvertedHospitalChargesClaims.HospitalChargesDiscountClaims.ProfessionalChargesDiscountRepricing.ProfessionalChargesDiscountAmount
Repricing.HospitalChargesDiscountAmountClaims.DateOfServiceClaims.DateOfReceiptByMDabroadClaims.ResponsibleClaims.InsurerID
Claims.ProviderIDClaims.PatientID