Viewing 15 posts - 1 through 15 (of 17 total)
you are right that its not HUGE, but as you know its a relative term. I can not purge the database ever or even take the 'old' data offline/archive.
database...
December 14, 2006 at 12:14 pm
thanks for your input, it did help of course.
U are right in regards to database design, it was not designed but built on need basis long time ago. there are...
December 14, 2006 at 11:42 am
sorry if i was not clear enough.
there is more than one table , about 20 with average number of colums in each tabel about 300
each table have same PK called...
December 13, 2006 at 9:20 pm
thanks so much for your help and insight,, i appreciate it very much,, thanks
August 19, 2005 at 1:54 pm
yes,, this gives me thousands of rows if i dont try to create index,, so i know temp is created
--CREATE INDEX [IndexTMP] ON [tempdb].[#tmpTBL]() WITH FILLFACTOR = 70...
August 19, 2005 at 1:34 pm
getting this error
Cannot create an index on '#tmpTBL', because this table does not exist in database 'xyz'.
August 19, 2005 at 1:27 pm
how would i do that,,,,, i only need to do it ONCE ,,thank God
August 19, 2005 at 12:59 pm
this seem to work ,, thanks,, i tried to run it on the actual data -- both tabels have aorund 100K rows ,, and its still running after 15 mins...
August 19, 2005 at 12:50 pm
here is the data that would be a problem with your suggestion --- design change is not in my hands so
key ...
August 19, 2005 at 11:51 am
these values are patient diagnosis codes i.e upto 4 of em ,, order is irrelevant ,, so x1 is not related to y1 or y2 etc.. these are just diagosis...
August 19, 2005 at 11:46 am
this works fine except the case i pointed out earlier ,, use these two as i have in your solution and c what i mean
INSERT @F
SELECT 1, 12, 1, 2,...
August 19, 2005 at 11:27 am
ok,, let me restate the issue
table F has most recent and correct data and can not be overwritten with values from table D -- most of the these records have...
August 19, 2005 at 10:36 am
one thing i mentioned in my initial post was that --- i cant overwrite any data in table F ,, so if X1 is not null then i dont...
August 19, 2005 at 10:25 am
there is one problem with this ,, look at this case
INSERT @F
SELECT 1, 12, 1, 2, null,null UNION ALL
INSERT @D
SELECT 1, 9, 1, 2, null,null UNION ALL
do we not lose...
August 19, 2005 at 10:17 am
i intentionaly did not get into 1-many problem ,, but there is another column in tableY called visitnumber
so using your tableY it will look like this
Fkey y1 y2 y3 y4 ...
August 19, 2005 at 9:28 am
Viewing 15 posts - 1 through 15 (of 17 total)