Register  ::  Login
 
Update : February 07, 2012
Google AdSense Minimize
  
Welcome to Asbuilt-DBA forum ! Minimize

Here you can find a community of professionals who work with INtools® (SPI) and want to interact and exchange information, including problems encountered, offer solutions, and raise new topics.

This forum is composed of two main sections:
1.      Discussions, which is an open discussion forum where you can talk about any related topic to INtools.
2.      FAQ section that offers a variety of questions and answers regarding INtools.
We hope that you will enjoy participating in this forum. Participation in the forum is free of charge.
If you want to start a new forum, please contact the Webmaster.
Add to Google
INtools is trademark of Intergraph corporation
Forum Groups Minimize
SearchForum Home
  Aggregated  Discussions  General  Incompatible da...
 Re: Incompatible database structure
 
 11/14/2007 4:20:07 AM
User is offlinefba_sen57
73 posts
www.shell.com


Re: Incompatible database structure
Edgeledge... no record when I run the sql. There is 1 extra record in SERV view as opposed to COMPONENT table. I think that extra record is for blank loop_serv with cmpnt_id=0 and loop_id=0 as per the normal sql that we often use. See highlighted in this sql   [ create VIEW SERV as select loop.loop_serv SERV, component.cmpnt_id,component.loop_id from component,loop where component.loop_id = loop.loop_id union      select distinct ' ',0,0 from component,loop  ]; If I take this out from the statement then the records are equal and I was able to create the new specification view in INtools. So is there any impact on the create view if we left this out? Please advise.
 11/14/2007 8:01:04 AM
User is offlineadmin
177 posts
5th


Re: Incompatible database structure

You don't need thge union since you have 0 row in the loop table and when the tag don't have a loop the view will pick the servce from loop_id = 0.

To check if you had missing row in the loop you need to run the following:

select cmpnt_id,loop_id from component c where not exists(select 'x' from loop where c.loop_id = loop_id);

Ilan

 


Ilan Hills ihills@asbuilt-dba.com www.asbuilt-dba.com
 11/14/2007 8:06:07 AM
User is offlineedgeledge
7 posts
www.brasstacksbn.com


Re: Incompatible database structure

Laupan,

Once you identify the tag with loop_id=0 take a stick and whack the person who created it! :) then your problems will be over.

 

Drew

 11/14/2007 4:06:04 PM
User is offlinefba_sen57
73 posts
www.shell.com


Re: Incompatible database structure

Oh Edgeledge... its not even Friday yet man...

What if there are several tag numbers from component table that has loop_id=0 since they are users creating those tags without creating its loop first or not even trying to associate their tags with their loop. And sometime the early days when we use INtools the loop service is often left blank... right !

 11/15/2007 3:48:52 PM
User is offlineedgeledge
7 posts
www.brasstacksbn.com


Re: Incompatible database structure
Service blank sop sop sui, loop_id=0 bu ke yi! So just add a loop to those curly ones and problem sudah habis...
  Aggregated  Discussions  General  Incompatible da...
Intools
 Search   Forum Home     

Search Engine Optimization and SEO Tools
My Google Pagerank