0% found this document useful (0 votes)
2 views4 pages

Snowflake SQL Code Dump

The document contains SQL code for dumping data into three tables: `subjects`, `uni_subj`, and `university`. It includes commands to lock the tables, disable keys, insert various records, and then unlock the tables while re-enabling keys. The data consists of subject names, their IDs, and university names along with associated values.

Uploaded by

ANA
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)
2 views4 pages

Snowflake SQL Code Dump

The document contains SQL code for dumping data into three tables: `subjects`, `uni_subj`, and `university`. It includes commands to lock the tables, disable keys, insert various records, and then unlock the tables while re-enabling keys. The data consists of subject names, their IDs, and university names along with associated values.

Uploaded by

ANA
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/ 4

Snowflake SQL Code Dump

-- Dumping data for table `subjects`

--

LOCK TABLES `subjects` WRITE;

/*!40000 ALTER TABLE `subjects` DISABLE KEYS */;

INSERT INTO `subjects` VALUES

(1, 'Seismic Interpreter', 9),

(2, 'Astronomy', 6),

(3, 'Computer Science', 3),

(4, 'Econometrics', 5),

(5, 'Urban Planning', 7),

(6, 'Geopolitics', 8),

(7, 'Political Economy', 6),

(8, 'Linear Algebra', 6),

(9, 'Aeronautical Engineering', 5),

(10, 'Linguistics', 4),

(11, 'Biotechnology', 7),

(12, 'Data Science', 6),

(13, 'Materials Engineering', 5),

(14, 'Aerospace Engineering', 9),

(15, 'Artificial Intelligence', 4),

(16, 'Quantum Computing', 3),

(17, 'Cognitive Science', 6),

(18, 'History of Science', 5),

(19, 'Machine Learning', 6),


(20, 'Chemistry', 3);

/*!40000 ALTER TABLE `subjects` ENABLE KEYS */;

UNLOCK TABLES;

-- Dumping data for table `uni_subj`

--

LOCK TABLES `uni_subj` WRITE;

/*!40000 ALTER TABLE `uni_subj` DISABLE KEYS */;

INSERT INTO `uni_subj` VALUES

(1, 1), (1, 3), (1, 4), (1, 5), (1, 7), (1, 9), (1, 10), (1, 15), (1, 17),

(2, 1), (2, 3), (2, 7), (2, 10), (2, 12), (2, 13), (2, 14), (2, 15), (2, 16),

(3, 1), (3, 5), (3, 7), (3, 9), (3, 10), (3, 13), (3, 17), (3, 18), (3, 20),

(4, 4), (4, 9), (4, 16), (4, 13), (4, 14), (4, 18), (4, 19),

(5, 3), (5, 6), (5, 9), (5, 10), (5, 17), (5, 18), (5, 20), (5, 15),

(6, 2), (6, 3), (6, 5), (6, 12), (6, 14), (6, 15), (6, 19),

(7, 1), (7, 6), (7, 8), (7, 12), (7, 13), (7, 17), (7, 20), (7, 19),

(8, 2), (8, 4), (8, 7), (8, 8), (8, 10), (8, 11), (8, 16), (8, 17),

(9, 1), (9, 3), (9, 5), (9, 6), (9, 7), (9, 12), (9, 13), (9, 16),

(10, 1), (10, 2), (10, 6), (10, 10), (10, 13), (10, 17), (10, 18),

(11, 2), (11, 4), (11, 5), (11, 6), (11, 10), (11, 14), (11, 17),

(12, 1), (12, 3), (12, 6), (12, 8), (12, 9), (12, 13), (12, 16), (12, 17),

(13, 3), (13, 7), (13, 8), (13, 11), (13, 12), (13, 13), (13, 17),

(14, 3), (14, 8), (14, 10), (14, 13), (14, 14), (14, 19), (14, 15),

(15, 2), (15, 5), (15, 7), (15, 8), (15, 10), (15, 11), (15, 16), (15, 17),

(16, 1), (16, 5), (16, 6), (16, 12), (16, 13), (16, 14), (16, 17),

(17, 3), (17, 7), (17, 8), (17, 9), (17, 15), (17, 17), (17, 19),

(18, 4), (18, 5), (18, 7), (18, 12), (18, 16), (18, 17), (18, 20),
(19, 3), (19, 6), (19, 8), (19, 9), (19, 12), (19, 13), (19, 15), (19, 18),

(20, 1), (20, 2), (20, 4), (20, 8), (20, 9), (20, 13), (20, 16);

/*!40000 ALTER TABLE `uni_subj` ENABLE KEYS */;

UNLOCK TABLES;

-- Dumping data for table `university`

--

LOCK TABLES `university` WRITE;

/*!40000 ALTER TABLE `university` DISABLE KEYS */;

INSERT INTO `university` VALUES

(1, 'Harvard University', 593),

(2, 'Stanford University', 581),

(3, 'Massachusetts Institute of Technology', 246),

(4, 'California Institute of Technology', 529),

(5, 'Yale University', 420),

(6, 'Princeton University', 281),

(7, 'Columbia University', 436),

(8, 'University of Chicago', 487),

(9, 'University of Pennsylvania', 575),

(10, 'Johns Hopkins University', 432),

(11, 'Northwestern University', 397),

(12, 'Duke University', 314),

(13, 'Cornell University', 563),

(14, 'Brown University', 270),

(15, 'Rice University', 526),

(16, 'University of Notre Dame', 362),

(17, 'Vanderbilt University', 404),


(18, 'Emory University', 262),

(19, 'Georgetown University', 463),

(20, 'University of California, Berkeley', 473),

(21, 'University of Michigan, Ann Arbor', 287),

(22, 'University of Virginia', 193),

(23, 'University of California, Los Angeles', 330),

(24, 'University of North Carolina at Chapel Hill', 370),

(25, 'University of Florida', 535),

(26, 'University of Texas at Austin', 576),

(27, 'University of Wisconsin-Madison', 279),

(28, 'University of Washington', 431),

(29, 'University of Illinois Urbana-Champaign', 167),

(30, 'University of Georgia', 553),

(31, 'University of California, San Diego', 215),

(32, 'University of Maryland, College Park', 457),

(33, 'University of Minnesota, Twin Cities', 469),

(34, 'University of Pittsburgh', 189),

(35, 'University of Colorado Boulder', 539),

(36, 'Indiana University Bloomington', 304),

(37, 'University of Arizona', 556),

(38, 'Ohio State University', 487),

(39, 'University of Iowa', 462),

(40, 'University of California, Davis', 210);

/*!40000 ALTER TABLE `university` ENABLE KEYS */;

UNLOCK TABLES;

You might also like