How can I find several intersect between the number of lines

Hello

I created the table as below,

CREATE TABLE "TRANS" (NUMBER (9.0) "TIDSET", "ITEM" NUMBER (9.0)); "."

and insert valuse Trans table as below,

insert into values trans (1,1) insert into values trans (1,3) insert into values trans (1.4); insert into values of trans (1.5); insert into trans values (1.6);
insert into values trans (2.1); insert into values trans (2.2); insert into values trans (2, 4); insert into values trans (2,6), trans insert values (3,1);
insert into values trans (3,2) insert into values trans (3.3) insert into values trans (3.6); insert into values trans (1, 2); insert into trans values (1,1);

and now I have to find the intersection between the lines as below,

Select tidset from whose point trans = 1
intersect
Select tidset in the point transwhere = 2
intersect
Select tidset from trans whose point = 3;

If we have 1000 lines there is no way to find the intersect in this way, so I need to write a program to find the intersect as above without inserting the (item = N) manually each time, can you help me with this please?

Thank you

Hello

user11309581 wrote:
... and now I need to find the intersection between the lines as below,

Select tidset from whose point trans = 1
intersect
Select tidset in the point transwhere = 2
intersect
Select tidset from trans whose point = 3;

If we have 1000 lines there is no way to find the intersect in this way,

This is not true. The query you posted will work well for any number of lines. Perhaps you are really worried about the number of distinct values of the point.

so I need to write a program to find the intersect as above without inserting the (item = N) manually each time, can you help me with this please?

In a solution of Ivan, you probably mean "COUNT (DISTINCT point)" rather than "COUNT (*).
In addition, if element values are predictable, you don't have to code in all hard; You can generate, like this:

SELECT       tidset
FROM       trans
WHERE       item      IN (
               SELECT     LEVEL
               FROM     dual
               CONNECT BY     LEVEL <= n
             )
GROUP BY  tidset
HAVING       COUNT (DISTINCT item)     = n
;

Tags: Database

