Results 1 to 5 of 5

Thread: Abt Views in Sql

  1. #1
    Junior Member
    Join Date
    Apr 2006
    Answers
    12

    Thumbs up Abt Views in Sql

    I know views can be updated when it is based on a single base table.And views cannot be updated when there r more than one Base table.If a view uses a group function in it is it updatable.And what r there any conditions for updating a view


  2. #2
    Expert Member
    Join Date
    Jun 2006
    Answers
    410

    Re: Abt Views in Sql

    In order to update a view which joins two or more table you can use INSTEAD OF trigger if possible.

    This link might help you in this regard http://www.jlcomp.demon.co.uk/faq/joinview.html


  3. #3
    Junior Member
    Join Date
    Apr 2006
    Answers
    12

    Re: Abt Views in Sql

    Thanks a lot james i found the link useful.


  4. #4
    Expert Member
    Join Date
    Jun 2006
    Answers
    410

    Re: Abt Views in Sql

    moreover views which are using group by functions are not updatable. It is bviouse you don't have a records reference and each record in these views actually referring multiple records of the source table.


  5. #5
    Moderator
    Join Date
    Jun 2007
    Answers
    2,074

    Re: Abt Views in Sql

    A join view can't be updated if it contains
    ---------------------------
    1.hierarchical query clause start with & connect by
    2.group by & order by.
    3.model query.
    4.set operations.
    5.aggragate functions .
    6.a subquery or a collection expresion in the select list.
    7.the distinct operator 8.the rownum pseudo column 9.read only option.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact