Urgent: Regarding Join Syntax in Oracle 9i and 10g

Dear Members
Please help me by providing me the synatx of following Join statements for Oracle 9i and 10g:
1.Inner Join
2.Left Outer Join
3.Right Outer Join
4.Self Join
5.Cross Join
6.Full Outer Join
N.B. I NEED THIS HELP URGENTLY
Regards
Praveen Kumar Pandey

Inner join
SELECT *
  FROM a,
       b
WHERE a.<<column>> = b.<<column>>Left Outer Join
SELECT *
  FROM a LEFT OUTER JOIN b
         ON a.<<column>> = b.<<column>>Right Outer Join
SELECT *
  FROM a RIGHT OUTER JOIN b
         ON a.<<column>> = b.<<column>>Full Outer Join
SELECT *
  FROM a FULL OUTER JOIN b
         ON a.<<column>> = b.<<column>>Self Join
SELECT *
  FROM a a1,
       a a2
WHERE a1.<<column>> = a2.<<column>>Cartesian Join
SELECT *
  FROM a,
       bJustin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Difference Between Oracle 9i and 10G (Urjent)

    Hi..
    Iam intensively searching net for some whitepapers regarding the difference between Oracle 9i and 10g. I need to give demo to the client on this. So Plzzzz help me in this regard and send me the links if u know....
    thnx in advance
    Sriram

    Hello,
    Go to this link. It is compete and most well defined new features of 10g.
    http://download-west.oracle.com/docs/cd/B19306_01/server.102/b14214/toc.htm
    http://www.oracle.com/technology/documentation/index.html
    In second link you will find all the versions of database.

  • At least 6 differences between Oracle 9i and 10g with complete understan

    Hi 2.     
    At least 6 differences between Oracle 9i and 10g                    with complete understanding of each difference .
    cheers

    Hi,
    Forum thread already opened by you
    check what is the major difference between 9i and 10g
    regards,
    kaushal

  • Data Replication between Oracle 9i and 10g

    Hello,
    I have a question regarding possible Replication Models between Oracle 9i and 10g. Does anybody know a possible way to syncronize the schema data between a 9i and 10g database in realtime?
    If yes can you please post perhaps a link with a kind of how to?
    Many thanks to all,
    Bob...

    You can read this metalink note 370850.1 - there are bit more ways of replication discussed.
    Yes, platforms can be different, but recomendation is to use the same platform for both databases.

  • Can we locate oracle 9i and 10g databases in same PC

    hi all
    wish U happy new year...
    I have installed oracle 9i and 10g database ..but 10g database is not working it says TNS protocol adapter error or invalied username password...I stpeed the 9i services and listner in the 9i home...but 10g database is not working.9i and 10g databases are in two different partitions....
    I want to know is it possible to running 9i and 190g database in same PC...if it's possible pls can you give me a solution for my problem
    regards
    Buddhike

    when I was trying to up the database it is looking for another listener
    and massage coming listener is not running...Not clear. The database does not look for a listener, maybe you got that error when trying to connect ?
    Do you have a listener 10g service ? Did you start it ? If not, please try the following :
    C:\> set ORACLE_HOME=<Your 10g Home>
    C:\> set PATH=%ORACLE_HOME%\bin;%PATH%
    C:\> lsnrctl start
    wait up to a minute, then execute
    C:\> lsnrctl status
    and post the result.

  • Query using Materalized view in oracle 9i and 10g

    Hello
    There are snapshots (materialized view) used in my application. We have recently migrated from 9i to 10g release 2 database.
    After migration i have observed explain plan of query which is using materialized view and i found in 9i oracle treating materalized view as table. In 10g oracle is considerting it as MVIEW only (MAT_VIEW ACCESS BY INDEX ROWID). However in 10g cost of query which is using materialized view is much higher than 9i. And execution time is also random.
    Can anbody pls. expalin diff. of materalized view access in oracle 9i and 10g.
    Thanks

    can you post your query with explain plan for both 9i version and 10g version.
    Thanks,
    karthick.

  • Oracle 9i and 10g in one computer

    Could I install oracle 10g in computer where 9i is instaled. I want that both oracle is instal and test oracle 9i and 10g. Could I run oracle database 9i and 10g together and I use both of the database?
    Thanks for answer.
    Rafal Dmitrowski

    I would also suggest caution if you have a Windows server. While it is certainly possible to have both running, there are some issues with separate 9i and 10g homes on a Windows machine, things like the Oracle Home Selector doesn't work with 10g Oracle Homes. I wouldn't be overly concerned if you are dealing with development laptops, but I would make sure to do some testing before installing 10g on a production server with 9i already installed.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • How SMON coalesces free space in oracle 9i and 10g

    how SMON coalesces free space in oracle 9i and 10g?
    Is it doing same as it was behaving in oracle 7 like looking through free extent table every five minutes (sys.fet$) to see if there are any adjacent free extents that can be coalesced into a single extent, and on every 25th cycle (i.e. every two hours and five minutes) it looks at the segment table (sys.seg$) to see if there are any temporary segments that need to be eliminated, as explained by jonathan lewis?
    what are extent and segment tables available in oracle 9i and 10g like sys.fet$ and sys.seg$ in oracle7?

    >
    how SMON coalesces free space in oracle 9i and 10g?
    Is it doing same as it was behaving in oracle 7 like looking through free extent table every five minutes (sys.fet$) to see if there are any
    adjacent free extents that can be coalesced into a single extent, and on every 25th cycle (i.e. every two hours and five minutes) it looks
    at the segment table (sys.seg$) to see if there are any temporary segments that need to be eliminated, as explained by jonathan lewis?
    what are extent and segment tables available in oracle 9i and 10g like sys.fet$ and sys.seg$ in oracle7?I think you need to go and have a look at the Oracle 9i documentation here
    http://www.oracle.com/technology/documentation/oracle9i_arch_901.html
    and automatic segment management in 10g
    http://www.oracle.com/technology/pub/articles/10gdba/week15_10gdba.html
    HTH.
    Paul...
    Software - OS (+ version), Server,
    Hardware - CPU + Disk configuration.
    Please include all of the above information with database queries.
    This will help those who are trying to help you!
    Furthermore, please do not top-post and do try to trim your replies!

  • Issue with .profile for oracle 9i and 10g

    Here I have six oracle 9i databases on one box. I am going to upgrade five of them to oracle 10g and want to keep one database RCAT in oracle 9i for one or two week.
    So, when I do upgrade I have to setup oracle home for 10g and also profile for oracle user for 10g (correct me if I m wrong). But now I want one database RCAT on oracle 9i. How can I take care of this.
    I mean how I will handle profile and all other thing for oracle 9i and 10g at the same time.
    Thanks,
    Vishal

    Install 10g under the same OS user as 9i, of course on a different Oracle Home. Then you configure your .profile consequently. Just as an example, this is my .bash_profile with 10g and 11g with the same oracle OS user :
    [oracle@linux5 ~]$ cat .bash_profile
    # .bash_profile
    # Get the aliases and functions
    if [ -f ~/.bashrc ]; then
            . ~/.bashrc
    fi
    export EDITOR=vi
    export ORACLE_BASE=/home/oracle/base
    umask 022
    o10()
    {       export ORACLE_SID=db102
            export ORACLE_HOME=$ORACLE_BASE/OraHome10
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export TNS_ADMIN=$ORACLE_BASE/OraHome11/network/admin
            export PS1='[\u@\h_10 \W]\$ '
    o11()
    {       export ORACLE_SID=db11
            export ORACLE_HOME=$ORACLE_BASE/OraHome11
            export LD_LIBRARY_PATH=$ORACLE_HOME/lib
            export PATH=$ORACLE_HOME/bin:/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/X11R6/bin
            export PS1='[\u@\h_11 \W]\$ '
    s()
    {       sqlplus / as sysdba
    asm()
    {       export ORACLE_SID=+ASM
    db10()
    {       export ORACLE_SID=db102
    db11()
    {       export ORACLE_SID=db11
    asm10()
    {       export ORACLE_SID=asm10
    [oracle@linux5 ~]$

  • Oracle 9i and 10G professionals required

    Hi All,
    A company in Tanzania is looking for Oracle 9i and 10G professionals for immediate requirement. Those who are looking for change and has 4 to 5 years experience can send in your resumes to [email protected] Indians are preffered. Mention "ORJOB#040820081411" in the subject.
    Kindly send in your resume as early as possible.
    Thank you.

    You can try setting the SGA to a low value and bring up both the databases. I don't think it should be too slow provided you are not running other windows programs.
    If you are really interested in trying out new products you can also explore the option of installing VMware, creating virtual machines & installing Linux, and then playing with the different Oracle products. Doing this will at least keep your main windows operating system clean.
    You may want to check out my blog post on Build your own oracle test lab
    Cheers !!!
    Ashish Agarwal
    http://www.asagarwal.com

  • Oracle 9i and 10g differences in "group by"

    I found the sorting order is different in "group by" function of Oracle 9i and 10g.
    What is the reason?
    >>>>>>>>>>>>>>>>>>>>>
    SQL> create table t ( a number, b number);
    Table created.
    SQL> insert into t values (1,2);
    1 row created.
    SQL> insert into t values (100, 200);
    1 row created.
    SQL> insert into t values (10, 20);
    1 row created.
    >>>>>>>>>
    9i
    >>>>>>>>>
    SQL> select sum (b) , a from t group by a;
    SUM(B) A
    2 1
    20 10
    200 100
    >>>>>>>>>
    10g
    >>>>>>>>>
    SQL> select sum (b) , a from t group by a;
    SUM(B) A
    2 1
    200 100
    20 10

    in oracle "group by" doesn't sort. Not strictly true.
    Pre 10g had an implicit order by which was caused by the way the database engine performed it's group by operation.
    In 10g this has now been "refined" so that group by does what it says i.e. groups the data, without having the side effect of implicitly ordering the data.
    In reality if you want data in a particular order you should always specify an ORDER BY clause and never rely on the fact that Oracle used to suffer from an implicit side effect.
    ;)

  • What is major difference between oracle 9i and 10g

    hi ,
    I hv read some documentation of oracle 9i and 10g ,but i dont understand what is major difference between oracle 9i and 10g .

    Its not the difference, but its the additional feaures.
    There are many more feature in every aspect of database. which area are you specifically looking for..
    I would reccomned a following doc on OTN
    Oracle® Database New Features Guide 10g Release 2 (10.2)

  • What is difference between oracle 9i and 10g?

    Hi All,
    please explain difference between oracle 9i and 10g with example.
    your suggestion would be greatly appreciated.

    user13842301 wrote:
    Hi All,
    please explain difference between oracle 9i and 10g with example.
    your suggestion would be greatly appreciated.One letter and one number :)
    But seriously, they document this stuff (way too much to write in a forum reply).
    For 10.1
    http://download.oracle.com/docs/cd/B14117_01/server.101/b10750/toc.htm
    and for the more popular 10.2
    http://download.oracle.com/docs/cd/B19306_01/server.102/b14214/toc.htm

  • Diffrence between oracle 9i and 10g

    i want to know what is the main difference between oracle 9i and 10g?

    nmohapatra87 wrote:
    i want to know what is the main difference between oracle 9i and 10g?You will get top new features in 10g as compared to 9i below
    http://www.oracle-base.com/articles/10g/articles-10g.php
    http://docs.oracle.com/cd/B19306_01/server.102/b14214/chapter1.htm
    http://www.oracle.com/technetwork/articles/sql/index-082320.html

  • Bug in JOIN syntax? (oracle 9i)

    Hi,
    take these three tables:
    MASTER (id NUMBER, name VARCHAR2(10))
    DETAIL (id NUMBER, master_id NUMBER)
    SUBDETAIL (id NUMBER, detail_id NUMBER, name VARCHAR(10)
    When I perform this query:
    SELECT SUBDETAIL.id as did, MASTER.id as mid
    FROM SUBDETAIL
    JOIN DETAIL ON (SUBDETAIL.detail_id = DETAIL.id)
    JOIN MASTER ON (DETAIL.master_id = MASTER.id)
    WHERE
    name = 'joe';
    I would expect the parser to give me 'column ambiguously defined' (because the 'name' field from the whereclause is defined in both subdetail and master).
    However, it does not say that. Instead, it assumes that it should use the name field from master. This is confusing, as this could easily lead to mistakes (as it did in my application)
    Greetings,
    Ivo

    There seems to be a difference between the way Oracle resolves column names using the ANSI join syntax and Oracle's syntax. It appears that Oracle does not know about the columns, until it processes each join, and further, the last table joined seems to be sued to resolve nameing conflicts. Consider:
    SQL> SELECT * FROM master;
            ID NAME
             1 joe
    SQL> SELECT * FROM subdetail;
            ID  DETAIL_ID NAME
             1          2 fred
    SQL> SELECT * FROM detail;
            ID  MASTER_ID
             2          1
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM subdetail
      3       JOIN detail ON (subdetail.detail_id = detail.id)
      4       JOIN master ON (detail.master_id = master.id)
      5  WHERE name = 'joe';
           DID        MID
             1          1
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM subdetail
      3       JOIN detail ON (subdetail.detail_id = detail.id)
      4       JOIN master ON (detail.master_id = master.id)
      5  WHERE name = 'fred';
    no rows selected
    So, it is clearly going after master.name. However,
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM detail
      3       JOIN master ON (master.id = master_id)
      4       JOIN subdetail ON (subdetail.detail_id = detail.id)
      5  WHERE name = 'joe'
    no rows selected
    But,
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM detail
      3       JOIN subdetail ON (subdetail.detail_id = detail.id)
      4       JOIN master ON (master.id = master_id)
      5  WHERE name = 'joe'
           DID        MID
             1          1
    Old style syntax gives:
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM subdetail, detail, master
      3  WHERE subdetail.detail_id = detail.id and
      4        detail.master_id = master.id and
      5        name = 'joe';
          name = 'joe'
    ERROR at line 5:
    ORA-00918: column ambiguously defined
    and note that
    SQL> SELECT subdetail.id AS did, master.id AS mid
      2  FROM subdetail
      3      JOIN master ON (detail.master_id = master.id)
      4      JOIN detail ON (subdetail.detail_id = detail.id)
      5  WHERE name = 'joe'
        JOIN master ON (detail.master_id = master.id)
    ERROR at line 3:
    ORA-00904: invalid column nameSo, in ANSI syntax, order matters, and whatever the syntax good testing matters.
    TTFN
    John

Maybe you are looking for

  • Report of projects with reference to particular customer

    Hi All Is there any report which can show me all the projects of a particular customer? Thanks

  • VB startup script not running on Win7

    Hi, my startup VB script not working on Windows 7. The script should install or uninstall office 2010 based on group membership.  I tested scipt on Windows XP and everything works. When I run script manually, it works. Quite similiar batch file works

  • Am unable to restore my mac

    after back up, i hav inserted my installation cd den dis exact message appears " YOU CANT USE THIS VERSION OF THE APPLICATION INSTALL MAC OS X WITH THIS VERSION OF MAC OS X.  YOU HAVE INSTALL MAC OS X 23.1.1". what am i supposed to di inorder to rest

  • Ipod not really empty

    My ipod will skip over any song or video I play but shows it is there. When I plug it into the computer, iTunes says shows the music, but says the iPod has all free space and will not play the music either. I would restore the iPod but some of the mu

  • Dvd player failing - How to install OS for experts

    Hello there, tricky situation here. I'm the owner of a nice macbook white (old generation 1.83 Core Duo). Sfter 3 years the machine is still working quite well, the video card is not at its best but the machine is still working fine. Now recenlty the