Similar Questions

  • How can I delete several images in the Finder at the same time

    How can I delete several images in the Finder all at once rather than one by one

    Click on an image and the successive images to press the SHIFT, or command key by clicking on the image to add it to the selection. Then Ctrl-click (tap two fingers) on any icon and choose to put in the trash. If the icons are in an easily selectable column or online, you can click on the window that contain, and then drag around them for a multiple selection.

  • How can I find a profile of the PSCC camera? [was: Please]

    How can I find a profile of the PSCC camera?

    Al

    They are used in several places in Photoshop, ACR and correction lens. On my Windows System I see that adobe installed here:

  • I'm unable to empty a jpg of the Trash because the element is used. How can I find what is using the element?

    I'm unable to empty a jpg of the Trash because the element is used. How can I find what is using the element?

    option of command, escape on the keyboard and then on the force quit button for all applications listed

    then empty the trash

  • How can I find what my ' is the speed of internet access?

    How can I find what my ' is the speed of internet access?

    Hello

    Here is a link to a test site.

    Speedtest.NET - the Global speed Test:
    http://Speedtest.NET/

    Concerning

  • How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Using XP: I have only about 2 GB (2 000 MB) of the programs on my hard drive Go 37 and less than 3 GB of space left.

    How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Thank you.

    * original title - full hard drive. *

    Using XP: I have only about 2 GB (2 000 MB) of the programs on my hard drive Go 37 and less than 3 GB of space left.

    How can I find and open/search the 32 GB of data that fills the disk for possible deletion?

    Thank you.

    Download and run JDiskReport.

    There are a number of things you can do to- temporarily - free up disk space.  The only real solution, however, is to get a larger hard drive.

    • You can run Disk Cleanup (start > run > cleanmgr > OK)
    • You can reduce the size allocated for the restoration of the system to about 1 GB (right click on desktop > properties > system restore > settings)
    • You can disable hibernation (if you don't use it) (right click on an empty spot on the desktop > properties > screen saver > power > Hibernate)
    • You can disable the indexing of the drive, which will also speed up your computer a bit (http://lifehacker.com/031440/turn-off-indexing-and-speed-up-windows-xp)
    • You can reduce the size of your Internet browser cache (depending on the browser that you use)
    • You can remove most of the $NTUninstallKBxxxxxx files $ following the directions here: http://windowsxp.mvps.org/Hotfix_backup.htm (read the warnings in the gray box first)

    But none of these answers you will earn really large amounts of space for very long.  The term solution time is a bigger hard drive.

    In the meantime, download and run JDiskReport, that will show you graphically what files take up more space and seem to so indicate what files to delete or uninstall applications.

  • How can you find a timecode for the chronology of the hand... in the nested sequence?

    How can you find a timecode for the chronology of the hand... in the nested sequence?

    The opposite seems easy, but I often put the CTI on the main timeline in the hope of finding the exact location of the nested sequence.

    Thanks for all the ideas.

    It is CS3 help, but that's what you're looking for?

  • How can I find my usb on the desktop version

    I have three different sets of USB ports on my desktop HP Pavilion HPE (model h8 - 1070t). I would like to know how do I know what version they are. I can't find this information on the HP site and have no idea where the original documents are as I have recently moved. Any help is greatly appreciated.

    Hello:

    The info is very brief, even on the support page.

    http://support.HP.com/us-en/document/c02854392

    The configurable options in front 2 ports should be usb 3.0.

    4 to the rear can be only usb 2.0

    The average Visual check is that the plastic inside the port bar is blue on usb 3.0 ports and black on usb 2.0 ports.

    http://support.HP.com/us-en/document/c02837359

    Productivity front portsMust select one of the following options:

    • 15-in-1 card reader + Top I/O (2 headphone jack USB 3.0 + 1 + 1 taken micro) + Front I/O (2 USB 2.0)

  • How can I find a picture using the file identification number?

    I seems to have chosen a picture that I like but that you have not downloaded the preview to my computer. I wrote only the number of the file down. How can I find this image now? To explain in more detail, when you download the preview each photo has a number at the bottom right, normally about 8 digits. I want to use this number to locate a picture.

    Thank you for your help.

    Simply type the number of the image in the search. Be sure that the correct file types are audited.

  • How can I find a lost iPod serial number?

    Just lost my iPod classic.  How can I find my serial number other than the original box... It has been synchronized my iMac just now.  Is there a memory of the serial number on my mac?

    It is not stored on the Mac.  When you connect an iPod, iTunes reads off the coast of the iPod to display on the screen of the iPod settings in iTunes.

    If the iPod was previously saved with your Apple (which can happen automatically if bought at Apple) ID, you may be able to find the serial number for you iPod on your Apple ID Profile of Support

    https://supportprofile.Apple.com/

    Most of my Apple hardware products purchased is listed on my Profile of Support, and I've never entered manually.

  • How can I find a list of the modules installed in FF5? (the one I'm looking for is installed, but does not appear in the Extensions, appearance or Plugins)

    I installed an add-on that would allow me to change the content of the context menu. It works like a charm and I want to make a donation to the person who developed it, but I don't remember his name and I don't know how to find a list of the Add-ons I have installed. I checked the lists that appear when you go to the Add-ons under appearance and Plugins, Extensions Manager, but he's not here. Any help would be much appreciated.

    A lot of extensions change several context menus.

    The Menu Editor extension allows to rearrange and hide items in the menus, even move items between menus (be careful with moving between menus.

    You can get a list of your Extensions in a playlist by help > troubleshooting or typing information on: support in the bar of addresses in Firefox 4 and above. Note that your extensions disabled your addons list may appear after those who have been activated.

    Please mark "resolved" a response that will better help others with a similar problem - hope it was her.

  • How can I disable auto switching between the LCD screen and the viewfinder electronic on Sony A7sii?

    Hi guys,.

    I don't have it if the table on the right, but here's my question...

    Disabling automatic switching between the lcd and the viewfinder on the Sony A7Sii?

    Thanks in advance,

    Zia

    Hi @dslrshooters,

    could you please change your message header to match the content of you post.

    in the A6300, you can change the way in which the camera automatically switches between NET & screen in

    Menu custom (cog symbol): FINDER/MONITOR.

    with a little luck, you have the same menu on the 7Sii.

  • HP PhotoSmart Studio: How can I find my ads on the support page?

    There is no "Board" for my question.

    I tried several times to locate my post (only at this time) to see what, if anything, took place, but no matter what I try online, nothing comes.

    So far, the only way I found out to access post is to shoot to the top of the notivication of e-mail and click on the second link. Is there an arshan method to do online?

    WGB

    Hello:

    You can normally find the posts that you have made by clicking on your user name name and display your latest messages.

    At the bottom of this list view is a link to click on show all of your messages.

    http://h30434.www3.HP.com/T5/user/viewprofilepage/user-ID/209578

  • How can I close a space between the lines?

    I typed a promissory note and have extra space between the lines.  How can I close this space?

    Hello

    Click on the "Line spacing" icon in the section 'Paragraph' of the 'Home' tab This icon is the fourth first in the default icon and has a high and arrow down to it.

    Click your setting spacing appropriate line in the list that appears.

    Change the default font size

    http://www.askdavetaylor.com/change_default_font_size_in_wordpad.html

    Windows XP Professional must have a copy of the Works word processor.  It is easier to work with.

    Start > type Works

    Select the word processor from the list

    If it does not, go to C:\\Program Microsoft Works

    Search for MSWorks

    Double-click the file to launch

    The icon looks like this in Windows Vista-

  • How can I find portlet ID in the database?

    Hello

    I get this error:
    Caused by: com.plumtree.server.marshalers.PTException:-2147024891 - CPTGadgetGateway.GetGadgetEntry: user with the ID 3826 didn't access portlet with ID 759

    How can I know where is the name of this portlet? What I have to go to the database, or I can do this from the admin console?

    Thank you

    V

    Enter edit of another portlet mode... go to admin and find a portlet you know there and click here to see its properties... once there, change the objectid in the address to the one in question bar and you should get the name and all of its properties... Let me know if it works and it is solved.

Maybe you are looking for

  • MacBook pro reboots randomly

    If anyone can help me I would be very grateful! For months and months now, my macbook has used to revive at random. Sometimes, he won't do much or for centuries, but other times he'll do dozens of times in a row! Obviously, it's very frustrating beca

  • Anyone know why the printing options has been removed in the contextual (right click Menu)?

    Application Web has a window (javascript) template, cannot print more unless Ctrl-P is used, no mouse > right click > print...

  • Satellite P100-347: I'm tired of this!

    On 30 March, I bought a new Toshiba laptop (P100-347) that was advertised as coming with a FREE update to Windows Vista. The guys at the shop told me that the only thing I have to do to get this update is contact Toshiba. I'm going home and I realize

  • Black Ops going on season 3

    I have a code for the season. move when I bought this game but unfortunately Julian inconu what. the guy in the shop told me. on this redemption, can anyone help

  • My internet connection status shows no connection

    original title: my internet connection? My internet connection still works, but the connection status icon shows no connection with an x on it. Who might be a potential problem in the future, or is there a way I can fix it?