-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinitialize-database.sql
More file actions
33 lines (25 loc) · 956 Bytes
/
initialize-database.sql
File metadata and controls
33 lines (25 loc) · 956 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
CREATE DATABASE TechTalksDB
GO
SELECT Name from sys.Databases
GO
USE TechTalksDB
GO
CREATE TABLE Categories (id INT, categoryName NVARCHAR(50), description NVARCHAR(100))
GO
INSERT INTO Categories VALUES(1, 'Meetup', 'Community event organized via meetup');
INSERT INTO Categories VALUES(2, 'Conference', 'Tech Conference');
GO
CREATE TABLE TechTalk (id INT, name NVARCHAR(50), category INT)
GO
INSERT INTO TechTalk VALUES (1, 'Scaling Docker Containers', 1);
INSERT INTO TechTalk VALUES (2, 'Azure Container Services', 2);
GO
CREATE TABLE KeyValue ([Key] NVARCHAR(10), [Value] NVARCHAR(100))
GO
INSERT INTO KeyValue VALUES('GoT', 'American fantasy drama television series');
INSERT INTO KeyValue VALUES('MS', 'Microsoft');
INSERT INTO KeyValue VALUES('OS', 'Open source');
INSERT INTO KeyValue VALUES('Doc', 'Doc-chain aka Blockchain');
INSERT INTO KeyValue VALUES('AZ', 'Azure');
INSERT INTO KeyValue VALUES('ACS', 'Azure Container Service');
GO