Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 260964

For questions about improving the performance and/or efficiency of database queries.

1 vote
2 answers
748 views

Why OFFSET / FETCH causing Performance issues with Queries in MS SQL 2019?

I have this select query: SELECT ITEM.ID ITEM_ID, ITEM.CODE ITEM_CODE, ITEM.DESCRIPTION ITEM_NAME, ITEM.CODE_CATEGORY_ID CATEGORY_ID, ITEM_CAT.CODE CATEGORY_CODE, IT …
Subin Benny's user avatar
-1 votes
1 answer
582 views

SQL optimization for XML Path [duplicate]

SELECT distinct STUFF( (SELECT distinct ',' + hg.CODE FROM SP_HD hg Inner join Purchase.SP_DT on GOODS_RECEIPT_ID = hg.ID WHERE PO_DT_ID = d.PO_DT_ID FOR XML PATH(''), TYPE ).val …
Subin Benny's user avatar