Viewing 6 posts - 46 through 51 (of 51 total)
UPDATE a --<--- I changed this!!!
SET a.col1 = b.col1,
a.col2 = b.col2
FROM #temptable1 a
RIGHT OUTER...
July 29, 2008 at 1:40 am
Here is a script but it is not ideal -
GSquared is right when he said you should try an identity col first.
This should work on SQL2000 although I did...
July 25, 2008 at 7:33 am
The following works for me. It uses dynamic sql: (I am all for a simpler solution if anybody else has one!)
DECLARE @MONTHS NVARCHAR(MAX)
SELECT @MONTHS = ''
SELECT @MONTHS = @MONTHS +...
July 24, 2008 at 4:45 am
You can try the PIVOT operator, but you have to specify the columns that it will pivot on, so it is not really dynamic...
To get test data:
CREATE TABLE sales(name nvarchar(20)...
July 24, 2008 at 1:59 am
Try
WHERE ISNUMERIC(REPLACE (REPLACE (ex,'.','X'), '/','')) = 0
The REPLACE (ex,'.','X') just changes the . to a letter as otherwise ISNUMERIC wil be true.
The other replace function just removes the // and...
July 18, 2008 at 1:43 am
I think this is what you want:
(I grouped both separately to remove the duplicates from each table.)
Select
E.Number, E.Name, E.Date As Date, M.Text1
From
Entries As E
INNER JOIN (SELECT Number...
June 3, 2008 at 2:19 am
Viewing 6 posts - 46 through 51 (of 51 total)