Answer to Question #214283 in Databases | SQL | Oracle | MS Access for Hassam

Question #214283

Given is the schema of a table and fragments created. Write down which of the correctness rules of fragmentation are violated (also write reason) for each part and also rewrite new fragments (at-least 3) for each part such that all correctness rules must be satisfied.

1-     Employee (Eid, EName, eAge, eDesignation, eSalary)[ Salary must be more than 14000]

F1: eSalary > 14000 and eSalary < 20000

F2: eSalary >= 20000 and eSalary <=50000

F3: eSalary >=50000 and eSalary >= 100000


2-     Book(Book_ISBN, bTitle, bPrice, bCategory) [bCategory must not be ‘CS’ or ‘IT’]

F1: bCategory = ‘Science’

F2: bCategory = ‘Novels’

F3: bCategory != ‘Science’

F4: bCategory != ‘CS’ or bCategory != ‘IT’



1
Expert's answer
2021-07-08T01:32:26-0400


2. 
F3: bCategory != ‘Science’
Because the statement will accept all other bCategories except 'Science'. This will allow other categories shuch as
'IT' and 'CS' which are not allowed in this case.


F4: bCategory != ‘CS’ or bCategory != ‘IT’
This will allow either 'CS' or 'IT' which is prohibited.

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS