Estimating Statistics of Expression Results

Question 1
Marks : +2 | -2
Pass Ratio : 17%
State true or false: Estimation of the size of the result of a join is not possible
True
False
Explanation:
Estimation of the result of a join is possible and can be done using the Cartesian product and intersections of the two relations. It is more complicated than estimating size of a selection.
Question 2
Marks : +2 | -2
Pass Ratio : 17%
Size estimation can be done for which of the following processes?
Projection
Aggregation
Set operation
All of the mentioned
Explanation:
Size estimation can be done for projection, aggregation, set operations, join operations and also the selection operation.
Question 3
Marks : +2 | -2
Pass Ratio : 33%
The size of a _____ is simply V(A,r) where r is the relation and A is a distinct value
Projection
Outer join
Aggregation
Inner join
Explanation:
The size of an aggregation is simply V(A,r) where r is the relation and A is a distinct value since there is one tuple in the aggregation for every distinct value in A.
Question 4
Marks : +2 | -2
Pass Ratio : 17%
The union of all records satisfying the individual simple conditions Oi is called as ________
Conjunctive selection
Disjunctive selection
Negation
None of the mentioned
Explanation:
The union of all records satisfying the individual simple conditions Oi is called as disjunctive selection. It is a form of a complex selection.
Question 5
Marks : +2 | -2
Pass Ratio : 33%
Which of the following information does the database system catalog store?
Number of tuples
Number of blocks
Size of a tuple of a relation
All of the mentioned
Explanation:
The database system catalog stores the number of tuples, number of blocks, size of a tuple in a relation and the blocking factor in it as statistical data.
Question 6
Marks : +2 | -2
Pass Ratio : 17%
What kind of a sample must be used for statistical analysis?
A random sample
A sample having excessive representation of a relation
A sample having suppressive representation of a relation
None of the mentioned
Explanation:
A random sample must be taken into consideration for statistical analysis because it gives a fair result on the data analysis.
Question 7
Marks : +2 | -2
Pass Ratio : 17%
The intersection of all records satisfying the individual simple conditions Oi is called as ________
Conjunctive selection
Disjunctive selection
Negation
None of the mentioned
Explanation:
The intersection of all records satisfying the individual simple conditions Oi is called as conjunctive selection. It is a form of a complex selection.
Question 8
Marks : +2 | -2
Pass Ratio : 17%
Most databases store the distribution of values for each attribute as a __________
Histogram
Pie chart
Line graph
None of the mentioned
Explanation:
Most of the databases store the distribution of values for each attribute as a histogram.in which the values for the attributes are divided into various ranges.
Question 9
Marks : +2 | -2
Pass Ratio : 17%
The ________ SQL command generates statistics on a particular relation
Statistic
Analyze
Modify
Runstats
Explanation:
The analyze command is used to generate statistics on a particular set of relations. The runstats command is also valid but not in SQL. It is used in IBM DB2.
Question 10
Marks : +2 | -2
Pass Ratio : 17%
What is the function of the equi-width histogram?
Adjusts boundaries of the ranges such that each range has the same number of values
Divides range of values into equal sized ranges
Divides the range of values into ideally sized ranges
Does not divide the range of values.
Explanation:
The equi width histogram divides the range of values into equal sized ranges.