Viewing 15 posts - 76 through 90 (of 237 total)
both examples look good to me, is there a way of making that dynamic? the amount of names are 10 in number at present and although that could change the...
January 20, 2012 at 8:41 am
that's great, thanks for your kind patience
January 9, 2012 at 9:07 am
Many thanks, I've tried your solutions and the first dynamic version from Cadavre works despite the fact syscolumns is in the query, when I substitute this with sys.columns it tells...
January 9, 2012 at 8:16 am
There is one more question regarding this, is there a way this can be achieved without specifying the column names (other than the date field) as I may need to...
January 9, 2012 at 7:41 am
thanks GilaMonster and Cadavre that's helped me a lot, I'm going to try and get my head round pivot and unpivot to see how this works, meanwhile you've both provided...
January 9, 2012 at 7:33 am
just in case it will help I've included a script to build a test table
USE test
GO
-- Creating Test Table
CREATE TABLE testtable(date datetime, jim VARCHAR(20), Dave VARCHAR(20),Tony VARCHAR(20),Mike...
January 9, 2012 at 7:13 am
Thank you so much for getting back to me so fast.I've googled your suggestion but can't see how that can help.
January 9, 2012 at 7:04 am
That is brilliant, thank you so much, it's exactly what I needed
October 3, 2011 at 7:00 am
Ok, as per Jeff's kind prompt I've created a script to create a test database to show what I'm after.
IF OBJECT_ID('mycalls','U') IS NOT NULL ...
October 3, 2011 at 6:11 am
My opologises, it seems I'd formatted the text wrong, the tables are made up like
table1
name as varchar(50)
[Number] as Varchar(20)
table2
[Number] as varchar(20)
[date of call] as datetime
In both tables the number field...
October 1, 2011 at 3:26 pm
Thanks Lowell for your help on this, I've now got a couple of ideas to try
March 7, 2011 at 11:39 am
thanks for the quick reply, at the present I need this for SQL2000. The senario I want to use this in a webpage where you click on a letter, say...
March 7, 2011 at 7:04 am
Thanks for the reply Lars, not sure how to do either of those suggestions
January 11, 2011 at 4:12 am
That's great, works a treat,thanks Wayne and Jeff
October 29, 2010 at 9:56 am
Gianluca Sartori (4/28/2010)
Use parenthesis around the two LIKE conditions:
select *
from resource
where [date] > '02/02/2010'
and ( [Alan] like 'In%' or [Alan] like 'R%' )
Thats...
April 28, 2010 at 3:34 am
Viewing 15 posts - 76 through 90 (of 237 total)