Explain functional dependency with example.

1 Answer

Answer :

A functional dependency occurs when one attribute in a relation uniquely determines another attribute.

OR

Consider a relation say R(X,Y), where X and Y are one or more than one attribute, attribute X is functionally dependent on attribute Y if every value in X in the relation R has exactly one value of Y in the given relation. The functional dependency is represented as XY, which specifies Y is functionally dependent on X or X attribute functionally determine the attribute Y. Consider the schema, student(rollno, name, sscper). rollnoname, rollnosscper are the functional dependencies. rollno uniquely identifies name and sscper. That is, given rollno of a student, the name and sscper can be determined or searched.

Related questions

Description : A B C is a set of attributes. The functional dependency is as follows AB -> B AC -> C C -> B a) is in 1NF b) is in 2NF c) is in 3NF d) is in BCNF

Last Answer : a) is in 1NF

Description : What is Fully Functional dependency?

Last Answer : It is based on concept of full functional dependency. A functional dependency X Y is full functional dependency if removal of any attribute A from X means that the dependency does not hold any more.

Description : When is a functional dependency F said to be minimal?

Last Answer : ∙ Every dependency in F has a single attribute for its right hand side. ∙ We cannot replace any dependency X A in F with a dependency Y A where Y is a proper subset of X and still have a set ... F. ∙ We cannot remove any dependency from F and still have set of dependency that is equivalent to F.

Description : What is Functional Dependency?

Last Answer : A Functional dependency is denoted by X Y between two sets of attributes X and Y that are subsets of R specifies a constraint on the possible tuple that can form a relation state r of R. The ... [Y]. This means the value of X component of a tuple uniquely determines the value of component Y.

Description : For a database relation R(a, b, c, d) where the domains of a, b, c, d include only the atomic values. The functional dependency a → c, b → d holds in the following relation (A) In 1NF not in 2NF (B) In 2NF not in 3NF (C) In 3NF (D) In 1NF

Last Answer : (A) In 1NF not in 2NF 

Description : In RDBMS, the constraint that no key attribute (column) may be NULL is referred to as: (A) Referential integrity (B) Multi-valued dependency (C) Entity Integrity (D) Functional dependency

Last Answer : (C) Entity Integrity

Description : Consider a schema R(MNPQ) and functional dependencies M→N, P→Q. Then the decomposition of R into R1(MN) and R2(PQ) is ............. (1) Dependency preserving but not lossless ... and lossless join (3) Lossless join but not dependency preserving (4) Neither dependency preserving nor lossless join. 

Last Answer : Answer: 1

Description : Explain distributed database system with example.

Last Answer : A distributed database is a database that consists of two or more files located in different sites either on the same network or on entirely different networks. Portions of the database ... Ignite, Apache Cassandra, Apache HBase, Couchbase Server, Amazon SimpleDB, Clusterpoint, and FoundationDB

Description : Explain different types of attribute with example and their symbols used in ER diagram.

Last Answer : Different types of attributes are: 1. Simple attribute: A simple attributes are those which cannot be subdivided. Eg:Rollno-  symbol 2. Composite attribute: a composite attribute is ... value can be calculated or determined from another attribute Eg: age from dateofbirth  Symbol

Description : Explain Domain constraints with Syntax and example. 

Last Answer : Domain constraints are used to maintain value according to user specification Domain constraints are: 1. Not null-such constraints are applied to an attribute when we have to specify that the ... datatype(size),attr2 datatype(size) constraint nameofconstraint check(attr<value)); or

Description : Explain Generalization with example.

Last Answer : Generalization uses bottom-up approach where two or more lower level entities combine together to form a higher level new entity if they have common attributes in common. The new generalized entity can ... Example, STUDENT and FACULTY can be generalized to a higher level entity called PERSON

Description : . At the Melting Moments, an ice cream parlour, customers place their orders, watch their ice- cream sundaes being prepared, and then quickly eat the sundaes in the store before the ice cream ... known as A. Inseparability B. Intangibility C. Heterogeneity D. Perishability E. Dependency

Last Answer : D. Perishability

Description : Describe centralized database system with example. 

Last Answer : Centralized Database System: 1. A centralized database consists of a single data server into which all data are stored and from which all data are retrieved. All the data reside at a single location and ... is cheaper than other types of databases as it requires less power and maintenance. 

Description : Describe enhanced ER model with the help of example. 

Last Answer : Enhanced ER is a high-level data model that incorporates the extensions to the original ER model. It is created to design more accurate database schemas. EER reflects data properties and constraints more precisely ... example: Square, Circle, Triangle are the sub class of Shape super class. 

Description : Describe client server system with example.

Last Answer : Client server system consists of two logical components. One is Client and the other one is Server . Clients are those who send the request to perform a specific task to the server. ... client's CPU and memory. But server runs a database management system which manages the whole database.

Description : The dependency ratio is higher in rural areas than in urban areas. Give two reasons to explain why. -Geography

Last Answer : The following are the reasons for higher dependency ratio in the rural areas as compared to urban areas: 1. Birth rates are higher in the rural areas as compared to those in the urban areas. 2. ... . Adults who migrate to urban areas in search of jobs come back to their rural homes in old age.

Description : Explain various types of Relational constraints.

Last Answer : Relational Constraints Relational constraints are a set of rules. It is used to maintain the quality of information. Integrity constraints ensure that the data insertion, updating, and other ... - It establishes parent child relationship between two tables. For example :Foreign key constraints 

Description : Explain three level architecture of Database

Last Answer : There are following three levels or layers of DBMS architecture: External Level : Describes part of the database that a particular user group is interested in. Conceptual Level: Describes structure of ... is the one that concerns the way the data are physically stored on the hardware.

Description : Explain advantages of centralized and distributed databases.

Last Answer : Advantage of Centralized databases   * Data integrity is maximized -Data integrity is maximized and data redundancy is minimized because data is stored at a single place.  * Easier Database Administration - ... data is distributed, a group of users can easily share and use data of different sites

Description : Explain client/server database system. 

Last Answer : 1. It has two logical parts client and server.  2. Computer networking allows some task to be executed on a server system and some tasks on client system. This leads to development ... as application server to receive and send requests from client machine to database server and vice versa.

Description : Explain Codd’s rules.

Last Answer : Codd rules:  Rule 1: The information rule a has to be presented to the user should be in the form of table.  Rule 2: Guaranteed Access Rule Whole data should be available or ... interface cannot be used to subvert the system, for example, bypassing a relational security or integrity constraint

Description : Explain merits and demerits of Object Oriented Database model.

Last Answer : Object oriented models were introduced to overcome the shortcomings of conventional models like Relational, Hierarchical and network model. An object-oriented database is collection of objects whose behavior, state, ... . * There is no view mechanism * There is no adequate security mechanism.

Description : Explain components of database in detail.

Last Answer : A database system involves four major components. 1. Data 2. Hardware 3. Software 4. Users

Description : Explain three tier architecture of database with the help of diagram.

Last Answer : Application server or Web server *Adds intermediate layer between client and the database server *Runs application programs and stores business rules Clients contain GUI interfaces and ... GUI format. Thus the user interfaces, application rules and the database acts as three tier. 

Description : Feeling hesitant to take an over-the-counter drug because I know I will develop dependency...do you have any advice?

Last Answer : If you can don’t take it, it’s simple as that.

Description : What is sliding into dependency on alcohol or other substances like?

Last Answer : answer:It began in college for me. It was the first time I was away from home, and the drinking age was 18 in my state at the time. I could march into any liquor store and by a bottle of ... me freedom from the fears that once plagued me. I sleep at night, and I'm relatively sane most days.

Description : Ladies - Are you or would you be comfortable with a relationship that put you in total dependency of your partner?

Last Answer : answer:My sister did it. “So currently. She is out of work.” Pretty sure the outcome would be the same if she picked the job.

Description : Are you interested in what the Director of the CIA has to say about OPEC and America's dependency on foreign oil?

Last Answer : Well at least with foreign oil when there’s a spill it screws up someone elses country.

Description : Why is the dependency ratio higher in rural areas than in urban areas ? State two reasons. -Geography

Last Answer : Dependency ratio is higher in rural areas because : 1. Birth rates are higher in rural areas. 2. Large numbers of adults migrate to urban areas in search of jobs. 3. Adults who migrate return to their rural homes after retirement.

Description : How do i figure Child dependency ratio?

Last Answer : It is usually calculated as the number of children (aged under15 years) as a ratio of people of working age (ages 15 to 64). Thisratio is currently in a state of flux because the pension age isbeing raised in many countries so that the denominator of the ratiocovers a bigger age range.

Description : What are some therapies used for chemical dependency treatment programs?

Last Answer : There are several treatment options for chemical dependency. There are 48 hours treatments, counseling, and group meetings for individuals to meet with people with similar chemical dependencies.

Description : What is the success rate of patients who complete chemical dependency rehab?

Last Answer : The answer to this question will ultimately depend on the particular program in question. Some rehab centers prove to be better than others. Here are a few tips to evaluate the success rate of ... dependency rehab is between 2% to 20%, depending on the particular chemical the person is dependent on.

