Select with One-to-Many and Many-to-One without repeating

Hi
I have a customer who needs a report two sides left and right, but allowing for One-to-Many and Many-to-One relationships in the one report.
A little background:-
This has do do with listings on land and buildings.
One building can be built on a few pieces of land.
Similarly, there can be several buildings on one piece of land.
What is required is a listing of buildings on the left, land on the right, but without repeating the "single line entries" either left or right.
For example Building1 is on Land1 and Land2, and Building2 and Building3 are built on Land3.
We need:-
Building1 Land1
________Land2
Building2 Land3
Building3______
The ___ just used for spacing so you get the idea ;)
Essentially - a "break by" on columns on the left and right.
The Buildings and Land are in different tables, with a link table - one row for each link.
Any ideas?
Thanks
Mike

To jitu.jk - first, this is not in SQL*Plus - its a report in APEX - second, I see no way to break on the left and the right in the same select.
Maybe there is a way.
To Etbin
This is a very inovative solution - I've tried it out and the result is:-
BUILDING LAND
_____Land 4
_____Land 3
_____Land 5
Building 2 Land 4
Building 3 Land 1
_____Land 4
Building 4 Land 4
Building 5 Land 3
_____Land 4
(The underscores I put in for spacing - not perfect but you get the idea - hard whe you write the reply in a fixed space font and it's displayed in the forum in variable space font!! ;)
9 rows selected.
This is not quite the desired result - in your list of associations, we have Building1 associated with Land 3,4, and 5.
So for Building 1 we should have:-
Building 1 Land 3
________Land 4
________Land 5..........
But your result doesn't include Building 1 at all.
The other requirement is that no building or land is ever repeated - so I came up with the concept of "groups".
Starting with one building - I find all pieces of land that are associated - listing them on the right (without repeating the building.
I then find any other buildings asociated with any of the land records that the first building was associated with.
These are listed on the left - without repeating the land records on the right.
This group is given a unique identifier of the minimum association ID (my associations have ID's).
This all done, I use the unique ID as a break column ans summarise additional columns (area, value etc) below each group.
Because of the summaries - adding area and value etc, I can't have any building or land duplicated as I would then "double count" the area, value etc.
Maybe you method can be made to work with some tweaking.
Very clever indeed - forums need great answers like this - it keeps us going.
Thanks again
Mike

Similar Messages

  • Digital persona(fingerprint reader) extension is incompatable with firefox 4.0b7 and many more extension which is working in firefox 3.6 is not compatable with this version

    Current version of firefox shows "Digital persona(fingerprint reader) extension is incompatable with firefox 4.0b7" and many more extension which is working in firefox 3.6 also not compatable with this version what should we do because this extensions are very useful for me in my laptop

    I got this reply from DigitalPersona:
    "DigitalPersona made the decision late last Spring, to discontinue the Personal products. There will be no further revisions."

  • I connected my iPod Touch to a stereo system phono input using a cable with stereo jacks (red and white) on one end and that plugs into the iPod's headphone jack.  The problem is that the sound is extremely muffled and bass-heavy, with little treble.

    I connected my iPod Touch to a stereo system phono input using a cable with stereo jacks (red and white) on one end and that plugs into the iPod's headphone jack.  The problem is that the sound is extremely muffled and bass-heavy, with little treble.  I have to turn the bass control on the stereo receiver to pratically zero in order for the sound coming through the stereo to be acceptable.  Is there a setting on either the iPod or the stereo that I need to change in order to fix this?

    The phono input is for a phonograph.  The iPod does headphne output is not that same as a phongraph output.  Does th stero have an AUX input?  That should be compatible.

  • Cannot start widget - Ensure that SAP Business One Integration Service and SAP Business One Event Sender Service have been started

    Dear Experts .
    I'm trying to enable widget for my company db but getting the following error :
    Ensure that SAP Business One Integration Service and SAP Business One Event Sender Service have been started; then wait 1 minute and try again
    I can connect to the B1iF locally and remotely .
    I have the db configured in the SLD and connects successfully .
    I have the event sender service and proxy started and configured for the company db.
    I can access the Dashboard web portal and login with database sap credentials (but I see nothing there)
    I've checked that there are no duplicate entries in the SSLD table for SBO common (note : 1619422)
    I've also tried to re-activate the xelcious from the B1iF->control.
    My Setup :
    I'm runing SBO server, B1iF installed locally and B1iSN installed on a 3rd party server.
    I'm using B1iF as even forwarder for B1iSN.
    I know this has been discussed many times through out the forum and I've tried most of the stuff other than clean install.
    I would appreciate any input before removing B1iF completely and re-installing.
    Thanks in advance ,
    Nadav.

    Hi,
    The problem is SAP 8.81 PL04, with PL05 or PL06, it is solutioned.
    Thanks,

  • Two http ports - one in 8080 and the other one in 3034 - How to remove 8080

    Hi!
    I have two http ports - one in 8080 and the other one in 3034 - How to remove 8080.
    Listening Endpoints Summary...
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<ip address>)(PORT=<port number>)))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<hotname>)(PORT=3034))(Presentation=HTTP)(Session=RAW))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<hotname>)(PORT=2102))(Presentation=FTP)(Session=RAW))
    (DESCRIPTION=(ADDRESS=(PROTOCOL=tcp)(HOST=<hotname>)(PORT=8080))(Presentation=HTTP)(Session=RAW))
    Services Summary...

    You get check which is the current dedicated HTTP port by using DBMS_XDB.getHTTPPort(). There can be only HTTP port active per database (not taken into account the HTTPs one). If two or more exists than there is still a process claiming that port (in this case 8080). It will be cleaned up after one or more processes are not claiming that port again. New connections will be redirected to the new port.

  • I have one ipod touch and my friend one itouch 4...

    i have one ipod touch and my friend one itouch 4 and his version is 4.3.4, but when i try to update the itunes say my last version is the 4.2.1, is this correct ?

    If you have iTunes version 10.3.1 it is likey that you have a 2G iPod that can only go as far as 4.2.1.  Identify your iPod here:
    Identifying iPod models

  • Understanding objects relations one-to-many and many-to-many with flex4

    Hello, I'm a newbie on Flex 4.
    I read several examples and also the "one week training". What I couldn't find is how to manage relations among objects.
    I understood that objects coming from the server must be translated to value objects.
    Because I'm working with Spring, Hibernate and BlazeDS, I've several beans and relations defined with the annotations @OneToMany and @ManyToMany. These relations are managed using List, Set and Map objects.
    More precisaly, I've to create a flex datagrid, each row is an "author" objects. Cliccking a row, I need to load some other related objects (let's call them "documents").
    Auhtor and Documents objects are in a one-to-many relation.
    My questions are:
    1) Which is the correct way to handle related objects in Flex? This questions arise from the fact that there are two ways in order to manage such objects. The first is to load the parent object and them call related method in order to get child. For example author.getDocuments(). I get all the related objects (author+ all his documents) with just one call, the one to load the "author" object. BlazeDS doesn't support lazy loading.
    The second way, is to provide the parent ID to a method that loads the related objects. For example getDocuments(authorID). I need to make a query for each ID
    Obviously, the value objects we have to create with AS are different. In the first case, the author VO will have a ArrayCollection in order to manage documents.In the second case I'll not create this property.
    2) In Flex, which is the best way? is it possible to manage objects (documents) of objects (authors) with MXML?
    3) More in general, Flex experts people, what are used to do? Where I can find an example?
    Thank you
    Paolo

    Thank you Pablo.
    Regarding my question n.2, it is confused.
    Here what I meant:
    Let's suppose I work with VO and ArrayCollection (the first "way" I wrote above). To get "Documents" objects, I need to call author.getDocuments().
    Now, I'm not sure that I'm able to do the same with MXML and that is is the easiest way. I think it should be easier working with "Documents" object instead of Auhors in order to work with Documents.
    For example, in order to get autors I can write a CallResponder and use a token. To fill a datagrid I define a method like
    protected function dataGrid_creationCompleteHandler(event:Flex:Event):void
         getAuthorsResult.token = auhtorService.getAuthors();}
    Now in order to fill the grid, I can use  for example <mx:DataGridColumn dataField="lastname">. Very easy and clear.
    But now, if I need to extract the Document objects and visualize them inside anothee DataGrid, I don't know how to do.
    For example, in <mx:DataGridColumn> tag what I've to write in order to visualize a Document property, using an Author object?
    Fixing an Auhtor, I need to loop over each Documents, but how can I loop inside the MXML? Something like <mx:DataGridColum dataField="author.documentloopvariable....>
    It should be better to get Documents via a method like getDocuments(authorID). Now I get a token related to a CallResponder, and I can work at the same manner as the Author. Isn't it? But this is the second "way" I wrote above.
    Well, I hope my question in a little clear.
    thank you
    Pbesi

  • One to many and many to one transformation

    I want to transform a field one to many form and many to one.
    EXP: One to MAny
    Name and Address.
    Tanvir Ahmad Mughal
    i want to transfor it as first name=tanvir, M_name=Ahmad, Last name=Mughal
    similer with address. So tell me how i will do in oracle warehouse builder 10G.
    exp: many to one
    the address is stored in 4 attributes in source and i want to store in one field or 2 fields in oracle
    warehouse builder. tell me about it.
    i shall be thankful to you for this kind

    Hi
    Use expressions!
    Select an expression and connect the sorce fiedl to it. Create 3 output filed and define the expressions for them:
    - substr( source_field, 1, instr(source_field, ' '))
    - substr( source_field, instr(source_field, ' '), instr(source_field, ' ', 2))
    - substr( source_field, instr(source_field, ' ', 2)).
    For many to one concatenate them in an expression. Create an expression, connect the source fileds, create an output filed and in the expression use this:
    - field1 || ' ' || field2 || ' ' || field3 || ' ' || field4.
    Ott Karesz
    http://www.trendo-kft.hu

  • Linking information between one Delivery Order and many Goods Receipt

    We have a case of a business process we're looking for the solutions base on mySAP ECC 6.0
    We deliver to customers by barge, each of DO for one barge. Goods on each delivery barge receipt  directly from many truck, Can you tell me the SAP help to manage the information about barge and trucks.
    Thanks and best regards

    Hi Gordon,
    Thanks for the info. Another idea: How about ..
    - adding the item on a new line with the open qty and the correct date
    - simply closing the partially posted line with the open qty (is that ok from the DB view?)
    Any doubt that this could work as intended?
    Thanks
    Franz

  • One to Many And Many to Many Association(jdev 11.4 ps3)

    Hi All,
    I was trying different types of ADF-BC implementations, I am stuck with following
    1)     One to Many Association
    a.     Order – OrderItem ( Join over two tables, One OrderVO should have List<OrderItemVO> orderItems
    b.     Employee-Manager (Self Join on the Employee Table, One Employee should have List<Employee> subordinates [0 to *])
    c.     Manager-Employee (Self Join on the Employee Table, One Employee should have List<Employee> managers [ 0 or 1] )
    2)     Many to Many Association
    Would be very helpful if you could provide any Blog published or Some sample implementation of the above.

    Would be very helpful if you tell us which version of jdev you are looking at.
    All this is described in the docs http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcintro.htm#sm0051 to start with and http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/bcentities.htm#sm0124 to follow up.
    Timo

  • Constant Problems with Ideapad Y510P Trials and Tribulations no one wants to help me with

    My trials and tribulations with my Ideapad Y510P, this website, the Customer Service, and the Repair Department are as dauntless, perilous, and stressful as the journey up Mount Doom to cast the One Ring into the fiery depths to end the reign of chaos Sauron raught to Middle-Earth. It begins with my external/slide-in Graphics Card turning on and off and outright stopping to work and putting all the burden on the internal graphics card (of the same kind). Ultimately I'm told to try out SLI and come to this website to find a shoddy trouble-shoot resolution to try and trick the OS and computer to use SLI properly to share the burden of more stressful games and games all together (which I didn't even TOUCH; it's above my knowledge of computers). For a small time it works but in the end the external graphics card stops working completely and all the burden is given to the internal graphics card which it too stops working. Eventually my laptops screen stops working as well and the OS, I had to crack open an old monitor to see what was going on, on my computer, when I turned it on the lenovo screen was constantly flickering like something out of a horror movie or a foreboding warning of what was to come that I'm now dealing with. I figure I should install Windows 7 because at this point and my lack of knowledge I have no idea how to reinstall Windows 8 from a non-properly working laptop with no CD Drive. In the beginning I thought two graphics card would be perfect for more stressful games, sharing the burden to ease it so they don't overheat; well that idea and thought process was shot out the window and into a corner where it was beaten to a bloody pulp. So I remove the HD from the laptop, go downstairs to my Desktop and hook it up and install Windows 7 into it, in hopes of maybe resolving issues or trying to at least get to the desktop to figure something out. Well it absolutely did nothing. So I bite the bullet and send it into the "Repair Department" thinking WHAT. COULD. POSSIBLY. GO. WRONG. I get it back today at around noon with all my hopes and dreams to find out that instead of putting Windows 8 back into the Y510P I'm given a Windows 7 Desktop asking me for a CD KEY that I don't have, this isn't even the same CD OS I installed onto it but one from the Repair Department asking for a CD KEY I have no means of acquiring. I also find out that apparently it wasn't the Graphics Cards at all but the MOTHERBOARD. OF COURSE! (sarcasm) SO I CALL CUSTOMER SERVICE Customer Service tells me they can't give me the the CD Key because they have no correlations to the Repair Department (this is starting to sound like a bad divorced couple) so they can't give me the CD Key, let alone email it to me. So I ask to talk to the Supervisior (who is probably the nicest thing that has happened thus far in my trails of Lenovo and the Misadventures of O_Green_World). He tells me that the motherboard is set to work with Windows 8 best and that I can install BIOS for Windows 7 on the website and to reinstall my copy of Windows 7 the way I did it before giving it to Lenovo, and or waiting for this Windows 8 CD which isn't even an OS but some sort of way to contact the Windows 8 on the Motherboard to install it that way (which is being mailed to me now). Now here is my fresh new problem with this whole shindig. I've installed my copy of Windows 7 onto my Lenovo Y510P. It doesn't have the installation drivers for the Ethernet or Network Controller, under Device Manager they are under "Other Devices" in the Device Manager window. So I can't can't a Ethernet Cable let alone Wifi in order to go onto Lenovo's website to download Windows 7 BIOS/Drivers for Y510P. ALSO, ALSO, if the computer falls asleep it doesn't wake up at all I have turn off the computer and turn it back on. For all that is good in the world please, someone, somewhere help. [Edit] - I just had to seperate my **bleep** post because it posted it as a giant wall of text.

    Hello Sachin,
    Here is the latest version of the code , I have tried many. I am not familiar with code that is why I came from Dreamweaver to Muse. Laugh, it would make you cry.
    Dreamweaver is advertised as wysiwyg which it certainly is not. Muse advertises that you can build a website without knowing code( as long as you do not want to put a  simple run of the mill animation on your site)! Having had my usual grouse I still love Muse as it does everything, well nearly everything it says it will do, and makes building a reasonable site possible for someone who has very little knowledge. Once you have sorted the code out I probably will need to talk to you again when it comes to uploading to server as I can see from the forums that this seems to be a weekness of the system also. Thanks for your cheerful reply to my utterly unreasonable previous communication and I look forward to you solving all my problems. I think' IT' is the only business in the world where people pay good money for products that don't work and are then told to go and chat amongst themselves on forums to see if they can solve the problems collectively. Couldn't resist that one I'm afraid. Old and grumpy! I hope you can access the code. I have no idea where it is but I copied it here in the html frame. I even find it difficult to use this forum. User friendly!
    ie8 html5 video creator by EasyHtml5Video.com v1.8

  • Install Oracle 11G, RAC with VMWare, APPS R12, and OBIEE on one server?

    Dear Experts,
    I'm looking to upgrade my skills, and want to learn more of:
    Oracle 11G, RAC, VMWare, APPS R12, and OBIEE
    My server has two quad cores (8 CPU altogether) and 16 gigs of RAM.
    Years ago, I took a shots at installing RAC on multiple servers and firewire.
    One thing I remember was that after I installed RAC, I was not able to use the database unless I enabled all the RAC processes on the server. So, I was not able to just boot the database and use it in the traditional single server manner.
    Which I will also want to do.
    1) Does this symptom/aspect/characteristic of RAC install still exist?
    2) Is it realistic to install all this software on one server?
    If so, what is the order of operations for the install?
    3) If I have to prioritize, I'd like to install
    Oracle 11G, OBIEE, and APPS R12,
    Would installing R12 and OBIEE on the same server present any conflicts or issues?
    If not, what is the order of operations for the install?
    11G, R12, then OBIEE?
    Thanks a lot!

    Hi,
    1) Does this symptom/aspect/characteristic of RAC install still exist?No.
    2) Is it realistic to install all this software on one server?
    If so, what is the order of operations for the install?For learning/traning/demonstration purpose you can Install all these software on same machine.
    3) If I have to prioritize, I'd like to install
    Oracle 11G, OBIEE, and APPS R12,
    Would installing R12 and OBIEE on the same server present any conflicts or issues?
    If not, what is the order of operations for the install?
    11G, R12, then OBIEE?There will not be any conflicts. I would suggest you to select vmware or virtual box in order to configure all these sw's.
    I have done such a configuration on my laptop with i7 Quad processor, 16GB RAM and 640 GB HDD.
    I have Installed 2 node RAC, 2 Node ERP and all are running smoothly without any issues.
    Refer:
    http://appsdbaworkshop.blogspot.com/2011/10/11gr2-rac-on-linux-56-using-vmware.html
    thanks,
    X A H E E R

  • Can I create a database with the same name and DBID that one is dropped?

    Hello,
    I need to restore a backup database, made with Oracle Enterprise Manager, in a new one, because the original is dropped. I've tried it with the recovery tools but fails, i suppose because the dbid's are not the same.
    Then, Is it possible create a new database with the same old database dbid to restore de backup?
    Thank you very much.
    P.D.: I've too THE OLD spfile---.ora y el pwd---.ora

    I think you are using the same Composition Class on both project. On the properties tab, you can change this number (e.g.: EDGE-1637270).

  • Report with open Purchase orders and open Goods Receipt (without invoices)

    Dear All,
    We require a report in purchasing which will show:
    1. open purchase orders
    2. open goods receipts
    We do not want POs and GRs that have been created into invoices to be included in the report.
    At the moment we tried ME2N with RECHNUNG in selection parameters but it includes invoices. We have tried other selection parameters and reports but the results are not helpful.
    I have also checked SDN but there is no correct answer. Most of them specify the ME2N with RECHNUNG as a solution but this does not work for us.
    Any help would be appreciated.
    G.

    Hi,
    Try ME2N, Select WE101....Also Select ALV
    go to next screen....Go to change layout
    Select to be deliverd(Qty) and Value, also to be invoice(Qty) & Value.
    Hope Help U!
    Regards,
    Pardeep Malik

  • How to sync iphone with a different itunes and different apple ID without erasing

    I have 2 iphones and both have different contents on them, and both are synced to one apple id and itunes account. What im looking to do is "unlink" one of my iphones and connect that to a different apple id and itunes account on a different computer, WITHOUT deleting anything on that iphone. Because when i go to sync on a differnt computer, i am forced to ease my iphone. any help would be greatly appreciated thanks

    You cannot.

