Viewing 15 posts - 1 through 15 (of 43 total)
Ah my apologies the test data was not what i was supposed to post as they did not match the OptionsMapping table times, the updated test data for the DailyMedicalPlanItem...
November 16, 2009 at 9:06 am
it will all be completely wrong ha ha, no its ok this is not the fully finished code the season/year is taken into account later
October 8, 2008 at 3:18 am
I managed to figure it out anyway cheers
Select playerId,
IsNull(p.firstName+ ' ','') + IsNull(p.MiddleName+ ' ','') + IsNull(p.LastName,'') as 'Player',
SUM(CASE WHEN Months = 'July' THEN 1 ELSE null END) AS...
October 7, 2008 at 5:39 am
thanks for you replay Jeff i checked out that best practices article and have generated the following code to create the necessary table and insert the data thanks for the...
October 6, 2008 at 6:43 am
thanks for your reply upendramkumar i have uploaded a pic of the results i am hopig to get you can view it here
Tim
October 6, 2008 at 5:36 am
if i remove the date from the group by leaving this sql
Select p.Id as 'playerId',
IsNull(p.firstName+ ' ','') + IsNull(p.MiddleName+ ' ','') + IsNull(p.LastName,'') as 'Player',
Cast(Case when DATENAME(MONTH, tl.Date) =...
October 3, 2008 at 8:26 am
Thanks a million man, that had been driving me crazy for while now
Cheers
Tim
July 22, 2008 at 9:56 am
sorry no those are the results i have displaying at the moment, i have a count for each club but now i need to group the clubs by league and...
July 16, 2008 at 4:42 am
thanks for your reply but do u know if there is some way i can group the columns because the results from my query are like this
Mon ...
July 8, 2008 at 5:46 am
Hi,
Thanks for your replies guys i managed to put some pieces of code together and get what i needed
SELECT Distinct Substring(DATENAME(MONTH, SeqDate), 0, 4) as 'Month',
Month(SeqDate) as 'MonthID',
CONVERT(VARCHAR(25),DATEADD(dd,-(DAY(SeqDate)-1),SeqDate), 103)...
February 13, 2008 at 9:22 am
Hi,
Thanks for your reply, i think i am 90% there but when i try to introduce my dates to the query i get the following error
'StartDate' is not a...
February 13, 2008 at 5:25 am
ok i have got this working but it is very slow so i will check out the other options u suggested and see if i can find something faster
Thanks...
January 21, 2008 at 7:23 am
Viewing 15 posts - 1 through 15 (of 43 total)