Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update in batch doesn't update the entire records
Message
 
 
À
09/12/2009 18:47:46
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Versions des environnements
SQL Server:
SQL Server 2008
Application:
Web
Divers
Thread ID:
01438298
Message ID:
01438316
Vues:
29
>>Some records from M where represented twice in the first result set because of INNER JOIN ?
>>What would be count for
>>
>>SELECT DISTINCT M2.AI
>> FROM M AS M2
>>...
>>
>
>You were right. Distinct does return 26401 records. I will have to add this clause in my main SQL to make sure to only get the primary keys as is.
>
>Thanks

Select your data as CTE (common table expression) and then update based on it - it would be easier to debug,
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform