By Sean Boange.  This Database is modelled on the Computer Hardware Store MSY www.msy.com.au. At current they display the numerous products they sell.

Slides:



Advertisements
Similar presentations
Maine State Library Purchasing a Computer. Before Purchasing the Computer What are you going to use the computer for? Who in the house will also use the.
Advertisements

Practice for SQL and Constraints (Product-PC-Laptop-Printer)
IT Chapter 2 Part B CPU. The CPU is contained on a single integrated circuit called the microprocessor. Often referred to as the brains of a computer.
Introduction to Computer Hardware Dr. Steve Broskoske Misericordia University.
CPU Processor Speed Timeline Speed =.02 Mhz Year= 1972 Transistors= 3500 It takes 66, CPU’s to equal 1 i7.
Who Wants An A?. Put the following in order from smallest to largest A. gigabyte B. megabyte C. kilobyte D. terabyte.
Central Processing Unit IS – 221 PC Admin 2/26/2007 by Len Krygsman IV.
Central Processing Unit The CPU essentially functions as the brain of the computer.
Adapted from “Cooling Systems” – CTAE Information Technology Essentials PROFITT Curriculum.
Computer Hardware Components for Desktop
Hardware Fundamental Week 2 – Lesson 2. PCI-e 16x Video Card Bus connector type is PCI-e 16x DVI port VGA port S-Video GPU (Graphic Processing Unit) Video.
Build Your Own PC Arianto Gunawan CS 147 Fall 2004.
Q4’07 Desktop Competitive SKU Matrix Non-NDA Version.
 1  excellent value for your money, super power computer ! Powered by intel and AMD CPU 3 or 4 GB DDR and Big hard drive high build quality 2 years pick-up.
Kimmie Hiles.  Model : GIGABYTE GA-78LMT-S2P AMD 760 Motherboard - Micro ATX, Socket AM3+, AMD 760G Chipset, 1333MHz DDR3, SATA II (3Gb/s), RAID, 7.1-CH.
Digital Graphics and Computers. Hardware and Software Working with graphic images requires suitable hardware and software to produce the best results.
Computer Design Corby Milliron. Mother Board specs Model: Processor Socket Intel Processor Interface LGA1150 Form Factor ATX Processors Supported 4th.
How Computers Work The Four Basic Operations The Boot Process Hardware Components & Their Functions.
Basic Computer Structure and Knowledge Project Work.
Multi-Media Pre-Test Subjective Test Methodology Early Results NTIA/ITS.
Know the Computer Multimedia tools. Computer essentials.
Caveman arts By Trevor. Welcome to a world of hard drives and video cards. I am going to teach you how to buy the right parts to make your dream computer.
Activity 3 Creating queries with more user-defined criteria in the Design View In this activity, we are going to create several queries with more user-defined.
CS&E 1111 AcQueries Querying in Access Sorting data Aggregating Data Performing Calculations Objectives: Learn how to use the Access Query Design Tool.
| © 2006 Lenovo Processor roadmap R.Vodenicharov.
Computer Hardware Mr. Richard Orr Technology Teacher Bednarcik Jr. High School.
Introduction to Computers By: Najam Khan What we will learn about: Hardware: The term used to describe the physical parts of a computer. Ex. The box,
How Computers Work The Four Basic Operations The Boot Process
Hardware & Software The CPU & Memory.
MY PERSONAL COMPUTER Monica Sheffo. MOTHERBOARD  Model: Intel BOXDZ77GA-70K Intel Extreme Motherboard  Supported Processors: 2 nd generation Intel Core.
How to use a computer and not lose your mind
Buying/Building your own PC. Ryan Allen. Price  $500 or less  $1000-$2000  $2000+
Computer Build Analysis Number 1.  MSI 785GTM-E45 Motherboard  AMD 785G  Socket AM2+  M-ATX  DDR2  Dual Channel  PCIe  HDMI References:All product.
The Perfect Computer By: Nathan Bronnee. Interview Grandma: “I need a new computer, but I don’t know what to get.” Me: “Do you plan to surf the internet?”
Computer Basics Terminology - Take Notes. What is a computer? well, what is the technical definition A computer is a machine that changes information.
Computer Architecture Project
Building a Computer Total System Price: $ Brandon Collins 3/1/13 Pd.2.
Computer Architecture Final Project By: Alexander Deible.
Today’s Computers By Sharif Safdary. The right computer for you. Advantages to Laptops Advantages to Laptops Size Size Weight Weight Portability Portability.
Excellence Publication Co. Ltd. Volume Volume 1.
Building Computers. Nano Processor AMD Athlon II X Ghz AM3 CPU. $ GHz.
Hardware Devices Mainboard CPU RAM PSU (Case) Hardware Devices Monitor VGA Card HDD Keyboard Mouse.
Database Principles Autumn 2007 High Distinction Assignment REBEL Sport Online Author: Joseph Diver.
POWERING UP THE LAB! BUDGET PROPOSAL AND DETAILS The Free Thinker School Home of the Rams.
Learning Computer Concepts Lesson 1: Defining a Computer Lesson Objectives List types of computers Identify benefits of computers Describe how a computer.
1 Introduction to Computers Prof. Sokol Computer and Information Science Brooklyn College.
Henry Brady Computer Components Unit 2 – Computer Systems.
Calculator in a Box Co. Lead designer: Bradley Phelps.
Acer America Motherboards Fred Smith. Acer America Acer Inc is a Taiwanese multinational hardware and electronics corporation headquartered in Xizhi,
Introduction to Computers. What is a computer? An electronic device, operating under the control of instructions stored in its own memory unit, that can.
Intel Corporation LGA775 Socket Options Jim Rimpleman.
General Concepts of ICT. Be able to identify the main components of a general- purpose computer:  central processing unit (CPU)  main/internal memory.
Intel LGA775 Socket Nick Coleman B3 Mr. Pool Computer Hardware.
THE DATABASE OF MSY TECHNOLOGY PTY. LTD PRODUCT Ronald Diningrat High Distinction Assignment Autumn 2007.
Personal Computer (PC)  Computer advertisement specification Intel® Pentium 4 Processor at 3.06GHz with 512K cache 512MB DDR SDRAM 200GB ATA-100 Hard.
CASE(READ TO SEE IF THE CASE COMES WITH A POWER SUPPLY)
Order Database – ER Diagram
Random Access Memory (RAM)
Order Database – ER Diagram
Central Processing Units (CPU’s)
CS111 Computer Programming
SYSTEM UNIT.
Order Database – ER Diagram
Order Database – ER Diagram
Computer Selection - Hardware Components
HARDWARE SPECIFICATIONS.
Index Structure.
Order Database – ER Diagram
Purpose, functions and types of hardware including input, output, storage, processor and peripheral devices; definitions and examples; interaction between.
Processors Just the Basics.
Presentation transcript:

