Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
An update which does not finish
Message
De
20/04/2015 14:20:50
 
 
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Versions des environnements
SQL Server:
SQL Server 2012
Application:
Web
Divers
Thread ID:
01618796
Message ID:
01618807
Vues:
31
>This is one to one relationship and in the other case it's not 1 to 1. But I would not write this UPDATE that same way also. I'd rather use CTE and ROW_NUMBER approach.
>
>It's a bad idea to write UPDATE that way. Check out this blog post
>
>Dear FROM clause...
>
>This is one of my many favorites of his blogs.

Yes, I thought of that but in this case, the BusinessTime is not in relation with the Client table. It is only used to received the first and last date and use that as parameters to get a subset of records.

Could you provide an example on how you would establish this 1 to 1 relationship in a CROSS APPLY approach I believe?
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform