Viewing 15 posts - 46 through 60 (of 126 total)
pseudo code??
declare @max-2 int
select @max-2 = max(productcontrolid) from productcontrol
DT1 = select productcontrolid from productcontrol where productcontrolid > @max-2 - 25
dt2 =...
March 24, 2009 at 8:39 am
Steve Jones - Editor (3/24/2009)
Which one? Any one?
I need to update napathirdpartypn.pcid = (unique productcontrolid) from 1 of the 25.
March 24, 2009 at 8:31 am
I figured this out by doing this:
declare @max-2 int
select @max-2 = max(productcontrolid) + 1 from productcontrol
insert into productcontrol (productcontrolid)
SELECT row_number()...
March 24, 2009 at 7:58 am
by George, I think I got it:
SELECT DISTINCT Application.ApplicationID
FROM ApplicationProduct WITH (nolock) INNER JOIN
...
March 23, 2009 at 12:29 pm
error on this query:
Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.
is there an easy way to solve this error?
SELECT DISTINCT...
March 23, 2009 at 12:25 pm
Linson.Daniel (3/23/2009)
I couldnt really read through all the posts..but from what I have understood , ur requirment seems to be that from the set of records having the same...
March 23, 2009 at 12:22 pm
I created a table that has napathirdparty PN and just put distinct PN's in that one. This substntially fixed the long running query problem that this was doing.
SELECT DISTINCT MIN(Application.ApplicationID)...
March 23, 2009 at 12:12 pm
Lynn Pettis (3/23/2009)
SELECT distinct
Application.ApplicationID,
ApplicationProduct.ProductControlID
FROM
...
March 23, 2009 at 12:04 pm
Since there is a constraint, I have to delete the applicationid from the application table first, then delete it from the applicationproduct table.
As seen in the code above.
March 23, 2009 at 11:34 am
Chris Morris (3/23/2009)
SELECT DISTINCT a.ApplicationID, n.PN, p.PartNumber, c.GenCategoryID
FROM ApplicationProduct ap (nolock)
INNER JOIN Application a
ON ap.ApplicationID = a.ApplicationID
INNER JOIN Product p
ON ap.ProductControlID =...
March 23, 2009 at 11:21 am
I just finished code that should do that:
private void button1_Click(object sender, EventArgs e)
{
...
March 23, 2009 at 10:46 am
sorta right, but:
lets say this query gives me a set of the ones I want to delete.
It certainly doesn't perform as well as the first part.
SELECT DISTINCT Application.ApplicationID, NapaThirdParty.PN, Product.PartNumber,...
March 23, 2009 at 9:58 am
Hi all, I didn't mean to have a thread run this long, and move off topic a bunch.
I did learn some stuff, and very glad I did.
We have some...
March 20, 2009 at 9:15 am
J, thanks for the reply. I don't think it's safe to go changing production tables to just have an identity pk.
March 19, 2009 at 3:48 pm
Because when we compare the primary datasource with the data we distribute, it's compared completely within those limits. And for the other datasources, we only need to add them and...
March 19, 2009 at 3:26 pm
Viewing 15 posts - 46 through 60 (of 126 total)