Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing the last child record from same parent if seque
Message
From
29/06/2015 11:12:59
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2012
Application:
Web
Miscellaneous
Thread ID:
01621484
Message ID:
01621551
Views:
32
>
>SELECT * FROM InvoiceTemp
> WHERE InvoiceTemp.RowNumberbetween 2 and RowTotal AND InvoiceTemp.NoStatus=7
>
>However, this query will not select only consecutive last rows, it will select all rows except the very last one with the particular status. I need to think more about how to transform this query to only get consecutive last rows with that status and not all rows with that status if this is what you're after.

Yes, I will follow up on the most recent message.
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