Which of the following is a relational database management system?
Database Concepts — Important Questions
SUMMARY: This chapter introduces students to the fundamental concepts of databases and their management systems.
KEY TOPICS: database, DBMS, relational model, SQL, tables, primary key, foreign key, normalization, ER model, data integrity
A primary key in a database table is:
Check answerHide answer
Which SQL command is used to retrieve data from a database?
Check answerHide answer
Which clause is used to filter rows in SQL?
Check answerHide answer
A column in a relational database is called a/an:
Check answerHide answer
Define database and database management system (DBMS).
Differentiate between primary key and foreign key.
Differentiate between DDL and DML SQL commands with examples.
Write a SQL query to display all rows from the table employee.
Define cardinality and degree of a relation.
Discuss any five SQL commands (CREATE INSERT SELECT UPDATE DELETE) with one example each.
Discuss various database keys (primary candidate alternate foreign composite) with examples.
Compare DBMS and traditional file system on five points.
Write SQL queries to: (a) create a table student (b) insert 3 rows (c) display students with marks > 80 (d) update marks of one student.
Discuss SQL aggregate functions COUNT SUM AVG MAX MIN with examples.
Differentiate between primary key and foreign key in tabular form.
Assertion (A): Primary key uniquely identifies each row.
Reason (R): It must be unique and not null.
Show explanationHide explanation
Assertion (A): A foreign key creates a relationship between tables.
Reason (R): It refers to the primary key of another table.
Show explanationHide explanation
Assertion (A): SELECT is a DQL command.
Reason (R): It retrieves data from one or more tables.
Show explanationHide explanation
Assertion (A): DDL commands include CREATE ALTER and DROP.
Reason (R): They define and modify the structure of the database.
Show explanationHide explanation
Assertion (A): A NULL value represents missing data.
Reason (R): It is different from zero or empty string.
Show explanationHide explanation
Statement 1: A database is a collection of related data.
Statement 2: A DBMS is software to manage that data.
Show answerHide answer
Statement 1: Examples of DBMS include MySQL Oracle and SQL Server.
Statement 2: All support SQL as the standard query language.
Show answerHide answer
Statement 1: A row in a relational table is also called a tuple.
Statement 2: A column is also called an attribute.
Show answerHide answer
Statement 1: Cardinality of a relation is the number of tuples.
Statement 2: Degree is the number of attributes.
Show answerHide answer
Statement 1: SELECT DISTINCT removes duplicates from the result.
Statement 2: It returns unique values for the specified column(s).
Show answerHide answer
-
book_id in the Book table is the:AComposite keyBPrimary keyCForeign keyDCandidate key
-
member_id in BorrowRecord referring to Member.member_id is a:APrimary keyBForeign keyCCandidate keyDComposite key
-
Identify all primary and foreign keys in the library database design.
Show answersHide answers
Match each database key with its definition.
| Key | Definition |
|---|---|
| Primary | ? |
| Candidate | ? |
| Alternate | ? |
| Foreign | ? |
| Composite | ? |
For sample employee table compute each SQL aggregate result.
| emp_id | name | dept | salary |
|---|---|---|---|
| 1 | Anil | IT | 50000 |
| 2 | Bobby | HR | 40000 |
| 3 | Chitra | HR | 35000 |
| 4 | Geeta | IT | 60000 |
| 5 | Hari | Sales | 40000 |
Match each SQL command type with its commands.
| Type | Commands |
|---|---|
| DDL | ? |
| DML | ? |
| DQL | ? |
| DCL | ? |
| TCL | ? |
Study the database keys table and answer:
| Key | Definition | Example |
|---|---|---|
| Primary | Unique not null | roll_no |
| Candidate | Could be primary | roll_no, email |
| Alternate | Candidate not chosen | |
| Foreign | Refers to another | dept_id in Employee |
| Composite | Multi-column | (order_id, item_id) |
-
Which key uniquely identifies each row and cannot be NULL?APrimaryBCandidateCAlternateDForeign
-
Which key creates a relationship between two tables?APrimaryBForeignCCompositeDAlternate
-
Explain different types of database keys with one example each.
Show answersHide answers
Study the ER diagram of student-course relationship and answer:
-
Which is a relationship in the ER diagram?AStudentBCourseCEnrolsDroll_no
-
Entities in an ER diagram are represented by:ARectangleBDiamondCEllipseDCircle
-
Explain the components of an ER diagram with the student-course example.
Show answersHide answers
Study the SQL JOIN Venn diagrams and answer:
-
Which JOIN returns only matching rows from both tables?AINNER JOINBLEFT JOINCFULL JOINDCROSS JOIN
-
Which JOIN returns all rows from the LEFT table plus matches from the right?AINNERBLEFTCRIGHTDFULL
-
Differentiate between INNER LEFT and FULL JOINs with examples.
Show answersHide answers
Make a full Informatics Practices paper on Database Concepts.
Pick the question mix, set the marks, hit generate. You get a ready-to-print paper with an answer key.
Generate your paper — free