Viewing 15 posts - 6,226 through 6,240 (of 7,187 total)
I see. Perhaps points will be refunded in due course.
The explanation appears to explain why RANK is preferable to DENSE_RANK, but not why it's preferable to the other two,...
October 23, 2007 at 8:27 am
Loner (10/22/2007)
The salary in Europe, Australia and New Zealand is very low, you sure you want to work there.
Wow! What a sweeping generalisation. Europe's a big place, you...
October 23, 2007 at 8:12 am
Can I have my point(s), then, please? I gave the answer RANK, but it was marked wrong.
Thanks
John
October 23, 2007 at 4:16 am
So what is the correct answer? The answer and the explanation contradict each other.
John
October 23, 2007 at 1:32 am
This really isn't difficult. What have you tried so far?
John
October 19, 2007 at 9:27 am
OK, so you have to tweak your "@sql=" line so that it inserts @MyCol in the middle as well as at the end. But I'm sure I don't need...
October 19, 2007 at 5:47 am
October 19, 2007 at 4:31 am
You need to use dynamic SQL. Make sure you understand the security consequences of doing this. Your query will look something like this:
DECLARE @MyCol nvarchar(28)
DECLARE @sql nvarchar(400)
SET @MyCol...
October 19, 2007 at 4:29 am
Are you using SQL Server 2005? If so, please don't cross-post in the SQL Server 2005 forum. If not, please don't cross-post in this forum.
John
October 19, 2007 at 4:22 am
Especially if you use incorrect or incomplete syntax.
October 19, 2007 at 4:11 am
Gary
I hope you took a backup of hostdb before you started!
Please will you post all scripts you ran so that we can try to see what went wrong.
John
October 19, 2007 at 3:43 am
Gary
The easiest way to do it is to right-click on your existing database in Enterprise Manager and choose All Tasks, Generate SQL Scripts, and use the dialog box to choose...
October 18, 2007 at 9:03 am
Gary
I take it all of your tables have a date column? Do your tables have foreign key relationships to each other? If so then you'll need to make...
October 18, 2007 at 7:19 am
So when you ran that commmand you didn't get an error like this?
[font="Courier New"]Msg 102, Level 15, State 1, Line 1
Incorrect syntax near 'MyTable'.[/font]
John
October 18, 2007 at 4:22 am
Please don't post the same question more than once. Answered here:
http://www.sqlservercentral.com/Forums/Topic412090-149-1.aspx
October 18, 2007 at 2:58 am
Viewing 15 posts - 6,226 through 6,240 (of 7,187 total)