Link person based on the address or the name

Version: Oracle Database 11 g Enterprise Edition Release 11.2.0.3.0 - 64 bit Production

I have the following scenario, where I'm trying to bind the person based on Addr_id / Addr_id_comp / Org_id.

I want to create a flag as 1 that tells me that they are related. This time with the example below, the indicator returns 0.

WITH Link_address_t AS (SELECT Person_id 6439

77131101 we_Addr_id,

183818078 we_addr_id_comp,

we_org_id 9287841

OF THE DOUBLE

UNION ALL

SELECT Person_id 6439,

393426140 we_Addr_id,

394052621 we_addr_id_comp,

we_org_id 918388

OF THE DOUBLE

UNION ALL

SELECT Person_id 6439,

77131101 we_Addr_id,

394052621 we_addr_id_comp,

we_org_id 918388

THE DOUBLE)

SELECT Person_id,

we_addr_id,

we_addr_id_comp,

we_org_id,

CASE

WHERE (we_addr_id = PRIOR we_addr_id

OR we_addr_id_comp = PRIOR we_addr_id_comp

GOLD we_org_id = PRIOR we_org_id)

THEN

1

ON THE OTHER

0

END

Flag

OF Link_address_t

START BY Person_id = 6439

CONNECT NOCYCLE Person_id = Person_id PRIOR

Power required

PERSON_ID WE_ADDR_ID WE_ADDR_ID_COMP WE_ORG_ID FLAG

6439 77131101 183818078 9287841 1

6439 393426140 394052621 918388 1

6439 77131101 394052621 918388 1

I don't see why you use a hierarchical query here. That seems to be what you want (notice that I added a primary key column to your original table):

WITH Link_address_t AS (SELECT 1 pk,

6439 Person_id,

77131101 we_Addr_id,

183818078 we_addr_id_comp,

we_org_id 9287841

OF THE DOUBLE

UNION ALL

SELECT 2 pk,

6439 Person_id,

393426140 we_Addr_id,

394052621 we_addr_id_comp,

we_org_id 918388

OF THE DOUBLE

UNION ALL

SELECT 3 pk

6439 Person_id,

77131101 we_Addr_id,

394052621 we_addr_id_comp,

we_org_id 918388

THE DOUBLE)

SELECT Person_id,

we_addr_id,

we_addr_id_comp,

we_org_id,

CASE

WHEN THERE ARE (SELECT 99

OF link_address_t la2

WHERE la2.person_id = la.person_id

AND la2.pk! = la.pk

AND (la2.we_Addr_id = la.we_addr_id

OR la2.we_Addr_id_comp = la.we_addr_id_comp

GOLD la2.we_org_id = la.we_org_id)) THEN 1

0 OTHERWISE

END indicator

OF the Link_address_t

WHERE Person_id = 6439

Tags: Database

