How to write a SQL to get this information from the DD?

Hi, I have a requirement like this:

(1) we have a pattern with 100s of synonyms in the tables and views in the other 2 diagrams.

(2) 100 francs of paintings have CASE_ID + SEQ_NUM as primary key.

(3) SOME TABLES might have only CASE_ID as primary key.

(4) several dozen paintings have CASE_ID + a few other columns as a PRIMARY KEY.

I need a list of all the tables, the primary key is composed of (case_id + case_seq).

Problem with my method is, when I got out, I also have tables that the primary key column CASE_ID.

I don't need the paintings, including PK are EXACTLY CASE_ID + SEQ_NUM.

user12240205 wrote:

I need a list of all the tables, the primary key is composed of (case_id + case_seq).

SELECT c.owner,

c.table_name,

c.constraint_name

OF dba_constraints c,.

dba_cons_columns cc

WHERE c.constraint_type = 'P '.

AND cc.owner = c.owner

AND cc.table_name = c.table_name

AND cc.constraint_name = c.constraint_name

C.owner GROUP,

c.table_name,

c.constraint_name

HAVING COUNT (*) = 2

AND MIN (cc.column_name) = "CASE_ID".

AND MAX (cc.column_name) = "SEQ_NUM.

ORDER BY c.owner,

c.table_name,

c.constraint_name

/

SY.

Tags: Database

