Viewing 15 posts - 4,201 through 4,215 (of 10,144 total)
dwain.c (8/8/2013)
ChrisM@Work (8/8/2013)
Howard - the name of the guy made me chuckle, given the pidgin English 😀
I've been hearing a lot of Tok Pisin for the last week. ...
August 9, 2013 at 1:17 am
That's well sneaky Stefan! This mod should make it quicker, too:
;with cte1 as (
-- get all interesting months
select
FirstDay = dateadd(month, N, '20100101'),
qq = dateadd(month, 1, dateadd(month, N, '20100101'))
from...
August 8, 2013 at 9:32 am
Stefan_G (8/7/2013)
A little challenge:Assume there is a clustered index on the date column.
Can you create a query that exploits the clustered index to achieve even better performance?
Borrowing from Luis' test...
August 8, 2013 at 7:46 am
GilaMonster (8/8/2013)
ChrisM@Work (8/8/2013)
August 8, 2013 at 7:10 am
Sounds like a Sisyphean task, similar to those given to raw recruits of some services - "Get me a Portuguese handpump and bring a bucket of steam with you".
August 8, 2013 at 6:57 am
Hi James
The table alias 'c' is now used in the APPLY subquery and is not visible to the outer SELECT list. If it were in the SELECT list of the...
August 8, 2013 at 6:44 am
This is an exact match for your stated requirements and results. However, if I were a betting person, I'd put money on it being wrong - because you've missed out...
August 8, 2013 at 6:40 am
HowardW (8/8/2013)
ChrisM@Work (8/8/2013)
Howard - the name of the guy made me chuckle, given the pidgin English 😀
Check out the strap-line under the logo on the website as well. Comedy...
August 8, 2013 at 6:11 am
Howard - the name of the guy made me chuckle, given the pidgin English 😀
Has anyone else had issues with posting image links? I've used Postimg before and it's...
August 8, 2013 at 5:30 am
This is a real stab in the dark;
SELECT
MT.[Organisation ]
,MT.[Assignment Number ]
,MT.[First Name ]
,MT.[Last Name ]
,MT.[Position Title ]
,MT.[Site Name ]
,MT.[Date of Expense ]
,MT.[Reason ]
,MT.[Expense Item ]
,MT.[From ]
,MT.[FromPostcode ]
,MT.[To ]
,MT.[ToPostcode ]
,MT.[Step...
August 8, 2013 at 5:27 am
You will need to include both tables in your query:
FROM employers
LEFT JOIN superusers
August 8, 2013 at 5:20 am
Luis Cazares (8/7/2013)
wolfkillj (8/7/2013)
Sean Grebey (8/6/2013)
select ROUND(sum(ContractValue),2) ContractValue, MONTH(ContractDate), YEAR(ContractDate)
From Reporting.dbo.PrgSum
Group by...
August 7, 2013 at 9:36 am
Sean Lange (8/7/2013)
Please don't cross post. It just fragments the replies.Here is the other one. http://www.sqlservercentral.com/Forums/Topic1481654-392-1.aspx
1970's toilet graffiti: on the left-hand side of the cubicle is written "see other side...
August 7, 2013 at 7:45 am
rajg (8/7/2013)
August 7, 2013 at 7:28 am
Viewing 15 posts - 4,201 through 4,215 (of 10,144 total)