Viewing 15 posts - 1,621 through 1,635 (of 10,144 total)
I bet I'm not the only one around here who sits on the next potential iteration of the OP's query waiting for responses before posting. Here's one of those:
SELECT --DISTINCT...
April 26, 2016 at 9:53 am
Have you tried this?
SELECT Distinct Systems.SiteNumber AS 'SiteNumber',
...
April 26, 2016 at 6:11 am
mbavabohrude (4/26/2016)
when i run the inner join seperately...
April 26, 2016 at 5:32 am
Comment out the derived table, then selectively remove and restore the filters from the WHERE clause. Observe what happens. How many rows are in table dbo.PolicyAudit with p.Status ...
April 26, 2016 at 4:53 am
mbavabohrude (4/26/2016)
April 26, 2016 at 4:43 am
Try this alternative to your query. The significant change is removing the right join. Most folks avoid them - a mix of right joins and left joins in the same...
April 26, 2016 at 3:59 am
There are numerous RID lookups in the plan. It's rare for a table to play better without a clustered index than with one. There's even an ordinary index called PK_...
April 25, 2016 at 7:20 am
Phil Parkin (4/22/2016)
BLOB_EATER (4/22/2016)
He lost me on freezer performance...The walking freezer is what I want to see.
Manchester. That's where my ex wife lives.
April 22, 2016 at 7:49 am
There are a couple of ways to rewrite this code, discussed here. Choose one, document it, and encourage folks to stick with it.
April 22, 2016 at 4:44 am
Another way:
WITH SampleData ([Employee No.], [Rag Rating], [Timestamp]) AS (
SELECT 1, 'Green', CONVERT(DATE,'21/04/2016',103) UNION ALL
SELECT 1, 'Yellow', CONVERT(DATE,'20/04/2016',103) UNION ALL
SELECT 1, 'Yellow', CONVERT(DATE,'19/04/2016',103) UNION ALL
SELECT 1, 'Green', CONVERT(DATE,'18/04/2016',103) UNION ALL
SELECT...
April 21, 2016 at 8:40 am
There's some discussion of it following this post.
April 20, 2016 at 8:48 am
below86 (4/20/2016)
April 20, 2016 at 8:33 am
VSSGeorge (4/19/2016)
The full execution plan is not available as an error message is encountered.
Msg 1105, Level 17, State 2, Line 61
Could not allocate...
April 19, 2016 at 6:30 am
Can you post it as a .sqlplan file attachment please?
April 14, 2016 at 8:37 am
Those two UNIONed queries would probably be more efficient run as one query. also, is that left-joined table actually necessary except for the outer SELECT? This is what I mean:
SELECT
GLItems.GLChartOfAccount,
GLItemValue...
April 13, 2016 at 8:49 am
Viewing 15 posts - 1,621 through 1,635 (of 10,144 total)