|
But when include other table,The nulls are because your CASE statement has no ELSE. Compare the CASE statement in this to your earlier statement where you had (else ' ') as part of the statement.
SELECT VC00.VCNCV, TM00.TMNOML,VC00.VCDTCV, VC00.VCCDIV, case when
VCESPC='S' then 'P' end FROM VC00, TM00, VC00E WHERE
VC00.VCESTA='A' and VC00.VCCCLI=TMCTER and VC00.VCCDIV='USD' ORDER
BY VC00.VCNCV
The querry returns a few lines with the same information.
RESULT:
Nº CV Nombre interno Im.total CV divisas C.DivisaExpresiónCASE
30.655 xxxxxxxxxxxxxxxx ,00 USD -
30.655 xxxxxxxxxxxxxxxx ,00 USD -
30.655 xxxxxxxxxxxxxxxx ,00 USD -
30.655 xxxxxxxxxxxxxxxx ,00 USD -
30.655 xxxxxxxxxxxxxxxx ,00 USD -
30.655 xxxxxxxxxxxxxxxx ,00 USD P
30.655 xxxxxxxxxxxxxxxx ,00 USD P
30.655 xxxxxxxxxxxxxxxx ,00 USD P
30.655 xxxxxxxxxxxxxxxx ,00 USD -
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.