365 views
1 votes
1 votes
  1. Unique not null is equivalent to primary key.
  2. Relational Algebra and SQL has same expressive power.

Which of the above statements are False?

1 Answer

0 votes
0 votes
  1. TRUE, ​​​​​​Primary constraints are Not NULL and it should be unique key
  2. FALSE, SQL has more power than Relational Algebra because basic relational algebra query cannot perform mathematical aggregate functions

References; 

GROUP BY, According to the book Fundamentals of Database Systems (Elmasri, Navathe 2011 6th ed):

Another type of request that cannot be expressed in the basic relational algebra is to specify mathematical aggregate functions on collections of values from the database.
...
We can define an AGGREGATE FUNCTION operation, using the symbol ℑ (pronounced script F)7, to specify these types of requests as follows:

<grouping attributes> ℑ <function list> (R)

where <grouping attributes> is a list of attributes of the relation specified in R, and <function list> is a list of (<function> <attribute>) pairs. In each such pair, <function> is one of the allowed functions—such as SUM, AVERAGE, MAXIMUM, MINIMUM,COUNT—and <attribute> is an attribute of the relation specified by R. The resulting relation has the grouping attributes plus one attribute for each element in the function list.

In addition to it,

  • Relational algebra has same power as safe TRC and safe DRC
  • And TRC has more power than Relational algebra because of unsafe queries.
edited by

Related questions

0 votes
0 votes
2 answers
1
Souvik33 asked Jan 14, 2023
544 views
A relation is in 3NF if every non-prime attribute of R is fully functionally reliant on every key of RTRUEFALSE
0 votes
0 votes
1 answer
3
Himanshu Kashyap asked Jan 21, 2019
453 views
1 votes
1 votes
1 answer
4
amitqy asked Nov 17, 2018
499 views