Skip to content

Instantly share code, notes, and snippets.

@MartinJHammer
Last active February 21, 2017 10:40
Show Gist options
  • Save MartinJHammer/2693e57353db3beb3088e43593a7d1a4 to your computer and use it in GitHub Desktop.
Save MartinJHammer/2693e57353db3beb3088e43593a7d1a4 to your computer and use it in GitHub Desktop.
INSERT INTO Member (MemberID, MbrFirstName, MbrLastName, MbrPhoneNumber, Gender) VALUES (101, 'David', 'Hamilton', '555-2701', 'M');
CREATE TABLE Members (
MemberID int NOT NULL ,
MbrFirstName nvarchar (25) NULL ,
MbrLastName nvarchar (25) NULL ,
MbrPhoneNumber nvarchar (15) NULL ,
Gender nvarchar (2) NULL
)
GO
CREATE TABLE member
(
id int PRIMARY KEY IDENTITY,
first_name nvarchar(20) NOT NULL,
last_name nvarchar(50) NOT NULL,
band_id int NOT NULL REFERENCES band(id)
ON DELETE CASCADE
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment