2010-12-06 16 views
0

Je tente d'ajouter les colonnes MV_AgeBased et MV_FeeInLieu, mais certaines colonnes peuvent avoir une valeur nulle ou vide dans la base de données, ce qui entraîne la remise à zéro des zéros de cette unité CodeEntity. Aucune suggestion?Aide de l'instruction de sélection Crystal Reports

 SELECT "AuditorYearEnd"."PP_MH_Pri", "AuditorYearEnd"."PP_MH_Other", 
"County"."Name", "AuditorYearEnd"."TOTAL_Personal_calc", 
"AuditorYearEnd"."PP_BusPersonal", "AuditorYearEnd"."TaxYr", 
"AuditorYearEnd"."CodeEntity", "AuditorYearEnd"."MV_AgeBased", 
"AuditorYearEnd"."MV_FeeInLieu" 
    FROM "txctr"."dbo"."AuditorYearEnd" "AuditorYearEnd" 
INNER JOIN "txctr"."dbo"."County" "County" ON "AuditorYearEnd"."CodeCounty"="County"."CodeCounty" 
    WHERE "AuditorYearEnd"."TaxYr"=2010 AND "AuditorYearEnd"."CodeEntity"='1010' 
+0

Pourquoi est-ce marqué pour les rapports de cristal? Est-ce une commande de source de données pour un .rpt? – PowerUser

Répondre

0
SELECT "AuditorYearEnd"."PP_MH_Pri", "AuditorYearEnd"."PP_MH_Other", 
"County"."Name", "AuditorYearEnd"."TOTAL_Personal_calc", 
"AuditorYearEnd"."PP_BusPersonal", "AuditorYearEnd"."TaxYr", 
"AuditorYearEnd"."CodeEntity", "AuditorYearEnd"."MV_AgeBased", 
"AuditorYearEnd"."MV_FeeInLieu" 
FROM ("txctr"."dbo"."AuditorYearEnd" "AuditorYearEnd" 
INNER JOIN "txctr"."dbo"."County" "County" ON "AuditorYearEnd"."CodeCounty"="County"."CodeCounty" 
WHERE "AuditorYearEnd"."TaxYr"=2010 AND "AuditorYearEnd"."CodeEntity"='1010') 

Ajouter "où [colonne] est non nulle" pour toutes les colonnes potentiellement nulles?

Pas absolument sûr de ce qui est demandé, ici.