Lab week 10 Aggregates and sub-queries And assignment details.

Slides:



Advertisements
Similar presentations
Information Systems Technology Ross Malaga B Copyright © 2005 Prentice Hall, Inc. B-1 WORKING WITH DATABASES.
Advertisements

Microsoft® Access® 2010 Training
Relationships Relational Database. Identifying Entities… In the previous tutorial you learnt about identifying entities in a flat file database. Also.
Microsoft SQL Server 2008 From the Program menu choose: Microsoft SQL Server 2008 R2  SQL Server Management Studio. You may see a window indicating the.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2010 Version) Implementing.
Introduction to SQL Mike Burr
How to Submit an Assignment after the Due Date. Click on “Courses” Tab.
Concepts of Database Management Seventh Edition
Access - Project 1 l What Is a Database? –A Collection of Data –Organized in a manner to allow: »Access »Retrieval »Use of That Data.
ISP 121 Access Normalization and Relationships. Normalization Say we’re operating a pet day-care and we need to keep information on our pets/customers.
Using Rational Rose Creating an Activity Diagram Dr. Neal CIS 480.
Mgt 240 Lecture MS Excel and Access: Introduction to Databases September 23, 2004.
Extended Learning Module J (Office 2007 Version) Implementing a Database with Microsoft Access McGraw-Hill/Irwin Copyright © 2010 by the McGraw-Hill Companies,
Creating a Blank Database 1. Open up Microsoft Access 2. Click on Blank document button 3. On the right panel, Specify the location for saving your database.
Rational Rose Overview Diagrams, Directory Structure, Working with Rose.
Databases and Database Management Systems
Using ERWin to model your data Supplied by Computer Associates as part of AllFusion.
Tutorial 5 Multi-table queries. Tutorial 5 objectives Displaying Data from Multiple Tables –[ ]Write SELECT statements to access data from more than one.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Using ER/Studio.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
PLP Guide1 Training Guide for Inzalo PLP Management.
Entity Relationship Diagrams
Web Technologies Website Development Trade & Industrial Education
Importing your Own Data To display in GIS Lab 4a: (Table Join) Mapping By State, County, or Nation.
Data-mining & Data As we used Excel that has capability to analyze data to find important information, the data-mining helps us to extract information.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
® IBM Software Group © 2006 IBM Corporation Programmatically Rendering and Hiding JSF Controls This section describes how to hide and show JSF controls.
MS Access Tour Sesión # 6. MS Access Tour Database Management System (DBMS): An application software that allows users to create, manipulate, and change.
Management Information Systems MS Access MS Access is an application software that facilitates us to create Database Management Systems (DBMS)
Normalization (Codd, 1972) Practical Information For Real World Database Design.
ISM 4212 Lab Creating DB Tables 02 copyright Lars Paul Linden 2007.
What we’ve learnt Doc 5.69 Doc 5.70 Section 1-3. A simple database Related objects Tables hold the data Forms, reports, queries to access the data.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T7 PROBLEM SOLVING USING ACCESS.
McGraw-Hill/Irwin © The McGraw-Hill Companies, All Rights Reserved TECHNOLOGY PLUG-IN T6 Basic Skills Using Access.
McGraw-Hill/Irwin ©2005 The McGraw-Hill Companies, All rights reserved ©2005 The McGraw-Hill Companies, All rights reserved McGraw-Hill/Irwin.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
An Entity Relationship (ER) Diagram is a graphic that shows the interrelationship between entities in a database.
SE305 Database System Technology 23/10/2014 Quiz-2.
CSC 240 (Blum)1 Introduction to Access CSC 240 (Blum)2 Click on the Access desktop icon or go to Start/Programs/Microsoft Office/Microsoft Office.
 Taber Shimono Lilyana Gross Andrea Nelson Chelsea Ball Eric Svendsen Shefflette.
Planning & Creating a Database By Ms. Naira Microsoft Access.
T7-1 LEARNING OUTCOMES – ACCESS PROBLEM SOLVING 1.Describe the process of using the Simple Query Wizard using Access 2.Describe the process of using the.
Week 3 Lab1 Review on Database Dina A. Said
Query Lab CSC 240 Blum1. Log on to PMA (PHPMyAdmin) and click on the Northwind database CSC 240 Blum2.
1 Chapter 10 – Database Management 10.1 An Introduction to Databases 10.2 Editing and Designing Databases.
Enterprise manager Using the Enterprise manager. Purpose of the Enterprise Manager To design tables To populate / update tables To draw diagrams of tables.
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module J (Office 2007 Version) Implementing.
Howard Paul. Sequential Access Index Files and Data File Random Access.
Access Module Implementing a Database with Microsoft Access A Great Module on Your CD.
Creating a database - I clicked on blank database and am saving it as books10.mdb. For more information see the practice example under week #1. I am going.
Tutorial on E-R Diagrams 1.Learn basic terminology and symbols –See next four slides; refer to as needed in steps 2-4 below 2.Learn the basics of E-R diagramming.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T7: Problem Solving Using Access 2007 Business Driven Technology.
Microsoft Access CS 110 Fall Entity Relationship Model Entities Entities Principal data object about which information is to be collectedPrincipal.
Visual Database Creation with MySQL Workbench 도시정보시스템 설계
For more course tutorials visit CIS 336 All iLabs Week 1 to Week 7 Devry University CIS 336: All iLabs Week 1 to Week 7: Devry University.
Page 1 GAP Container Loading By MIS Department. Page 2 Gap Distribution Center Process The Factory does not ship the units to the Distribution Center.
Database Constraints Ashima Wadhwa.
Plug-In T7: Problem Solving Using Access 2007
Using Rational Rose Examples Dr. Neal CIS 480.
Review of Main Database Features
Databases and Information Management
5.02 Understand database queries, forms, and reports used in business.
Databases and Information Management
How to Submit Google Docs to the Homework Drop Box
Concept of grouping SELECT statement have:
Access Click on file and then you want a new database.
Presentation transcript:

Lab week 10 Aggregates and sub-queries And assignment details

Use North wind

1 Building joined queries Select the product name and the company name of the supplier for each product. Select the supplier name, the product name and the order Id for each order detail. (Note the number of rows) Select the supplier name, the product name, the order id and the customer’s company name. Omit the order id and the product Id from the previous query and add the word ‘distinct’ after the select clause.

2 Using sub queries to negate The last query on the previous slide shows us all the suppliers and the customers to which they supply. List all the suppliers who supply to the company named ‘Chop-suey Chinese’ –How many joins do you need? Using a sub-query, list all the suppliers who DON’T supply to the company named ‘Chop- suey Chinese’ –Do you need as many joins in the sub-query? –Can you make the query any shorter than it is now?

Queries How many shippers are there in the Northwind database that have never shipped any orders? List the name of each customer’s company and the total amount they have spent with us, in descending amount spent order. List the name of each customer’s company and the total amount they have spent with us, for all companies that have spent more than the average amount with us.

More queries List all orders that have more than the average number of order details. List sum of the cost of all order details, summed over the product id and over the orderid.

Assignment details Look up the case study that you were given in Software Engineering. Design an Entity Relationship diagram to hold all of the data required for your system. This assignment is due in on Tuesday, 13 th December Use ERWin to document your tables.

ERWin Program files > CA Associates > AllFusion > ERWin Data Modeler > ERWin

Starting ERWin

Pick your model type…

Blank model

To add… Entities –Right click on the entity icon in the browser The browser is the left panel on the screen

To add attributes… Expand the entity icon. Right click on the attributes icon and add an attribute. Right click on the attribute, to open the properties. –Here, primary keys can be set and data types can be allocated.

Adding foreign keys

How to Open the ‘parent relationship’ from the course. Choose the student as child entity. –Note, if you tick ‘identifying’, the key will become part of the primary key of the child entity.

Result of ‘identifying’

Non-identifying…

To get ‘physical’… Drop down the ‘logical’ box to get ‘physical’.