Master slave query

I have id , and parent id.
say id = 1 and parent id = 2 description = krikor
sayd another one id =2 and parent id = 3 description = fadi
so id = 1 his parent is id = 2..
how can i do a search on description??
search fadi, and get its parent.

that just brings itself same data
i did this
select * from family where
person_id IN ( select parent_id from family where description='fadi');
This will birng the parent of fadi. What improvement i want in this query?I wan tto bring the parent of the parent of the paren of fadi's parent..
I want the hioghest parent of fadi

Similar Messages

  • How to implement Master-Slave relation

    i have no idea of how to implement a master slave relation, with jdbc i mean if i select "123" from a field in one table, all others fields in another table with the same value in the same field are selected...

    I am certain that this has nothing to do with JDBC. Your query should take care of it. Read: http://www.w3schools.com/sql/sql_join.asp

  • Configuring two digitizers in master/slave

    Cross-posted from the Labview forum.
    Running WinXP Home and Labview 7.0 Express.
    I'm
    considering attempting a master/slave configuration with a PCI-5112 and a
    PCI-5122 that I have on the same motherboard so I can have four channels
    running simultaneously. Is this worth pursuing? Specifically, I'm
    wondering if there will be any sort of compromise in performance
    because of the different specs of the two models.
    Also, is there anything special I need to do hardware-wise to get this running?
    In Labview, how would I go about doing this?
    Thanks in advance for your help.

    Hi RaySun,
    Here's a VI that will work and takes the following steps.  I am working on getting it posted to the official Developer Zone site:
    1.- Choose the constants that will be used for input clock source depending on the board type. The PXI 10MHz back plane is used for PXI boards.
         For PCI boards the master exports the clock and the slave receives it.
    2.- Open a session to each of the digitizers.
    3.- Configure the vertical parameters for each of the digitizers. Both are configured to the same input range.
    4.- Configure the horizontal parameters for each of the digitizers. Both will run at the same rate and acquire the same number of samples.
    6.- Configure an analog edge trigger on the master digitizer.
    7.- Export the stop (reference) trigger from the master to RTSI 1.
    8.- Configure the slave digitizer to have a digital trigger on RTSI 1. It will trigger of the master's exported stop (reference) trigger.
    9.- Query the pipeline delays from the master and slave, add them, add an additional specified delay, and set the slave trigger delay. The additional delay can
         be modified to line up the two waveforms.
    10.- Initiate the slave digitizer first. This is required since we want the slave to be waiting for the trigger when the master sends it. Initiate the master digitizer second.
    11.- Fetch the waveforms from both digitizers and merge them so they can be displayed on the same graph.
    12.- Check for errors, and stop if any occurred. Also stop if the "Stop" button is clicked.
    13.- Reset the digitizers to free all the lines used for synchronization. Close the session and display any errors that might have occurred.
    Here's the example that should get you going, in LabVIEW 8, 7.1, and 7.0 versions (since I had to save down from 8 to 7, might as well provide them all)
    Now, to save them down from LabVIEW 8, the links to NI-SCOPE VIs may have been broken, so you may need to replace those VIs, but you should be able to see which ones go where by looking at the context help over them.
    Thanks,
    mike
    Message Edited by Berto on 03-23-2006 01:11 PM
    Message Edited by Support on 03-23-2006 01:20 PM
    Attachments:
    5112_5122 Synchronization-LV7.0.vi ‏238 KB
    5112_5122 Synchronization-LV8.0.vi ‏120 KB
    5112_5122 Synchronization-LV7.1.vi ‏262 KB

  • MASTER/SLAVE PATTERN: how to stop slave loop without stop main loop

    Hi All, I am studying the master/slave loop and saw an examples are like this (only master block shows)
    From this case, as I understand, if we click "set" button, slave loop will run. If we click this button again to mak it "Flase", the slave loop will be stopped as well as the main loop will be stopped as well.
    Now if I have a multi-function main loop, I just want to start or stop slave loop when click "set" button, how can I do it? Thank you very much! 

    bhl3302 wrote:
    From this case, as I understand, if we click "set" button, slave loop will run. If we click this button again to mak it "Flase", the slave loop will be stopped as well as the main loop will be stopped as well.
    Your understanding is completely wrong.  There is nothing in the image you show that would stop either loop.  In this situation the "set" button would normally have a latching mechanical action, meaning that when it is pushed, it will stay true until it is read once, at which point it will return to false.  Placing the control terminal inside the event case causes the terminal to be read and resets the button to false.  With a latching mechanical action, there will be only one event generated even though the boolean will change value twice (from false to true, and from true to false).  You'll never have a situation where you push the button once to set it true, and again to set it false.  However, even if the mechanical action is switching, not latching, it still won't make a difference here - the event case does the same thing whenever the value changes, regardless of whether it's true or false.

  • Master/Slave Settings?

    Hello Everyone. I need a little guidance here. The original HD in my B&W, Rev 2, is a Maxtor 6.03GB, ATA, Model 90648D3. I have it partitioned, running Classic and OS 10.2.8. I also have a second SCSI drive, a Quantum Atlas 35GB that I've been using as storage but it's almost full. I decided to get a large HD so I recently purchased a Seagate Cheetah 73GB Ultra-2 SCSI. The drive is an 80 pin but came with a 68 pin SCSI adapter. i thought that the two SCSI drives, with different IDs of course, would work so I installed the drive, thinking that since it was SCSI that I wouldn't have the Master/Slave issue, however I can't boot from the new drive at all. I've tried everything, short of standing on my head, with no success. I would really like to have classic on one of the drives and Tiger on the other but the drives only show up when I reconnect the Maxtor and boot from it. Does anyone know what the problem is here?
    As always, any help is always appreciated! Thank you.

    Ummm,
    Look like you did all the step correctly, but do you use an upgrade card?, because I saw it on your specs at the bottom of youe thread that "B&W G3 .. upgraded to G4", if that is so you are out of luck base on this page :
    http://www.apple.com/macosx/techspecs/
    Maybe somebody would have a trick to install it using emulator software like xfacto or else, but I haven't try that and I heard it will chunk or disable some of Tiger feature, so what is the point of using Tiger if it is half a man it used to be..
    Try to use your original processor first to install the system and after that, restart while pressing the mouse to pop the installer disk out, and press option to give you the option for start up disk. if you are too late, just restart again (after you take the installation disk out) by pressing the reset button or pull and plug back the power cable (not recommended) and hit option key until it give you start up disk option.
    IF it still not coming up, maybe tiger doesn't support either your hd or scsi card for boot up.
    Hope it help now.

  • Master-Slave design Implementation

    Hi,
    I am trying to design a master-slave system with the following attributes:
    1. Linux Master box having all the Java code.
    2. At least two Windows XP Professional Slave boxes (no Java code on any of these)
    Front end screens on Master would contain a text fields for IP Address and Java program to be executed. On a click of button, the slaves (who's IP Address was entered in the Master screen text field) would get the request to execute the given Java program, a given number of times. Once executed, each slave would turn the results in to the master via a file. After all the slaves have turned in their results, Master would consolidate the results, work another program on the results and re-delegate tasks to the slaves. The steps would stop iterating only when an exit criteria specified by the program has been met.
    If we were to restrict all code to only the master box, what could be the lucidly possible ways to achieve this design?
    Thanks!

    You will need some machanism to send the programs to slaves atleast temperarly in order to be executed there.
    Or you will have to provide a vay for the programs to access the required respurces (files , ect..) in the slaves and let the programs run in the master.

  • Master-Slave Problem: Please Help

    I am having a problem getting master/slave repositories set up for synchronization.
    My MDM server environment is Solaris with Oracle 10.2 database.
    MDM version is 5.5.41.58 (5.5 SP05).
    I create a repository. I unarchive my data into it. I create a slave repository from it. I go into Data Manager and change the description of one product in the master repository. In the Console, the server log has the following message:
    Master Server failed to log change because of error: The new transaction id is less than the last transaction id. (code 4289454080).
    Has anybody had the same issue? Any clues as to what the problem and/or fix is?
    Thanks in advance.

    Hello Simon,
    Thank you for taking the time to respond.
    The unarchive process involved the following: we have a production catalog running MDM 4.0.58. We had an SAP consultant assist in migrating our catalog to MDM 5.5 SP05. This was done using a local server running Windows and SQL Server. From the Windows MDM 5.5, I made an archive. I transferred it to the Solaris/Oracle environment. Using the Console I did the unarchive.
    One interesting thing to note: when MDM 5.5 SP05 was installed on Solaris, the "Modifications" directory was not created. Initial attempts to synchronize gave a different error. I determined that the directory was missing and had our data center admin create it. He then stopped the MDM server and restarted it. Then I deleted my master and slave repositories and started over. And then got the error referenced above.
    Running the CLIX command gives the following:
    52 for the master and 50 for the slave.
    In the server log, the only errors I see (other than the one about the transaction id's) are when starting the master and slave repositories I see:
    SERVICE 'xxx', SCHEMA 'yyy', ERROR CODE=1002 ||| ORA-01002: fetch out of sequence   Last CMD: SELECT PermanentId, Id, F153, F154, F163, F164, F353, F387, F414 FROM A2i_40
    In the assertion log, there is nothing at the time of creating the slave. When starting the slave, there are many messages relating to accelerators. At the time when I was changing the data in the master, there are messages from A2iIndexedTransactions.cpp (lines 647, 119, 96, and 231).
    If you need any more info, let me know.
    Thanks again for your help.

  • What DQS column locations & DQ master/slave settings do I pick in 10.1 EDK?

    I am attempting to duplicate the FPGA synthesis flow using XST and ACE to boot Solaris on a Digilent board. I encounter some steps, warnings, and errors listed below that are not covered in the documentation I have. In following section 6.2 of the DV Guide,
    after first running
         rxil -device=XC5VLX110 sparc
    I opened the ML505 project that I found in the Release 1.6 location at $DV_ROOT/design/sys/edk/system.xmp using XPS 10.1 (required to be 9.1i or later), which updated the project (I believe from EDK 9.2 in OpenSPARC 1.6) to the current release, including some manual updates required to be made because of incompatible cores as described in file Version_Changes.log:
    The following files will be modified:
    system.mhs
    system.mss
    The following changes will be made:
    Core microblaze 7.00.b will be replaced by 7.10.a
    Core plb_v46 1.00.a will be replaced by 1.02.a
    Core mdm 1.00.a will be replaced by 1.00.b
    Driver emaclite 1.11.a will be replaced by 1.12.a
    The following changes need to be made manually by the user:
    Core xps_ethernetlite 1.00.a needs to be replaced by 2.00.a
    Core mpmc 3.00.b needs to be replaced by 4.00.a
    Core clock_generator 1.00.a needs to be replaced by 2.00.a
    In following the next step:
    XPS 10.1 „³ Hardware „³ Generate Bitstream
    I get warnings and errors in the XPS log file:
    Check port drivers...
    WARNING:MDT - PORT:IWAIT CONNECTOR:ilmb_LMB_Wait -C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\microblaze_v7_10_a\data\microblaze_v2_1_0.mpd line 196 - No driver found. Port will be driven to GND!
    WARNING:MDT - PORT:DWAIT CONNECTOR:dlmb_LMB_Wait -C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\microblaze_v7_10_a\data\microblaze_v2_1_0.mpd line 232 - No driver found. Port will be driven to GND!
    WARNING:MDT - PORT:bscan_tdo1 CONNECTOR:bscan_tdo1 -C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\mdm_v1_00_b\data\mdm_v2_1_0.mpd line 197 - No driver found. Port will be driven to GND!
    WARNING:MDT - PORT:I_ADDRTAG CONNECTOR:ilmb_M_ADDRTAG -C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\microblaze_v7_10_a\data\microblaze_v2_1_0.mpd line 194 - floating connection!
    WARNING:MDT - PORT:D_ADDRTAG CONNECTOR:dlmb_M_ADDRTAG -C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\microblaze_v7_10_a\data\microblaze_v2_1_0.mpd line 235 - floating connection!
    WARNING:MDT - PORT:FSL0_S_CLK CONNECTOR:ccx2mb_0_to_microblaze_0_FSL_S_Clk -C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\microblaze_v7_10_a\data\microblaze_v2_1_0.mpd line 332 - floating connection!
    WARNING:MDT - PORT:FSL0_M_CLK CONNECTOR:microblaze_0_to_ccx2mb_0_FSL_M_Clk -C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\microblaze_v7_10_a\data\microblaze_v2_1_0.mpd line 337 - floating connection!
    WARNING:MDT - PORT:bscan_tdi CONNECTOR:bscan_tdi -C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\mdm_v1_00_b\data\mdm_v2_1_0.mpd line 190 - floating connection!
    Constructing platform-level connectivity ...
    ERROR:MDT - IPNAME:mpmc INSTANCE:DDR2_SDRAM PORT:MPMC_Clk0_DIV2 -
    C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\mpmc_v4_00_a\data\mpmc_v2_1
    _0.mpd line 2158 - ASSIGNMENT=REQUIRE is defined in the MPD. You must specify
    a connection in the MHS.
    ERROR:MDT - IPNAME:mpmc INSTANCE:DDR2_SDRAM PARAMETER:C_MEM_DQS_IO_COL -
    C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\mpmc_v4_00_a\data\mpmc_v2_1
    _0.mpd line 197 - ASSIGNMENT=REQUIRE is defined in the MPD. You must specify
    a value in the MHS.
    ERROR:MDT - IPNAME:mpmc INSTANCE:DDR2_SDRAM PARAMETER:C_MEM_DQ_IO_MS -
    C:\Xilinx\10.1\EDK\hw\XilinxProcessorIPLib\pcores\mpmc_v4_00_a\data\mpmc_v2_1
    _0.mpd line 198 - ASSIGNMENT=REQUIRE is defined in the MPD. You must specify
    a value in the MHS.
    The sourceless connector error disappeared after I made the selections:
    Xilinx Platform Studio > System Assembly View tab > Ports tab > DDR2_SDRAM > MPMC_Clk0_DIV2 > Make External
    For the two remaining parameter errors I can choose:
    Xilinx Platform Studio > System Assembly View tab > Configure IP...
    Interface tab > Memory Interface Generator (MIG) Settings tab >
    PDF Datasheet button leading to documentation of the parameters
    and
    C_MEM_DQS_IO_COL
    C_MEM_DQ_IO_MS
    For the ML505 board, what do I choose as a column location of left/center/right (00/01/10) for each of 8 DQS pins?
    What do I choose as a value of master/slave (1/0) for each of 64 DQ pins?
    A different top level block
    rxil -device=XC5VLX110 iop_fpga
    results in
    XST ERROR : Could not open $DV_ROOT/design/sys/iop/iop_fpga/xst/iop_fpga.flist at $DV_ROOT/tools/perlmod/rxil,1.1 line 196.
    Edited by: sparcMT1 on Dec 15, 2008 9:04 PM

    Hi sparcMT1,
    I'm not sure what the problem is. When we read in the 9.2 project into 10.1, it updated cores with very few problems.
    One thing you can try is to do only the automatic updates. For example, even though XPS says that "these changes need to be made by the user", just leave the MPMC with version 3.0. I'm looking at one of our projects, and it seems that we did just that.
    formalGuy

  • Satellite Pro 6100: What drive and connection is supported - Master, Slave or CSEL?

    Hello,
    i want to install a Pioneer DVR-K14L DVD writer.
    After the installation, the notebook show me an
    error during the initialisation.
    It is possible to use this type of Slimline DVD writer?
    What kind of modus is important (master, slave or cable-select)?
    Thank you and
    best regards
    oelauge

    Hi
    I assume you get an IDE# 1 error message. Am I right?
    The fact is that not all drives are compatible with the notebooks.
    I'm not sure which settings the supported drive should have. But I surmise it's could be a CSEL.
    However, I have found this DVD-RW drive which should be compatible; the part number is P000366780
    http://www.getpartsonline.com/p000366780.html
    But unfortunately, there is nothing about the pin assignment and the settings.
    If you want to be 100% sure about the supported devices on your notebook so you should ask the Toshiba service partner in your country for the details

  • LMS 3.0.1 Master / Slave upgrade

    Hi,
    We have two LMS servers 3.0.1 deployed in Master/Slave mode. And are working properly. But we are unable to add Cisco rtr2900 series router for its configuration managemnet.Current RME version is 4.1.1.
    I want to go for a device update online or can be downloaded in psu_download folder. I have a confusion that
    Should I upgrade Common Services (RME devices list) in the same Master/Slave mode or i need to setup both in standalone mode. Which one should be preferred.
    Will it be enough to update RME 4.1.1 device list in LMS 3.0.1 or i must go for RME 4.3 (which requries all packages updates i mean LMS 3.2) becuase Cisco 2951 Router and Cisco 2911 Router can be added to current version of RME 4.1.1 by online update to CISCOWORKS LMS 3.0.1 and Cisco 2921 Routers and Cisco 2901 Routers can be added the updated version of CISCOWORKS LMS 3.2. Our requirement configuration mangemnet of Cisco rtr2901 and Cisco rtr2911
    Supported Device List for LMS 3.2
    http://www.cisco.com/en/US/partner/docs/net_mgmt/ciscoworks_lan_management_solution/3.2/device_support/table/lms32sdt.html#3.0.1-27
    Supported Device List for LMS 3.0
    http://www.cisco.com/en/US/docs/net_mgmt/ciscoworks_lan_management_solution/3.0.1/device_support/table/lms301sdt.html
    Thanks & Regards

    You should upgrade RME software on both machines and update the devices packages on both machines.
    This is not related to if the are master or slave from a DCR point of view
    Cheers,
    Michel

  • Master based query, not showing value of a particular field.

    There's a customer master based query, where there's an attribute named, "ship to number", when i apply the selection range or >=, or > for that master, my ship to number field comes blank, inspite of having full data in it.
    Whereas when i enter the selection screen as equal to (=) for that master, my field gets populated in the query.
    What can be the cause, the field is not in compounding with the master.

    Hi,
    This could be ALPHA conversion. Try giving a full number prefixing with 000 to make full length
    Hope this helps
    PV

  • What, exactly, does the "Master Slave Config" VI do?

    Hi,
    I have LV 6.0 and I'm trying to use two NI 6110 boards in a master-slave relationship so that they use the same clock when acquiring analog input. I've found documentation and example on how to do this using the "Route Signal" VI and the "AI Clock Config" VI. All of this work well for me, but I came accross a mention of a "Master Slave Config" VI in the "VI and Function Reference >> Data Acquisition VIs >> Calibration and Configuration" second of the Labview help. The info supplied by this help documention is meager, but there are hints that it might be useful to me and I'd like to figure out what exactly it does. Unfortunately, I can't seem to find any more info about it at the NI website, nor can I find an
    y example of how it is used. I found the VI itself in "C:\Program Files\National Instruments\LabVIEW 6\vi.lib\Daq\misc.llb" and discovered that the diagram is very simple. It just calls a DLL routine.
    Does anybody have any info on the "Master Slave Config" VI?

    The Master Slave Config VI configures one device as a master device and any remaining devices as slave devices for multiple-buffered analog input operations.
    The master device sends a trigger or clock signal to the slave device(s) to control the slave device sampling. In a multiple-buffer acquisition, you must enable the slave device before the master device to make sure the slave device always responds to a master signal. If you enable the master device first, it can send a signal to the slave devices before they can respond. You are responsible for the initial startup order. You should always start the master device last. The Master Slave Configuration VI makes sure LabVIEW arms the master device last for each subsequent buffer acquired during a multiple-buffer
    acquisition. This is the only help I could find.
    I have never used this VI and always use the Route Signal VI because it is a very simple VI to use. I believe the Master Slave Config VI is useful when you don't want to use the Route Signal VI multiple times when you're synchronizing multiple devices.

  • Having migration trouble: master/slave issue in G4

    I just got a 24-inch imac and began the migration process yesterday. And if it were 2005 I'd be in great shape. The new iMac saw only my ORIGINAL 20 GB drive (in two partitions, one for OS9 and one for OSX) and I, not realizing it didn't see the drive i installed in January 2005 and which is now my main drive, had it migrate the stuff from that drive. (I thought it was taking everything.) Obviously, then I had only the stuff from the old drive. Worse, the imac never could see the newer drive. I posted something on a different forum, and people immediatley responded it was a master/slave issue. I've now spent HOURS since last night rearranging drives and jumpers (one is the original Apple drive, from Western Digital, and the second is a Seagate 120 GB drive). The G4 either wouldn't turn on at all, or I just got a gray screen. We put everything back to the way it was, and at least now I have a computer.
    However, I still have the migration issue. The original drive (according to the profile) is listed first, so is the master. How can I do the migration. I really don't want to reinstall everything.
    Two options that I see: clone the Seagate to an external, and migrate from there. Or: put the Seagate into an external enclosure and again, clone from there.
    Are there other options out there?
    BY the way, we had massive troubles with the jumpers. It never worked to have the jumper on the seagate -- the only way this computer started is with the jumper NOT on 7/8 and on the Apple (original) drive.
    Thanks in advance.

    Aside from the issues you are having with the HDs, you also need to be very careful with what you migrate from a PowerPC to an Intel, or you may end up with conflicts which make the Intel inoperable. May I suggest Kappy's guide;
    A Basic Guide for Migrating to Intel-Macs

  • Weblogic Server Installation in Master/Slave

    Hi All,
    I have two linux server dedicated for weblogic server and I want to configure weblogic server on both the machines with one of them becomes a server and other machine will be a slave.
    I have searched a lot but couldn't find any adequate information. Could someone please shed some light on how to install/configure weblogic server in master/slave fashion/pattern?
    I appreciate for any help.
    Thanks,
    Sanjay

    I think you need to do some reading of how domain's are organized with 1 Admin Server and 0 to many Managed Servers. The Managed Servers can be grouped into Clusters if you want. The servers can be across multiple machines. Check out the following link and perhaps the detail under clustering and respond if you have a more precise question.
    http://edocs.beasys.com/wls/docs103/domain_config/understand_domains.html#wp1101973

  • Master Slave Architecture

    What is the difference between Producer Consumer Architecture and Master Slave Architecture.
    I know where to use Producer Consumer Architecture. But in what scenarios will Master Slave Architecture be useful.

    http://zone.ni.com/devzone/cda/tut/p/id/3022
    http://zone.ni.com/devzone/cda/tut/p/id/3023
    try these links for some info.

Maybe you are looking for