NUT Removed
NUT Removed
PROGRAM-1
-- 3. Fetch all records from the 'employees' table to confirm the insertion
SELECT * FROM employees;
17
PROGRAM-2
SOURCE CODE:
SOURCE CODE:
-- 1. Create the 'employees' table
CREATE TABLE employees (
emp_id INT PRIMARY KEY,
emp_name VARCHAR(50),
department VARCHAR(30),
salary INT
);
-- 4. Fetch all records from the 'employees' table to confirm the update
SELECT *
FROM employees;
3
PROGRAM – 4
SOURCE CODE:
-- 1. Create the 'students' table
CREATE TABLE students (
student_id INT PRIMARY KEY,
student_name VARCHAR(50),
marks INT,
course VARCHAR(30)
);
SOURCE CODE:
-- 1. Create the 'students' table
CREATE TABLE students (
student_id INT PRIMARY KEY,
student_name VARCHAR(50),
course_id INT
);