1:1 Self Relationship is hard to model.  Need advice.

Here is a quick example of the problem using boats...
Create an entity "the boat".
Create a 1:1 relationship of "the boat" to "the boat". Call both the forward and reverse text "the other boat"
Here is the original text from the rules document: When boats are on opposite tacks, a port-tack boat shall keep clear of a starboard-tack boat.
Here is the modeled rule:
the boat is required to keep clear if
     the boat is on a port tack and
     for(the other boat, the boat is on a starboard tack)
When you debug this and create 2 boats, you will see that each boat actually has 2 relationships. The rule doesn't actually work intuitively. Both relationships must be set.
How do people solve this problem?

From your description, I think what you're after is cross entity reasoning.
As a start, have a look at the Entity and Relationship Functions, particularly the example rule about twins (search for the word "twin" on the page): http://download.oracle.com/docs/html/E24270_01/Content/Reference/Rule%20syntax%20reference/Entity_and_relationship_functions.htm
In the twin example, there are multiple instances of 'the child', and for each instance of 'the child' the rule works out whether or not it is a twin by comparing one child's date of birth with another child's date of birth. Obviously this isn't exactly the logic you're after, but you should get some ideas to explore if you look into the cross entity reasoning functionality and inferred relationships logic.
Cheers,
Jasmine

