Viewing 15 posts - 8,566 through 8,580 (of 10,144 total)
Hi Sandy
You're missing the parentheses around the variable:
select top (@n) * from emp_detail
Cheers
ChrisM
April 7, 2009 at 1:33 am
Yes, that's pretty much it. As you can see, you can do a whole set at a time, no fiddling about with single rows.
What do you want to do with...
April 6, 2009 at 3:03 pm
Jack Corbett (4/6/2009)
I think?
It's one of those, Jack, but the requirements are so ambiguous it's kinda hard to tell 🙂
April 6, 2009 at 2:38 pm
JacekO (4/6/2009)
Chris,I thought you were heading to a pub...:-P
Nah Jacek, the kitchen! Leffe brune, just the one...gonna stop now, keep bumping into Jack. Good luck, Jack 😎
April 6, 2009 at 2:35 pm
jbuttery (4/6/2009)
April 6, 2009 at 2:28 pm
I reckon this is what you are looking for
DROP TABLE #Temp
CREATE TABLE #Temp (col1 CHAR(1), col2 CHAR(1), col3 CHAR(1), col4 CHAR(1), col5 CHAR(1))
INSERT INTO #Temp (col1, col2, col3, col4, col5)
SELECT...
April 6, 2009 at 2:22 pm
jsanborn (4/6/2009)
I agree. I think an application solution would be best. It looks like any possible SQL solution is going to be very cumbersome. Thanks all.
As they say here "it...
April 6, 2009 at 11:43 am
Jack Corbett (4/6/2009)
Chris Morris (4/6/2009)
Good Lord, sorry Jack, what was I thinking :blush: time for more coffee!
No worries. I was just a little surprised you said that, and knew...
April 6, 2009 at 11:24 am
Jack Corbett (4/6/2009)
Chris Morris (4/6/2009)
Jack Corbett (4/6/2009)
April 6, 2009 at 9:36 am
Jack Corbett (4/6/2009)
April 6, 2009 at 9:13 am
Bob Hovious (4/6/2009)
This has certainly been an interesting problem to follow.
Hey Bob, I'm still messing about with derivatives of this - have you got...
April 6, 2009 at 9:04 am
Bob Hovious (4/6/2009)
Sweet. This has certainly been an interesting problem to follow.Anyone heard from the OP lately?
Nope. Bet he's busy with his nose...
April 6, 2009 at 8:39 am
GSquared (4/6/2009)
Chris, on the case-statement version, running on the same hardware as the prior tests, took 8:59 (nearly 9 minutes) the first run, 8:54 the second.
If that was exactly as...
April 6, 2009 at 7:51 am
pedro.ribeiro (4/6/2009)
Yap, there's other reason.
With the result of the select i will trie to produce a txt file (script) that as insert statements.
This script will be sent to other...
April 6, 2009 at 5:08 am
pandeharsh (4/6/2009)
FROM Table1, Table2
WHERE Table1.code not in(select code from Table2)
GROUP BY Table1.code;
I get the result,but i do not want to use group by or distinct clause.
Can I acheive...
April 6, 2009 at 12:46 am
Viewing 15 posts - 8,566 through 8,580 (of 10,144 total)