Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What should we use?
Message
De
16/10/2008 16:42:17
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01355472
Message ID:
01355482
Vues:
22
This message has been marked as a message which has helped to the initial question of the thread.
>Hi,
>
>If we want compatibility with SQL Server, how should we write this statement?
>
>
>TEXT TO lcSQL NOSHOW TEXTMERGE 	
>	SELECT Trans.cStatus_codes_fk ,;
>  	Trans.yReferral_balance_amount, ;
>  	IIF(INLIST(cResolution_Codes_fk, <<lcRecalledStr>>),'1','0') as cIsRecalled,
>...
>
>where lcRecalledStr is a comma-delimited list of codes.
>
>Thanks.

Not sure I've got the exact syntax right but how about something like
	SELECT Trans.cStatus_codes_fk ,;
  	Trans.yReferral_balance_amount, ;
  	CASE WHEN cResolution_codes_fk IN( << lcRecalledStr >> ) THEN '1' ELSE '0' END as cIsRecalled,
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform