Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
An update which does not finish
Message
From
20/04/2015 14:20:50
 
General information
Forum:
Microsoft SQL Server
Category:
Other
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01618796
Message ID:
01618807
Views:
34
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform