Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL optimization
Message
 
À
26/07/1999 10:24:26
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00246060
Message ID:
00246065
Vues:
23
Keith,

Try these changes;

Create indexes on DataPPO for Fed_taxid and Tax_sufx to allow optimization. You don't ever have to use these indexes yourself but Rushmore needs them. Then restructure your select to the one below;
	?SYS(3054,2)
	SELECT DataPPO.* ;
			, ReimbrsKey AS OldReimbrs ;
			, OtherId AS OldOtherId ;
			, DtToCompJul( MaintDate) AS MaintComp ;
			, DtToJul( MaintDate) AS MaintJul ;
			, dmlError.dm_Link ;
			, "K" AS StatusCode ;
			, DataPPO.Tax_Sufx AS Old_Sufx ;
			, .F. AS REPLACED ;
			, dmlError.CODE ;
		FROM DataPPO ;
		LEFT JOIN dmlError ;
			ON DataPPO.Fed_TaxId = dmlError.Fed_TaxId ;
				AND DataPPO.Tax_Sufx = dmlError.Tax_Sufx ;
                <strong>WHERE dmlError.Code = "120" ;</strong>
		INTO TABLE dmoPPO
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform