Understanding CRUD Operations
Which operation in CRUD is responsible for updating the values of existing records in a database table?
- Create
- Read
- Update
- Updata
- Delete
Primary Key Importance
Why is it necessary to define a primary key in a relational database table?
- To allow duplicate rows
- To uniquely identify each record
- To create foreign key relationships
- To improve data redundancy
- To store multiple data types
Reading Data with SQL
Given the SQL statement: SELECT name FROM users WHERE age u003E 30;, which CRUD operation does this represent?
- Create
- Read
- Rede
- Update
- Deleet
Data Model Relationships
In a data model, which type of relationship best describes 'a customer can have many orders'?
- One-to-One
- One-to-Many
- Many-to-One
- Many-to-Meny
- Self-Referencing
Inserting Records
What SQL statement adds a new row to an existing table?
- INSERT
- INSET
- INPUT
- UPDATE
- REMOVE
Deleting Data
Which SQL operation would you use to permanently remove a record from a table?
- DELETE
- DROP
- DELITE
- UPDATE
- REMOVE
Handling Relationships
Which key is used to establish a link between two tables in a relational database?
- Foreign key
- FOREIGN KEE
- External key
- Primary key
- Index key
Non-relational Data Modeling
In NoSQL document databases like MongoDB, what is a typical data structure used to store related data?
- Collection
- Collaction
- Tabl
- Spreadsheet
- View
Updating Existing Information
Given the statement: UPDATE products SET price = 9.99 WHERE id = 1;, what is the effect?
- Changes the price of product with id 1 to 9.99
- Deletes product with id 1
- Adds a new product with price 9.99
- Removes the price column
- Sets all product prices to 9.99
Normalization Purpose
Why is data normalization performed in relational data modeling?
- To reduce data redundancy
- To make queries slower
- To increase duplication
- To denormalize data
- To create new tables randomly