Description : According to Arrhenius equation of temperature dependency of rate constant for an elementary reaction (A) k ∝ √T (B) k ∝ e -E/RT (C) k ∝ T e -E/RT (D) None of these

Last Answer : (B) k ∝ e -E/RT

Description : DIP stands for: a) Domain Inversion Principle b) Diodic Inversion Principle c) Dependency Inversion Principle d) None of These

Last Answer : c) Dependency Inversion Principle

Description : What do you understand by dependency preservation?

Last Answer : Given a relation R and a set of FDs F, dependency preservation states that the closure of the union of the projection of F on each decomposed relation Ri is equal to the closure of F. i.e ... ))+ = F+ if decomposition is not dependency preserving, then some dependency is lost in the decomposition

Description : What is join dependency and inclusion dependency?

Last Answer : Join Dependency: A Join dependency is generalization of Multivalued dependency.A JD {R1, R2, ,Rn} is said to hold over a relation R if R1, R2, R3, , Rn is a lossless-join ... columns of a relation are contained in other columns. A foreign key constraint is an example of inclusion dependency.

Description : What is Multivalued dependency?

Last Answer : Multivalued dependency denoted by X Y specified on relation schema R, where X and Y are both subsets of R, specifies the following constraint on any relation r of R: if two tuples t1 and t2 exist in r such that t1[X] = t2[X] then t3 ... ∙ t3[Z] = t2[Z] and t4[Z] = t1[Z] where [Z = (R-(X U Y)) ]

Description : Which of the following is not a part of the characteristic of 4G network? a) Multirate management b) Fully converged services c) Software dependency d) Diverse user devices

Last Answer : a) Multirate management

Description : What was the theory of Immanual Wallerstein? (a) Capitalist theory (b) World system theory (c) Dependency theory (d) Devil theory

Last Answer : (b) World system theory

Description : Dependency theory was introduced by ____. (a) Andre Gunder Frank (b) Fanon (c) Samir Amin (d) Edward Said

Last Answer : (a) Andre Gunder Frank

Description : Which of the following is a knowledge representation technique used to represent knowledge about stereotype situation? (A) Semantic network (B) Frames (C) Scripts (D) Conceptual Dependency

Last Answer : (C) Scripts 

Description : Describe the three levels of data abstraction with diagram. 

Last Answer : Three levels of data abstraction are:  Physical level: This is the lowest level of data abstraction. It describes how data is actually stored in database. The complex data structure details ... highest level of data abstraction. This level describes the user interaction with database system.

Description : Describe object-oriented data models.

Last Answer : Object Oriented Model : Object oriented models were introduced to overcome the shortcomings of conventional models like Relational, Hierarchical and network model. An object-oriented database is collection of objects whose ... with other objects. It is also said to be semantic data model.

Description : Distinguish between file processing system and DBMS.

Last Answer : Database Management system File processing system 1. Presence of Self-describing nature of a database system and Metadata. 1. File processing don't contain any self describing feature and ... to use DBMS 5. Controlling Redundancy is one of most important feature to use DBMS

Description : State characteristics of Database.

Last Answer : The Characteristics of Database are: 1. Persistent Data 2. Meta Data and Self-describing nature of a DB 3. Insulation between programs and data (Data Independence) 4. Support ... Sharing of data and multiuser transaction processing 6. Access flexibility and Security. 7. Controlled Redundancy

Description : Define the term Foreign Key. 

Last Answer : A FOREIGN KEY is a key used to link two tables together. A FOREIGN KEY is a field (or collection of fields) in one table that refers to the PRIMARY KEY in another table. It ... between tables because it references the primary key of another table, thereby establishing a link between them.

Description : Define the term Data Model.

Last Answer : Underlying structure of the database is called as data model. It is a collection of conceptual tools for describing data, data relationships, data semantics and consistency constraints. Data models define how data is connected to each other and how they are processed and stored inside the system.

Description : List types of Database languages.

Last Answer : Four types of database languages are: 1. DDL (Data Definition Language) 2. DML (Data Manipulation Language) 3. DDL (Data Control Language) 4. TCL (Transaction control language)

Description : Define the term Database Schema

Last Answer : The overall design of the database is called the database schema. A schema diagram displays only names of record types (entities) and names of data items (attributes) and does not show the relationships among the various files. 

Description : Compare file system and database system. 

Last Answer : File system Database system  1. File processing don't contain any self describing feature and neither posses metadata.  1. Presence of Self-describing nature of a database system and Metadata. ... own file.  5. Controlling Redundancy is one of most important feature to use DBMS