Similar Questions

  • I bought Lenovo G550, 6 months before and now I m is problem with key product of Windows because of the striped top, so please tell me how it would be possible to get this product key

    I bought Lenovo G550, 6 months before and now I got problems with my PC and have problem with the Windows product key due to scratch on it, so please tell me how it would be possible to get this product key.

    Behind my laptop, here is a sticker mentioned
    Proof of license
    Certificate of authenticity
    Microsoft
    Microsoft Corporation @2005
    X 15-53803
    and on the bar code is mentioned after the number.
    00.94 - 893-397-158
    Product key. M... 62-8GX88-69-... - f7b

    Hello BHASKARPIYA,

    Product Key Finder programs, if someone advises to use, is found only on your operating system preinstalled a Levono multiple factory facilities and will be of no use in these circumstances.

    You will need to contact Lenovo and request their assistance.

    Or a way around this is to buy a Lenovo recovery DVD to reinstall the operating system or use the built-in recovery Partition containing an image of your OS and reinstall Windows like that.

    No method requires a product key to be entered by you.

  • my fonts Office has suddenly changed to a larger font, how do I get this back to the original size?

    my fonts Office has suddenly changed to a larger font, how do I get this back to the original size? I tried to change it by right-clicking the mouse and personlized want and it did not work. I'm runnin Windows vista. Thank you, Martha

    Hi dude 11-2,.

    Follow the steps in this document to change the screen resolution.

    Let us know if that helps.

  • How can I get this question to the right person in Sony cameras?

    How can I get this question to the right people in the Sony cameras?  The main site contact form does not have a pre-sales question:

    I intend to buy a digital SLR type that has at least 24 million pixels, 4K recording/storage/exit offers video, Wi - Fi, objective interchangeable with anti-shake zoom function and which allow me to save my pictures in full form, so that I can view in 4 K on a Sony 4 K TV.
    Looking at the picture of the cameras is intimidating.  I prefer Sony.  Can you point me to one of your cameras that meet my needs?  If there is on the way before the month of may of the next year, please let me know about that as well.  In addition, I don't want the so-called very high prices of professional cameras, namely $5K or more.  Thank you.

    With regard to a DSLR with 4 k video, no again.
    Will there be one in the future? Yes there will be.
    When? No idea yet.

    The closest thing that currently holds the Sony is the Sony RX10ii

    DSLR body, 4 k video, built in an optical (in lens), wifi/NFC, stabilizer etc.

    However, it is only 20mp and it uses not interchangeable objectives.
    It's lens located between however 18-200mm (35mm equivalent)

    Finally, it's only a 1 "sensor, so don't expect a quality digital SLR image, but quality located near DSLR quality nonetheless.

  • I tried to delete some unused programs of my had drive and the PC deleted wlidcl.dll. How can I get this program for the PC works as before?

    I tried to delete some unused programs of my had drive and cleared PC wlidcl.dll How can I get this program for the PC works as before? The PC works now as slow as a snail climbs.  What do you suggest me? Thank you

    Norman.--

    E-mail address is removed from the privacy *.

    original title: wlidcl.dll

    Hello

    I suggest to follow the steps below and check if the problem persists:

    Not one:

    Uninstall Windows Live essentials followed the procedure described in the link:

    http://Windows.Microsoft.com/en-us/Windows7/uninstall-or-change-a-program

    Step b:

    Download and install Windows Live essential from the link:

    http://explore.live.com/Windows-Live-Essentials?OS=other

  • I have photoshopCC, but some how I get pop ups saying that my path for cs6 is expires, and then I buy and get a licience no, well I have not because I have a year of photoshop and lightroom CC. How can I get rid of this message from the trial please my

    I have photoshopCC, but some how I get pop ups saying that my path for cs6 is expires, and then I buy and get a licience no, well I have not because I have a year of photoshop and lightroom CC. How can I get rid of this message from the Marie trial please

    Go to Photoshop forum

  • I'm new in indesign scripting, please tell me how to write a script to get the contents of an XML element and then sort all the content

    I'm new in indesign scripting, please tell me how to write a script to get the contents of an XML element and then sort all the content

    Hello

    Can the code below is useful for you, but I do not know how to sort.

    Change the tag based on your employment application.

  • How to get more information about the user using SecurityContext ADF?

    Hello.

    In my application I have a table use:

    CREATE TABLE ("ADM_USERS"

    ACTIVATE THE 'ID' NUMBER(*,0) NOT NULL,

    ACTIVATE THE 'U_NAME' VARCHAR2 (30 BYTE) NOT NULL,

    ACTIVATE THE "U_PASS" VARCHAR2 (255 BYTE) NOT NULL,

    VARCHAR2 (30 BYTE) "NAME."

    VARCHAR2 (30 BYTE) 'NAME')

    I configured the WebLogic environment using the the "reading- SQL only the authentication provider ' and then I configured ADF Security as ADF authentication -> Forms -authentication.

    I connect the user using the method of ""doLogin " and all that working properly. "


    public String doLogin() {}

    String _username =;

    Byte [] pw = _password.getBytes ();

    FacesContext fctx = FacesContext.getCurrentInstance ();

    HttpServletRequest request = (HttpServletRequest) () .getRequest () fctx.getExternalContext;

    try {}

    Topic topic = Authentication.login (new URLCallbackHandler (UN, pw));

    ServletAuthentication.runAs (object, request);

    String loginUrl = "/ adfAuthentication?success_url=/faces/Registry.jsf";

    HttpServletResponse response = (HttpServletResponse) fctx.getExternalContext (m:System.NET.FtpWebRequest.GetResponse ());

    sendForward (request, response, loginUrl);

    } catch (FailedLoginException fle) {}

    FacesMessage msg = new FacesMessage (FacesMessage.SEVERITY_ERROR, "Incorrect name or password","Incorrect name or password" "");

    fctx.addMessage (null, msg);

    } catch {} (the LoginException)

    reportUnexpectedLoginError ("LoginException", the);

    }

    Returns a null value.

    }

    securityContext.userName returns the value of the 'U_NAME '.

    How to make more information on the user connected such as NAME, ID, first NAME?


    And the second question:

    How to store the value of the field 'ID' in table 'ADM_USERS' in any table with the 'IDUSER' with objects of entity created in application scope?


    Concerning

    Darek


    securityContext.userName returns the value of the 'U_NAME '.
    How can I get more information about the user logged as NAME, first NAME, ID?

    You can not.

    You need to query DB.

    How to store the value of the field 'ID' in table 'ADM_USERS' in any table with the 'IDUSER' with objects of entity created in application scope?

    Record this value in UserData structure so it will be available in the model. http://andrejusb.blogspot.com/2012/05/solution-for-sharing-global-user-data.html

    Then use as default expression for your objects of entity attributes (something like: adf.userSession.userData.yourUserDataVar).

    Dario

  • I had to get a new phone because I dropped one and damaged the screen how am I supposed to remove the information from the old phone if I'm not

    I had to get a new phone because I dropped one and damaged the screen how am I supposed to remove the information from the old phone if I don't?

    Are you turning in the Apple device, a company or the insurer? Can you turn on the device? If so, you could try to send a command to erase with iCloud. If this is not the case, if her deal with Apple, they he will wipe away. If the only damage the screen, you don't want just the screen replaced?

  • When you try to open a PDF from Adobe, I get this message "to the 882 ordinal not found in SHELL32.dll dynamic link library.

    When you try to open a PDF from Adobe, I get this message "to the 882 ordinal not found in SHELL32.dll dynamic link library.  Any ideas on how to solve this problem.  Have Windows Vista.  Thank you.

    original title: problem opening Adobe pdf.

    Hi Gary,.

    Are you facing this issue only when you open pdf files?

    Method 1:

    You can try uninstalling and reinstalling Adobe software and check if it helps.

    Uninstall a program

    Method 2:

    You also try to run the system restore.

    Note: When you perform the system restore to restore the computer to a previous state, programs and updates that you have installed are removed.

    To run the system restore, you can consult the following links:

    System restore

    System Restore: frequently asked questions

    Hope this information is useful.

  • After trying to install a specific program, I get this appcrash, check the event log,

    * Original title: app Crash

    In general, I store my programs on a USB key. I've never had a problem installing or running

    install them on my computuer using windows 7 home edition 64-bit.

    Lately after trying to install a specific program, I get this appcrash, check the event log.

    It seems to say that the file for this installation is damaged, but how can this be since the installation has worked before?

    Get corrupted - it happens.  Jump drives die all the time.  You might be able to reformat (erase) and get more life out of it, or you can get a new USB, install again and use it until it is damaged again.

    Average life of a disk is 5.2 years, but just like people, many drive die younger and many die older. You never know what will be yours.

  • Please help im trying to import pictures from a SD card and get this set up the following files were not imported because it couldn't be read items 1-100 101-200 201-300 itmes points

    Please help im trying to import images from the SD card and get this set up the following files were not imported because it couldn't be read items 1-100

    "Could not be read" indicates that the Destination Directory has no WRITE permission in your operating system.

    To resolve this problem, you must

    1. Determine the Destination folder - it's on the right side of your import under Destination dialog box
    2. Change permissions in your operating system on this particular file have WRITE permission (or switch the destination to one that has the WRITE permission)
  • get this message at the startup of Firefox 5.0: entry procedure CERT_FindSubjectKeyIDExtension point could not be located in the dynamic link library nss3.dll

    get this message at the startup of Firefox 5.0: entry procedure CERT_FindSubjectKeyIDExtension point could not be located in the dynamic link library nss3.dll

    Hello

    You can try to install the latest version on the current: https://www.mozilla.org/en-US/firefox/new/

  • I get this error during the windows WindowsUpdate_8024A000 updates

    I get this error while the vista sp2 update is there any solution for this? WindowsUpdate_8024A000

    Hello
    The Windows Update 8024 A 000 error Code means THE NOSERVICE WU E. This translates as UA was impossible for incoming calls to THE service.

    I would like for you to perform general troubleshooting steps for Windows Update.
    Method 1: Try to run the fix - it of the article mentioned below, if you not him have not yet tried.
    The problem with Microsoft Windows Update is not working:
    http://support.Microsoft.com/mats/windows_update/
    Method 2: Scan run SFC. Analysis (sfc) System File Checker will Windows replace corrupted or missing system files on your computer.
    Scan sfc enforcement procedure:
    a. Click Start, click principally made programs, accessories, right-click on command prompt and select run as administrator.
    b. click on continue or provide administrator credentials if prompted.
    c. in the type in the following command prompt window and press ENTER:
    sfc/scannow
    Refer to this article for more information:
    http://support.Microsoft.com/kb/929833
    Method 3: Check the hard disk for errors:
    See: http://windows.microsoft.com/en-US/windows-vista/Check-your-hard-disk-for-errors
    Note: Check hard drive for errors will check the bad sectors on the hard drive and repairs. During this process, there is a chance of losing the data in these sectors. Please back up the data before performing this step.
    I hope this helps.
  • Problem with rename folders in Windows 7: get this error message: "the action cannot be completed because the folder or file is open in another program. Close the folder and try again. »

    When I try to rename a folder in Windows 7 I get this error message: "the action cannot be completed because the folder or file is open in another program. Close the folder and try again. "Can anyone help?

    I gave up and solved the problem by buying a third party software to use as a directory, Directory Opus.  It is much more functional than the Microsoft Directory and I have never problem renaming of files.  I am just amazed that so many people have this problem and Microsoft has not fixed.

Maybe you are looking for

  • Satellite A300 stops after 5 minutes of use

    Hello I recently had my laptop back on the Toshiba Warranty Service that my machine was not able to receive the juice when it is plugged in but it worked fine on battery!They replaced the motherboard and taken the power cable and the machine seems to

  • How can I check if the counter entry is synchronized with the analog output?

    Hello I'm working on an application for counting photons.  I use two channels of analog output on a PCI-6713 card to send a frame model to a set of XY scan mirrors.  I then a photon count unit that emits a TTL signal when the photons are detected as

  • DeskJet 3845

    My Deskjet 3845 printer works well but I need help to get the right sequence of commands to use to print a booklet.   The book is in Publisher and goes up to 52 pages A5.   I want the result to be a book of 13 sheets of A4 size paper that folds into

  • How to manage multiple e-mail accounts in Outlook Express?

    How to configure different e-mail accounts in Outlook Express?

  • How to force mobile phone breaking - point?

    HelloOn other software, there are ways to make the browser flip mobile available as soon as it DETECTS a phone.On the page layout, I createdwww.lookin360.co.UKthe provision of mobile phone is here, but because my phone samsung has a resolution MUCH g