Solved

Creating view of a table from another user

Posted on 2002-06-03
5
173 Views
Last Modified: 2010-04-01
Hi

i had  a user "sim" representing the main office having following tables
acc_glday,cashes,day_one,day_two andday_sub . for obtaining some consolidated
reports from all branches i had created another user "conso " and created all
the above tables on that user area also.
i am importing data from all branches including the main office  into tables in
user conso.

 i would like to  create a view by the union of tables of user sims and tables
of user conso on the user conso. if i can do taht   it is possible to avoid
importing  data from user sim to user conso and data redundancy can be
eliminated.

please help me for creating such a view of any of above mentioned tables on the
user area conso.


sincerely

rajesh
 
0
Comment
Question by:rajeshnalankal
  • 3
5 Comments
 
LVL 4

Expert Comment

by:pellep
Comment Utility
what database?
0
 
LVL 4

Expert Comment

by:pellep
Comment Utility
that is, what type of database system are you using?
0
 

Author Comment

by:rajeshnalankal
Comment Utility
Hi

sorry for not mentioning full details

i am using oracle database

rajesh
0
 
LVL 4

Expert Comment

by:pellep
Comment Utility
maybe you should ask this question in the oracle TA instead.
0
 
LVL 5

Accepted Solution

by:
kelfink earned 100 total points
Comment Utility
Oracle can define both VIEWs and SYNONYMs.

The VIEW you ask about is possible.  Sounds like you want to join tables between the two users.

For example:

CREATE VIEW V_SOME_TABLE_JOINED
SELECT * FROM  SIM.SOMETABLE a, CONSO.MYTABLE b
WHERE a.id = b.some_id ;

Remember that SIM must grant permission to CONSO to read his tables...

SIM>  GRANT SELECT ON SOMETABLE TO CONSO;



0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

Suggested Solutions

Never store passwords in plain text or just their hash: it seems a no-brainier, but there are still plenty of people doing that. I present the why and how on this subject, offering my own real life solution that you can implement right away, bringin…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
This video discusses moving either the default database or any database to a new volume.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now