Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

8
  • I'm getting this error 'Incorrect syntax near 'order'.' Commented Nov 7, 2019 at 9:18
  • @Honestman dbfiddle.uk/… check this fiddle Commented Nov 7, 2019 at 9:18
  • OP is using SQL Server 2012 Commented Nov 7, 2019 at 9:19
  • @Squirrel dbfiddle.uk/… check sql server 2012 Commented Nov 7, 2019 at 9:20
  • 1
    my apology . . i must have got the version mix-up in my head Commented Nov 7, 2019 at 9:21