Answered Questions

  • View - Base Tables

    Does View occupy memory? If we delete the base table of existing view, What happens?

    Star Read Best Answer

    Editorial / Best Answer

    Mad Hatter  

    • Member Since Nov-2008 | Nov 4th, 2008


    View does not occupy memory, but Oracle keeps view code in its dictionary (you can check in user_views, for example)
    If you delete the base table, the view becomes INVALID.
    In order to make it valid again, you have to ether build the deleted table again, or create anotehr view with the same name and structure as deleted table, or create synonym with the same name as deleted table, which will point to the table with the same structure.

    pkshve

    • Sep 12th, 2010

    Views are database objects - they are just SQL code stored in database which will be executed every single time the view is called. Database will check the existance of columns and tables in the base ...

  • how many columns can be in the group by clause

    Star Read Best Answer

    Editorial / Best Answer

    Srinivas4u  

    • Member Since Jul-2008 | Jul 16th, 2008


    I am sure that a group by clause can have all columns which are there in that table,not sure if you are looking for anotehr answer

    akshya dash

    • Jul 25th, 2011

    there can be n no of columns in a group by clause other than group functions for ex select ename, deptno max(sal) from emp group by ename,deptno; here max(sal) is a group function and ename and ...

    sasanka

    • Jul 21st, 2011

    In GroupBy clause contains the no of columns in the select Statement to retrieve the data.