Questions: In Oracle When Is It Better To Use Materialized Views

Improved Essays
1. In Oracle, when is it better to use materialized views?

A. It is always better to use materialized views because views are obsolete and materialized views replace them B. When a query is slow and its results need to be cached
…show more content…
A primary key does not have to be unique; a unique key has to be unique B. A primary key is mandatory; a unique key is not mandatory C. Primary keys are not allowed on multiple columns, unique keys are allowed on multiple columns D. A primary key must start with PK; a unique key can start with any character E. No answer is correct

4. We have two tables, each with one column X of type number which is the primary key. Table A has 100 rows, Table B has 50 rows. When doing a Left Outer Join from A to B on X, which option would be correct?

A. The maximum number of rows is 100, the minimum number of rows 50 B. The maximum number of rows is 5000, the minimum number of rows 0 C. The maximum number of rows is 50, the minimum number of rows 0 D. The maximum number of rows is 100, the minimum number of rows 100 E. It is not possible to estimate a maximum and minimum. More information is
…show more content…
A table “T” is given with a column “X” of type number. What does the following command do: "SELECT MAX(X) -1 FROM T"

A. It will return the second largest value X in T B. It will return the largest value of X, which is greater than minus one C. It will return a value that is greater by one than the maximum value of X in T D. It will return a value that is lesser by one than the maximum value of X in T E. It is an invalid query since MAX function must have a GROUP BY X in the end

6. What is Dual?

A. Dual is an internal Oracle database used for background backup and optimization B. Dual does not exist in Oracle, only in SQL Server C. Dual is an SQL command used to provide the dual value of a complex number D. Dual is an internal Oracle table that can be used for immediate queries E. No answer is correct

7. To concatenate two strings in Oracle, which of the following options can be used?

A. Use one single pipe character B. Use two single pipe characters C. Use one ampersand character D. Use two ampersand characters E. Use the CONCAT function

8. Complete the statement: A sequence in Oracle…

A. Will order a table automatically using some

