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

CREATE DATABASE IF NOT EXISTS W3schools

asdfsadfsd

Uploaded by

santo nino
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
39 views4 pages

CREATE DATABASE IF NOT EXISTS W3schools

asdfsadfsd

Uploaded by

santo nino
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 4

CREATE DATABASE IF NOT EXISTS w3schools

CREATE TABLE categories (

CategoryID int(11) NOT NULL,

CategoryName varchar(255) DEFAULT NULL,

Description varchar(255) DEFAULT NULL

INSERT INTO categories (CategoryID, CategoryName, Description) VALUES

(1, 'Beverages', 'Soft drinks, coffees, teas, beers, and ales'),

(2, 'Condiments', 'Sweet and savory sauces, relishes, spreads, and seasonings'),

(3, 'Confections', 'Desserts, candies, and sweet breads'),

(4, 'Dairy Products', 'Cheeses'),

(5, 'Grains/Cereals', 'Breads, crackers, pasta, and cereal'),

(6, 'Meat/Poultry', 'Prepared meats'),

(7, 'Produce', 'Dried fruit and bean curd'),

(8, 'Seafood', 'Seaweed and fish');

CREATE TABLE customers (

CustomerID int(11) NOT NULL,

CustomerName varchar(255) DEFAULT NULL,

ContactName varchar(255) DEFAULT NULL,

Address varchar(255) DEFAULT NULL,

City varchar(255) DEFAULT NULL,

PostalCode varchar(255) DEFAULT NULL,


Country varchar(255) DEFAULT NULL

INSERT INTO customers (CustomerID, CustomerName, ContactName, Address, City, PostalCode,


Country) VALUES

(1, 'Alfreds Futterkiste', 'Maria Anders', 'Obere Str. 57', 'Berlin', '12209', 'Germany'),

(2, 'Ana Trujillo Emparedados y helados', 'Ana Trujillo', 'Avda. de la Constitución 2222', 'México D.F.',
'05021', 'Mexico'),

(3, 'Antonio Moreno Taquería', 'Antonio Moreno', 'Mataderos 2312', 'México D.F.', '05023', 'Mexico'),

(4, 'Around the Horn', 'Thomas Hardy', '120 Hanover Sq.', 'London', 'WA1 1DP', 'UK'),

(5, 'Berglunds snabbköp', 'Christina Berglund', 'Berguvsvägen 8', 'Luleå', 'S-958 22', 'Sweden'),

(6, 'Blauer See Delikatessen', 'Hanna Moos', 'Forsterstr. 57', 'Mannheim', '68306', 'Germany'),

(7, 'Blondel père et fils', 'Frédérique Citeaux', '24, place Kléber', 'Strasbourg', '67000', 'France'),

(8, 'Bólido Comidas preparadas', 'Martín Sommer', 'C/ Araquil, 67', 'Madrid', '28023', 'Spain'),

(9, 'Bon app\'', 'Laurence Lebihans', '12, rue des Bouchers', 'Marseille', '13008', 'France'),

(10, 'Bottom-Dollar Marketse', 'Elizabeth Lincoln', '23 Tsawassen Blvd.', 'Tsawassen', 'T2F 8M4',
'Canada');

CREATE TABLE employees (

EmployeeID int(11) NOT NULL,

LastName varchar(255) DEFAULT NULL,

FirstName varchar(255) DEFAULT NULL,

BirthDate date DEFAULT NULL,

Photo varchar(255) DEFAULT NULL,

Notes text

INSERT INTO employees (EmployeeID, LastName, FirstName, BirthDate, Photo, Notes) VALUES
(1, 'Davolio', 'Nancy', '1968-12-08', 'EmpID1.pic', 'Education includes a BA in psychology from Colorado
State University. She also completed (The Art of the Cold Call). Nancy is a member of \'Toastmasters
International\'.'),

(2, 'Fuller', 'Andrew', '1952-02-19', 'EmpID2.pic', 'Andrew received his BTS commercial and a Ph.D. in
international marketing from the University of Dallas. He is fluent in French and Italian and reads
German. He joined the company as a sales representative, was promoted to sales manager and was
then named vice president of sales. Andrew is a member of the Sales Management Roundtable, the
Seattle Chamber of Commerce, and the Pacific Rim Importers Association.'),

(3, 'Leverling', 'Janet', '1963-08-30', 'EmpID3.pic', 'Janet has a BS degree in chemistry from Boston
College). She has also completed a certificate program in food retailing management. Janet was hired as
a sales associate and was promoted to sales representative.'),

(4, 'Peacock', 'Margaret', '1958-09-19', 'EmpID4.pic', 'Margaret holds a BA in English literature from
Concordia College and an MA from the American Institute of Culinary Arts. She was temporarily assigned
to the London office before returning to her permanent post in Seattle.');

CREATE TABLE orders (

OrderID int(11) NOT NULL,

CustomerID int(11) DEFAULT NULL,

EmployeeID int(11) DEFAULT NULL,

OrderDate date DEFAULT NULL,

ShipperID int(11) DEFAULT NULL

INSERT INTO orders (OrderID, CustomerID, EmployeeID, OrderDate, ShipperID) VALUES

(10248, 90, 5, '1996-07-04', 3),

(10249, 81, 6, '1996-07-05', 1),

(10250, 34, 4, '1996-07-08', 2),

(10251, 84, 3, '1996-07-08', 1),

(10252, 76, 4, '1996-07-09', 2),


(10253, 34, 3, '1996-07-10', 2),

(10254, 14, 5, '1996-07-11', 2),

(10255, 68, 9, '1996-07-12', 3),

(10256, 88, 3, '1996-07-15', 2),

(10257, 35, 4, '1996-07-16', 3),

(10258, 20, 1, '1996-07-17', 1),

(10259, 13, 4, '1996-07-18', 3),

(10260, 55, 4, '1996-07-19', 1),

(10261, 61, 4, '1996-07-19', 2),

(10262, 65, 8, '1996-07-22', 3),

(10263, 20, 9, '1996-07-23', 3),

(10264, 24, 6, '1996-07-24', 3),

(10265, 7, 2, '1996-07-25', 1),

(10266, 87, 3, '1996-07-26', 3);

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy