Viewing 15 posts - 76 through 90 (of 104 total)
I think Merge is really close to what I want, i'm doing some reading on it myself. The only thing I see is that I could have multiple alternates...
February 5, 2010 at 1:00 pm
In the example if the updates and inserts were done then i pulled the query
Select PartNumber, Location, Quantity from InventoryThatNeedsReorders Where ((Quantity-ReorderPoint)>=1)
I would not expect it to show:
Widget 123, GrandRapids,...
February 5, 2010 at 12:48 pm
I would expect for it to find in current inventory 2 alternates and then find a qty in stock of those 2 alternates. Then it will update the reorder...
February 5, 2010 at 12:37 pm
Ok here is I believe what your asking for, this a simple version of the data.
Create Table InventoryThatNeedsReorders
(PartNumber nvarchar(50),
Location nvarchar(50),
Quantity int,
ReorderPoint int)
INSERT INTO InventoryThatNeedsReorders
...
February 5, 2010 at 11:39 am
Setting the reorder point can either be to 0 or to 1 it depends on the results. I'm not quite sure I understand if i can pull this off...
February 5, 2010 at 7:07 am
here is an example of what i need to be able to do:
Select partnumber, qty, reorder, location from inventorytable
I need to pull the partnumber out of this table then look...
February 4, 2010 at 6:45 pm
Sorry i'm not trying to have you guys do everything for me. I have never really don't a procedure before and i'm not sure if i can accomplish what...
August 20, 2009 at 2:30 pm
Also I have other insert statements that use the information from the first sql statement, how would i pull that data to put it into an insert?
August 20, 2009 at 12:17 pm
Ya i'm actually an asp programmer. What i'm trying to do is go from using an asp page to run this set to try to do it in SQL...
August 20, 2009 at 12:09 pm
SELECT PartLocation, PartNumber, CurrentReorderAmount, AmounttoReorder, CurrentInventory, AmountInDistributionCenter
FROM InventoryTable
where (COALESCE (AmountInDistributionCenter, 0)>0)
If Not SQL End of File then
If AmountInDistributionCenter>0 Then
...
August 19, 2009 at 1:05 pm
currently we are using SQL 2000, where would i find sys.dm_exec_query_stats.
April 21, 2009 at 10:47 am
Thanks that is very helpful, I am actually composing a list right now of somethings, like how to restore from transaction logs and how to automatically start sql server agent...
January 21, 2009 at 12:16 pm
Thanks for the help, I do have some experience with T-SQL, currently I design pages for my companies intranet and we use SQL 2000 and ASP to do it. ...
January 21, 2009 at 9:02 am
Wow thank you that is exactly what I am looking for. Thanks to everyone for there help, this website is a valuable asset to a rookie like me. ...
July 8, 2008 at 6:31 am
Viewing 15 posts - 76 through 90 (of 104 total)