Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How To Do An IIF()...
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Divers
Thread ID:
01115062
Message ID:
01116066
Vues:
16
One more try
GROUP BY rd.transaction_date, tm.company_code, ISNULL(rdi.status, ''), ISNULL(rdi.used_by, '')
>Still only the one record.
>
>
>
>>Try
>>SELECT rd.transaction_date,
>>       0 as batchid,
>>       tm.company_code as entityid,
>>       count(*) as totrecs,
>>       rdi.status,
>>       rdi.used_by
>>FROM result_detail rd
>>JOIN telemrkt_company tm on rd.telemrkt_company = tm.id
>>LEFT OUTER JOIN result_detail_info rdi on rd.id = rdi.result_detail_id AND rdi.status IS NULL
>>GROUP BY rd.transaction_date, tm.company_code, rdi.status, rdi.used_by
>>ORDER BY company_code
>>
>>
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform