Skip to Main Content

Breadcrumb

Question and Answer

Connor McDonald

Thanks for the question, Vishal.

Asked: August 29, 2016 - 9:28 am UTC

Last updated: September 08, 2016 - 5:37 am UTC

Version: 10g

Viewed 1000+ times

You Asked

How analytic function , rowid works in deleting records from a table ?

Explain with an example...



Can we use goto statement in packages?

What are conditions for updating a view and materialised view?

and Connor said...

1) Here's a 3minute video showing an analytic function being used to remove duplicates

https://www.youtube.com/watch?v=6MgU6Cnqy-0

2) Yes you can, it can be in any plsql block of code

3) For views, it depends if we can sensibly map the update to the objects that make up the view. This is concept is called whether the view is "key preserved".

Some info on that here

https://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:548422757486

For materialised views, do you mean whether it can be fast refreshed ? or actually updated ? (which is a different topic)

Rating

  (1 rating)

Is this answer out of date? If it is, please let us know via a Comment

Comments

queries

vishal, September 07, 2016 - 7:50 am UTC

For materialised views, do you mean whether it can be fast refreshed ? or actually updated ?

for actually updation
Connor McDonald
September 08, 2016 - 5:37 am UTC

updateable materialized views are part of the advanced replication facilties in Oracle.

http://docs.oracle.com/cd/E11882_01/server.112/e10706/repoverview.htm#sthref46

I should warn you - that's a *big* topic.

More to Explore

PL/SQL demos

Check out more PL/SQL tutorials on our LiveSQL tool.

PL/SQL docs

PL/SQL reference manual from the Oracle documentation library