Viewing 12 posts - 316 through 327 (of 327 total)
Since you already know the last day of the month, I guess you could write a proc passing in that date and in a loop test it for being a...
March 1, 2005 at 6:30 pm
Taking a second closer look (as PW mentioned), Remi's solution should also work just fine.
Thanks again to all.
March 1, 2005 at 6:18 pm
Thanks for all the quick replies. I think PW's solution is the one that fits the bill since in my case when @product_id is null I want to exclude any...
March 1, 2005 at 3:53 pm
I don't know of any built in function but there are a number of user defined functions mentioned on this site and in the faq that parse a delimited list...
February 27, 2005 at 11:12 am
I generally opt for the varchar approach as I find it makes the code more reliable. When using char you always have to be conscious...
February 26, 2005 at 4:51 pm
I haven't tested this but it may do the trick for you. Create a derived table (virtual table) from your union statement that includes the sort column and select from...
February 26, 2005 at 4:06 pm
When using SQL the only guarentee that records are returned in a particular order is to use Order By. Otherwise your are dependent on the "habits" of the underlying database...
February 15, 2005 at 5:00 pm
There are a number of user defined functions that can be found on this site that will parse a delimited string and return a table that can be used in...
February 14, 2005 at 5:33 pm
Even a simple Where t1.company = t2.company would certainly cause the optimizer to figure out it should drive off of the 188 records in t2.
You definetly need an index at...
February 13, 2005 at 9:35 am
It looks like your Insert statement would benefit from a Where clause. Since you only want records that are in T2 you should state that in the Where clause. e.g.
Where...
February 12, 2005 at 11:56 pm
This should help. It's one of the articles posted today.
http://www.sqlservercentral.com/columnists/mcurnutt/datadictionaryfromwithinsqlserver2000.asp
February 4, 2005 at 2:47 pm
Viewing 12 posts - 316 through 327 (of 327 total)