Viewing 15 posts - 61 through 75 (of 221 total)
The more i try work this out the more I want to do a loop :laugh: so i can keep a balance of what fruit was taken from what shop.
June 19, 2015 at 1:19 am
Spreads over to the next shop.
This is sort of what happening with the last code I posted . It correctly brings back the required shops in stock order and preference
However...
June 18, 2015 at 3:29 pm
Thanks for everyone's help, spaghettiDBA almost cracked it. I changed the where statement "WHERE qty > 0 AND (runningSum.run_sum - qty) < @findqty"
Here is the full example below. Last thing...
June 18, 2015 at 12:09 pm
spaghettidba (6/18/2015)
This should work, assuming you have to group...
June 18, 2015 at 8:57 am
Getting closer with this query using CTE
DECLARE @tmp TABLE(fruit VARCHAR(50),shop VARCHAR(10),preference INT, qty INT)
INSERT INTO @tmp(fruit,shop,preference,qty) VALUES ('apple','shop 1',1 ,0)
INSERT INTO @tmp(fruit,shop,preference,qty) VALUES ('apple','shop 2',2 ,3)
INSERT INTO @tmp(fruit,shop,preference,qty) VALUES ('orange','shop...
June 18, 2015 at 7:27 am
spaghettidba (6/18/2015)
It is unclear to me what is the expected output. Can you please include it in your post?Here is a description of how to post it: http://spaghettidba.com/2015/04/24/how-to-post-a-t-sql-question-on-a-public-forum/
Updated the top,...
June 18, 2015 at 3:57 am
Mark Cowne (5/3/2012)
SELECT s.ORDER_NUMBER, s.PRODUCT_ID, 1 AS QTY, s.VALUE/s.QTY AS VALUE
FROM @SPLITROW s
INNER JOIN master.dbo.spt_values t ON t.type='P'
AND t.number...
January 30, 2015 at 5:46 am
SQL Check is showing this for me too but no transactions are in an open state is this a VMWARE issue?
This is on SQL Server 2012 Standard
Thanks
B
December 31, 2014 at 5:15 am
Shafat Husain (12/15/2014)
Dear Bugg,Check the windows event viewer. Under application check SQL Server.
You will definitely find something useful
Hope it helps..!!
Regards
Shafat Husain
Thanks Shafat unfortunately the event viewer isn't setup to store...
December 15, 2014 at 3:42 am
php_guy (10/28/2014)
October 28, 2014 at 10:13 am
Eirikur Eiriksson (10/28/2014)
Looks like this is coming from sqlmap (sqlmap.org), automated injection tool.😎
Yep... this is what i mentioned in my original post.;-)
October 28, 2014 at 6:50 am
GilaMonster (10/28/2014)
They wouldn't have used public for this, they'd have been using whatever the application's account is, since it's a query exploiting the application's...
October 28, 2014 at 5:56 am
I thought as much. Is there a way to deny the public role read access to system tables?
October 28, 2014 at 5:20 am
I created a covering index and included all columns being returned in the select statement, this has stopped the Deadlocks. It doesn't feel right just including all columns in the...
October 4, 2014 at 6:55 am
Viewing 15 posts - 61 through 75 (of 221 total)