Viewing 15 posts - 11,686 through 11,700 (of 15,381 total)
I hope this is clear
Yeap clear as mud. Just once it would be nice if you actually followed the advice you offer to others by actually reading the article you...
June 12, 2012 at 12:58 pm
Notice how Anthony posted sample data? It is readily consumable so nobody has to generate based off what you typed. From your description it seems like you could use something...
June 12, 2012 at 10:48 am
First thing I would suggest is to replace your split function with the one in the article I reference in my signature. Then to get your data you will want...
June 12, 2012 at 10:00 am
Methew (6/12/2012)
dwain.c (6/12/2012)
Methew (6/12/2012)
The only issue is for data integrity....i dnt want mixing of data...Is Inserted.ID is good option OR SCOPE_IDENTITY?which one i should use?
Well, it's not like Inserted.ID is...
June 12, 2012 at 9:47 am
Lynn has a great blog post with lots of common datetime routines. http://www.sqlservercentral.com/blogs/lynnpettis/2009/03/25/some-common-date-routines/%5B/url%5D
See if that helps.
I am willing to help but since this sounds like homework the best I will...
June 12, 2012 at 8:26 am
Your requirements are incredibly unclear. Nobody can understand what you are trying to do here. Let's take your ddl and sample data and try again.
DECLARE @param1 VARCHAR(25) = 'Banana',
@param2 VARCHAR(25)...
June 12, 2012 at 7:27 am
About all you can do is use your select statement you posted and tweak it a little to help build your sql.
June 11, 2012 at 3:28 pm
I think you meant to post this as a reply to Gail? http://www.sqlservercentral.com/Forums/Topic1313580-1291-1.aspx
June 11, 2012 at 3:24 pm
jsteinbeck-618119 (6/11/2012)
LOL... yes it is interesting... lolNot sure I follow how it's RBAR, and not SET BASED??
Thanks,
John
Well I didn't actually look at an execution plan so maybe I am not...
June 11, 2012 at 3:06 pm
Great job posting ddl. The sample data is too sparse for the second table to be able to provide much help. Also I am pretty uncertain what you want for...
June 11, 2012 at 3:03 pm
This sounds a lot like homework. What have you tried so far?
June 11, 2012 at 3:00 pm
Did you run my code and see the difference between doing an INT and a VARCHAR???
I did and found it rather odd what it was doing. 😛
June 11, 2012 at 3:00 pm
OK so we ignore the order by and assume a random order. The way you coded it is making what should be a set based update into an RBAR update....
June 11, 2012 at 2:59 pm
I don't have an order by because I use the WITH (INDEX()), thus, that is my order by...
There is 1 and only 1 way to ensure the order of data...
June 11, 2012 at 2:39 pm
Yeah that didn't really help explain what you want but maybe something like this?
select t1.ID from #Temp1 t1
join #Temp2 t2 on t2.ID = t1.ID and t2.GDesc = @param2
join #Temp4 t4...
June 11, 2012 at 2:36 pm
Viewing 15 posts - 11,686 through 11,700 (of 15,381 total)