Knowee
Questions
Features
Study Tools

Creating a view instead of a temporary join table...A.is always wrongB.is the preferred approach because it saves the storageC.should be limited to Data Model tables only

Question

Creating a view instead of a temporary join table...A.is always wrongB.is the preferred approach because it saves the storageC.should be limited to Data Model tables only

🧐 Not the exact question you are looking for?Go ask a question

Solution

The answer to this question depends on the specific circumstances and requirements of your database and application. Here's a general guide:

A. Creating a view instead of a temporary join table is not always wrong. Views can be very useful in many situations. They can simplify complex queries by encapsulating them into a single view, which can then be queried as if it were a regular table. This can make your SQL code easier to read and maintain. However, views do not physically store the data, so every time you query a view, the database must execute the underlying query or queries. This can be slower than querying a temporary join table, especially for complex views and large datasets.

B. Creating a view does not necessarily save storage. As mentioned above, views do not physically store the data. They are simply saved queries that are executed on demand. Therefore, they do not use any storage for the data itself. However, the database does need to store the definition of the view, which includes the SQL code of the underlying query or queries. This is typically much smaller than the data itself, but it is not zero. On the other hand, a temporary join table does use storage for the data, but it may be faster to query, especially if it is indexed appropriately.

C. Limiting views to Data Model tables only is not a hard and fast rule. You can create a view on any table or tables, as long as you have the necessary permissions. However, it is generally a good idea to limit views to tables that are stable and unlikely to change. If the underlying tables change, the view may become invalid or return incorrect results. Data Model tables are often a good choice for views because they are typically stable and well-structured. However, you can also create views on other tables, including temporary tables and even other views, if it makes sense for your application.

This problem has been solved

Similar Questions

If the query contains complex definitions (e.g. multiple joins and conditions), what object should you create?A.Temporary join tableB.ViewC.Either of the two

If a temporary table contains custom fields not essential for joins with other tables, you should place these fields at the beginning of the CREATE TABLE statement.A.TrueB.False

Which columns should you place at the beginning when creating temporary join tables?A.Columns containing big number of charactersB.Columns used for joins with other tablesC.Non key columnsD.Columns containing aggregate values

SQL Views are also known as (ELITMUS)Options: Pick one correct answer from belowSimple tablesVirtual tablesComplex tablesActual Tables

Which of the following is/are true about views?Question 4Select one or more:a.It can be a result of multiple joins.b.Can be used interchangeably with tables when retrieving datac.Created to limit access to sensitive datad.Views do not contain real data

1/2

Upgrade your grade with Knowee

Get personalized homework help. Review tough concepts in more detail, or go deeper into your topic by exploring other relevant questions.