Similar Questions

  • How can I get the child to pass under the appropriate parent based on the name?

    I'm reading an .ini file and based on the name of the group, I want that child to go under this name. If I read in another file, and he wears the same group name, that I want the child to be able to go under this name. Right now I can't even the child to pass under a different group name when it is supposed to. He continues to go by the same name of Parent. Here is my code.

    parent of int = 0;

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Group', cbuf, BUFSIZE);

    InsertTreeItem (s_gMainWindow.managerTab, MANAGERTAB_TREE, VAL_SIBLING, 0,)
    VAL_NEXT, cbuf, NULL, 0, relative).

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Name', cbuf, BUFSIZE);
         
    InsertTreeItem (s_gMainWindow.managerTab, MANAGERTAB_TREE, VAL_CHILD, 0,)
    VAL_LAST, cbuf, NULL, 0, relative ++);

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Version', cbuf, BUFSIZE);
         
    SetTreeCellAttribute (s_gMainWindow.managerTab, MANAGERTAB_TREE, relate, 1, ATTR_LABEL_TEXT, cbuf); I can't do this correspond with the child column.

    Try this:

    parent of int = 0;

    int parent, index;

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Group', cbuf, BUFSIZE);

    parent = InsertTreeItem (s_gMainWindow.managerTab, MANAGERTAB_TREE, VAL_SIBLING, 0,)
    VAL_NEXT, cbuf, NULL, 0, relative).

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Name', cbuf, BUFSIZE);
    index = InsertTreeItem (s_gMainWindow.managerTab, MANAGERTAB_TREE, VAL_CHILD, parent,
    VAL_LAST, cbuf, NULL, 0, relative ++);

    Ini_GetStringIntoBuffer (iniText, 'Details', 'Version', cbuf, BUFSIZE);
    SetTreeCellAttribute (s_gMainWindow.managerTab, MANAGERTAB_TREE, index, 1, ATTR_LABEL_TEXT, cbuf);

    the idea is to keep the index of the item that you insert in order to reuse it when you want to edit the item.

  • Read the value of XML or JSON based on the name of the key

    I can't figure out how to get the value of the url to Image_Calendar1 JSON or XML data.  Sorry if it's 'obvious', but I am a new developer.

    I was cheating and ListItemData.value [1] .url but in this case, that the XML feed changes the number values of the moments which throws out of my method.  I need to be able to get the value based on the name of the key.  Is this possible?

    Thank you. Examples of the XML and the JSON /port.

    Okay, it might not be pretty, but what I do to solve my problem is to convert the ListItemData in JSON and stringify it.  I then split the string with 'key' and then count the lines.  Would not work if 'key' wasn't in each line, or if there are child elements of the child elements.  But... it works for me at the moment.  Future, me I hope, will be more intelligent and can fix it when it breaks.

    var testString = String (JSON.stringify (ListItemData))

    var javascriptcount = String (testString.split("key").length - 1).

    Console.log ("try to use the length:" + javascriptcount)

  • is there a way to find the user (lanid) based on the name of the computer.

    is there a way to find the user (lanid) based on the name of the computer. I try nbtstat - has, but it don't did me not what I needed.

    is there a way to find the user (lanid) based on the name of the computer. I try nbtstat - has, but it don't did me not what I needed.

    Do you mean the name of a Windows of a remote computer logon account? There is more than one because Windows 7 allows multiple concurrent interactive sessions. In any case, this could point you in the right direction:

    PsExec \\NameOfPC cmd.exe / user: YourUserName
    PsLoggedOn
    The first command will not work unless you have an account admin on the remote machine.
    You can download the PS tools from here.
  • Script to add keywords in Bridge based on the name of the file

    I'm working on a script that adds keywords based on the name of the image file. So, if the name of the file is AG123456 (08_16) .tif, this script would add "Agriculture", "123456" and "8/16" as keywords in bridge. "" I have a small sample of the part that retrieves the name of the file written in AppleScript below of each keyword. I know that I need to write the part that actually adds the keywords in Bridge in JavaScript, because the bridge is not capable of AppleScript. I have trouble finding the JavaScript code, I need to add the keyword. If someone could help me with this, I would really appreciate it.

    I would like to call the JavaScript code to in AppleScript instead of writing all the code in JavaScript. (The full version of it's longer, it would be a lot of code to change in JavaScript).

    on Open of droppedfiles

    with timeout of 900 seconds -> Changing timeout to 15 minutes. Default value is 2 minutes.

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

    -GET THE CHARACTERS OF THE FILE name

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

    Repeat with aFile in droppedfiles

    say application 'Finder '.

    the value file name to name of aFile

    end say

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

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

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

    -ADDED a KEYWORD FOR EACH PREFIX

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

    -Find the prefix in the name of the file

    if text 1 thru 2 of file name contains "AG" then

    the value prefixKeyword to 'Agriculture '.

    else if text 1 thru 2 of file name contains "To THE" then

    the value prefixKeyword to "Automobile".

    on the other

    the value prefixKeyword to "Need to prefix".

    end if

    -Adding the prefix as a keyword

    display dialog prefixKeyword string

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

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

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

    -ADDED a KEYWORD FOR EACH SKU NUMBER

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

    -Creating a list of all single digit numbers

    the value numberList to {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}

    -Looking FOR THE SKU NUMBER

    -Looking for a six-digit number that starts on the third character of the file name

    if numberList contains (text 3 of file name) et numberList contains (text 4 of the file name) et numberList contains (text 5 of filename) et numberList contains (text 6 of file name) et numberList contains (text 7 of file name) then

    if numberList does not work contain the text 9 of file name and then

    if numberList contains (text 8 of the file name) then

    the value skuNumber to of 3 to 8 text filename

    the value skuNumberOffset to 8

    end if

    end if

    -Searching for a six-digit number that begins on the fourth character of the file name

    else if numberList contains (text 4 of the file name) et numberList contains (text 5 of filename) et numberList contains (text 6 of file name) et numberList contains (text 7 of file name) et numberList contains (text 8 of the file name) then

    if numberList does not work contain the 10 text of file name and then

    if numberList contains (text 9 of file name) then

    the value skuNumber to text 4 to 9 of file name

    the value skuNumberOffset to 9

    end if

    end if

    -Defining the SKU number to alert keyword keyword the user can search the

    on the other

    the value skuNumber to "Need SKU number.

    set skuNumberOffset to 0

    end if

    -ADDING THE SKU AS NUMBER one keyword

    display dialog skuNumber string

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

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

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

    -DATE ADDITION OF FILE name

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

    if file name contains "(" et nom de fichier contient ")" then "

    set leftParen to "("

    set rightParen to ")"

    -Obtain the month of the file name

    set monthOffset of (offset of leftParen in fileName) + 1 -> character returns immediately after)

    set fileNameMonth to character of filename monthOffset

    -Get all the numbers of the year of the file name

    set fileNameYearOffset1 to (offset of leftParen in file name) + 3

    set fileNameYearOffset2 to (offset of rightParen in file name)-1

    set fileNameYear1 to character of filename fileNameYearOffset1

    set fileNameYear2 to character of filename fileNameYearOffset2

    set of characters fileNameYear fileNameYearOffset1 to fileNameYearOffset2 of file name

    set dateKeyword to fileNameMonth & "/" & fileNameYear

    -ADDING THE SKU AS NUMBER one keyword

    display dialog dateKeyword string

    end if

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

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

    fin Repeat

    end timeout

    end open

    Here's an example of adding of keywords in a file, the code can be used in Bridge or Photoshop.

    var Keys = ["keyword1","keyword2","keyword3"];
    var file = File (Folder.desktop + "/zz.jpg");
    if(file.exists) setKeyword( file,Keys);
    
    function setKeyword( file,Keys){
    if ( !ExternalObject.AdobeXMPScript ) ExternalObject.AdobeXMPScript = new ExternalObject('lib:AdobeXMPScript');
            var xmpf = new XMPFile( File(file).fsName, XMPConst.UNKNOWN, XMPConst.OPEN_FOR_UPDATE );
            var xmp = xmpf.getXMP();
            for(var s in Keys){
            xmp.appendArrayItem(XMPConst.NS_DC, "subject", Keys[s], 0,XMPConst.PROP_IS_ARRAY);
        }
          if (xmpf.canPutXMP( xmp )) {
             xmpf.putXMP( xmp );
          }
          xmpf.closeFile( XMPConst.CLOSE_UPDATE_SAFELY );
    };
    
  • Is it possible to show/hide something on the car (registration - buy) page that is based on the name or the productId?

    I need to show some of my form of payment based on the name or the productId. I have 2 types of products, family and individual. If they have product in the family is selected they need to add dependent information.

    I was able to do this based on the total. Amount but it is a product that has the same price as a product of the family, so it won't really work for me.

    {% If globals.cart.totalAmount is '165.40' or globals.cart.totalAmount is '22.95' or globals.cart.totalAmount is "249.40" or globals.cart.totalAmount == "29.95" %}

    I have the following available on the payment page:

    'basket': {}

    'itemCount': 1.

    'Amount': 165.40.

    "countryCode": "US", he said.

    "currencyFormat": "$."

    "items":]

    {

    "id": 7155959,

    "productId": 9712238.

    'catalogId': 191952,

    "name': 'Combo Plan - annual family Plan."

    'code': '73VNVW7RI9 ',.

    "description": ","

    'Price': 155.400000,

    'quantity': 1.

    "totalPrice": 155.400000.

    "smallImage": "/ _assets/img/products/dbm-family-annual.png"

    "url": "/ store/dental-benefits-max-family-plan-annual-1".

    }

    I don't know how things to access points. I tried globals.cart.items, globals.cart.items.code etc.

    Store is located here.

    http://uGuru-dentist2015-us-nov62015-826.BusinessCatalyst.com/store

    Hi James,

    You're right, the points are located inside the globals.cart.items

    {{ globals.cart.items | json }}

    {% assign NomTableau = globals.cart.items | map: 'name': json-%}

    {% assign idArray = globals.cart.items | map: 'id' | json-%}

    {% If NomTableau contains 'Unique string name'-%}

    Found the name

    {endif %}

    {% If idArray contains '9712238'-%}

    Found the id

    {endif %}

    Map filter is very useful in these situations, it generates a string of property of an object.

    Hope this helps,

    Stoiky

  • I would like to add bookmarks, based on the name of the original file when combining PDFs using Javascript.

    I am combining hundreds of original 1-page PDF files in dozens of PDF files. I generated the JavaScript to do this. However, I would like to add bookmarks for some pages, based on the name of the name of the file from this page. Here is a sample of my script combining:

    var currDoc = app.openDoc ("C:/report/December 2015 / Insert Plan SD." "") "'PDF');

    currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / RPM RPM/K001. PDF"});

    currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / output / K001 ROCHESTER."}) PDF"});

    currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / Insert Plan.PDF '});

    currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / RPM/L002 RPE."}) PDF"});

    currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / output / L002 BOSTON."}) PDF"});

    currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015/Maps/10_Map3.PDF"});

    currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015/Maps/10_Map2.PDF"});

    currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015/Maps/10_Map1.PDF"});

    currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / Comp Brand/10_KReport1.PDF"});

    currDoc.insertPages ({nPage:-1, cPath: "C:/report/December 2015 / Comp Brand/10_LReport1.PDF"});

    currDoc.saveAs ({cPath: "C:/report/December 2015 / Final / 10 2015 Review.PDF area"});

    currDoc.closeDoc (true);

    Take a look on the Bookmark object and methods associated with it.

  • Create Variables based on the name of the Instance

    I have a class called distributor that I use on several different items in my project. They are all objects in two positions (circuit-breakers and switches) where I hide or show the chart of alternatives for the object. What I want to do is instead of using my variable "distributor", I wish it were a dynamic variable that changes based on the name of the instance of the object in question. I use the "this.posOne.visible = true;" given that an instance name of a clip inside the object that corresponds to posOne and posTwo. I guess that there is a way to make a this.instanceName or something to that effect, but I'm not sure. If I put the name of the instance of the circuit breaker to "cb1", I would like to than the variable to change to "cb1". This way I can use the same code for all my electrical appliances, but are able to trace their individual to simulate the flow of current on the drawing.

    "the package classes.comps.

    {

    import flash.events.MouseEvent;

    import flash.display. *;

    public class distributor extends MovieClip

    {

    public var twopos:Boolean = true;

    public void twoPosition()

    {

    the constructor code

    addEventListener (MouseEvent.MOUSE_DOWN, twoPosClick);

    buttonMode = true;

    }

    function twoPosClick(evt:MouseEvent):void

    {

    If (twopos)

    {

    this.posOne.visible = false;

    this.posTwo.visible = true;

    twopos = false;

    }

    on the other

    {

    this.posOne.visible = true;

    this.posTwo.visible = false;

    twopos = true;

    }

    }

    }

    }"

    because, from what I know, all your symbols have kid instances posOne and posTwo and they all work the same, none of them do need their own class.  they can all have the same base class (for example, TwoClass):

    :

    package {}

    import flash.display.MovieClip;

    import flash.events.MouseEvent;

    SerializableAttribute public class TwoClass extends MovieClip {}

    public void TwoClass() {}

    each of your symbols has a posOne and a posTwo instance.

    I don't know which instance reflects what should be the initial state of each symbol, but if it is posTwo, use the following.  If the initial state is posOne, use this.posTwo.visible = false in the constructor.

    this.posOne.visible = false;

    each sybmol must have a mouse to the bottom of the headset with active mode button

    this.addEventListener (MouseEvent.MOUSE_DOWN, posTwoClick);

    this.buttonMode = true;

    }

    private void posTwoClick(e:MouseEvent):void {}

    the following two lines of code to toggle the visible property of the posOne and posTwo.

    this.posOne.visible =! this.posOne.visible;

    this.posTwo.visible =! this.posTwo.visible;

    }

    because you want the 'position' to be accessible outside the class, getPositionF is public and returns a string that reflects if posOne or posTwo is visible (or if this symbol is "off" or "on").

    public function getPositionF (): String {}

    {if (this.posOne.visible)}

    Return this.posOne.name;  or, the return of 'off '.

    } else {}

    Return this.posTwo.name;  or, back "on".

    }

    }

    }

    }

  • How to determine task key based on the name of the task?

    Hi all, I'm trying to implement addProcessTaskInstance and I can't get the key to the task dynamically. I want to find this based on the name of the task, since it will be consistent across environments, but because multiple streams of development going on at the same time I can't be guaranteed that the key task will be the same in each environment (I can be guaranteed that it will actually be). I got code rather not hard key in a variable in each environment if I can avoid it.

    Thank you

    Ryan

    You can use this query:

    Select mil.mil_key millet, pkg, tos, obj
    where mil.mil_name = 'add user '.
    and obj.obj_name = 'Xellerate user'
    and obj.obj_key = pkg.obj_key and tos.pkg_key = pkg.pkg_key and mil.tos_key = tos.tos_key

    Update the mil_name and obj_name for your object name and the resource for the task.

    -Kevin

  • Post a link to based on IP address

    I add a function of portable cash to our helpdesk. People everywhere in the State have access to technical support, but only people in both buildings main here in town will ever need to check a laptop, while I was trying to show only the link that leads to the shape of mobile body based on the IP address of the client.

    I found an example online a month ago and copied and leverage and believes that it worked, however it seems to work for some people within the range of IP addresses I've implemented the entire range. There are two IP ranges various, one for each of the major buildings here, I changed the IP address for them in the sample code 11.111.11 and 22.222.22 respectively. Any help in this matter is appreciated.

    Start by
    AllowedIPRange = "11.111.11,"22.222.22 ";

    If you are unsure how to use left, google "coldfusion left().

  • How to create a document based on the name of a file in the file system?

    Hello

    With lots of photos, I like to have a database to collect information on these photos.

    First question is how to generate a record based on a file in the file system?
    for example, the images are "c:\fotos\2009\01\disc_001.jpg" to "c:\foto\2009\01\dis_98.jpg".
    now, I want to create folders with as one of the attributes of the name of the image (not the image itself). How to create these records (based on information from line-telephony). that is the number of records must be the same as the number of photos.

    any suggestions?
    any response will be appreciated.

    Leo

    Link to create the directory

    http://www.adp-GmbH.ch/ora/SQL/create_directory.html

    You can create a list of files in the directory and read the list of files in this directory.

    [Documentation UTL_FILE | http://download.oracle.com/docs/cd/B14117_01/appdev.101/b10802/u_file.htm#996728]

    [Solution using Java | http://asktom.oracle.com/pls/asktom/f?p=100:11:0:P11_QUESTION_ID:439619916584]

    SS

  • "open doc" javascript based on the name of the original pdf, for example pdf a5.pdf a button to open the b5.pdf because the script is able to know its "5"

    I hope this makes sense.

    I have two sets of PDF files containing 100 + individual pages (for a total of 200 pages in a single file)

    Set/series 1: a1, a2, a3-> a100

    Set/series 2: b1, b2, b3-> b100

    I would like to create a button on every page that opens to a page number corresponding to the other series of pdf.

    If I click the button open the file location that is sitting on the a50, for example, it will open b50.

    Any tips or clues on how I can run this? Probably a smart way to isolate the number (last character) "50", the name of the pdf existing and adding 'b' for 'b50' as the file to open at the end of the text?

    If you have a file called "a50.pdf" and you want to add a button that will open "b50.pdf" in the same folder? That's good enough?

    If so, you can use this code:

    var this.documentFileName = fname;

    fname = fname.replace (/ ^ has /, "b");

    app.openDoc ({cPath: fname, oDoc: this});

    If you want a link in 'b50.pdf' that opens "a50.pdf" just change the second line to:

    fname = fname.replace (/ ^ b /, "a");

  • Notice that based on the names of table in another table

    I have a table that contains the names of the other tables. I would like to create a view that contains a list of these tables as well as the number of records and the value of a specific column (shared) min/max.


    I found something that looked promising in a previous post that only seems to work in 11g, I am limited to 10g 2.


    I would like to get a notice that gives the result:


    Tbl_name Record_Count Min_Emp_ID

    3 7698 T1

    t2          4               10


    Thank you




    -Code below


    create table (dept

    DEPTNO number (2.0).

    DNAME varchar2 (14).

    Loc varchar2 (13)

    );

    create table emp)

    EmpNo number (4,0).

    Ename varchar2 (10),

    use varchar2 (9).

    Mgr number (4,0),

    HireDate date,

    SAL number (7.2).

    number (7.2), comm.

    DEPTNO number (2.0)

    );

    create table (bonus)

    Ename varchar2 (10),

    use varchar2 (9).

    number of SAL,

    number of comm

    );

    create table salgrade)

    number of grade,

    number of it,

    number of designate

    );

    Insert in the dept

    values (10, 'ACCOUNTING', 'NEW YORK');

    Insert in the dept

    values (20, "SEARCH", "DALLAS");

    Insert in the dept

    values (30, 'SALES', 'CHICAGO');

    Insert in the dept

    values (40, 'OPERATIONS', 'BOSTON');

    insert into the emp

    values)

    7839, 'KING', 'PRESIDENT', null,.

    TO_DATE ('17-11-1981', ' dd-mm-yyyy'),

    5000, null, 10

    );

    insert into the emp

    values)

    7698, 'BLAKE', 'MANAGER', 7839,.

    to_date('1-5-1981','dd-mm-yyyy'),

    2850, null, 30

    );

    insert into the emp

    values)

    7782, 'CLARK', 'MANAGER', 7839,.

    TO_DATE ('9-6-1981', ' dd-mm-yyyy'),

    2450, null, 10

    );

    insert into the emp

    values)

    7566, 'JONES', 'MANAGER', 7839,.

    to_date('2-4-1981','dd-mm-yyyy'),

    2975, null, 20

    );

    insert into the emp

    values)

    7788, 'SCOTT', 'ANALYST', 7566,.

    to_date('13-Jul-87','dd-mm-rr') - 85.

    3000, null, 20

    );

    insert into the emp

    values)

    7902, "FORD", "ANALYST", 7566,.

    to_date('3-12-1981','dd-mm-yyyy'),

    3000, null, 20

    );

    insert into the emp

    values)

    7369, 'SMITH', 'CLERKS', 7902.

    TO_DATE ('17-12-1980', ' dd-mm-yyyy'),

    800, null, 20

    );

    insert into the emp

    values)

    7499, "ALLEN", "SELLER", 7698.

    TO_DATE ('20-2-1981', ' dd-mm-yyyy'),

    1600, 300, 30

    );

    insert into the emp

    values)

    7521, 'WARD', 'SELLER', 7698.

    TO_DATE ('22-2-1981', ' dd-mm-yyyy'),

    1250, 500, 30

    );

    insert into the emp

    values)

    7654, 'MARTIN', 'SELLER', 7698.

    TO_DATE ('28-9-1981', ' dd-mm-yyyy'),

    1250, 1400, 30

    );

    insert into the emp

    values)

    7844, 'TURNER', 'SELLER', 7698.

    to_date('8-9-1981','dd-mm-yyyy'),

    1500, 0, 30

    );

    insert into the emp

    values)

    7876, "ADAMS", "REGISTRAR", 7788

    TO_DATE (July 13, 87 ', 'dd-mm-rr')-51.

    1100, null, 20

    );

    insert into the emp

    values)

    7900, 'JAMES', 'THE REGISTRAR', 7698.

    to_date('3-12-1981','dd-mm-yyyy'),

    950, null, 30

    );

    insert into the emp

    values)

    7934, 'MILLER', 'THE REGISTRAR', 7782.

    TO_DATE ('23-1-1982', ' dd-mm-yyyy'),

    1300, null, 10

    );

    Insert into salgrade

    values (1, 700, 1200);

    Insert into salgrade

    values (2, 1201, 1400);

    Insert into salgrade

    values (3, 1401, 2000);

    Insert into salgrade

    values (4, 2001, 3000);

    Insert into salgrade

    values (5, 3001, 9999);

    commit;


    create table t1 as select empno, ename from emp where rownum < = 3;

    create table t2 as select deptno empno, ename dname of the Department;

    create table-master (select ID, 't1' union table_name 1 double all the)

    Select 2 id, 't2' double table_name);

    Select * from t1;

    Select * from t2;

    Select * from master.

    -NEXT LINE FAILS

    create or replace view v_t

    as

    Select table_name, x.*

    from (select table_name, ' ora: view("' ||)) table_name | "")(' onglets dele de maître), "

    XMLTable (tabs id int path 'EMPNO', ename varchar2 columns (20) path 'ENAME') x;

    Select * from v_t;

    SQL > select t.table_name, x.*

    2 master t

    3, xmltable ("'/ LINES/LINES")

    4 by the way (dbms_xmlgen.getXMLType)

    5 ' select count (*) NTC, minvalue, maxvalue (empno) max (empno) min of.

    6                      || dbms_assert. SQL_OBJECT_NAME (t.table_name)

    7                 )

    path number 8 columns cnt 'CNT '.

    9 road number minvalue "MINVALUE.

    10, path number maxvalue "MAXVALUE.

    (11) x

    12;

    TABLE_NAME CNT MINVALUE MAXVALUE

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

    3-7369-7521 T1

    t2                  4         10         40

  • Find the name and the table constraint type based on the name of the field

    I have a field name or a column with me... I want to find the name of the table is a primary key... Any request to make this work so that the running costs are low...

    Currently, I mix dba_constraints and ALL_TAB_COLUMNS to get this... is possible to extract the data of a process cost effective single table/any other is appreciated

    You must include the USER/ALL_CONSTRAINTS with USER/ALL_CONS_COLUMNS to achieve your desired results. For your specific condition, you can try this query.

    Select constraint_name

    column_name

    de)

    Select c.constraint_name

    cc.column_name

    count on column_count (c.constraint_name score) (cc.column_name)

    from user_constraints c

    Join user_cons_columns cc

    on c.constraint_name = cc.constraint_name

    where constraint_type = 'P '.

    )

    where column_name = 'EMPNO '.

    and column_count = 1;

    I used USER_CONSTRAINTS and USER_CONS_COLUMNS. If you use ALL or DBA dictionary table add join OWNER condition as well.

  • Set the export file based on the name of the Collection?

    I would like to be able to parameters predefined export that would save the selected pictures in a subfolder within my file of export with the name of the subfolder automatically value corresponds to the collection (or a set of collection) name. Is this possible?  I tried looking at the name of custom folder options but could not quite see how do so any help is appreciated.

    So, if my parent export file is say c:\Photos\Exports and the collection my name is 'Summer2012', I want to automatically export all the photos in this collection at c:\Photos\Exports\Summer2012. Is this possible or should I set manually each time?

    I would like to automate this is to say that I can't wait to put up the pictures, I could go ahead and export them without having to edit a lot and then manually cut and paste of c:\Photos\Exports in a Summer2012 folder. If later, I apply alterations to photos, it would be much more convenient to use a predefined export, knowing that they would automatically update the files in the Summer2012 folder, rather than having to do another manual cut and paste every time or manually select the folder if you choose the option "Choose the folder" later. Is there another way to do what I'm looking for? Thank you.

    OhPinchy wrote:

    Thank you, Richard. That tool looks very practical, but it seems that you must manually recreate the structure of collections in there - not a large number as you just need to do once offshore, but before to go this route I just want to confirm if there is a possibility to do it dynamically/automatically?

    Unfortunately, there is a dynamic method or automatic integrated with Lr. I'm not even sure the plugin SDK supports Jeffrey otherwise (the author of the plugin you're looking at) would have incorporated the feature.

Maybe you are looking for