Database menggunakan CASE

<div dir="ltr" style="text-align: left;" trbidi="on">
-- phpMyAdmin SQL Dump
-- version 3.2.0.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: May 31, 2014 at 11:47 AM
-- Server version: 5.1.37
-- PHP Version: 5.3.0

SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";

--
-- Database: `northwinds`
--

-- --------------------------------------------------------

--
-- Table structure for table `customer`
--

CREATE TABLE IF NOT EXISTS `customer` (
  `CustomerID` varchar(10) DEFAULT NULL,
  `CompanyName` varchar(100) DEFAULT NULL,
  `Country` varchar(60) DEFAULT NULL
) ENGINE=MyISAM DEFAULT CHARSET=latin1;

--
-- Dumping data for table `customer`
--

INSERT INTO `customer` (`CustomerID`, `CompanyName`, `Country`) VALUES
('ALFKI', 'Alfreds Futterkiste', 'Germany'),
('ANATR', 'Ana Trujillo Emparedados y helados', 'Mexico'),
('ANTON', 'Antonio Moreno Taqueria', 'Mexico'),
('AROUT', 'Around the Horn', 'UK'),
('BERGS', 'Berglunds snabbkop', 'Swedan'),
('BLAUS', 'Blauer See Delikatessan', 'Germany'),
('BOTTM', 'Bottom-Dollar Markets', 'Canada'),
('BSBEV', 'Bs Beverages', 'UK'),
('CACTU', 'Cactus Comidas para Ilever', 'Argentina'),
('DRACD', 'Drachenblut Delikatessan', 'Germany'),
('DUMON', 'Du monde entier', 'France'),
('EASTC', 'Eastern Connection', 'UK'),
('GOURL', 'Gourmet Lanchonetes', 'Brazil'),
('GREAL', 'Great Lakes Food Market', 'USA');

-- --------------------------------------------------------

--
-- Table structure for table `product`
--

CREATE TABLE IF NOT EXISTS `product` (
  `Product_ID` int(5) NOT NULL AUTO_INCREMENT,
  `Product_Name` varchar(100) DEFAULT NULL,
  `UnitsInStock` int(10) DEFAULT NULL,
  PRIMARY KEY (`Product_ID`)
) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=16 ;

--
-- Dumping data for table `product`
--

INSERT INTO `product` (`Product_ID`, `Product_Name`, `UnitsInStock`) VALUES
(1, 'Chai', 39),
(2, 'Chang', 17),
(3, 'Aniseed Syrup', 13),
(4, 'Chef Antons Cajun Seasoning', 53),
(5, 'Chef Antons Gumbo Mix', 0),
(6, 'Grandmas Boysenberry Spread', 120),
(7, 'Uncle Bobs Organic Dried Pears', 15),
(8, 'Northwoods Cranberry Sauce', 6),
(9, 'Mishi Kobe Niku', 29),
(10, 'Ikura', 31),
(11, 'Queso Cabrales', 22),
(12, 'Queso Manchego La Pastora', 86),
(13, 'Konbu', 24),
(14, 'Tofu', 35),
(15, 'Genen Shouyu', 39);



Download : Northwind.doc
                    Nortwind.rar

  • Digg
  • Del.icio.us
  • StumbleUpon
  • Reddit
  • RSS

0 komentar:

Posting Komentar