Last active
February 21, 2017 10:40
-
-
Save MartinJHammer/2693e57353db3beb3088e43593a7d1a4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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