-- MySQL dump 10.19  Distrib 10.3.28-MariaDB, for Linux (x86_64)
--
-- Host: localhost    Database: bookstore
-- ------------------------------------------------------
-- Server version       10.3.28-MariaDB

/*!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 utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!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 */;

create database if not exists bookstore;
use bookstore;

--
-- Table structure for table `authors`
--

DROP TABLE IF EXISTS `authors`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `authors` (
  `author` char(30) NOT NULL,
  `born` date DEFAULT NULL,
  `died` date DEFAULT NULL,
  `nationality` char(30) DEFAULT NULL,
  PRIMARY KEY (`author`)
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `authors`
--

LOCK TABLES `authors` WRITE;
/*!40000 ALTER TABLE `authors` DISABLE KEYS */;
INSERT INTO `authors` VALUES ('Arthur Goldman','1966-02-03',NULL,'german'),('Bruce Eckel','1977-06-08','2016-07-16','american'),('David Hunter','1970-07-02',NULL,'british'),('Dean Wampler','1967-02-20','1999-01-16','american'),('Johan Vromans','1950-05-11','1995-06-26','dutch'),('Joseph Hall','1963-08-18','2001-02-13','british'),('Josh Peck','1968-11-23',NULL,'american'),('Ken Arnold','1981-05-13',NULL,'american'),('Kevin Dick','1952-09-10',NULL,'british'),('Larry Wall','1980-10-07',NULL,'american'),('Mark Grand','1963-09-25',NULL,'french'),('Michael Brundage','1985-05-02',NULL,'canadian'),('Paul Deitel','1984-01-23',NULL,'american'),('Paul DuBois','1950-07-18','1993-11-10','french'),('Randal Schwartz','1980-04-22',NULL,'german');
/*!40000 ALTER TABLE `authors` ENABLE KEYS */;
UNLOCK TABLES;

--
-- Table structure for table `books`
--

DROP TABLE IF EXISTS `books`;
/*!40101 SET @saved_cs_client     = @@character_set_client */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `books` (
  `title` char(50) NOT NULL,
  `author` char(30) NOT NULL,
  `publisher` char(30) DEFAULT NULL,
  `topic` char(20) DEFAULT NULL,
  `comment` char(100) DEFAULT NULL,
  `price` float DEFAULT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
/*!40101 SET character_set_client = @saved_cs_client */;

--
-- Dumping data for table `books`
--

LOCK TABLES `books` WRITE;
/*!40000 ALTER TABLE `books` DISABLE KEYS */;
INSERT INTO `books` VALUES ('MySQL','Paul DuBois','New Riders','MySQL','Excellent book, but doesn\'t cover Java API',49.99),('Beginning XML','David Hunter','Wrox','XML','Well recommended, fairly comprehensive',39.99),('Java How to Program','Paul Deitel','Prentice Hall','Java','Good textbook, extremely detailed',68.19),('Thinking in Java','Bruce Eckel','Prentice Hall','Java','Well written, free on the web',10.99),('Java Programming Language','Ken Arnold','Addison Wesley','Java','Considered to be from the source',37.95),('Learning Perl','Randal Schwartz','O\'Reilly','Perl','Not a bad start',29.95),('Programming Perl','Larry Wall','O\'Reilly','Perl','Usually considered THE reference',44.95),('Effective Perl Programming','Joseph Hall','Addison Wesley','Perl','Great tips, not for beginners',34.95),('XML: A Manager\'s Guide','Kevin Dick','Addison Wesley','XML','Explains the basic XML principles',79.91),('Exploring Java','Josh Peck','Addison Wesley','Java','This book covers topics like Beans and RMI',27.96),('Java Language Reference','Mark Grand','Addison Wesley','Java','Java programming language in detail',6.95),('Programming Scala','Dean Wampler','O\'Reilly','Scala','Ideal for beginning and advanced developers',42.72),('Perl Pocket Reference','Johan Vromans','O\'Reilly','Perl','Complete overview of the Perl programming language',11.97),('XQuery','Michael Brundage','Addison Wesley','XML','The XML Query Language',59.99);
/*!40000 ALTER TABLE `books` ENABLE KEYS */;
UNLOCK TABLES;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_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 */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-03-13 10:15:03