Results 1 to 4 of 4

Thread: How to use join by applying select Method

  1. #1
    Join Date
    May 2008
    Posts
    222

    How to use join by applying select Method

    How to select using join. You can write different select queries by writing appending clause. How do I count the users that have completed specific activities. I've created a table and want to join outer table with another table, getting only the first row of the second table using Oracle 9.2.

  2. #2
    Join Date
    Feb 2008
    Posts
    137

    Re: How to use join by applying select Method

    Every update should have one record. But a record with the same Unique ID can be updated multiple times. If part or all of the result of a SELECT statement is equivalent to an existing materialized view, WITH x AS then Oracle Database may use the materialized view in place of one or more tables specified in the SELECT statement. This substitution is called query rewrite.

    DROP TABLE IF EXISTS t1;
    CREATE TABLE t1 (x int, y int);
    DROP TABLE IF EXISTS bar;
    CREATE TABLE t2 (z int, y int);

  3. #3
    Join Date
    Oct 2008
    Posts
    180

    Re: How to use join by applying select Method

    It takes place only if cost optimization is enabled and the QUERY_REWRITE_ENABLED parameter is set to TRUE. There was an incomplete reset of the name resolution context, that caused INSERT ... SELECT ... JOIN statements to resolve not by joint row type calculated for the join. To determine whether query write has occurred, use the EXPLAIN PLAN statement.

  4. #4
    Join Date
    Feb 2008
    Posts
    121

    Re: How to use join by applying select Method

    select statement simply returns a result set, which has exactly the same definition as a table. However, try this one (changed LEFT JOIN with INNER JOIN) and let us know if it's better, If you make sure each column in the select statement has a specific "column name", then it works just like a table.

    join('accounts', 'accounts.account_name = bugs.reported_by')
    join('accounts', 'accounts.account_name = bugs.assigned_to')

    A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version.

Similar Threads

  1. Replies: 3
    Last Post: 02-06-2012, 12:44 PM
  2. Replies: 2
    Last Post: 01-12-2010, 03:07 PM
  3. Is it possible to call destroy() method within init() Method?
    By Level8 in forum Software Development
    Replies: 3
    Last Post: 10-12-2009, 08:36 AM
  4. SELECT UNIQUE and SELECT DISTINCT
    By TAARIQ in forum Software Development
    Replies: 3
    Last Post: 03-06-2009, 10:00 PM
  5. Equi Join vs Natural Join in SQL
    By Demetrius in forum Software Development
    Replies: 3
    Last Post: 14-05-2009, 12:55 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,750,253,638.93817 seconds with 16 queries