Web For Database Management Systems BCA 4th Sem
Web For Database Management Systems BCA 4th Sem
Chapter 1: Introduction
banker-name. The violation of this dependency cannot be detected unless a join is computed. To see why the decomposition of Banker-schema into the schemas Banker-branch-schema and customer-banke-schema is not dependency preserving, we apply the algorithm of testing for dependency preservation, we find that the restrictions F1 and F2 of F to each schema are as follows: F1 = {banker-name, branch-name} F2 = (only trivial dependencies hold on customer-banker-schema) banker-name is not in F + even Thus, a canonical cover for the set F is F1. It is easy to see that dependency Customer-name branch-name though it is in F+. Therefore, F + F+, and the decomposition is not dependency preservation.
regardless of how the data file is indexed and sorted. For example, a B-tree for vendor lookups by ZIP codes takes the same amount of space as a B-tree for lookups by company name or by phone number or by invoice date.
Q5. B-trees are better than inverted files justify the proposition
Answer: Inverted files usually fail if the inverted list of identifiers grows beyond the Pick item limit of 32K, and can require slow sequential searches of those large items. B-tree items always stay very small and never run into any Pick size limitations. Inverted files can only find actual keys known to already exist in the data. If a look up for any ZIP code 95003, and it's not in the file, an inverted file can do nothing. But a B-tree can tell the next closest match, such as ZIP 95005, and even identify any size "neighborhood" of adjacent records before and after the match. Inverted files only allow searches for a complete key. However, with B-trees search for the name JOTIN, or just JOT, or just the letter J, or as many characters correctly specified and B-TREE-P will immediately find the closest match. If an inverted file tries to store all those substrings, it requires enormous amounts of disk space. Inverted files cannot step sequentially through the index file. Whereas B-trees can start at any key, then step sequentially through all preceding or following keys. Inverted files allow searches for a primary key only ,while with B-trees immediate retrieval of the list of items having ZIP 10020.. Software for inverted files is usually tied closely to the data being indexed, and must often be modified if a new type of data file or field is to be indexed. B-trees are much more efficient, flexible, and user-friendly than inverted files.