Viewing 15 posts - 211 through 225 (of 670 total)
I think your example isn't good, but it looks like you're looking for the first N for each code and then report all Y until you get to the next...
September 28, 2018 at 1:32 pm
I would start with the cursor. Have you narrowed down which part is taking the longest? You can probably remove the cursor and do a set based operation and output...
September 27, 2018 at 10:00 am
if there are more than 2 periods, then this will need to be modified to handle that part. I changed tablename to #mytable
drop table if...
September 21, 2018 at 1:23 pm
I'm not sure why you would need these, but you can try this. Also, I out in a case for null, but not sure that will ever be used
September 21, 2018 at 12:26 pm
Some DDL and sample data would be helpful as well as expected outcome, not what you are currently getting
September 10, 2018 at 12:27 pm
First you need to understand what the db2 trigger is doing. It looks like it is using the timestamp data type (or rowversion) and checking the upper limits of it. ...
September 5, 2018 at 7:35 am
not in my case. These are being passed into a proc and the proc is returning Vendors that match the VendorNum or VendorName, order doesn't matter
August 31, 2018 at 6:43 am
It always helps to have data. I think this is what you are looking for, but you're question is not very clear and you don't specify any expected results in...
August 30, 2018 at 2:22 pm
Just to close the loop.... I wasn't worried about order. I just needed to get it in key/value pairs, so I could use it as a lookup. Thanks for all...
August 30, 2018 at 12:13 pm
logitestus - Thursday, August 30, 2018 11:05 AMThank you sir. It is much more elegant than the solution I was working on.
I'm...
August 30, 2018 at 12:10 pm
As long as the priority is by Inv_Item_ID
IF OBJECT_ID('tempdb..#Vendor') IS NOT NULL
BEGIN
DROP TABLE #Vendor
END
go
IF OBJECT_ID('tempdb..#Vendor_UOM') IS...
August 30, 2018 at 10:33 am
ok, I think I have what you need. I changed the names of the columns so the ordering would be correct (I used YYYY-MMMonthName instead of MMMonthName-YYYY). I also used...
August 30, 2018 at 9:53 am
Wow, that's a lot of code 🙂 I'm having trouble trying to find out where the data is coming from in the #CorrectResponse table. Can you provide what the values...
August 30, 2018 at 7:53 am
Thanks Scott, but that's not what I was looking for. I was essentially looking for Key Value pairs and using the node as the column name. So it would look...
August 29, 2018 at 10:58 am
Removed!!!
Steve beat me to it, and surprisingly similar code
August 28, 2018 at 1:24 pm
Viewing 15 posts - 211 through 225 (of 670 total)