CMIS JOIN Queries and UCM

HI Guys,
Quick question. Does the UCM CMIS integration support JOINs in the query syntax ?
I am trying to construct a query whereby I need to see the Content Items where the Document Title is repeated in multiple folders. The use case is that we want enforce unique names for each content item and we want to highlight those documents that have the same name.
Seems like constructing a CMIS query with JOINS across folders by Content Name seems like a good fit but just wanted to check that will UCM support such a construct before I start developing.
Cheers
Sanjay

I just read this in the CMIS documentation:
"CMIS queries return a Result Set where each Entry object will contain only the properties that were specified in the query. As the Content Management REST Service does not support JOINs in queries, each result entry will represent properties from a single node. Common searches use a query like "SELECT * FROM …"."
"When searching documents (select * from cmis:document), it is not possible to limit the search to more than just a single content type; for example, this is not supported: "select * from IDC:MyProfile, IDC:AnotherProfile" because it has multiple explicit content types and JOINS are not supported."
So i'm afraid it will not be possible...
source of the doucment: http://download.oracle.com/docs/cd/E17904_01/doc.1111/e15813/toc.htm

Similar Messages

  • Problem with Join Queries using PHP and an Orcale Database

    Ok, I am trying to build a simple php querying tool for my oracle database and for the most part it is working however I am having a problem getting data from my join queries. If I run the following query :
    QUERY:
    SELECT lastfirst,EnteredBy,Debit FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    Lastfirst     EnteredBy     Debit
    caiu, test      204     1
    But when I run the query correctly I get no results
    QUERY:
    SELECT sts.lastfirst,gl.EnteredBy,gl.Debit FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    sts.lastfirst     gl.EnteredBy     gl.Debit
    and if I run the query combining the two above methods and adding a field (schoolid) that has the same name on both table I get the following result sets
    QUERY:
    SELECT lastfirst,EnteredBy,Debit,sts.schoolid FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    lastfirst     EnteredBy     Debit     sts.schoolid
    caiu, test      204     1     
    QUERY:
    SELECT lastfirst,EnteredBy,Debit,schoolid FROM students sts JOIN GLDetail gl ON gl.studentid=sts.id
    RESULT SET:
    NONE
    Therefore, I have to have something written incorrectly in my php code and I just can not figure it out. My entire code is pasted below please provide me with an assistance you might have to offer. I have change the odbc_connec line so I could post it to this forum. In addition, I had to phrase out the column headers there for when you write the column headers you have to use ~ instead of , as the separator and then I turn back into the correct format for sql.
    //These scripts just open help windows if somone clicks on the icon
    <script>
    function submit()
    {document.sqlform.submit();}
    </script>
    <script>
    function colwin(){
    window.open("colnames.php",null,"height=300,width=400,scrollbars=1");}
    </script>
    <script>
    function tabwin(){
    window.open("tablenames.php",null,"height=300,width=400,scrollbars=1");}
    </script>
    <script>
    function help(){
    window.open("http://www.w3schools.com/sql/default.asp",null,"height=500,width=700,scrollbars=1");}
    </script>
    <form method="post" action="<?php echo $PHP_SELF;?>" name="sqlform">
    <?php
    //Cookie to check for authorization to the site
    if($_COOKIE['cookie']=="CheckCookieForAuth")
    //These get the values of the textareas after the form has been submitted
    $sqlSELECT = $_POST["SELECT"];
    $sqlFROM = $_POST["FROM"];
    $sqlJOIN = $_POST["JOIN"];
    $sqlWHERE = $_POST["WHERE"];
    $sqlOTHER = $_POST["OTHER"];
    $sqlSELECTTYPE = $_POST["SELECTTYPE"];
    //This is the variable used to parse out my headers the user entered
    $sqlColNames = split('~',$sqlSELECT);
    //This converts the ~ separator to , so I can actually use it as part of my sql string
    $search = array('~');
    $replace = array(',');
    $mystring = $sqlSELECT;
    $sqlString = str_replace($search, $replace, $mystring);
    //These are the textareas and the drop down options that the end users has to create queries
    echo "<table border=0>";
    echo "<tr><td valign='top'>";
    echo "<B>SELECT TYPE</B> <BR><SELECT NAME=SELECTTYPE>
    <OPTION VALUE='SELECT' SELECTED>SELECT</OPTION>
    <OPTION VALUE='SELECT DISTINCT'>SELECT DISTINCT</OPTION>
    <OPTION VALUE='INSERT'>INSERT</OPTION>
    <OPTION VALUE='UPDATE'>UPDATE</OPTION>
    <OPTION VALUE='DELETE'>DELETE</OPTION>
    </SELECT>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=SELECT wrap=physical>$sqlSELECT</textarea>";
    echo "</td><td valign='top'>";
    echo "<img src='images/sqlC.jpg' width='25' height='25' onclick='colwin()'>";
    echo "</td></tr>";
    echo "<tr><td valign='top'>";
    echo "<b>FROM</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=FROM wrap=physical>$sqlFROM</textarea>";
    echo "</td><td valign='top'>";
    echo "<img src='images/sqlT.jpg' width='25' height='25' border=0 onclick='tabwin()'>";
    echo "</td></tr>";
    echo "<tr><td valign='top'>";
    echo "<b>JOIN</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=JOIN wrap=physical>$sqlJOIN</textarea>";
    echo "</td></tr>";
    echo "<tr><td valign='top'>";
    echo "<b>WHERE</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=WHERE wrap=physical>$sqlWHERE</textarea>";
    echo "</td></tr>";
    //This is where the end user would enter group by, having, order by, etc..
    echo "<tr><td valign='top'>";
    echo "<b>OTHER</b>";
    echo "</td><td>";
    echo "<textarea rows=2 cols=75 name=OTHER wrap=physical>$sqlOTHER</textarea>";
    echo "</td></tr>";
    This is a run query icon and a help icon
    echo "<tr><td colspan=2 align=right>";
    echo "<img src='images/RunQuery.jpg' width='30' height='28' onclick='submit()'> <img src='images/qm.jpg' border=0 width='25' height='25' onclick='help()'>";
    echo "</td></tr></table>";
    echo "<br>";
    echo "<br>";
    //This is where I connect to my remote oracle database
         $conn=odbc_connect('ODBC_ConnectionName','USERNAME','PASSWORD');
    //This is the sql string created by the end users
         $sql="$sqlSELECTTYPE $sqlString FROM $sqlFROM $sqlJOIN $sqlWHERE $sqlOTHER";
    //This executes the connection string and the sql string
         $rs=odbc_exec($conn,$sql);
    //This will display the query or a message if the query is empty
         if($rs!=NULL){
         echo "<table border=1>";
         echo "<tr>";
    //This loops through the string array the end user enter the field name text area to get column headers
         for($i=0; $i<count($sqlColNames); $i++)
         echo "<td>";
         print_r($sqlColNames[$i]);
         echo "</td>";
         echo "</tr><tr>";
    //This actually fetchs the rows from the statement and then display the data based on the column names the end user speificed
         while (odbc_fetch_row($rs))
              for($i=0; $i<count($sqlColNames); $i++)
                   $results=odbc_result($rs,$sqlColNames[$i]);
                   echo "<td>$results</td>";
              echo "</tr>";
         odbc_close($conn);
         echo "</table>";}else{echo "Results will be displayed here";}
    echo "<br><br>";
    echo $sql;
    else
    echo "Not logged in";
    ?>
    </form>

    This looks more like a SQL question than a PHP issue. There are a couple of JOIN examples at http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/statements_10002.htm#i2066611 that might you work through the problem.

  • Can join queries in Oracle 8i and above span multiple databases

    Hi,
    In Oracle 8i and above, can join queries span multiple databases??
    For eg., I have two databases A and B, and say database A has table A_T and
    database B has table B_T. Assume that both the databases are on the same
    server.
    Can I run a join query from my application using OCI calls that spans across
    tables from multiple databases, namely, A_T and B_T?
    My query probably looks like this - Select * from A.A_T, B.B_T;
    Thank you,
    Sashi

    In Oracle 8i and above, can join queries span multiple databases??
    For eg., I have two databases A and B, and say database A has table A_T and
    database B has table B_T. Assume that both the databases are on the same
    server.
    Can I run a join query from my application using OCI calls that spans across
    tables from multiple databases, namely, A_T and B_T?
    My query probably looks like this - Select * from A.A_T, B.B_T;If you create a database link from database A to B your SQL would look something like this:
    select * from A.A_T, B.B_T@dbB where A.A_T.PK = B.B_T.PK@dbB
    The Oracle manuals should have the information you need on creating a database link.

  • SELECT, hierarchical queries and JOIN

    Hi everyone,
    I have a small SELECT statement but I can't find an easy solution.
    Look at this situation:
    drop table departments;
    CREATE TABLE departments
      dpt_id NUMBER(10) UNIQUE,
      dpt_name VARCHAR2(100),
      dpt_parent_id NUMBER(10)
    TRUNCATE table departments;
    INSERT INTO departments VALUES(1, 'Company', null);
    INSERT INTO departments VALUES(2, 'HR', 1);
    INSERT INTO departments VALUES(3, 'SALES', 1);
    INSERT INTO departments VALUES(4, 'IT', 1);
    INSERT INTO departments VALUES(222, 'Helpdesk', 4);
    INSERT INTO departments VALUES(223, 'French Speaking', 222);
    INSERT INTO departments VALUES(224, 'Another level', 223);
    INSERT INTO departments VALUES(5, 'LEGAL', 1);
    INSERT INTO departments VALUES(66, 'Recruitment', 2);
    INSERT INTO departments VALUES(33, 'Logistics', 2);
    INSERT INTO departments VALUES(39, 'Fleet management', 33);
    INSERT INTO departments VALUES(31, 'Local Sales', 3);
    INSERT INTO departments VALUES(60, 'European Sales', 3);
    INSERT INTO departments VALUES(61, 'Germany', 60);
    INSERT INTO departments VALUES(62, 'France', 60);
    INSERT INTO departments VALUES(620, 'Paris', 62);
    INSERT INTO departments VALUES(621, 'Marseilles', 62);
    INSERT INTO departments VALUES(38, 'American Sales', 3);
    INSERT INTO departments VALUES(34, 'Asian Sales', 3);
    CREATE table persons
      person_id NUMBER(10) UNIQUE,
      person_name VARCHAR2(100),
      person_dpt_id NUMBER(10)
    truncate table persons;
    INSERT INTO persons VALUES(1, 'Jim', 2);
    INSERT INTO persons VALUES(2, 'Jack', 621);
    INSERT INTO persons VALUES(3, 'John', 620);
    INSERT INTO persons VALUES(4, 'John', 224);
    INSERT INTO persons VALUES(5, 'Fred', 61);It's a simple hierachy like the one we can find in HR schema. The link between an department and its parent is with parent id. THe following statement build the whole tree:
    SELECT dpt_id, level, LPAD(' ', LEVEL-1)|| dpt_name
      FROM departments
    START WITH dpt_parent_id IS NULL
    CONNECT BY dpt_parent_id = PRIOR dpt_id;As you can see in the script above, I have a few people assigned to these departments. It's also a classic situtation...
    I would like to have something like this:
    WITH temp AS
      SELECT dpt_id, dpt_name, SYS_CONNECT_BY_PATH(dpt_name, '#') as full_path
        FROM departments
       START WITH dpt_parent_id IS NULL
    CONNECT BY dpt_parent_id = PRIOR dpt_id
    SELECT p.person_name, d.dpt_name, --d.full_path,
           regexp_substr(d.full_path, '[^#]+', 1, 2, 'i') as t1,
           regexp_substr(d.full_path, '[^#]+', 1, 3, 'i') as t2,
           regexp_substr(d.full_path, '[^#]+', 1, 4, 'i') as t3,
           regexp_substr(d.full_path, '[^#]+', 1, 5, 'i') as t4
      FROM persons p
      JOIN temp d ON d.dpt_id = p.person_dpt_id;This is the exact output I want, but I wonder... Is it possible to do it without the factored sub-query? It's nice and works fine but I had to precompute the whole path to split it again. I mean, this should be possible in one step. Any suggestion?
    I'm using Oracle 10g
    Thanks,

    Hi,
    user13117585 wrote:
    ... But sometimes, I just find the statements difficult for what they do. For example, my previous one. I have a person, and I want to see his department and the path in the tree.Actually, you want more than that; you want to parse the path, and display each #-delimited part in a separate column. If you didn't want that, then you could do away with the 4 REGEXP_SUBSTR calls, like this:
    WITH temp AS
      SELECT dpt_id, dpt_name
      ,       SUBSTR ( REPLACE ( SYS_CONNECT_BY_PATH ( RPAD (dpt_name, 15)     -- Using 15 just for demo
               , 16
               )     as full_path
        FROM departments
       START WITH dpt_parent_id IS NULL
    CONNECT BY dpt_parent_id = PRIOR dpt_id
    SELECT p.person_name, d.dpt_name, d.full_path
      FROM persons p
      JOIN temp d ON d.dpt_id = p.person_dpt_id;Output:
    PERSON_N DPT_NAME      FULL_PATH
    Jim      HR            HR
    Fred     Germany       SALES          European Sales Germany
    John     Paris         SALES          European Sales France         Paris
    Jack     Marseilles    SALES          European Sales France         Marseilles
    John     Another level IT             Helpdesk       French SpeakingAnother levelAs you can see, full_path is one giant column, but it's formatted to look like 4 separate columns, forresponding to your original t1, t2, t3 and t4. I limited the output to 15 characters, just for debugging and posting purposes. You can use any number of characters you like.
    It's too complex for this simple thing.It would be nice if there was something simpler that did exactly what you wanted, but I'm not sure it's reasonable to expect it in every case. I asked a lot of questions in my first message, but I'm not sure you've tried to answer any of them, so I'm not sure why you're unhappy with the query you posted. I can think of lots of ways to change the query, but I have no way of telling if you would like them any better than what you already have.
    And hopefully, I know where to start in the hierarchy and I know where to stop. If I had to show all the levels and have one column by level dynamically, I'd be stuck. Sorry, I don't understand this part.
    Are you saying that it seems inefficient to generate the entire tree, when perhaps few of the nodes will have have matches in the persons table? If so, you can invert the whole query. Instead of doing the CONNECT BY first and then joining, do the join first and then the CONNECT BY. Instead of doing a top-down CONNECT BY, where you start with the parentless nodes (whether or not you'll ultimately need them) and then find their descendants, do a bottom-up CONNECT BY, where you start with the nodes you know you'll need, and then find their ancestors.
    I just find it difficult for such a simple need. Again, there are lots of things that could be done. If you won't say what you want, that makes it hard for me to tell you how to get it. All that I've picked up for sure is that you don't like doing a sub-query. That's unfortunate, because sub-queries are so basic. They have very important been since Oracle 8.1, and they don't seem to be going away. Quite the opposite, in fact. You need sub-queries for all kinds of things, not just CONNECT BY. To give just a couple of examples, they're the only thing that make analytic functions really useful, and they simplfy chasm traps (basically, multiple 1-to-many relationships on the same table) considerably. I'm sorry if you don't lke sub-queries, but I don't see how you can work in this field and not use them.
    Edited by: Frank Kulash on Nov 15, 2011 3:18 PM
    Revised query

  • Two similar queries and different result.

    Hi! I have a problem and
    with
    sc as (select * from nc_objects where object_type_id = 9122942307013185081 and project_id=9062345122013900768),
    cid as (select sccid.value AS CIRCUIT_ID,sc.description AS DESCRIPTION
    from sc, nc_params sccid
    where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590),
    caloc as ( select
    (*select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590*) as CIRCUIT_ID,
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347600 and scr.object_id = sc.object_id ) as ALOCATION
    from sc),
    cbloc as ( select
    (select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590) as CIRCUIT_ID,
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347601 and scr.object_id = sc.object_id ) as BLOCATION
    from sc)
    select cid.CIRCUIT_ID,cid.DESCRIPTION,ALOCATION,BLOCATION from (
    cid
    join caloc on cid.CIRCUIT_ID = caloc.CIRCUIT_ID and ALOCATION is not null
    join cbloc on cid.CIRCUIT_ID = cbloc.CIRCUIT_ID and BLOCATION is not null
    it` returns and`s all ok!
    ID desc aloc bloc
    101     TEST1     AHAS     AGUS
    102     TEST2     AKRE     AMJY
    103     TEST3     AMJS     ASSE
    109     TEST9     BAIA     AKIB
    5     (null)     WELA AGUS
    We have "sc as (select * from nc_objects where object_type_id = 9122942307013185081 and project_id=9062345122013900768)"
    and identical subquery on caloc and cbloc
    "select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590"
    If i change query on
    with
    sc as (select * from nc_objects where object_type_id = 9122942307013185081 and project_id=9062345122013900768),
    cid as (select sccid.value AS CIRCUIT_ID,sc.description AS DESCRIPTION
    from sc, nc_params sccid
    where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590),
    caloc as ( select
    *(select CIRCUIT_ID from cid) as CIRCUIT_ID,*
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347600 and scr.object_id = sc.object_id ) as ALOCATION
    from sc),
    cbloc as ( select
    (select value from nc_params sccid where sccid.object_id = sc.object_id and sccid.attr_id = 9122948792013185590) as CIRCUIT_ID,
    (select sl.name from nc_objects sl join nc_references scr on sl.object_id = scr.reference
    where scr.attr_id = 3090562190013347601 and scr.object_id = sc.object_id ) as BLOCATION
    from sc)
    select cid.CIRCUIT_ID,cid.DESCRIPTION,ALOCATION,BLOCATION from (
    cid
    join caloc on cid.CIRCUIT_ID = caloc.CIRCUIT_ID and ALOCATION is not null
    join cbloc on cid.CIRCUIT_ID = cbloc.CIRCUIT_ID and BLOCATION is not null
    query result will be:
    ORA-01427: single-row subquery returns more than one row
    01427. 00000 - "single-row subquery returns more than one row"
    *Cause:   
    *Action:
    Can you explain why so ?
    Edited by: user12031606 on 07.05.2010 2:31
    Edited by: user12031606 on 07.05.2010 2:32

    Hi,
    Welcome to the forum!
    Whenever you post code, format it to show the extent of sub-queries, and the clauses in each one.
    Type these 6 characters:
    \(all small letters, inside curly brackets) before and after each section of formatted test; if you don't, this site will compress the spaces.
    It also helps it you reduce your query as much as possible.  For example, I think you're only asking about the sub-query called caloc, so just post caloc as if that were the entire query:select     ( select CIRCUIT_ID
         from cid
         )                as CIRCUIT_ID,
         ( select sl.name
         from nc_objects          sl
         join nc_references      scr on sl.object_id = scr.reference
         where scr.attr_id      = 3090562190013347600
         and scr.object_id      = sc.object_id
         )                as ALOCATION
    from sc
    This makes it much cleared that the query will produce 2 columns, called circuit_id and alocation.
    Compare the query above with the query below:SELECT     object_id,
         'Okay'
    FROM     sc
    The basic structure is the same: both queries produce two columns, and both queries produce one row of output for every row that is in the sc table.
    The only difference is the two items in the SELECT clause.
    The second query has a column from the table as its first column, and a literal for its second column; those are just two of the kinds of things you can have in a SELECT clause.  another thing you can have there is a +Scalar Sub-Query+ , a complete query enclosed in parentheses that produces exactly one column and at most one row.   If a scalar sub-query produces more than one row, then you get the run-time error: "ORA-01427: single-row subquery returns more than one row", as you did.
    A scalar sub-query always takes the place of a single value: "scalar" means "having only one value".  In the first example above, the main query is supposed to produce one row of output for every row in sc.  How can it do that if some of the columns themselves contain multiple rows?
    I don't know what your tables are like, or what output yu want to get from thiose tables.
    If you'd like help getting certain results from your tables, then post CREATE TABLE and INSERT statements for a little sample data, and the resutls you want to get from that sample data.  A scalar sub-query may help getting those results, or it may not.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • How to write join queries in Smartforms

    how to write join queries in Smartforms pls give me sample

    just as u write it in normal reports u can do the same in smartforms but it is suggested tht i u havve a custom print program do it thr and pass it thru interface
    кu03B1ятu03B9к

  • Prob in joining Query1 and Query2 in Data Model

    Hi,
    I m facing a prob. in joining Multiple queries
    Under data model I've created 2-3 queries which I've to join internally and in my Query1 only 1 bind variable is there, for which i've created a parameter
    but for Query2 and Query3 I m going to user one column value of Query1 as parameter.
    When i m doing this the Xml formed returns only Query1 value and Query2 and Query3 comes as blank.
    Eg.
    Query1 : select deptno,dname from dept where deptno=:p_deptno <:p_deptno is a parameter created in parameter list>
    Query2 : select empno,ename,mgr from emp where deptno=:deptno <where :deptno, i m expecting to come from Query1>
    but it not happening
    whereas my Xml comes as display below:
    <DATA>
    <Q2>
    <Q2_ROW>
    <DEPTNO>10</DEPTNO>
    <DNAME>ACCOUNTING</DNAME>
    </Q2_ROW>
    </Q2>
    <Q1 />
    </DATA>
    tanks in advance for replying
    Regards/goutam

    Personally, I have had a hard time doing what you are asking for using netui tags. I have had the same case, and asked the person in my team to just return a collection of value objects and then iterate through it without the repeater tag. To use the checkbox, I have had to use a String[].
              Kunal

  • ANSI SQL Syntax - What belongs to join-clause and what to where-clause

    Hello,
    we currently have a discussion about the ANSI SQL Syntax where we do not agree what belongs to the join clause and what belongs to the where clause in an ANSI Sytnax SQL Query.
    Lets say there is a query like this:
    +SELECT *+
    FROM employees emp, departments dept
    WHERE emp.dept_country = dept.dept_country
    AND emp.dept_name = dept.dept_name
    AND dept.dept_type = 'HQ'
    AND emp.emp_lastname = 'Smith'
    Primary key of the departments table is on the columns dept_country, dept_name and dept_type. We have a Oracle database 10g.
    Now I have rewritten the query to Ansi Syntax:
    +SELECT *+
    FROM employees emp
    JOIN departments dept
    ON emp.dept_country = dept.dept_country AND emp.dept_name = dept.dept_name
    WHERE dept.dept_type = 'HQ'
    AND emp.emp_lastname = 'Smith'
    Another developer says that this is not completely correct, every filter on a column that belongs to the primary-key of the joined table has to be in the join clause, like this:
    +SELECT *+
    FROM employees emp
    JOIN departments dept
    +ON emp.dept_country = dept.dept_country AND emp.dept_name = dept.dept_name AND dept.dept_type = 'HQ'
    WHERE emp.emp_lastname = 'Smith'
    Can somebody tell me which on is correct?
    Is there any definition for that? I couldn't find it in the Oracle Database definition.
    I just found out the names of the ANSI documents here: http://docs.oracle.com/cd/B19306_01/server.102/b14200/ap_standard_sql001.htm#i11939
    I had a look at the ANSI webstore but there you have to buy the PDF files. In my case thats exaggerated because both of the Queries work and i am just interessted if there is one correct way.
    Thank you in advance
    Marco

    Hi,
    As i guideline i would say, answer the question: should the result of the join be filtered or should only filtered rows be joined from a particular table?
    This is helpful in the case of outer joins also, for inner joins it doesnt matters as said already be former posters, where there may be hughe semantical differences depending of where the predicates are placed.
    From performance view, if we talk about oracle, take a look a the execution plans. You will see that there is (probably) no difference in case of inner joins. Even in case of outer joins the optimizer pushes the predicate as a filter towards the table if it semantically possible.
    Regards

  • Bind variables in inner join queries

    Hi all,
    can we use bind variables in inner join queries?
    eg:
    INNER JOIN PRTY_LOC_CODE_T plc ON (ppt.PRTY_REC_ID = plc.PRTY_REC_ID and plc.HIST_CTRL_IND = *0*_ and plc.DEL_IND = *'N'*_)
    regards
    sunil

    Dear,
    can we use bind variables in inner join queries?Where are you using this join? if in a stored procedure or stored function than you don't have to care about your variables. It will be automatically considered as a bind variable
    within your static SQL (i.e in your stored procedure)
    Hope this helps
    Mohamed Houri

  • In which sequence are queries and sub-queries executed by the SQL Engine

    In which sequence are queries and sub-queries executed by the SQL Engine?
    Which is correct ?
    a. primary query -> sub query -> sub sub query and so on
    b. sub sub query -> sub query -> prime query
    c. the whole query is interpreted at one time
    d. there is no fixed sequence of interpretation, the query parser takes a decision on the fly

    In which sequence are queries and sub-queries executed by the SQL Engine?
    Which is correct ?
    a. primary query -> sub query -> sub sub query and so on
    b. sub sub query -> sub query -> prime query
    c. the whole query is interpreted at one time
    d. there is no fixed sequence of interpretation, the query parser takes a decision on the fly
    Hi, below may help you understanding simple subquery & correlated subquery
    refer :
    http://sqlmag.com/t-sql/t-sql-starters-simple-and-correlated-subqueries
    a) if it is correlated subquery
     A correlated subquery is one that depends on a value in the outer query. In programming terms, you pass the subroutine an argument, then the subroutine evaluates the query and returns a result. You move on to the next record and repeat the process. The
    net effect is that the subquery runs once for every row in the main query; this situation is inefficient.
                                  A possible alternative is to rewrite the correlated subquery as a join. However,
    some situations require a subquery. Eg- IN(with outer table refernce)
    so  main query -> subquery
    b) if it is simple subquery
    A subquery is a query that SQL Server must evaluate before it can process the main query, Eg- IN(with out outer table refernce)
    so subquery-> main query
    c) correlated query interpreted row by row with subquery, while subquery is interpreted at one time(outer table and inner table)
    d) in most case it depends on the whether it is correlated subquery or simple subquery
    Thanks
    Saravana Kumar C

  • System table of Queries and charactistics.

    Hello
    Is there any RS* table or an RSZ* table or a join of these that contains all the queries and the characteristics in them?
    If there is one, does it also indicate, even if the characteristic is used 'indirectly' such as ... for example restricted key figures?
    Thanks for any help....Raju.

    Hi Martin,
    I would suggest to post this question in the abap forum.
    regards
    Siggi

  • Webserver and UCM in different machines

    As the title said.. how do I do this? in the installation guide it's just for both in one machine but how do i install webserver in a windows server and UCM in a unix server?
    Is this even possible? please some advice or redirect to some solution,
    Thanks

    Hi
    Look at Note : 885983.1 on metalink . This gives the steps to configure Cs when webserver is on a different machine altogether.
    Srinath

  • Weblogic portal 10.3.1 framework and  UCM 10gR3 code works in Jdeveloper

    Hi All,
    We are using weblogic portal 10.3.1 framework and UCM 10gR3. Now we want to use Jdeveloper (because we can integrate site studio using plugin) instead of weblogic workshop.
    So my question is does the existing code works in Jdeveloper (because it supports Webcenter portal)?.
    Thanks,
    Venkata Sarvabatla

    No. Eclipse/Worskhop is the development IDE for WLP. While you can probably edit many of the WLP artifacts in JDeveloper, since they're mostly XML files, JDeveloper won't understand the WLP project structure, understand many of the libraries or know how to deploy to a WLP domain.
    Brad

  • BPM and UCM Integration

    I want to save some flexField value of a BPM human task into a custom field created in UCM doc store, for that i am following the following steps
    1) Created a custom field in UCM document store
    2) Created a flex field in BPM work Space
    3) Added pay load in human task from the "*data*" tab of human task flow
    4) Mapped Pay load with the flex field of BPM Work Space
    5) Now when I want to map the pay load attribute by adding a custom attribute in the "documents" tab of the human task, IDE is not allowing to add any custom fields except the pre populated values.
    In this situation if I want one of my human task payload attribute to be saved in the custom field created in the document store how to do it. According to the Oracles guide we can add a new attribute through the "**document**" tab of the human task flow but it is not happening.

    OK, so you are using the attachment option from BPM.
    I gave you few hints in my previous post, but I will explain them in more details:
    a) BPM has its own metadata
    Forget for your document for a moment - the BPM process instance still can have its own metadata. These are used when you create BPM screen flows.
    I think you will need to create a BPM parameter to store your custom value first. (and this is really purely a BPM question)
    b) A document can be attached to a BPM process instance
    In a sense, such a document is nothing, but an additional information for the BPM process instance. This has nothing to do with document-oriented workflow (quite often, the attached document enters no workflow at all); it is the BPM process instance that routes across the organization, not the document.
    c) BPM metadata <--> UCM metadata
    AFAIK, there is no integration between BPM and UCM concerning metadata. You may check-in (attach) a new document using UCM profiles, but for your process this value is not visible - unless you call a service to retrieve it/update it. If you implemented a) (created your custom value in BPM), you may call UCM's services to update this value - at the minimum when you are leaving from the BPM workflow step.

  • Just joined bt and have a real big problem!!!!

    hello there i was very happy untill this morning with my new bt infinity package which was installed last tuesday.i have only just realised with horror that i have taken delivery of the wrong tv box.we have chosen a humax youview box when we should have opted for a bt vision+ box so we could receive the extra 18 channels and sport.we ordered over the phone and i was told it was just a matter of paying a £10 fee to get espn and i didnt realise the extra channels i was paying an additional £12.50 for was the six packs add on which is completely different.anyway i rang up this morning and was told it would cost £199 to change boxes!!!!!!.is this correct??.if so ive got a year with a useless box with next to nothing i want to watch!!.what are my options please.
    on the plus side i am delighted with the phone and broadband!!

    jezstatham
    Visitor
    Posts: 3
    Registered: ‎14-04-2013
    Re: just joined bt and have a real big problem!!!!
    on ‎14-04-2013 22h57
    stuart can you give me a bit more info about the schedule for the humax box being enabled?
    It is scheduled for the summer but lime all schedules it could slip. It requires an update to the software
    They are currently working on delivering this service to those who have the existing boxes ie the Black Vision Box. The two separate platforms will disappear in time with YouView being the future. Have you checked to see if your exchange is multicast enabled
    Life | 1967 Plus Radio | 1000 Classical Hits | Kafka's World
    Someone Solved Your Question?
    Please let other members know by clicking on ’Mark as Accepted Solution’
    Helpful Post?
    If a post has been helpful, say thanks by clicking the ratings star.

Maybe you are looking for

  • Laptop won't power on after making three beeps

    This thread has been moved to another message board. Click the link to jump to its new location.

  • Firefox crashes after I open a new tab

    Hi, My Firefox keeps crashing every time I open a new (blank) tab. The same happens in safe mode. Here are links to some of the latest crash reports: https://crash-stats.mozilla.com/report/index/f0fce577-b53e-44bf-a8fa-f7a802150406 https://crash-stat

  • How does the preSave Event work?

    I want to be able to use the preSave Event to save an uneditable copy of my form to email to customers. But I'm not sure how to do this. I want to be able to create basically a 'read only' version of my form. Can anyone help?

  • I bought CS6 design standard but now I want CS6 premium, is there a way to upgrade to that???

    I was really hoping there was a way to upgrade but could only find upgrades from CS5 to CS6, not design standard to premium. Any help would be awesome! thanks! Also, I don't know if it makes a difference but I'm a student.

  • Firefox Loading With Crap Pages At Startup...

    Have a new HP Stream 8 Tablet Windows 8.1. Nice little machine. My favorite browser is Firefox latest version 35.0.1. But when I click on Firefox Browser to open up it immediately loads with various unwanted pages. I have adblock, etc which I hoped w