Viewing 15 posts - 7,141 through 7,155 (of 10,143 total)
john.acb (10/25/2010)
SELECT
col1,
col2,
col3,
...
...
COUNT(CASE WHEN...
October 25, 2010 at 4:58 am
john.acb (10/25/2010)
Select
COUNT(col1) OVER(Partition By col1) as 'First' ,
COUNT(col1) OVER(Partition By col1) as 'Second' ,
COUNT(col1) OVER(Partition By col1) as 'Third',
...
October 25, 2010 at 4:40 am
gmrose (10/21/2010)
October 22, 2010 at 9:32 am
Ray K (10/22/2010)
Tango. Golf. India. Foxtrot.
Heh yeah and only 2 1/2 hours until beertime! 🙂
October 22, 2010 at 6:49 am
Brandie Tarvin (10/22/2010)
Do you do spicy chili or non-spicy?
I love a good chili flavour. This stuff takes some beating. I made some a week ago using Rick Stein's recipe and...
October 22, 2010 at 6:29 am
Brandie, please can you share your recipe? Most recipes over here suck. The one I use is modified from a Texas chili-cooking competition and takes ages.
October 22, 2010 at 6:00 am
hallidayd (10/22/2010)
The...
October 22, 2010 at 5:37 am
Rootfixxxxxxer, can you please confirm which SQL Server version you are using?
The code I posted is stage 1 - optimise the query.
The new columns names would be generated in stage...
October 22, 2010 at 4:33 am
Blimey Gianluca, first-rate stuff and quick too. I was going to start by offering some improvements to the original query, then finish up with a cross-tab.
DROP TABLE #PontoRegistos
CREATE TABLE #PontoRegistos...
October 22, 2010 at 4:26 am
Is there a question here?
October 22, 2010 at 3:50 am
CirquedeSQLeil (10/21/2010)
editing
Quite right too, your first draft was rubbish 😛
October 22, 2010 at 2:27 am
sharath.chalamgari (10/21/2010)
...Please let me know if i am wrong in any way
Nope, if the results are correct then it's not wrong. It may not be the fastest show in the...
October 22, 2010 at 2:24 am
ColdCoffee (10/21/2010)
Chris Morris-439714 (10/21/2010)
ColdCoffee (10/21/2010)
And i presume your EmpName does not have trailin/leading commas.. Else we will have to use another method.
There's a trick for that...put them in then
REPLACE(',' +...
October 22, 2010 at 2:20 am
ColdCoffee (10/21/2010)
And i presume your EmpName does not have trailin/leading commas.. Else we will have to use another method.
There's a trick for that...put them in then
REPLACE(',' + EmpName + ',',',,',',')
October 21, 2010 at 10:09 am
Why do you think the query should return only one row (or none) regardless of how many rows may or may not match the filter?
I'm not sure if this...
October 21, 2010 at 8:14 am
Viewing 15 posts - 7,141 through 7,155 (of 10,143 total)