By Sean Boange

 This Database is modelled on the Computer Hardware Store MSY At current they display the numerous products they sell in an very inefficient PDF file (As seen on the next Slide). Basically My Database functions in two ways: It stores all the related details of the products in 3-4 Main Tables and it also demonstrates the function of customers to be able to purchase these products.

categoryid | categoryname | hardwaretypeid | Pentium 4 Socket 775pin M/B | | AMD Athlon64 754pin M/B | | AMD Athlon64 939pin M/B | | AMD AM2 940pin M/B | 01 (4 rows) hardwaretypeid | hardwaretypename | Motherboard 02 | CPU 03 | Memory 04 | Hard Disk Drive 05 | VGA Card 06 | DVD-ROM 07 | Flash Memory 08 | LCD Monitor 09 | Notebook Hard Disk (9 rows) Primary Key Foreign Keys

cartid | customerid A100 | 1000 A200 | 1000 (2 rows) productid | productname | 17inch Viewsonic VA703B-8ms | 17inch LG L1719S-SF-8ms (2 rows) cartid | cartitemid A100 | A100 | A200 | A200 | (4 rows) Primary Key Foreign Keys

 Description: Find all customers living in NSW.  Query :  Select FirstName, LastName, State from BOANGE_MSY_Customer where state='NSW';  Result: FirstNameLastName State SeanBoangeNSW TyronePetersNSW LaliSinghNSW ZeeshanYusufNSW 4 rows)

hardwaretypeid | categoryid | categoryname | hardwaretypename | 0201 | Intel Conroe (Core 2 Duo) | CPU 02 | 0202 | Intel Conroe (Core 2 Quad) | CPU 02 | 0203 | Intel Celeron D (3xx) | CPU 02 | 0204 | Intel P4 (5xx & 6xx) | CPU 02 | 0205 | Intel (D-8xx,D-9xx) Dual Core | CPU 02 | 0206 | AMD Sempron 940pin CPU | CPU 02 | 0207 | AMD Athlon64 AM2 940pin CPU | CPU 02 | 0208 | AMD 754 CPU | CPU (8 rows)  Description: Find all categories for CPU’s in the database.  Query:  SELECT * FROM boange_msy_category NATURAL JOIN boange_msy_hardwaretype Where hardwaretypename='CPU';  Result:

