Chapter -8 Introduction to Database Class x q and A
Chapter -8 Introduction to Database Class x q and A
1. Define:
o Database: A collection of related data organized in a structured manner to
allow easy retrieval, manipulation, and management.
o Data redundancy: The duplication of data across multiple locations or
systems, leading to unnecessary repetition and increased storage usage.
o Report: A formatted and organized presentation of data, often generated by a
database, summarizing specific information or results based on queries.
o a) Fields in the given table: Book Id, Book Name, Author Name, Price,
Publishing.
o b) Primary key: The field that should be made the primary key is Book Id, as
it uniquely identifies each record.
o c) Alternate key: An alternate key could be the Book Name, as it can also be
used to uniquely identify records, but there could be duplicates in certain
cases, so it is not as reliable as a primary key.
o d) Difference between primary key and foreign key:
Primary key: A field or set of fields that uniquely identifies each
record in a table (e.g., Book Id in this table).
Foreign key: A field in one table that links to the primary key in
another table to establish a relationship between the two tables. For
example, if another table "AuthorDetails" had the field "AuthorId" as
the primary key, the Author Name field in this table could be a
foreign key if it links to that "AuthorId" in the "AuthorDetails" table.