Related Documents

  • Improved Essays

    Nt1310 Unit 5 Lab Report

    • 510 Words
    • 3 Pages

    Pre-Lab 10 CS 122L - 5 Points Total Objectives ● Learn how to use anonymous functions ● Practice with looping intervals Deliverables ● Submit your pre-lab answers in Bblearn under the Lab 10 pre-lab assignment area. 1) The anonymous function allows us to easily create mathematical functions, and store them in variables. The documentation below provides additional details. http://www.mathworks.com/help/matlab/matlab_prog/anonymous-functions.html: For example, let’s say we wanted to implement the equation…

    • 510 Words
    • 3 Pages
    Improved Essays
  • Improved Essays

    Nt1320 Unit 2

    • 866 Words
    • 4 Pages

    2. D H C I J E K A B F G 4. SQL-92 was a major revision and was structured into three levels: Entry, Intermediate, and Full.…

    • 866 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    Pt1420 Unit 6 Essay

    • 225 Words
    • 1 Pages

    1. Significant figures are all the digits that can be known precisely in measurement as well as a last estimated digit. 2. The measurements are continuously reported to the correct number of significant figures, because the calculated answer frequently depends on the number of significant figures in the values used in the calculation. To determine significant rules in measurements, there are six rules that are applied to establish significant figures.…

    • 225 Words
    • 1 Pages
    Decent Essays
  • Improved Essays

    Dbq1 Unit 4

    • 870 Words
    • 4 Pages

    25) I chose A, but the correct answer is E. Sunset do not require bureaucrats to retire at age 65 and they do not refrain employees from political activity. The government meetings don't have to be open. 26) I chose letter D, but the correct answer is A. The President has power to serve as Commander, sign or veto, enforce treaties, but with the consent of the state.…

    • 870 Words
    • 4 Pages
    Improved Essays
  • Decent Essays

    Unit 10 D2

    • 502 Words
    • 3 Pages

    Task 10 (D1) Discuss how potential errors in the design and construction of a database can be avoided. One of the potential errors that can occur when creating a database is that field names and names can be spelt incorrectly due to human error this can be difficult to spot if the database is big the way of making sure that there are no naming errors is to make sure that every is checked regularly and more than twice to make sure that the chances of finding a spelling mistake is reduced. Using the wrong data type is another potential error that can occur when creating a database this can be troublesome as if there is a relationship created between the tables and the mistake is found and changed then the database wouldn’t allow you to change the field where the data type is incorrect without removing the relationship first so it will be made into a long process of removing the relationship between the tables changing the data types for each of the table before remaking the relationship between the tables again the way of preventing this is by looking at the field names for the database and then choosing the correct data type also perhaps getting the opinion of another person and rechecking that they are all correct before creating the relationship.…

    • 502 Words
    • 3 Pages
    Decent Essays
  • Improved Essays

    The Schedule of Changes in Long-Term Obligations contains an account Net Pension Obligation. Which of the following describes the event that gave rise to this account? a) The actual contribution by a proprietary fund was less than the actuarially required contribution. b)…

    • 1958 Words
    • 8 Pages
    Improved Essays
  • Improved Essays

    Martin Luther Dbq

    • 383 Words
    • 2 Pages

    Answer C is correct because on page 42 of our…

    • 383 Words
    • 2 Pages
    Improved Essays
  • Improved Essays

    Chem 111 Test Paper

    • 1195 Words
    • 5 Pages

    Chem 111 Post-Exam Self-Assessment See the instructions in Canvas for more details about how this assignment will be scored. 1. Fill in these blanks: Exam Number __2__ Your Predicted Exam Score _80_% Actual Exam Score _57.67% Current Course Score _…

    • 1195 Words
    • 5 Pages
    Improved Essays
  • Improved Essays

    Health Study Quiz

    • 1281 Words
    • 6 Pages

    a) A political pollster reports that his candidate has a 10% lead in the polls with 10% undecided. Observation as he is only guessing as to the conclusion that will overcome the final analysis. Observation is the presence of observing only where the experimental is adding to or taking from. 5) Select the study that is most appropriate and EXPLAIN WHY it is most appropriate for the study.…

    • 1281 Words
    • 6 Pages
    Improved Essays
  • Improved Essays

    - Data Type: Integer  Use of Integer: An Integer can be used as a whole number e.g. a number between 0 and 10. If I had a variable name called First Number as an integer, the code would look like Dim FirstNumber as Integer. -…

    • 841 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    • Addition, subtraction, multiplication, division are examples when integer data types are used. When the integer is added, subtracted, multiplied or…

    • 902 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    1. A. Due to the utility function U(H,B) point C violates the utility function because it is not consistent with the marginal utility that increases from Point A to C in this model. Point C implies that this person can only be made better off with bread and not health.…

    • 1264 Words
    • 5 Pages
    Improved Essays
  • Decent Essays

    Q25: Consider the following statements. The objective of Montague-Chelmsford Reforms of 1919 was A. To give more power to the local government B. To establish dyarchy in the provinces C. The extension of provincial government Which of these statements are correct? A and BA, B and CB and CA and C View Answer Q26: Consider the following with reference to the provisions to 'Government of India Act, 1935'.…

    • 934 Words
    • 4 Pages
    Decent Essays
  • Improved Essays

    Referee’s Report JOSA B Manuscript ID 273944 PAPER DESCRIPTION In the paper titled “Non-Markovian coherence and entanglement transfer in a quantum version of Newton’s cradle”, Mu and co-author have presented the quantum analog of the classical Newton’s cradle. An array of couple cavities (coupled with a common Markovian and non-Markovian environment) with nearest neighbor hopping interaction between the cavities, has been selected as the quantum cradle. In the case of quantum cradle with Markovian baths, single exception transfer is used analogously to the energy and momentum transfer among the balls of the classical cradle. Besides few subtleties the authors have shown that single excitation energy transfer through the quantum cradle follows…

    • 814 Words
    • 4 Pages
    Improved Essays
  • Improved Essays

    Markov Chain Case Study

    • 1060 Words
    • 5 Pages

    Goffman (1971) explains the spread of ideas within a scientific community to be strikingly similar to the spread of infectious diseases and considers both these process to be special cases of a general communication process. An epidemic model using Markov chains was used to explain the spread of and to predict the rise and fall of research areas within a community. Markov property : A discrete time Markov chain is a stochastic process {Xn } with finite state space S that satisfies the Markov property: P( Xn=xn ∣X0 =x0 ,…, Xn−1=xn−1 )=…

    • 1060 Words
    • 5 Pages
    Improved Essays