Viewing 15 posts - 1,261 through 1,275 (of 10,144 total)
louise 28346 (8/18/2016)
Its this part
SELECT 123, 1 UNION ALL
SELECT 456, 2 UNION ALL
SELECT 789, 1 UNION ALL
SELECT 789, 2 UNION ALL
SELECT 789, 3
Ive an issue with because my data...
August 18, 2016 at 7:40 am
Brandie Tarvin (8/18/2016)
ThomasRushton (8/18/2016)
erm... SELECT...
August 18, 2016 at 7:30 am
-- sample data setup
DROP TABLE #MyTable
SELECT
POS,
Employee_ID,
[Name],
[Date] = CAST([Date] AS DATE),
WkTimeStart = CAST(WkTimeStart AS TIME),
WkTimeEnd = CAST(WkTimeEnd AS TIME)
INTO #MyTable
FROM (
SELECT 18, 96, 'John', '01/07/2016',...
August 18, 2016 at 7:21 am
-- set up some data to code against
DROP TABLE #MyTable
SELECT *
INTO #MyTable
FROM (
SELECT 123, 1 UNION ALL
SELECT 456, 2 UNION ALL
SELECT 789, 1 UNION ALL
SELECT 789, 2 UNION ALL
SELECT 789,...
August 18, 2016 at 6:39 am
Grant Fritchey (8/18/2016)
ChrisM@Work (8/18/2016)
Brandie Tarvin (8/18/2016)
Brandie Tarvin (8/18/2016)
Ed Wagner (8/17/2016)
August 18, 2016 at 5:38 am
Brandie Tarvin (8/18/2016)
Brandie Tarvin (8/18/2016)
Ed Wagner (8/17/2016)
August 18, 2016 at 5:28 am
SELECT
sNo = DENSE_RANK() OVER(ORDER BY [name] DESC, cycleno),
cycleno, [name]
FROM #tmp1
ORDER BY [name] DESC, cycleno
August 18, 2016 at 3:55 am
joshua 15769 (8/17/2016)
I would like to thank you both for the great answers, i'm thinking, could I mark...
August 18, 2016 at 1:45 am
tindog (8/17/2016)
ChrisM@Work (8/17/2016)
tindog (8/17/2016)
ChrisM@Work (8/17/2016)
Luis Cazares (8/17/2016)
Brandie Tarvin (8/17/2016)
Eirikur Eiriksson (8/17/2016)
BrainDonor (8/17/2016)
ChrisM@Work (8/17/2016)
We have git hubs all over the UK. They're also known as Weatherspoons.You owe me a new keyboard...
😀
...just...
August 17, 2016 at 8:08 am
tindog (8/17/2016)
ChrisM@Work (8/17/2016)
Luis Cazares (8/17/2016)
Brandie Tarvin (8/17/2016)
Eirikur Eiriksson (8/17/2016)
BrainDonor (8/17/2016)
ChrisM@Work (8/17/2016)
We have git hubs all over the UK. They're also known as Weatherspoons.You owe me a new keyboard...
😀
...just managed to...
August 17, 2016 at 7:30 am
It sounds like one or more of the join columns are missing from whatever index is chosen, which would go some way to explaining the poor row count estimate and...
August 17, 2016 at 7:24 am
Luis Cazares (8/17/2016)
Brandie Tarvin (8/17/2016)
Eirikur Eiriksson (8/17/2016)
BrainDonor (8/17/2016)
ChrisM@Work (8/17/2016)
We have git hubs all over the UK. They're also known as Weatherspoons.You owe me a new keyboard...
😀
...just managed to save mine
😎
I...
August 17, 2016 at 6:52 am
Indianrock (8/17/2016)
Are you saying the table/column aliases etc actually have a bearing on...
August 17, 2016 at 6:07 am
There is a use case for having an ordinary index with the same leading edge column as the clustered index. If your table is very wide (meaning less rows per...
August 17, 2016 at 5:38 am
Anandkumar-SQL_Developer (8/17/2016)
...
August 17, 2016 at 3:43 am
Viewing 15 posts - 1,261 through 1,275 (of 10,144 total)