Similar Messages

  • Hard Drive Crashed/Need advice

    Today, after installing OS X 10.4.6, the hard drive on my G5 desktop crashed and was not retrievable using Disk Utility. I spent a lot of time on the phone with Apple, and they recommended erasing and reinstalling -which I did.
    Now I want to restore my User files. These back up everyday with Retrospect.
    I would like advice on the best way to transfer these files back to my G5. Should I use a restore from the Retrospect server? Or should I transfer the files to another Mac's HD and put the G5 into target disk mode and move the files to it that way? Or is there a better way than these two?
    Any advice would be greatly appreciated as I am sitting high and dry now, unwilling to do much with the G5 until I can work from within my own User ID.
    Thanks,
    Rich
    G5 Dual 2.0   Mac OS X (10.4.5)  
    G5 Dual 2.0   Mac OS X (10.4.6)  

    I reformatted the crashed HD and created my user ID. Then I copied the contents of my user folder to my desktop from my retrospect backup. Then I dragged those files into the newly created user file, replacing the Apple defaults.

  • Hard Drive died, Need advice on how to bring windoze back from dead

    I tried to install Lion. The installer stopped and said that the hard drive, well, was dead. Genius Bar backed up the installer. The drive will boot into Windows, but not into Mac.
    A new hard drive has been installed (Momentus XT-whoa, fast) , and the Mac side is being updated. BUT, I have some serious work on that Windows partition, and I need to get it back and running.
    I am looking for advice on cloning, running, etc. I have Parallels 6, which I used to run the bootcamp partition, before the crash.
    I need to get as much of a carbon copy as possible.
    Thanks in advance.
    Secondary issue--Still need to upgrade to Lion (nervously). Any tips about Bootcamp and Lion also appreciated.

    I have to assume due to no mentioning that you have some sort of notebook, right?
    Why do you need Lion btw?
    Try Lion community, www.apple.com/support/lion
    Try Paragon for Hard Disk Manager Suite 2011
    Lion and Boot Camp 4.0
    Lion Installer reports This disk cannot be used to start up your computer
    OS X Lion Install to Different Drive

  • Partitions on external hard drive. Need advice, PLEASE!

    Can someone explain to me about partitions on EHD's. I have just installed Leopard, and at present I have 3 partitions on my LaCie 250Gb Firewire external drive. I need to create enough space to allow TimeMachine to do a backup (about 120Gb).
    I know that I have to use Disk Utility to do this, but can someone tell me if there is a minimum number of partitions to have on a volume like this? What would be your recommendation?
    Also, could someone tell me if it is possible to run Tiger on an external drive? Or would that have to be run from the Mac HD? I have some software and games etc that will only run on Tiger. A step by step guide would be much appreciated.

    Hi! You can have many partitions on an external drive. One for Leopard, Tiger, Panther, OS9 (if capable) data, pictures, music....you get the picture. I'm not sure what you are using the partitions for now but remember usually reformatting into another partition scheme erases everything. As an example you can have a partition for Time Machine, another for the Tiger OS, and one for a Leopard bootable clone for use in an emergency. I'd recommend that if you plan on changing your current scheme that you do so with disk utility in Leopard. Create your partitions in the disk utility and then clone to the partitions. When you choose two or three partitions then you can grab and drag the bars to change each one's size. Again remember that if you already have a Tiger partition that reformatting will erase the data.
    In Leopard open the disk utility and on the left side you'll see a disk drive such as 279.5 GB Maxtor and then listed under that and indented to the right will be the volumes or partitions with the names you have assigned to them. To partition click on the drive itself (not the volumes under it) and then on the right side of the pane will be listed first aid,erase, partition, raid, and restore. Then click on partition and the pane will show the current partition scheme such as only 1 volume (partition) or as many as you currently have. In Leopard you can resize the partitions but that gets a little complicated. If you click on current the tab pops up listing up to 16 partitions that can be created. When you select the number you want and then click apply the new scheme will be formatted erasing the current data on the entire drive. You can assign the names you want to the volumes such as Time Machine, Emergency Drive or whatever you want. Just remember you're erasing the drive so be sure that's what you want to do. Resizing partitions depends on how full they are, what size you want to change them to and takes some practice to master. I typically have soemthing like the following:
    300 gig Main Drive with Leopard
    300 gig drive with bootable clone of Leopard as a backup
    400 gig drive with 2 partitions (1 for time machine and 1 for an emergency
    Leopard clone with no added apps and only
    utilities such as TechToolPro.
    120 gig drive with three partitions
    1. a previous system (Panther in my case)
    2. a 9.2.2 System
    3. a data partition for a quick data backup of something important
    Your scheme can vary but give it some thought before you embark on something you're not going to want to change tomorrow. Tom

  • One-to-many self relationship guide

    Using the TopLink Mapping Workbench within JDeveloper 9.0.5.2, I am trying to create a hierarchical query. I have a table that includes the following columns:
    OBJECTID
    PARENT_ID
    where OBJECTID is the primary key, and PARENT_ID is a foreign key to OBJECTID. The CONNECT BY clause I would like to generate is:
    CONNECT BY PRIOR PARENT_ID = OBJECTID
    I have tried to use the tutorial at http://download-west.oracle.com/docs/cd/B10464_01/web.904/b10316/tutorial.htm#652452, but the TopLink Mapping Workbench GUIs in JDeveloper 9.5.0.2 are not the same as those shown in the tutorial. In particular, I cannot add a table reference in the one-to-many mapping GUI. I can only choose from existing foreign keys.
    Has anyone found a way to create a one-to-many self relationship, using JDeveloper 9.5.0.2?
    Thank you.

    As far as I can tell you are right that the Add button on the Table Reference is not available on the Mapping Workbench in JDeveloper 9.0.5. It is available only on the standalone version of the Mapping Workbench.
    The solution is to have the Table Reference (FK -> PK) Constraints already available from the Database. So all you need is to pick from an available relationship.
    From JDEV log into the HR / HR Schema and map the EMPLOYEES table. That table has such a Constraint.

  • Hard drive model

    My first week 27 blackbook randomly shutdown. Apple changed another week 27 one for me.
    An interesting thing I noticed is that the hard drive models of the two are different. The first one has a Seagate and the second has a Toshiba.
    I prefer Seagate, though.....

    Apple, like most manufacturers gets the drives in bulk and uses whoever provides them the best price at the time of purchase.
    Interestingly, the last three Macs I have had - and eMac in early 2004, G5 iMac in late 2004, and now the BlackBook - have all had Seagate drives in them.
    No problems with any of them.

  • Question - Need Advice Regarding Second Hard Drive On HP Pavilion dv7t-4100 Notebook PC

    Hi,
    I currently have a HP Pavilion dv7t-4100 Notebook PC, and my hard drive failed (luckily while still under warranty!).  So I contacted HP support and they are in the process of sending me a replacement hard drive, so that I may install it.  When I opened the back of the notebook, I realized that a second hard drive could be installed, if desired.  I would be interested in doing this!  My current primary drive was (and will be again) a Toshiba 1 TB Internal hard drive Serial ATA-300 2.5" 5400 rpm, model MK1059GSM.  I understand (from reading a previous post) that for the second hard drive, I will need to purchase  a "2nd HDD Caddy & Cable for HP dv7-4000, dv7-5000, dv7t SE" (the purchase link the tech in the other post referred to was http://www.newmodeus.com/shop/index.php?main_page=product_info&products_id=345); and now I need to decide on the size (and other stats) of the hard drive that I will buy to install and used as the secondary drive.  The HP customer service rep I spoke with on the phone about my primary drive replacement said that it is usually recommended to not go any higher (in capacity) than the primary drive, for the second drive, to ensure a more "stable" system (but I am not sure about the level of"technical" knowledge he has about the inner workings of the notebooks).  However, from my upgrading experiences with desktop PCs, I was usually able to go as high in capacity as I could/desired; as long as the physical size of the drive was the same, and it was compatible with my system.  And I usually did choose to go with a larger capacity second drive, as this was where most of my data and media files were stored (with the primary being used for mostly operating system and system files).  This is my first time "upgrading" a Notebook, so I wanted to check with the techs here on the board- would it be a problem for me to go with a secondary drive larger than my primary drive's 1TB capacity?  Also, are there any other factors to consider and keep in mind when selecting a second hard drive?  Any advice and replies will be greatly appreciated.  Thanks so much for your help with this!  -Brian

    You should be able to go as high as 2TB.
    I also own a,(Older), DV7 notebook which has dual drive capability.
    I bought my caddy from the place recommended and got everything needed including screws !
    I matched the capacity in mine with an exact same hard drive and have never had a problem.
    Minor battery life noticable but that was it.
    Your system BIOS is what will hold you back from say a 3TB drive.
    You can go to HP site and check the specs on your model and find out for 100 % sure.
    HP Support & Drivers | United States
    I would recommend doing what I did and match the drive exactly.
    Good day !

  • I need G4 MDD, Hard Drive Up-Grade advice, please.

    I need G4 MDD, Hard Drive Up-Grade advice, please.
    My G4 Model:
    Power Mac G4 (Mirrored Drive Doors 2003) - M9145LL/A
    Processor G4 1.25 GHz (SINGLE)
    - L2 Cache 256 KB (1:1)
    - L3 Cache 1 MB
    167 MHz Bus Speed
    (Dual Boot Model) - Running 10.3.9 and 9.2.2
    Installed Memory - 1- 256 MB Stick and 1- 512 MB Stick - (Kingston PC2700 - KTA-G4333)
    - Maximum 2 GB
    - Slots 4 SDRAM (PC2700 - DDR333)
    Hard Drive 80 GB Seagate
    - Type (Speed) Ultra ATA/100 (7200 rpm)
    Combo Drive
    USB 1.1 2
    FireWire 400 2
    EtherNet (built-in) 1000Base-T
    Expansion Slots 4 PCI slots
    Display ATI Radeon 9000 Pro
    - VRAM 64 MB DDR
    - AGP 4x
    LaCie external DVD Burner.
    I'm planning on doing the following:
    I'm on a limited budget, can only afford to spend around $300.00
    I Want to add 3 more 512 MB Sticks of the Kingston KTA-G4333/512 PC2700 Ram.
    Also, I Want to Replace my 80 GB HD with either of the following:
    2 - Seagate 160 or 250 GB SATA drives/8 MB Cache on the Rear Bays
    And a - SIIG SATA PCI Controller Card (SIISCSATM12S)
    OR;
    1 Seagate 160 GB ATA/100 8 MG Cache drive in the ATA/100 Bus Rear Bay.
    And 1 Seagate 160 GB ATA/100 8 MG Cache drive in the front ATA/66 Bus Bay.
    My Question:
    (Which would be better performance wise and for stability?)
    I only want to have 2 internal Hard Drives so my Mac won't over heat.
    I'm planning on Cloning my 80 GB drive to one of the new drives using Super Duper.
    After that, I'll store the drive until I can afford to get an external OWC case for it.
    I want to use the second new drive for a Photoshop Scratch disk and for temp video file work.
    Under 10.3.9 - I use:
    Photoshop CS2
    Toast 7
    Popcorn 1.0.3
    VisualHUB
    On occasion I still boot into OS 9 for Photoshop 5.5., QuarkXPress 3.2.2 r5 and Adobe Illustrator 7.
    I don't foresee being able to afford a Mac Pro and don't want to get a used G5 anytime
    soon. I'm hoping my G4 will last me a few more years.
    I suspect putting a ATA/100 drive on the ATA/66 Bus might hamper performance. And suspect using a SATA controller card in a "PCI" slot isn't as good as having a True SATA Bus, performance wise either.
    I was just wondering which would be the better way to go for performance and stability?
    The drives will be probably OEM either at OWC or NewEgg.
    I'd really appreciate some help with this. Thank You.

    beardedbob wrote:
    I want to use the second new drive for a Photoshop Scratch disk and for temp video file work.
    Under 10.3.9 - I use:
    Photoshop CS2
    Toast 7
    Popcorn 1.0.3
    VisualHUB
    I suspect putting a ATA/100 drive on the ATA/66 Bus might hamper performance. And suspect using a SATA controller card in a "PCI" slot isn't as good as having a True SATA Bus, performance wise either.
    I was just wondering which would be the better way to go for performance and stability?
    With those applications and the intended purpose for the 2d drive, i.e. video and PS scratch, then go SATA. No question, best performance (without considering the cost of SCSI) to be found with SATA even using a PCI SATA controller. PATA been left behind, no ones doing development anymore.
    I would suggest partitioning that 2d drive because PS and FS scratch disks are different in kind. FS needs unfragmented media, otherwise dropped frames and sync issues. PS scratch media are temporary and messy.
    Depending on the drives and card, SATA drives should bench (with something like Intech QuickBench) at the high end of around 80-90 MB/sec. I haven't bought a PATA HD in years, but best I ever saw was around 60 MB/sec. 80-90 MB/sec is still very good even if say you can bench better in Mac Pro.
    The Siig card you're considering is solid. I've used it in both 10.4 and 10.5, but only used it to boot in 10.4.x, never in Leopard. I had some issues with it my others cards, but easily solved by swapping placement.
    I also have the two-port Sonnet Tempo, which is actually just a purple Firmtek Seritek 2-port card. I bought the Siig first, having to get it (and a bunch of other stuff) shipped overseas. I later bought the Sonnet because I could get it locally although for a higher price; with overseas taxes, customs, etc. for only the card --- it's a wash.
    Anyway, I have two WD SE16 750GB drives in my MDD 1.25 Dual, which were originally on the Siig. With the Siig, QuickBench (I run the big 100MB files) showed 70+ MB/sec Read, around 55+ MB/sec Writes. I was a bit disappointed about the Writes. When the Sonnet arrived, I swapped and ran QuickBench again. With the Sonnet I see both Reads and Writes at 80+ MB/sec.
    So as far as benchmarks go, the Sonnet/Firmtek wins. (I know Firmtek has a line of internal cards, including a 4 port version.) But I can't say I noticed any huge difference in everyday tasks. I had some sleep issues with Sonnet/Firmtek in 10.4.x, which was solved by downgrading the firmware.
    I have FC Studio, but I capture to externals via eSATA.
    I still have the Siig, it's in my MDD 1.0 Dual used as a file and Time machine server. Has a Seagate Barracuda 7200.11 1TB on it which doesn't bench to well on the Siig, but I haven't tried bench testing it with the Sonnet.
    Hope that helps.

  • External hard drive and backup advice please

    hi,
    Sorry if this is a common question to the forum but I have only just registered and need advice that is a bit more taylor made than the other posts I've read.
    I am going to be buying an external hard drive - firstly I have read that it's better to get firewire so that if need be I can boot up from it. Is this the case??
    I want to make a clone of my hard drive, this can be done using deja vu, but is this the best thing to use? or do i need to get something like carbon copy cloner?
    next.....partitioning disks. How is this done and what are the advantages? Why do this? This may be the answer to my next question.....
    ...I want to use the external drive for (1) making a clone of my HD that I can do each week for backup purposes and (2) using it to copy files onto daily/weekly - keeping it separate from the clone
    help would be much appreciated
    thanks

    I am going to be buying an external hard drive - firstly I have read that it's better to get firewire so that if need be I can boot up from it. Is this the case??
    Yes.
    I want to make a clone of my hard drive, this can be done using deja vu, but is this the best thing to use? or do i need to get something like carbon copy cloner?
    You can also try SuperDuper to perform the clone.
    next.....partitioning disks. How is this done and what are the advantages? Why do this? This may be the answer to my next question.....
    To partition a disk, use the Disk Utility in the /Applications/Utilities/ folder. Partitioning a drive on your model of computer will usually only give you benefits if you want to maintain multiple bootable installations of Mac OS X or Linux on a single disk.
    (13860)

  • I had to replace my hard drive. Need to re-install office and pages and cannot find the cds. Any help will be appreciated

    I had to replace my hard drive. Need to re-install office and pages and cannot find the cds. Any help will be appreciated

    Replacement System Discs can be obtained from Apple's Customer Support - US (800) 767-2775 for a nominal fee. You'll need to have the model and serial number of your Mac available.
    If you're not in the US, you may need to go through the regional Apple Store that serves your location to find the contact number - http://store.apple.com/Catalog/US/Images/intlstoreroutingpage.html
    Or you can purchase the applications from an Apple retail outlet, App Store or the Apple online store.

  • I am running out of memory on my hard drive and need to delete files. How can I see all the files/applications on my hard drive so I can see what is taking up a lot of room?

    I am running out of memory on my hard drive and need to delete files. How can I see all the files/applications on my hard drive so I can see what is taking up a lot of room?
    Thanks!
    David

    Either of these should help.
    http://grandperspectiv.sourceforge.net/
    http://www.whatsizemac.com/
    Or search 'disk size' in the App Store.
    Be carefull with what you delete & have a backup BEFORE you start, you may also want to reboot to try to free any memory that may have been written to disk.

  • Does an external hard drive ALWAYS need to be connected to my mbp with retina display for Time Machine?

    Does an external hard drive ALWAYS need to be connected to my mbp (OS 10.10.1) with retina display for Time Machine? Or can it be connected once a week or whenever I want? I used to have an external drive always connected to my previous mbp, but it made moving my mbp around a bit of a hassle with it connected...

    When the backup drive is not connected, some of the free space on the internal drive will be used to make local snapshots, which are backup copies of recently deleted files. Local snapshots will protect you from unintended file deletions, but not from a drive failure. You should only go as long between backups as you're willing to lose data. If losing a week's worth of work is acceptable to you, then that backup frequency is OK. Otherwise, it isn't.

  • I am looking to back up my MAC, and I need to know how big of an external hard drive I need

    I am looking to back up my MAC, and I need to know how big of an external hard drive I need. How do I determine this?

    Well, they recommend at least 2 - 3 times the size of your hard drive if you are using Time Machine because that keeps making backups until it runs out of space (and then deletes the oldest to make room for the newest).
    However, if you prefer to have a bootable clone as a backup, you need about the same size as your hard drive since it is a perfect copy of your system (unless you want to partition and keep an older clone separately).
    So, check to see how large your hard drive is and go from there.

  • I have a Firewire 800 external hard drive and need to connect to my new MacBook Air.  Where can I get the correct cable?

    I have a Firewire 800 external hard drive and need to connect to my new MacBook Air.  Where can I get the correct cable?

    Apple has announced a Thunderbolt to Firewire adapter, but not yet given a release date.

  • I need advice:  I love my apple TV.  But my laptop at home, only has a 750gig hard drive.  Is there a possibility of having all my media on an external hardrive to still connect to the Apple TV?

    I need advice:  I love my apple TV.  But my laptop at home, only has a 750gig hard drive.  Is there a possibility of having all my media on an external hardrive to still connect to the Apple TV?
    Is there like in a hard drive of which iTunes can read the media, which will not require me to add and delete media onto iTunes, because of a lack of space on my laptop?

    just get an ext HD, and point your itunes library to that drive so now you'll just keep all your media on this ext

Maybe you are looking for