Viewing 15 posts - 61 through 75 (of 104 total)
Could you point me in the direction on how to do that is SSIS?
March 30, 2010 at 7:26 am
I have two servers, one is a production server one is used by customers. They can not talk to each other for security reasons. Meaning I can't link...
March 29, 2010 at 3:10 pm
Here is the table with the PKey, a combination of PartNumber and Location would also work, but I like having int's for pkeys. Thanks for your help and patience.
CREATE...
February 22, 2010 at 7:19 am
Yes we would need to assign a pkey, it would not be PartNumber or location because those are not always unique.
February 21, 2010 at 4:14 pm
yes i went back and uncommented it in my example. thanks for your help
February 18, 2010 at 9:14 am
currently they were commented out for testing purposes, because i testing the if statements.
February 18, 2010 at 7:12 am
Ok here is what i belive you want.
Create Tables and Data:
CREATE TABLE [dbo].[InventReorder](
[Location] [nvarchar](50) NOT NULL,
[PartNumber] [nvarchar](50) NOT NULL,
[Quantity] [int] NOT NULL,
[DistribQoh] [int] NOT NULL
) ON [PRIMARY]
GO
INSERT INTO InventReorder
...
February 17, 2010 at 1:47 pm
Adding the Begin/End worked.
Sorry I didn't copy my exact code over i apologize, I did have some of the things in my original that were missed. What...
February 17, 2010 at 1:17 pm
Here's another question, not sure if its possible. I can write this code without a problem in asp. My problem is this code needs to run without anyone...
February 5, 2010 at 3:06 pm
David or someone,
Could you help break this down for me
MERGE INTO InventoryThatNeedsReorders I
USING
(SELECT A.PartNumber, A.AlternatePart
FROM AlterNateParts A
JOIN CurrentInventoryTable C
ON A.PartNumber = C.PartNumber) P
ON I.PartNumber = P.PartNumber
OR I.PartNumber = P.AlternatePart
WHEN MATCHED...
February 5, 2010 at 2:49 pm
Ok I think i know what you want now so let me try this again.
This is the select statement before the logic:
Select PartNumber, Location, Quantity from InventoryThatNeedsReorders Where ((Quantity-ReorderPoint)>=1)
Which would...
February 5, 2010 at 2:28 pm
Results of
SELECT * FROM InventoryThatNeedsReorders
PartNumber LocationQuantityReorderPoint
Widget 123 GrandRapids 2 1
Widget 456 Chicago ...
February 5, 2010 at 1:23 pm
Guess I'm a bit unclear about what your asking, do you want to know what I would expect the results of SELECT * FROM InventoryThatNeedsReorders before or after the logic...
February 5, 2010 at 1:03 pm
Viewing 15 posts - 61 through 75 (of 104 total)