CREATE DATABASE Exercise
USE Exercise;
Go
CREATE TABLE Employees
(
EmployeeNumber nchar(10),
EmployeeName nvarchar(50),
DateHired datetime,
HourlySalary money
);
GO
INSERT INTO Employees
VALUES(N'593705', N'Frank Somah', N'20061004', 26.15),
(N'720947', N'Paul Handsome', N'20000802', 36.05);
GO
INSERT INTO Employees(EmployeeName, EmployeeNumber, DateHired)
VALUES(N'Clarice Simms', N'971403', N'20011112');
GO
The insert statement is not working.
Incorrect syntax near ‘,’.
In SQL Server 2005 you cannot use a
,betweenvalues:Replace:
with a
SELECTwithUNION ALLor multipleINSERT...VALUES...:So your full script would be: