Viewing 15 posts - 961 through 975 (of 1,473 total)
Kelvin Phayre (12/9/2008)
I then took a different tac. I...
December 9, 2008 at 11:46 am
1. Remove the WHERE from your CTE.
2. Add the line
INNER JOIN TestStep T ON P.ProcessID= T.ProcessID
to your final select
December 9, 2008 at 9:34 am
Give this article a read.
http://www.sqlservercentral.com/articles/T-SQL/63681/
The X is the derived table alias, doesn't have anything to do with the GROUP BY.
December 9, 2008 at 9:26 am
I think this will be more along the lines of what you're looking for to get all your products. Please note, that this may be very slow, but I...
December 9, 2008 at 9:05 am
Ok, I thought that might be what you were attempting, but 25% chunks seemed a bit large, so I wanted to verify ;). David's examples come out of the...
December 9, 2008 at 8:48 am
What are you trying to do with the TOP 25 Percent's?
I'm not quite getting what you want returned here, can you provide your expected results based on that...
December 9, 2008 at 8:14 am
Kelvin Phayre (12/9/2008)
December 9, 2008 at 6:19 am
Chris Morris (12/9/2008)
You tell us. There are no mindreaders here.
I knew you were going to say that.
December 9, 2008 at 6:13 am
If the situation is really as simple as your example, you can always use an IF instead. (It's probably not, but I'll try the easy way out first).
IF @Field1...
December 8, 2008 at 5:24 pm
CREATE PROCEDURE Test
@Field1varchar(5) = 'foo'
AS
INSERT INTO MyTable (Field1)
VALUES (@Field1)
December 8, 2008 at 4:51 pm
Bob Hovious (12/7/2008)
December 8, 2008 at 10:11 am
Bob Hovious (12/7/2008)
-- adding/subtracting integers to datetime = adding/subtracting daysset @dt = dateadd(mm,1,@dt)-1-- adds a month then subtracts a day
select @dt as [Last Date of Subject Month]
Note that this only...
December 7, 2008 at 2:51 pm
Jeff Moden (12/6/2008)
December 6, 2008 at 8:28 am
If you created a stored procedure, and your header looks like this:
CREATE PROCEDURE Blah
@firmname varchar(50)
AS
and not like
CREATE PROCEDURE Blah
@firmname varchar(50)...
December 5, 2008 at 3:28 pm
Goldmine... ack. Some nasty memories of that one.
Can you just add an identity column to the table and import that as well for uniqueness?
December 5, 2008 at 11:24 am
Viewing 15 posts - 961 through 975 (of 1,473 total)