Maybe you are looking for

  • Playlists disappeared from iTunes after update. Can I get them back?

    All my playlists disappered from iTunes. I'm running Windows7 Pro. I must have lost the playlists after an update. I haven't listen to iTunes for a couple months, mostly Pandora, but yesterday I went back and all my playlists were missing. --- I do r

  • How to integrate KXEN result with own apps?

    Dear Experts, When I was trying the Association Rule of KXEN (SAP infinityinsight 7.0), I do not find a good way to integrate the trained result rules into my own App. When I got a group of rules, the only way I could think is to save the rule list i

  • Reg: Web Service Scenarios

    Hi! Experts, This is Amar Srinivas Eli. Will you please send links containg Scenarios using WEB SERVICES in detail step by step procedure if possible with screen shots  for both Design and Configuration Steps Also send links regarding HTTP to Web Ser

  • IMessage and Facetime won't let me sign in

    Whenever I try to sign into FaceTime or iMessage it says I was signed out because my password was changed, and even when i changed my password it still doesn't work!

  • Problema permisos al abrir photoshop CS6 (memoria virtual)

    Hola, he instalado photoshop CS6 en un portátil con una instalación limpia de Windows 8 y justo al arrancar da un error de memorial virtual que solo he podido resolver abriendo el programa como administrador. El error que aparece es: No se ha podido