hardwaretypeid | categoryid | categoryname | hardwaretypename | 0201 | Intel Conroe (Core 2 Duo) | CPU 02 | 0202 | Intel Conroe (Core 2 Quad) | CPU 02 | 0203 | Intel Celeron D (3xx) | CPU 02 | 0204 | Intel P4 (5xx & 6xx) | CPU 02 | 0205 | Intel (D-8xx,D-9xx) Dual Core | CPU 02 | 0206 | AMD Sempron 940pin CPU | CPU 02 | 0207 | AMD Athlon64 AM2 940pin CPU | CPU 02 | 0208 | AMD 754 CPU | CPU (8 rows)  Description: Find all categories for CPU in the database using cross product.  Query:  SELECT * FROM BOANGE_MSY_Category, BOANGE_MSY_HardwareType WHERE boange_msy_category.hardwaretypeid = boange_msy_hardwaretype.hardwaretypeid AND hardwaretypename='CPU';  Result:

 Description: Find which categories that contain more than 5 products in each of them.  Query:  SELECT CategoryName, count(*) FROM boange_msy_category, boange_msy_product WHERE boange_msy_category.categoryID = boange_msy_product.ProductCategoryID GROUP BY CategoryName HAVING count(*) > 5;  Result: categorynamecount AMD AM2 940pin M/B 10 Pentium 4 Socket 775pin M/B 10 Intel Conroe (Core 2 Duo) 6 (3 rows)

 Description: Find the highest price product.  Query:  SELECT ProductID, ProductName, ProductPrice FROM boange_msy_product WHERE productprice >= all (SELECT productprice FROM boange_msy_product);  Result: ProductIDProductName|ProductPrice Q6600 (Core 2 Quad) (1 row)

 Description: Show all Products that have the same price as ‘512M Samsung DDR400’ ($50.00).  Query: Select T1.ProductName, T1.ProductPrice FROM BOANGE_MSY_Product T1, BOANGE_MSY_Product T2 WHERE T1.ProductPrice = T2.ProductPrice AND T2.ProductName = ‘512M Samsung DDR400’ AND T1.ProductName <> ‘512M Samsung DDR400’;  Result: ProductNameProductPrice 512M Hyundai DDR M Kingston DDR Pioneer SATA 18x 212D Beige50.00 (3 rows)

CONSTRAINT MSY_CartItemQty CHECK (CartItemQty > 0 ) CONSTRAINT MSY_CardType CHECK (CardType IN ('Visa','Mastercard','American Express','Diners Club')), CONSTRAINT MSY_CardExpiryDate CHECK (CardExpiryDate > 2006) CONSTRAINT MSY_CustomerPostcode CHECK (Postcode >=1000 and Postcode <= 9999) CONSTRAINT MSY_CategoryName_NotNull CHECK (CategoryName IS NOT NULL)

CONSTRAINT MSY_CategoryFK FOREIGN KEY (HardwareTypeID) REFERENCES BOANGE_MSY_HardwareType (HardwareTypeID) ON DELETE CASCADE ON UPDATE CASCADE, CONSTRAINT MSY_CartItemFK FOREIGN KEY (CartID) REFERENCES BOANGE_MSY_Cart(CartID) ON DELETE RESTRICT ON UPDATE CASCADE,

CREATE VIEW MthrBrdMem AS Select * From BOANGE_MSY_HardwareType natural join BOANGE_MSY_Category Where HardwareTypeName ='MotherBoard' OR HardwareTypeName ='Memory'; CREATE VIEW Select CategoryName, HardwareTypeName, From MthrBrdMem Where CategoryID=‘0101’ OR HardwareTypeName=‘Memory’ Order by HardwareTypeName; categorynamehardwaretypename Pentium 4 Socket 775pin M/BMotherboard DDR 2 Memory 512MBMemory DDR 2 Memory 1GBMemory DDR 400 Memory 512MBMemory DDR 400 Memory 1GBMemory SDRAM MemoryMemory (6 rows)

This Presentation was Sponsored By Sean Boange Pty Ltd