Which of the following is used to uniquely identify each row in a table? a) Foreign Key b) Primary Key c) Attribute d) Column
Every question in this chapter, answered and explained — step-by-step solutions drawn live from the chapter library across 8 question sections.
Which of the following is used to uniquely identify each row in a table? a) Foreign Key b) Primary Key c) Attribute d) Column
In a table, the vertical arrangement of data is called a: a) Field Name b) Row c) Column d) Record
Which one is an example of open-source database software? a) Oracle b) MySQL c) MS Access d) MS Excel
What type of SQL command is used to insert new records into a table? a) CREATE b) INSERT c) UPDATE d) SELECT
Which clause is used in SQL to filter records based on a specific condition? a) ORDER BY b) WHERE c) SET d) VALUES
Which command is used to permanently delete a table from a database? a) DELETE b) DROP c) REMOVE d) ERASE
Which command is used to retrieve data from a table in MySQL? a) SELECT b) INSERT c) DELETE d) UPDATE
Which of the following is a DML command? a) CREATE b) SELECT c) DROP d) ALTER
The command that changes the structure of an existing table is: a) CREATE b) ALTER c) INSERT d) SELECT
Which of these data types is suitable to store textual information of variable length? a) INT b) FLOAT c) VARCHAR d) DATE
Which of these is a correct relational operator in SQL? a) ADD b) > c) PUT d) LINK
Which clause is used to sort the result in ascending or descending order? a) ORDER BY b) SORT c) GROUP d) WHERE
Which operator is used to select values between two ranges in SQL? a) LIKE b) IN c) BETWEEN d) IS
A command to modify existing data within a table is: a) INSERT b) UPDATE c) DELETE d) CREATE
Which type of key is used to link one table with another table's primary key? a) Candidate Key b) Foreign Key c) Primary Key d) Composite Key
A software used to create, manage, and use databases.
An organized collection of related data stored in a computer system.
Raw facts or figures that have no clear meaning until arranged.
Organized and meaningful data obtained after processing.
A column in a table that uniquely identifies each row.
A column in one table that connects to the primary key of another table.
A command in MySQL used to add new data into a table.
A DDL command used to make a new table.
A DML command used to modify existing records in a table.
A clause used to filter records based on a given condition.
A clause used to sort records in ascending or descending order.
A set of symbols or keywords used to perform operations in SQL.
A command used to retrieve and display data from one or more tables.
A DDL command used to permanently delete a table or database.
A command given to a database to perform a task like add, search, or delete.
What is the main difference between data and information?
Define DBMS with one clear example.
What is RDBMS?
Why is a primary key important in a database table?
Write the use of the FOREIGN KEY in relational databases.
What is the purpose of the CREATE command in MySQL?
Name any two DDL commands.
Why do we use the SELECT command in MySQL?
List any two examples of clauses used with SQL statements.
What is the function of the ORDER BY clause in MySQL?
Which command is used to remove specific records from a table? Write its syntax.
Write any two differences between DDL and DML commands.
Write any two reasons why we use a database management system (DBMS) in computing.
What do you mean by redundancy in a database system?
Why should the WHERE clause be used carefully with UPDATE and DELETE commands?
What is a relationship in MySQL?
Explain the differences between a database and a DBMS with examples.
What is a primary key? List any four features or functions of a primary key in a table.
What is the purpose of the FOREIGN KEY in MySQL? Explain with a suitable example.
Write the differences between DDL and DML commands with any two examples each.
Describe the function of the following SQL commands: CREATE, DROP, INSERT, and SELECT.
What are clauses in SQL? Explain the uses of WHERE, ORDER BY, and GROUP BY clauses.
Define operators in SQL. List any four relational operators with examples.
What is a query in MySQL? Explain how queries help in managing database records.
Explain with examples how the UPDATE and DELETE commands work with the WHERE clause.
Write the importance of using a DBMS in computing. Mention any four advantages of a DBMS.
What are SQL constraints? State their importance.
What do you mean by a report in MySQL? How does it help users?
Define a composite key. Explain when it is used in a database.
What do you mean by a relationship in DBMS? Explain its types.
Define a database with one example.
What is a field in a database table?
Write the syntax to create a database in MySQL.
Which SQL command is used to view all records of a table?
Write an SQL query to create a table named Book with columns BookID (INT, Primary Key), Title (VARCHAR(50)), and Price (DECIMAL(6,2)).
Write an SQL query to insert a record into the Book table with BookID 1, Title 'Science Made Easy', and Price 350.50.
Write an SQL query to display the Title and Price of books priced above 300 from the Book table.
Differentiate between Primary Key and Foreign Key.
Write any four features of DBMS.
Write an SQL query to increase the Price of all books by 50 in the Book table, and another query to delete books whose Price is less than 100.
A school wants to store details of students and their marks in two related tables, Student and Marks. Suggest suitable Primary Key and Foreign Key for these tables and explain why they are needed.
Write an SQL query to display the names of all students from the Student table whose names start with the letter 'S', sorted in ascending order.