Giter Club home page Giter Club logo

sql-exapmle's Introduction

/*!40101 SET NAMES utf8 */;

/!40101 SET SQL_MODE=''/;

/*!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 /!32312 IF NOT EXISTS/employeeManagement /*!40100 DEFAULT CHARACTER SET utf8mb4 */;

USE employeeManagement;

/*Table structure for table Employee */

DROP TABLE IF EXISTS Employee;

CREATE TABLE Employee ( EmployeeID int(11) NOT NULL, FirstName varchar(50) NOT NULL, LastName varchar(50) NOT NULL, City varchar(50) NOT NULL, State varchar(50) DEFAULT NULL, PRIMARY KEY (EmployeeID) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

/*Data for the table employee */

insert into Employee(EmployeeID,FirstName,LastName,City,State) values

(10330,'John','John','NY','NY'), (10449,'Sarah','Lebat','Melbourne','Bourke'), (11012,'Jon','Dallas','NY','NY'), (11013,'Gheorhe','Honey','NY','NY'), (11014,'Anton','Savar','NY','NY');

/*Table structure for table Payments */

DROP TABLE IF EXISTS Payments;

CREATE TABLE Payments ( EmployeeID int(11) NOT NULL, SalaryDate varchar(50) NOT NULL, MounthID int(11) NOT NULL, Value int(11) NOT NULL, CONSTRAINT Payments_ibfk_1 FOREIGN KEY (EmployeeID) REFERENCES Employee (EmployeeID) ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4;

/*Data for the table Payments */

insert into Payments(EmployeeID,SalaryDate,MounthID,Value) values

(10330,'June',6,128), (10330,'July',7,158), (10330,'August',8,133), (10330,'September',9,120), (10330,'October',10,188), (10330,'November',11,160), (10330,'December',12,105), (10449,'September',9,150), (10449,'October',10,158), (10449,'November',11,160), (10449,'December',12,180);

sql-exapmle's People

Contributors

0muratacar avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.