Information Technology IT – 10 Database and file concepts | e-Consult
10 Database and file concepts (1 questions)
Login to see all questions.
Click on a question to view the answer
Question 2 Answer:
1. Create the books table:
CREATE TABLE books (
book_id INT PRIMARY KEY,
title VARCHAR(255),
author VARCHAR(255),
publication_year INT
);
2. Delete a book from the books table:
DELETE FROM books
WHERE book_id = 123;
3. Update the author of a book:
UPDATE books
SET author = 'Jane Doe'
WHERE book_id = 123;