DBAsupport.com Forums - Powered by vBulletin
Results 1 to 3 of 3

Thread: Syntax Question

  1. #1
    Join Date
    Jan 2001
    Posts
    515

    Syntax Question

    I am trying to create a table that ontain values from another table. Here is my syntax:

    select * from myuser.accounts where acno,customer_id in
    (select acno,customer_id from myuser.myinfo);
    *
    ERROR at line 1:
    ORA-00920: invalid relational operator


    I know there is a way to do this. Can someone give me the proper syntax?

  2. #2
    Join Date
    Aug 2002
    Location
    Colorado Springs
    Posts
    5,253

    Re: Syntax Question

    Code:
    select * from myuser.accounts where (acno,customer_id) in
    (select acno,customer_id from myuser.myinfo);
    David Aldridge,
    "The Oracle Sponge"

    Senior Manager, Business Intelligence Development
    XM Satellite Radio
    Washington, DC

    Oracle ACE

  3. #3
    Join Date
    Nov 2002
    Location
    Geneva Switzerland
    Posts
    3,142

    Re: Syntax Question

    I'm a bit concerned that is the right answer to different question from the one asked:
    I am trying to create a table that ontain values from another table.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Click Here to Expand Forum to Full Width