Skip to content

Instantly share code, notes, and snippets.

@eezhal92
Last active September 4, 2020 10:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save eezhal92/87128a5469ee5dcac64884298f666d21 to your computer and use it in GitHub Desktop.
Save eezhal92/87128a5469ee5dcac64884298f666d21 to your computer and use it in GitHub Desktop.
hammercode - intro sql 1
# ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.7.31)
# Database: book_library
# Generation Time: 2020-09-04 10:31:44 +0000
# ************************************************************
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;
# Dump of table books
# ------------------------------------------------------------
DROP TABLE IF EXISTS `books`;
CREATE TABLE `books` (
`id` int(11) unsigned NOT NULL AUTO_INCREMENT,
`title` varchar(255) NOT NULL DEFAULT '',
`publisher` varchar(120) DEFAULT NULL,
`author` varchar(120) DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
LOCK TABLES `books` WRITE;
/*!40000 ALTER TABLE `books` DISABLE KEYS */;
INSERT INTO `books` (`id`, `title`, `publisher`, `author`)
VALUES
(1,'Intro Programming','A Press','John'),
(2,'Cracking Coding Interview','Gramedia','Alex'),
(3,'The Effective Engineer','Amazon','Edmon'),
(4,'Domain Driven Design','Amazon','Eric'),
(5,'Clean Code','Amazon','Bob'),
(6,'Design Patterns','Gramedia','Luke'),
(7,'Clean Architecture','Amazon','Bob'),
(8,'Clean Programmer','A Press','Bob'),
(9,'Pragmatic Programmer','A Press','Kyle'),
(10,'Introduction to Algorithm','Packt Pub','Tomas Bob'),
(11,'Test Driven Development','Packt Pub','Kent'),
(12,'Refactoring','ThoughtPress','Martin'),
(14,'Remote Working','BaseCamp','Bob Mark'),
(15,'Lean Startup','A Press',NULL),
(16,'Zero to One','A Press','Bob'),
(17,'Design Thinking','ThoughtPress',NULL);
/*!40000 ALTER TABLE `books` ENABLE KEYS */;
UNLOCK TABLES;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;
/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment