Viewing 12 posts - 1 through 12 (of 12 total)
opc.three (7/7/2011)
What's wrong with comparing it to the result of the function call you used to populate PERIOD?
CONVERT(VARCHAR(6), tableB.INV_SER_DTs, 112)
This is exactly what I was trying but having issues with......
July 7, 2011 at 11:43 am
It will run on a weekly basis. I have just converted a windows app from nonSQL to SQL. Currently this is done inside the application code and I...
June 9, 2011 at 2:45 pm
So for now, my solution is to run 3 UPDATE scripts. Each will UPDATE a different NUMERATOR field as follows. The check is in the WHERE statement.
UPDATE...
June 9, 2011 at 2:33 pm
Works PERFECT!!! Only problem now is that this does not handle when there are more than one records found in my PQRI_main table and thus multiple a.CPT's. When...
June 9, 2011 at 2:12 pm
Does not work. I am attempting this just on NUMERATOR and all stays NULL. I tried 2 ways:
1:
UPDATE invoices set numerator = CASE NUMERATOR WHEN NULL THEN a.cpt...
June 9, 2011 at 1:26 pm
Ok, so I did a SELECT using:
SELECT distinct INVOICE, MEASURE
FROM IDXRaw
am get the right number of records. Doesn't that prove that my duplicates do not have extra characters, spaces,...
June 7, 2011 at 12:00 pm
Yes, I ran the following and was returned with many rows with counts as high as 9.
SELECT INVOICE, MEASURE, COUNT(*)
FROM IDXRaw
GROUP BY INVOICE, MEASURE
IDXRaw is my source table.
June 7, 2011 at 11:43 am
Grasshopper,
I am pretty darn definite that there are duplicates based on the 2 fields I am considering (DIVISION and INVNUM.) There are something like 1.5 million records I am...
June 7, 2011 at 11:33 am
I am guessing it is not seeing the duplicates from this mass INSERT because they are not yet committed? If so, is there a work around to that?
June 6, 2011 at 12:01 pm
except there are duplicates from the 1st run. The SOURCE table has duplicates. So when record 1 is inserted into TARGET table and then record 3 which is...
June 6, 2011 at 9:18 am
So I must not understand how SQL SERVER does inserts in this kind of script. Whe table is empty and I run the previous script to insert 700,000 records...
June 6, 2011 at 9:12 am
Pablo,
Thanks for the response but this does not seem to work. I am doing the following and still getting duplicated recoreds with same INVNUM and MEASURE.
INSERT INTO invoices (INVNUM,...
June 6, 2011 at 9:03 am
Viewing 12 posts - 1 through 12 (of 12 total)