Search Header Logo

N1 & C1 DBMS LAB QUIZ

Authored by Nand Yadav

Computers

University

Used 5+ times

N1 & C1 DBMS LAB QUIZ
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

As part of our ongoing efforts to improve our customer database, you've been tasked with adding a new column to the 'Customers' table to store email addresses. This will help us communicate with our customers more effectively. Which SQL statement should you use to accomplish this?

A) ALTER TABLE Customers ADD Email VARCHAR(100);

B) UPDATE Customers SET Email = 'example@email.com';

C) CREATE COLUMN Email IN Customers;

D) INSERT INTO Customers (Email) VALUES ('example@email.com');

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In your role as data analysts, you often work with a customer database that evolves over time to accommodate new information. Your manager has requested you to update the database by adding new attributes to an existing customer relation. Which of the following commands should you use to accomplish this task effectively?

A. Alter

B. Modify

C. Tailor

D. Eliminate

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

In the financial database you oversee, there's a need to periodically clear out all the transaction records from a particular table without generating extensive log entries for each deletion. This process ensures efficient data maintenance. Which SQL statement should you employ to achieve this specific task?

DELETE

DROP

TRUNCATE

REMOVE

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

In a given relationship R, if an attribute A uniquely defines all other attributes, then the attribute A is a key attribute which is also known as the _________ key.

Candidate

Join

Functional

None of the Mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

By normalizing relations or sets of relations, one minimizes ___.

  1. Data

  1. Fields

  1. Redundancy

  1. Database

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

As part of our annual salary adjustments, we need to update the 'Salary' column for all employees in the 'Employees' table who belong to the 'HR' department. This ensures that our HR team is fairly compensated. Which SQL statement should you use to accomplish this?

A) UPDATE Employees SET Salary = 55000 WHERE Department = 'HR';

B) INSERT INTO Employees (Salary) VALUES (55000) WHERE Department = 'HR';

C) DELETE FROM Employees WHERE Department = 'HR';

D) SELECT * FROM Employees WHERE Department = 'HR';

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

As part of your role as a database developer, you are responsible for ensuring the integrity of the data in our company's employee database. This involves using various SQL constraints to maintain data quality. However, not all options provided are actual SQL constraints. Can you identify which one is not a constraint?

A. Not Null

B. Check

C. Union

D. Primary Key

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?