Question
Which of the following scenarios violates Boyce-Codd
Normal Form (BCNF) in a relational schema?Solution
BCNF is a stricter version of 3NF. A table is in BCNF if, for every functional dependency X→YX , X is a superkey. If a candidate key determines another candidate key, it creates redundancy and violates BCNF. For instance, consider a table where StudentID and CourseID are candidate keys, but CourseID determines StudentID. This means there are multiple possible combinations leading to redundancy. Why Other Options Are Incorrect:
- Option A: This scenario adheres to both 3NF and BCNF, as all non-key attributes depend only on the primary key.
- Option B: This violates 2NF due to partial dependency but does not directly address BCNF.
- Option C: This violates 3NF by allowing transitive dependency but does not necessarily violate BCNF.
- Option E: This statement is a valid condition for both 3NF and BCNF.
Profit percentage earned on selling article 'I' is the same as the percentage loss incurred on selling article 'J'. If the cost price of article 'I' is ...
- The cost price of item ‘Y’ is 75% of item ‘X’. If item ‘X’ is sold at a profit of 25% and item ‘Y’ at a loss of 20%, the total profit made ...
A man has 20 liters of pure alcohol. To make a 75% profit while selling it at the original cost price of alcohol, how many liters of water should he mix...
A man bought an article at 30% less of the marked price and sold it at 12% more than the marked price. Find the profit earned by him.
...A person named 'P' purchased a table for Rs. _____ and a bed for Rs. 1500. He marked the price of the table 20% higher than its c...
A table is sold at 32% profit after giving a discount of 34% on the marked price. If the marked price of the table is Rs. 3,000, then find the cost pric...
A shopkeeper purchases a batch of 120 pens for ₹240. He sells 60 pens at ₹5 each and the remaining pens at a 20% discount on the marked price of ₹...
- The marked price of a clothing item is 160 percent of its cost price. If a 10% discount is given at the time of sale, calculate the profit percentage.
Anjali sold 50% of her apples and was left with 25 less than 60% of what she originally had. Find the number of apples sold by Anjali.
The cost price of 24 articles is the same as the selling price of x articles. If the profit is 20%, then the value of x is