Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3953548
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T01:59:16+00:00 2026-05-20T01:59:16+00:00

I have a schema with many related tables. A view let me agglomerate all

  • 0

I have a schema with many related tables. A view let me agglomerate all these tables in one big table easy to handle for my application.

Now I need to present slightly different views to the application: one more relation to present, some additional columns,

A very simplified example: the real one has many fields and tables related
Base request: 
select T1.C1, T2.C2
from T1, T2
where ...

Specialized request A:
select T1.C1, T2.C2, T2.C3, T4.C4
from T1, T2, T4
where ...

Specialized request B:
select T1.C1, T2.C2, T2.C3, T5.C5
from T1, T2, T5
where ...

Do you think it is a good idea (both in maintenance and performance point of view) to create a first view ‘base_view’ and then reuse this view to create view_A and view_B ?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-20T01:59:17+00:00Added an answer on May 20, 2026 at 1:59 am

    Assuming that you always need to join T1 and T2 then yes, a base view would be a good idea. It will reduce the maintenance cost when you need to add additional views.

    The primary danger with a base view is that the base view does work that the specialized results do not. If, for example, the base view joins a third table that specialized requests do not need, then the specialized requests would be less efficient than they could otherwise be. (Note that this depends on the Oracle version and the optimizer– in the latest versions, the optimizer may be able to figure out that a specialized query doesn’t need that third table joined in an eliminate the table from the query plan).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say I have a schema where User has many Alerts (many to many).
In my DB schema I have several tables that will be related to a
I have 3 tables with the following schema: CREATE TABLE `devices` ( `device_id` int(11)
I have a 3-table schema. Two of the tables (Trade/Portfolio) have a 1:1 relationship,
I have three entities: EntityA, EntityB and EntityC connected with to-many relationships. See schema
I have db scheme where Product table have many to many relation to Color
I have many tables with identical schemas but different names. Can I create a
I have a table which have schema like this id name 1 jack 2
I know that I should have schema of a table before calling NewRow method
I have a schema design that looks like this: Table: User Row Column Family

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.