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 3797224
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 19, 20262026-05-19T13:22:14+00:00 2026-05-19T13:22:14+00:00

SELECT cec.* FROM mam.category cec SELECT cec.year, ces.* FROM mam.subcategory ces JOIN mam.category cec

  • 0
SELECT cec.*
  FROM mam.category cec


SELECT cec.year, ces.*
  FROM mam.subcategory ces
  JOIN mam.category cec ON CEC.CATEGORY_ID = CES.CATEGORY_ID


SELECT cec.year, ceo.*
  FROM mam.options ceo
  JOIN mam.subcategory ces ON CES.SUBCATEGORY_ID = CEO.SUBCATEGORY_ID
  JOIN olr.iep_cost_est_category cec ON CEC.CATEGORY_ID = CES.CATEGORY_ID

According to a friend, views in oracle are actually faster for cache purposes. Is this true? What about postgresql? I’ve tried google and stackoverflow (closest one is MS SQL).

  • 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-19T13:22:15+00:00Added an answer on May 19, 2026 at 1:22 pm

    Views

    Views, which means non-materialized views, are not cached. They are simply a prepared SQL statement that is run in place of the view reference in a query. Think of them like macros, or variables holding the SELECT statement contained in the view.

    Materialized views (not supported by PostgreSQL) are similar to tables because they can be indexed. But materialized views are notoriously restricted (IE: no non-deterministic values) in what they can support.

    Natural JOINs

    None of the examples you posted are natural JOINs, which look like this:

          SELECT cec.year, ces.*
            FROM mam.subcategory ces
    NATURAL JOIN mam.category cec
    

    The syntax is frowned upon (though being ANSI) because it’s ambiguous at best and leaves you open to problems if:

    • columns get added or renamed
    • no more than two tables can be joined using this method
    • gives you little control over the specifics of a join if columns join across the tables in an unusual way. It’s not obvious what the join criteria is — being explicit is both readable and guarantees consistent results.

    Conclusion

    Non-materialized views are largely irrelevant with regard for JOIN syntax. Data and indexing will have a larger impact on performance.

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

Sidebar

Related Questions

select picks.`fbid`, picks.`time`, categories.`name` as cname, options.`name` as oname, users.`name` from picks left join
SELECT a.id AS supplier, sum( processed_weight ) AS total_qty FROM supplier_inward a INNER JOIN
select count(category) from list where category like 'action' above is a query i want
(SELECT s.sid, s.sname, e.ccode FROM student s INNER JOIN enrolled e ON s.sid =
SELECT pe.prodtree_element_id prodID, pe.prodtree_element_name_s, li.line_name, av2.value FROM prodtree_element pe LEFT JOIN prodtree_link pl ON
SELECT k.condition, SUM(IIf(AnimalType=3,1,0)) AS Carnivore, SUM(IIf(AnimalType=4,1,0)) as Herbivore From Animals a inner join knownconditions
SELECT COUNT(*) FROM song AS s JOIN user AS u ON(u.user_id = s.user_id) WHERE
SELECT Login.LoginID, Student.[Student Name], Student.[Student address], Student.StudentID FROM Login INNER JOIN Student ON Login.LoginID
SELECT users.id, COUNT(?) FROM orders INNER JOIN users ON (orders.user_id = users.id) WHERE ??
SELECT pub FROM Publisher pub JOIN pub.magazines mag WHERE pub.revenue > 100 I'm wondering

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.