Help to find the best way to interior design (Nested Loops of sliders?)

Oracle 11G

First here the table I work with, for example data

ID FID ANNOTATION DESIGNATION LOW HIGH SEQ
11008755360FC1053, 81-82FC105381821
21008755360XD, 3-24XD3242
31008756293FC1053, 81-82FC105381821
41008756293XD, 3-24XD3242

Each FID is a different line, these two lines are connected physically, that's why I've shown them here on the table. Each line has a 'meter', in this case, each line has 2 lines of account that are the same.

cableExample.png

From there, we can say that FC1053, 81 and 82 are connected between the 2 cables. XD DESIGNATION means that cables are connect not really so I can't ignore those.

We have a different way to show that they connect other than only those data and I need to connect each other too much. For this I need the Info

FID1 LOW HIGH FID2
100875536081821008756293

So my first design was the hepatitis hase sliders 2 with the data in the table, as shown above. I would then have a nested loop. The first slider to select the first record, then go down to the second loop where I compare all other records the first record and then go back in the outer loop to move to the next record, then return once again to the inner loop to compare the values again.

LOOP1

LOOP 2

If LOOP1. IDF! LOOP2 =. IDF THEN

IF LOOP1. ANNOTATION = LOOP2. ANNOTATION THEN

-CONNECT THE DATA

ON THE OTHER

IF LOOP1. DESCRIPTION = LOOP2. DESIGNATION THEN

IF LOOP2. LOW BETWEEN LOOP1. LOW AND LOOP1. THEN HIGH

IF LOOP2. HIGH BETWEEN LOOP1. LOW AND LOOP1. HGH THEN

-CONNECT THE DATA

END IF;

END IF;

END IF;

END IF;

END IF;

END LOOP;

-Open and close done to reset the cursor to the front/top

CLOSE CURSOR LOOP2;

OPEN CURSOR LOOP2

END LOOP;

The problem with this approach is once the outside loop moves the next value of the IDF, that logic will connect them once again, but this time with the FIDs reverse which is essentially the same thing as it does not matter the direction in which they are connected. I almost feel that once I found the link I need to remove that line from the cursor (which isn't possible).

FID1 LOW HIGH FID2
100875536081821008756293
100875629381821008755360

I was able to

1. make a list of all those I have connected and check against that

2 use some kind of collection

3. use a temporary table to hold the data

4 something that I have not yet thought

I really appreciate in advance for any help I get.

If your query mapping is correct, this is the result of your query with the addition of the values of sum for the strand/down running.  Manually change the incorrect in the output bit numbers so that we can move on to find another solution.

with gc_count like)

Select

Sum(current_high-current_low+1) on strand_high (g3e_fid seq order partition),

Sum(current_high-current_low+1) more (partition of g3e_fid order of seq).

strand_low (current_high-current_low),

t.* from b$ gc_count t

)

Select

a.g3e_fid, a.current_designation, a.current_low, a.current_high, a.strand_high, a.strand_low,

b.g3e_fid, b.current_designation, b.current_low, b.current_high, b.strand_high, b.strand_low

gc_count a, gc_count b

where a.g3e_fid in (1008757155,1008757159,1009999655)

and in b.g3e_fid (1008757155,1008757159,1009999655)

and a.g3e_fid > b.g3e_fid

