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

Thread: Tables evaluate

  1. #1
    Join Date
    Nov 2000
    Posts
    416
    How can I find out in a schema which table has the longest row ( Sum of all columns's size ) and which table has the largest number of columns?
    An ounce of prevention is worth a pound of cure

  2. #2
    Join Date
    May 2000
    Location
    ATLANTA, GA, USA
    Posts
    3,135
    To the 2nd question:

    select table_name, count(*)
    from user_tab_columns
    group by table_name
    order by 2 desc ;

    The answer for the 1st question does not solve any problem. Instead you should calculate avg size of the row.

  3. #3
    Join Date
    Nov 2000
    Posts
    416
    Thanks for second answer, anybody knows about first one ?
    An ounce of prevention is worth a pound of cure

  4. #4
    Join Date
    Feb 2000
    Location
    Singapore
    Posts
    1,758
    As tamilselvan said, analyze your tables and see the average length for the tables.

    Sanjay

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