Computer Science Engineering (CSE) Exam  >  Computer Science Engineering (CSE) Questions  >  Consider the relation account (customer, bala... Start Learning for Free
Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assigned
Consider these statements about Query1 and Query2.
1. Query1 will produce the same row set as Query2 for some but not all databases.
2. Both Query1 and Query2 are correct implementation of the specification
3. Query1 is a correct implementation of the specification but Query2 is not
4. Neither Query1 nor Query2 is a correct implementation of the specification
5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.

Q. Which two of the above statements are correct?
  • a)
    2 and 5
  • b)
    1 and 3
  • c)
    1 and 4
  • d)
    3 and 5
Correct answer is option 'C'. Can you explain this answer?
Verified Answer
Consider the relation account (customer, balance) where customer is a ...
Query 1 and Query 2 will give the same result if all the customers have distinct balance. So, for some databases, the result of query 1 and query 2 will be same. 
Now, let us consider a fact that all the entries in the database have the same value for balance. Ideally, all the customers should have rank 1, but both the queries will give all the customers a rank equal to the number of customers in the database. So, both the queries do not give us the required output. 
Thus, C is the correct choice. 
Please comment below if you find anything wrong in the above post.
View all questions of this test
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assignedConsider these statements about Query1 and Query2.1. Query1 will produce the same row set as Query2 for some but not all databases.2. Both Query1 and Query2 are correct implementation of the specification3. Query1 is a correct implementation of the specification but Query2 is not4. Neither Query1 nor Query2 is a correct implementation of the specification5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.Q.Which two of the above statements are correct?a)2 and 5b)1 and 3c)1 and 4d)3 and 5Correct answer is option 'C'. Can you explain this answer?
Question Description
Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assignedConsider these statements about Query1 and Query2.1. Query1 will produce the same row set as Query2 for some but not all databases.2. Both Query1 and Query2 are correct implementation of the specification3. Query1 is a correct implementation of the specification but Query2 is not4. Neither Query1 nor Query2 is a correct implementation of the specification5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.Q.Which two of the above statements are correct?a)2 and 5b)1 and 3c)1 and 4d)3 and 5Correct answer is option 'C'. Can you explain this answer? for Computer Science Engineering (CSE) 2024 is part of Computer Science Engineering (CSE) preparation. The Question and answers have been prepared according to the Computer Science Engineering (CSE) exam syllabus. Information about Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assignedConsider these statements about Query1 and Query2.1. Query1 will produce the same row set as Query2 for some but not all databases.2. Both Query1 and Query2 are correct implementation of the specification3. Query1 is a correct implementation of the specification but Query2 is not4. Neither Query1 nor Query2 is a correct implementation of the specification5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.Q.Which two of the above statements are correct?a)2 and 5b)1 and 3c)1 and 4d)3 and 5Correct answer is option 'C'. Can you explain this answer? covers all topics & solutions for Computer Science Engineering (CSE) 2024 Exam. Find important definitions, questions, meanings, examples, exercises and tests below for Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assignedConsider these statements about Query1 and Query2.1. Query1 will produce the same row set as Query2 for some but not all databases.2. Both Query1 and Query2 are correct implementation of the specification3. Query1 is a correct implementation of the specification but Query2 is not4. Neither Query1 nor Query2 is a correct implementation of the specification5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.Q.Which two of the above statements are correct?a)2 and 5b)1 and 3c)1 and 4d)3 and 5Correct answer is option 'C'. Can you explain this answer?.
Solutions for Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assignedConsider these statements about Query1 and Query2.1. Query1 will produce the same row set as Query2 for some but not all databases.2. Both Query1 and Query2 are correct implementation of the specification3. Query1 is a correct implementation of the specification but Query2 is not4. Neither Query1 nor Query2 is a correct implementation of the specification5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.Q.Which two of the above statements are correct?a)2 and 5b)1 and 3c)1 and 4d)3 and 5Correct answer is option 'C'. Can you explain this answer? in English & in Hindi are available as part of our courses for Computer Science Engineering (CSE). Download more important topics, notes, lectures and mock test series for Computer Science Engineering (CSE) Exam by signing up for free.
Here you can find the meaning of Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assignedConsider these statements about Query1 and Query2.1. Query1 will produce the same row set as Query2 for some but not all databases.2. Both Query1 and Query2 are correct implementation of the specification3. Query1 is a correct implementation of the specification but Query2 is not4. Neither Query1 nor Query2 is a correct implementation of the specification5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.Q.Which two of the above statements are correct?a)2 and 5b)1 and 3c)1 and 4d)3 and 5Correct answer is option 'C'. Can you explain this answer? defined & explained in the simplest way possible. Besides giving the explanation of Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assignedConsider these statements about Query1 and Query2.1. Query1 will produce the same row set as Query2 for some but not all databases.2. Both Query1 and Query2 are correct implementation of the specification3. Query1 is a correct implementation of the specification but Query2 is not4. Neither Query1 nor Query2 is a correct implementation of the specification5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.Q.Which two of the above statements are correct?a)2 and 5b)1 and 3c)1 and 4d)3 and 5Correct answer is option 'C'. Can you explain this answer?, a detailed solution for Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assignedConsider these statements about Query1 and Query2.1. Query1 will produce the same row set as Query2 for some but not all databases.2. Both Query1 and Query2 are correct implementation of the specification3. Query1 is a correct implementation of the specification but Query2 is not4. Neither Query1 nor Query2 is a correct implementation of the specification5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.Q.Which two of the above statements are correct?a)2 and 5b)1 and 3c)1 and 4d)3 and 5Correct answer is option 'C'. Can you explain this answer? has been provided alongside types of Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assignedConsider these statements about Query1 and Query2.1. Query1 will produce the same row set as Query2 for some but not all databases.2. Both Query1 and Query2 are correct implementation of the specification3. Query1 is a correct implementation of the specification but Query2 is not4. Neither Query1 nor Query2 is a correct implementation of the specification5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.Q.Which two of the above statements are correct?a)2 and 5b)1 and 3c)1 and 4d)3 and 5Correct answer is option 'C'. Can you explain this answer? theory, EduRev gives you an ample number of questions to practice Consider the relation account (customer, balance) where customer is a primary key and there are no null values. We would like to rank customers according to decreasing balance. The customer with the largest balance gets rank 1. ties are not broke but ranks are skipped: if exactly two customers have the largest balance they each get rank 1 and rank 2 is not assignedConsider these statements about Query1 and Query2.1. Query1 will produce the same row set as Query2 for some but not all databases.2. Both Query1 and Query2 are correct implementation of the specification3. Query1 is a correct implementation of the specification but Query2 is not4. Neither Query1 nor Query2 is a correct implementation of the specification5. Assigning rank with a pure relational query takes less time than scanning in decreasing balance order assigning ranks using ODBC.Q.Which two of the above statements are correct?a)2 and 5b)1 and 3c)1 and 4d)3 and 5Correct answer is option 'C'. Can you explain this answer? tests, examples and also practice Computer Science Engineering (CSE) tests.
Explore Courses for Computer Science Engineering (CSE) exam

Top Courses for Computer Science Engineering (CSE)

Explore Courses
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev