Viewing 13 posts - 1 through 13 (of 13 total)
Thank you Willem
It worked a treat.
I have also made some other alterations to normalize the data.
I put Agent names in to a seperate table and joined it to my query.
Also...
February 3, 2010 at 4:33 am
Its just clicked.
I replaced GROUP BY Printer with
GROUP BY SUBSTRING(Printer,1,CHARINDEX(@PrinterEnd,Printer)-1)
Full query is:
DECLARE @CopyStart VARCHAR(10),
@CopyEnd ...
November 24, 2009 at 7:52 am
Its just clicked.
I replaced GROUP BY Printer with
GROUP BY SUBSTRING(Printer,1,CHARINDEX(@PrinterEnd,Printer)-1)
Full query is:
DECLARE @CopyStart VARCHAR(10),
@CopyEnd ...
November 24, 2009 at 7:07 am
If I wanted to get this query to work on SQL Server 2000 what method would I need.
I can't use views because you can't declare variables in views.
I tried nested...
November 24, 2009 at 6:39 am
That makes a lot of sense Jeff thankyou.
The database holds thousands and thousands of records so I will definately benefit from the speed aspect.
Just one question.
you have set the third...
November 23, 2009 at 12:15 pm
Thanks Lutz
I used your second suggestion and it worked a treat.
Thanks once again for the expert advice on this Forum
Andy
November 21, 2009 at 6:37 am
Thanks Jeff
I have been doing some reading up on Substring and charindex as you suggested.
I came up with this query and it works great.
DECLARE
@CopyStart varchar(10),
@CopyEnd varchar(10),
@PrinterStart varchar(10),
@PrinterEnd varchar(10)
SET @CopyStart =...
November 21, 2009 at 3:36 am
Yes, sorry I forgot to say I added an extra column called comments.
I have since had a play around and if I use a details view to update the records...
October 24, 2009 at 8:43 am
Thanks SSC Veteran that worked a treat.
I now have my grid view displaying the correct data. I renamed the column headers and
i've added conditional formatting on the cells and now...
October 24, 2009 at 1:59 am
Once again Toni you have come up with the solution.
I can't tell you how much I appreciate it. I consider myself as a novice and its nice to know that...
January 25, 2009 at 8:55 am
Thanks once again Toni.
I have put in to practice what you said and all works great. I have tailored it to meet my needs such as change the rid column...
January 24, 2009 at 4:40 pm
Thanks Toni
I really appreciate the time you've taken to help me out.
I will apply all what you said and let you know how I got on.
Once again thank you ever...
January 17, 2009 at 9:34 am
Viewing 13 posts - 1 through 13 (of 13 total)