0% found this document useful (0 votes)
9 views2 pages

Simple Insert Into Examples

The document provides simple examples of SQL INSERT INTO statements for various tables including Students, Employees, Products, Books, Courses, Teachers, Customers, Orders, Departments, and Vehicles. Each example illustrates how to insert a new record into the respective table with specified fields and values. The examples cover a range of data types such as integers, strings, and dates.

Uploaded by

mosesmainam017
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
9 views2 pages

Simple Insert Into Examples

The document provides simple examples of SQL INSERT INTO statements for various tables including Students, Employees, Products, Books, Courses, Teachers, Customers, Orders, Departments, and Vehicles. Each example illustrates how to insert a new record into the respective table with specified fields and values. The examples cover a range of data types such as integers, strings, and dates.

Uploaded by

mosesmainam017
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Simple Examples of SQL INSERT INTO

Example 1: Insert into Students Table

INSERT INTO Students (StudentID, FirstName, LastName, Age)

VALUES (1, 'John', 'Doe', 20);

Example 2: Insert into Employees Table

INSERT INTO Employees (EmployeeID, Name, Department)

VALUES (1, 'Alice Johnson', 'HR');

Example 3: Insert into Products Table

INSERT INTO Products (ProductID, ProductName, Price)

VALUES (1, 'Laptop', 899.99);

Example 4: Insert into Books Table

INSERT INTO Books (BookID, Title, Author)

VALUES (1, 'The Great Gatsby', 'F. Scott Fitzgerald');

Example 5: Insert into Courses Table

INSERT INTO Courses (CourseID, CourseName, Duration)

VALUES (1, 'Introduction to Databases', '3 Months');

Example 6: Insert into Teachers Table

INSERT INTO Teachers (TeacherID, FirstName, LastName, Subject)

VALUES (1, 'James', 'Smith', 'Mathematics');

Example 7: Insert into Customers Table

INSERT INTO Customers (CustomerID, Name, Email)

VALUES (1, 'Emma Brown', '[email protected]');


Example 8: Insert into Orders Table

INSERT INTO Orders (OrderID, CustomerID, OrderDate)

VALUES (1, 1, #2024-06-01#);

Example 9: Insert into Departments Table

INSERT INTO Departments (DepartmentID, DepartmentName)

VALUES (1, 'Finance');

Example 10: Insert into Vehicles Table

INSERT INTO Vehicles (VehicleID, Make, Model)

VALUES (1, 'Toyota', 'Corolla');

You might also like