Viewing 7 posts - 1 through 7 (of 7 total)
I finally got it. Yours worked but when I added some more data it broke it.
INSERT INTO [dbo].[TestTable] ([keyfield], [datefield], [valuefield]) VALUES (14, '20080902 00:00:00.000', 4)
INSERT INTO [dbo].[TestTable] ([keyfield],...
July 24, 2008 at 2:48 pm
Msg 207, Level 16, State 1, Line 38
Invalid column name 'valset'.
You are calling cte2 from withing cte2. I'm trying to figure out what you are trying to do.
July 24, 2008 at 12:32 pm
The data is correct. On the 15,16,17,20 there is a 6. I don't want to pull the 20th because it is not sequential. The 18th is a...
July 24, 2008 at 8:55 am
Given an employee table( with columns Emp_ID,Emp_Name,Emp_Salary), how would you find out the fifth highest salary?
with SalaryRank as
(
select Emp_id,Emp_name,Emp_salary,
dense_rank() over (order by Emp_salary desc) as SalaryRank
from Salaries
)
select *
from...
July 24, 2008 at 7:38 am
I just spent two days determining if the table variable approach was faster than the CURSOR approach. It was a no-brainer. The CURSOR approach was faster. And it became even...
January 20, 2006 at 7:00 am
Is there any way to keep protect stored procedures in a multi-user environment?
December 16, 2005 at 5:14 am
Everwhere I've read about SQL Server and source control say it is "fully integrated" but thats all they say.
I want to know if it works like VSS does with my...
December 16, 2005 at 4:55 am
Viewing 7 posts - 1 through 7 (of 7 total)