Viewing 15 posts - 11,551 through 11,565 (of 15,381 total)
I don't see any need for dynamic sql here. What about just using IN?
where ITEMMAST.STYLE in (Select STYLE from TEST)
June 20, 2012 at 12:02 pm
Lynn Pettis (6/20/2012)
Sean Lange (6/20/2012)
I got it Lynn. Should have the solution in just a couple minutes. ๐
That's fine, but I helped with the code so I am just curious...
June 20, 2012 at 10:47 am
OK so I posted some of your last post for reference. I commented out a number of lines and replaced from there to the end of your code.
--DECLARE @TABLE ...
June 20, 2012 at 10:33 am
I got it Lynn. Should have the solution in just a couple minutes. ๐
June 20, 2012 at 10:28 am
The path to your answer starts by reading the first link in my signature.
In other words we need ddl, sample data and desired output. You did not post near enough...
June 20, 2012 at 10:05 am
isuckatsql (6/20/2012)
Sean,The query returns 9 rows, with around 10 fields.
What is frustrating is that the more i follow the correct "rules", the more headaches i get ๐
Regards
Ian
Have you updated your...
June 20, 2012 at 9:40 am
Nadrek (6/20/2012)
Sean Lange (6/20/2012)
I too have struggled with this occasionally. I use this splitter in a lot of very unconventional ways. For example say I want to find all anchor...
June 20, 2012 at 9:30 am
And now you have two explanations to the same thing. ๐ There I go trying to explain other people's work again...
June 20, 2012 at 9:23 am
dustinprevatt (6/20/2012)
Could anyone go into detail about what this actually means ?
postdate>= dateadd(dd, datediff(dd, 0, getdate()), 0) and postdate < dateadd(dd, datediff(dd, 0, getdate()) + 1, 0)
I'm glad...
June 20, 2012 at 9:22 am
isuckatsql (6/20/2012)
The Joins were slower than the subqueries, and actually adding the recentwages and recentjobtitle fields back to the profiles table, gained 30% in performance! That is just something i...
June 20, 2012 at 9:02 am
dustinprevatt (6/20/2012)
If so how would i use the example in the link to show the beggining of the current day thru the end of the...
June 20, 2012 at 9:01 am
Try adding an order by to your select top 1 query. Without an order by there is no way to know which row will be returned.
June 20, 2012 at 8:42 am
Dates are a datatype. Formatting is for display. You can't change the format of a datetime. You can however get a string representation in just about any format you want.
June 20, 2012 at 8:37 am
dustinprevatt (6/20/2012)
select *
from table where cast (postdate AS int(128)) between ({fn Curdate()}) and ({fn Curdate()}) + ({fn minute(1439)})
I originally had this
select *
from table...
June 20, 2012 at 8:35 am
isuckatsql (6/20/2012)
I have had a few DBA's and Microsoft Enterprise support work with me on this query, and was...
June 20, 2012 at 8:30 am
Viewing 15 posts - 11,551 through 11,565 (of 15,381 total)