and ((a.count_annotation = b.count_annotation)

or (a.current_designation = b.current_designation

and a.current_low b.current_low and b.current_high and a.current_high between b.current_low and b.current_high)

order of b.seq

/

G3E_FID CURRENT_DESIGNATION CURRENT_LOW CURRENT_HIGH STRAND_HIGH STRAND_LOW G3E_FID CURRENT_DESIGNATION CURRENT_LOW CURRENT_HIGH STRAND_HIGH STRAND_LOW

---------- --------------------- ----------- ------------ ----------- ---------- ---------- --------------------- ----------- ------------ ----------- ----------

GAGA GAGA 1008757159 1008757155 1 1 2 2 1 2 2 1

1008757159 3 8 8 3 1008757155 3 8 8 3 F1DM F1DM

1008757159 9 10 10 9 1008757155 9 10 10 9 F2 F2

1008757159 11 14 14 11 1008757155 11 14 14 11 F1DM F1DM

1009999655 17 18 6 5 1008757155 15 18 18 15 F2 F2

1008757159 15 16 16 15 1008757155 15 18 18 15 F2 F2

1009999655 21 24 4 1 1008757155 21 24 24 21 F2 F2

7 selected lines.

Elapsed time: 00:00:00.06

Tags: Database

Similar Questions

  • Find the best way

    Hi all: after reading these articles, I could walk the circumference of a cheerio in half an hour. Well here it is

    With all of these programs to do what we want. Well, I chose Acronis then what is the difference between the perception of the copy; The cloning.

    Hello, kmann.

    Then, first I must point out that different providers define things a little differently. They are not far from each other, but in the end, it's really easy to get lost in the terminology from one vendor to another.

    On this basis, I felt I should do a little research of the good people of Acronis and found that they had a large enough base of knowledge (kb).

    This is the closest thing that I could find an answer to your question:

    KB.Acronis.com/.../1540

    So, in short, cloning IS copy and a "clone" is a copy of their definition. However, they distinguished a clone and a backup. (as explained in this article)

    I hope that answers your question.

    Have a great rest of the day!

  • Weather for blackBerry Smartphones need help to find the best App

    I need to download the Besst Weather app I want the weather icon to show in good detail the snow, rain, clouds, in GOOD DETAIL nice please good list I would really appreciate it

    BeWeather is the most award-winning weather app and should do the trick for you:

    http://appworld.BlackBerry.com/WebStore/content/1062/?lang=en

    It also comes in a free version:

    http://appworld.BlackBerry.com/WebStore/content/5350/?lang=en

    I use WeatherEye weather network:

    http://appworld.BlackBerry.com/WebStore/content/1191/?lang=en

    I hope I've been helpful to you.

  • find the best way to learn and begin to

    Hello all, I am a coach and I wonder If I special offer. In other words, I am self-employed working for services of consultants et training academies. I can find a special This is not to provide expensive. I want to use le programs to learn and be able in the future for training on them.

    If you are a student or teacher, you may be eligible for the education discount, Adobe - Adobe Education Store: proof of academic identification

  • Need help to find the best online tutorial site

    Could it please send a best PLSQL online tutorial site.

    Advance thanks to you all.

    Please visit this site
    Always good to visit the official oracle for reference.

    http://docs.Oracle.com/CD/E11882_01/server.112/e26088/TOC.htm

    ~ Franck

  • ESXI hosts 5-2 and the best way to configure vSwitch and Nic redundancy

    Hi all

    Could someone help me find the best way to configure the vNetwork on 2 5 ESXI host for redundancy.  Once I managed to correctly configure the 2 hosts I will seek to use the same installation process for 6 guests.  3 sites with 2 hosts on each site managed all of vCentre Server

    I have 2 DL380 G7 servers 5 ESXI installed on a class 10, 8 GB SD card, I'm looking to install VSA on the 2 hosts on each server with 4 TB of internal storage (8 * 600 GB 10 k SAS).  Each server has a gigabit integrated 4-port NIC and I installed a 2nd NIC gigabit PCIe 4 ports, I also x 2 16 switches of port with Layer 3 routing.  I use vSphere 5 Standard acceleration Kit I am looking to use vCentre server for managing, vMotion for maintenance, HA for the failover and VM 10/15 (vCentre Server Std, DB SQL to vCentre Server, Exchange 2010, SQL Server 2008 R2, IIS Intranet, Helpdesk, 1 DC, 2 Domain Controller, AV Server, WSUS, SCCM Server, and Terminal Server server).

    What would be the best way to install and configure the network for performance and redundancy and am I missing something?

    My thoughts are, Teaming: -.

    vCenter - vswitch0 - port1 on NIC1 and port1 on NIC 2 - port1 on NIC1 to physical switch 1 - port1 on NIC2 to physical switch 2

    vMotion - vswitch1 - port2 on NIC1 and port2on NIC 2 - port2 on NIC1 to physical switch 1 - port2 on NIC2 to physical switch 2

    HA - vswitch3 - port3 on NIC1 and port3on NIC 2 - port3 on NIC1 physics 1 - port3 on NIC2 to physical switch 2 switch

    VM - vswitch4 - port4 on NIC1 and port4on NIC 2 - port4 on NIC1 to physical switch 1 - port4 on NIC2 to physical switch 2

    or do I need an additional NIC on each server to hit the VM 12-6 VM for 2 ports on 2 NETWORK interface card, or maybe something else I missed?

    Thank you

    In your case, to keep it simple and what I can say here is what would be my recommendation:

    3 standard vSwitches

    vSwitch0:

    • Management - vmnic0, vmnic2

    vSwitch1:

    • vMotion - vmnic1, vmnic3

    vSwitch2:

    • VM network - vmnic4, vmnic5, vmnic6, vmnic7

    The only reason why that I didn't split the VM in other network adapters shipped is because the difference in the types of the DL380 adapter shipped and the PCIe quad.

  • The search for the best way to get the data

    Sorry for my bad English.

    * 1. Definition * the task
    I have the table "tab01":

    ID; EVENT_DATE; Item1; Item2... itemN
    ______________________________
    1; 01.01.2009; A; null; ... null
    2; 02.01.2009; B; 1; ... null
    3; 03.01.2009; null; 2; ... 3
    4; 04.01.2009; null; null; ... 4

    I need to get the last non-null column values (item1... itemN) on the date chosen (result line).
    For example, the result on 03.01.2009 will be:

    EVENT_DATE; Item1; Item2... itemN
    ______________________________
    03.01.2009; B; 2 ... 3

    * 2.  My decision *.
    My decision (it works, but I think that's not good) was:
    1. create the package with
    (a) methods to get and set the date,
    (b) the functions which are the values required;
    2. create the view based on the functions of the package.

    create or replace package is P_STATE
    -The public variable declarations
    Trunc (sysdate) default date StateDate;

    -Declarations of function and public procedure
    procedure SetStateDate (date date);
    function GetStateDate return date;

    function GetItem1 return tab01.item1%type;
    ...
    function GetItemN return tab01.itemN%type;

    end P_STATE;

    create or replace package body is P_STATE

    procedure SetStateDate (date date) is
    Start
    StateDate: = Al;
    end;

    function GetStateDate return date is
    Start
    Return StateDate;
    end;

    function tab01.item1%type return GetItem1 is
    Result tab01.item1%type;
    cursor c1 is select item1 tab01
    where item1 is not null and
    EVENT_DATE < = StateDate
    event_date desc order.
    Start
    Open c1;
    Fetch c1 into result.
    Close c1;
    Return (result);
    end;

    ...

    function GetItemN return tab01.itemN%type is
    ...
    end P_STATE;

    create or replace view v_tab01
    (date_on, item1,... itemN)
    in select
    p_state. GetStateDate,
    p_state. GetItem1,
    ...
    p_state. GetItemN
    Double;

    Can you help me to find the best way?

    You might if it were a feature in pipeline. Check it out here: [http://www.akadia.com/services/ora_pipe_functions.html]

  • The best way to separate the user interface in the model LV 2012 queued Message Handler?

    If you create a new "queued Message Handler" new model 2012 LV, you will see a blue box in the case of "Update view" that says the following:

    Code Recommended - If you wish to decouple the Message Handling Loop from your user interface, consider creating User Events (like the "Stop" event in this VI) to message the Event Handling Loop whenever the user interface needs updating.
    

    I would like to give a suggestion, but I am struggling to find the best way to do this and still keep code modular.  The template creates a user - Stop.lvlib "event with a create/Destroy/fire Subvi.  I would like to create a library of "User event - Update UI.lvlib" similar with similar Create/Destroy/fire Subvi keep this new modular and separate user event.  The problem, I am struck, is that there may be only two hydrants in case Structure dynamic event so, how I modularlize creating user events in separate SubVIs and always maintain this dynamic event terminals?

    As a follow-up on the issue, it would be preferable to have a library of user by indicator events that must be updated or that a single UI update of the user and then event pass a cluster as the message that contains the name of the control for the update (to use with a structure of matter), then the data to go with it?

    Thank you!

    Instead of having the events to record in the 'create' methods, you could be part outside your 'create' SubVIs and then simply bundle them. Then, you create your individual event of the user management. See excerpt where I created a vi 'Create user event - Update' in front of the stop.

  • What is the best way to get to my account with td * removed *.

    I need help what is the best way to laptop.org/gettingstarted using my td account * removed *.

    It is not a good idea to put your name and your bank account on the Internet.

    You need to talk to your bank.

  • What is the best way to import and work with mxf files in first CC2015?

    I am trying to find the best way to import MXF files in first, like many people there seem to be issues.

    I have already imported using first CS6 but I got cut short clips and audio dropouts. I decided to start over with CC2015 first, but this time I'd like to do things and once. Should I use prelude first?

    I run on a Mac Pro (mid-2010)

    OS X El Capitan version 10.11.1

    All good, got sorted. I use the prelude.

    Thank you!

  • Hello, how can I find the best internet connections for my windows seven? I use my cell phone internet phone with a usb cable.is there any software from microsoft to help me?

    Hello, how can I find the best internet connections for my windows seven? I use my cell phone internet phone with a usb cable.is there any software from microsoft to help me?

    Hello

    The fastest internet connection depends on your internet speed provided by her Internet (ISP) Service provider. Therefore, contact them to receive a best speed of the internet.

    For more information:

    How to increase the speed of navigation: 7 ways to work faster on slow connections

    http://www.Microsoft.com/atwork/remotely/connections.aspx#fBid=TN-_TCHYDMB

    10 tips to help improve your wireless network

    http://www.Microsoft.com/athome/Setup/wirelesstips.aspx#fBid=1vrPRuhAhAg

    Internet Explorer is slow? 5 things to try

    http://Windows.Microsoft.com/en-us/Windows/help/Internet-Explorer/slow-five-tips-to-boost-performance

    It will be useful.

  • What is the best way to retrieve deleted mp3 files? I am running OSX Leopard 10.5.8 on a PowerPC G5 tower. I'll be very grateful for any help in this matter. Thanks to Chris

    Hello

    What is the best way to retrieve deleted mp3 files? I had a lapse of attention and I deleted a folder containing most of my music files. It is for the most part, the mp3 but there was regular audio files and some wav files in there also. I am running OSX Leopard 10.5.8 on a PowerPC G5 tower. I have another PPC machine to help the recovery, if I need, but at the moment, he is not appearing on my network (3 computers). I'm trying to change this soon. I'll be really grateful for any help in this matter.

    Thanks to Chris

    If you emptied the Recycle Bin after you move the folder to the trash, and you don't have a time Machine or another backup, then it is lost, sorry.

  • What is the best way to help my friend'd PC to download my files wps of my attachments to email from my XP pc?

    What is the best way to help my friend'd PC to download my files wps of my attachments to email from my XP pc?

    To send your messages with attachments to your friend.  He can then save attachments on his PC.  He will need an application that can handle files of ".wps", although, like the work of processing or Office Word (or WordPerfect, if that's what you used to create them).

    Brian Tillman [MVP-Outlook]
    --------------------------------
    https://MVP.support.Microsoft.com/profile/Brian.Tillman
    If a response may help, please vote it as useful. If a response to the problem, please mark it as an answer.

  • I would just ask the best way to integrate or add the feature of 'belonging' to Adobe Muse site I built for a client? The client wants for their customers to be able to have a log in option to access exclusive offers. Help, please. Thank you

    I would just ask the best way to integrate or to add the feature of "belonging".

    on the Adobe Muse site I built for a client? The client wants for their customers

    to be able to have a newspaper in option to access exclusive offers. Help, please. Thank you.

    Accommodation with Business Catalyst and feature Secure area are probably the easiest. But easier I don't mean easy. There will be a steep learning curve to learn how Business Catalyst works first.

    Unfortunately at this time Muse isn't really the tool to do what you need.

  • I can't find this answer anywhere, what is the best way to solve my audio beats on my hp dv6t?

    I have a HP dv6t with beats. I think it's a dv6t... the tone settings look like that... but on mine I have 1 kHz, 4 kHz and then once again, instead of what the picture has...? Please tell me the best way to resolve this for the American rap/hip-hop music and the figures for the bass, def, Centre, space and focus THANKS!  if I repeated a previous post someone else please let me know where his establishment and sick, delete this post...

    -____-

Maybe you are looking for

  • Photosmart C7180 printing problem

    So, here's a strange, my Photosmart C7180 age of 9 months has developed a bad habit to print all pages in landscape mode. I used the printer almost daily for 9 months, but 2 days ago I started to notice this weird quirk when printing multiple-page do

  • EliteBook 820 G1: G1 Elitebook 820 BIOS password reset

    Hello I've been updated BIOS firmware for laptop users, but I am stuck because of the absence of BIOS admin password. This has not been defined by anyone, and if so, I already tried a few passwords by default we use in special cases like this. Can yo

  • Photosmart 7515 adds lines from bottom of the scanned image

    My photosmart 7515 started just add a line double about 2 inches from the left edge of all of the scanned images. NO modification of the system that I am aware. Prins computer or internet as usual. Any ideas?

  • Can I get another copy of the installation discs to use with my product key?

    I bought a copy of XP Media Center in 2008. Recently, I tried to install it for the first time and received a message that windows needs to run the files are missing. He installed windows and ran for a few weeks now to start it flashes a blue screen

  • What do the average next pls... Error code 80070005

    Whenever I try to update I get the error code 80070005 16977924 2147024846 Can someone tell me whatthese codes mean, why I have them Announces how to stop them Thank you very much