Viewing 15 posts - 1 through 15 (of 15 total)
April 5, 2017 at 10:34 am
:satisfied:
In addition to Dixie's reply I'd like to mention that this is also a programming (not just SQL) lesson. :smooooth:
Thanks!
November 29, 2011 at 1:45 pm
No problem. I appreciate and thank you for your time and efforts! I'll keep thinking about this and let you know about any progress.
November 28, 2011 at 9:29 pm
Sorry but it's not done yet 🙁
do this
truncate table newp
insert into NewP
select * from
(
select 5 id, 'E' name, 2 sort
Union all
select 11 id, 'K' name, 3 sort
Union...
November 24, 2011 at 8:34 am
No, I won't have more than 30 rows.
In fact, the newP table will be a temp/variable table and I know it's not recommended to store more than 100 records.
November 23, 2011 at 11:05 pm
YES!
That's what I'm looking for.
THANKS!!!!
I was thinking about a similar solution ... but you gave it before me 🙂
Why did you use coalesce instead of isnull because there...
November 23, 2011 at 5:11 pm
Imagine that you have a webpage where you can see the list and decide to move the products (re-sort them). So when you press "SAVE" button: E is on position...
November 23, 2011 at 10:23 am
Hi
Let's consider next case:
Tables: Sales 1<--> m Products 1<-->1 Country
Select *
FROM
Sales s
inner join Products p on s.ProductId = p.ProductId
inner join Country...
December 7, 2009 at 1:39 pm
Hi,
Sorry, I should have used
Sales s
INNER JOINProducts p on c.ProductId = p.ProductId
not CustomerId ...
Thanks,
Luigi
December 7, 2009 at 1:32 pm
Hi DavidP-340734,
Did you ever try your solution?
I've tested on a table with more the 3 mil records and my solution is more faster than yours.
Good luck!
November 23, 2009 at 9:53 am
Hi Lynn,
Yes, I saw you used Jeff's split method.
November 20, 2009 at 11:15 am
Hi,
You're right, using the Tally table is faster:
using this parameter:
DECLARE @Parameter VARCHAR(8000)
SET @Parameter = REPLICATE('Element01,Element02,Element03,Element04,Element05,',159)
So I got next execution times (running the same script several...
November 20, 2009 at 10:00 am
Hi Mike1024,
"how do I display 5000"? ... well in my example I display 54977 .. maybe I should have written 54977 instead of 5000.
I hope you got the idea.
Hi gorr-688214,
In...
November 20, 2009 at 8:25 am
Viewing 15 posts - 1 through 15 (of 15 total)