Find a table name - Page 2
DBAsupport.com Forums - Powered by vBulletin
Page 2 of 2 FirstFirst 12
Results 11 to 13 of 13

Thread: Find a table name

  1. #11
    Join Date
    Nov 2000
    Location
    Pittsburgh, PA
    Posts
    3,966
    Quote Originally Posted by tamilselvan
    Assume the following two tables exist in a schema.

    CUSTOMER
    CUSTOMER_ID NUMBER
    LAST_NAME VARCHAR2(30)
    FIRST_NAME VARCHAR2(30)

    SUPPLIER
    SUPPLIER_ID NUMBER
    LAST_NAME VARCHAR2(30)
    FIRST_NAME VARCHAR2(30)

    SELECT table_name FROM all_tab_columns
    WHERE column_name = 'LAST_NAME'
    will return both CUSTOMER and SUPPLIER tables.

    Now tell me which one do you want?

    Tamil
    www.beaconinfotechcorp.com

    If you know enough to write that query, than you should know the difference between a customer and a supplier.
    this space intentionally left blank

  2. #12
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,136
    Quote Originally Posted by davey23uk
    but thats nothing to do with the original quesrion

    he had no idea what tables his app was using (and why should he)
    No idea about table?

    Then how does the original poster write a SQL?

    Tamil

  3. #13
    Join Date
    Sep 2002
    Location
    England
    Posts
    7,331
    he just doesnt know what tables his app uses.

    its nothing to do with knowing sql, its all about finding out which tables his front end gui uses

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