CSE Students: Please do not log in yet.

Slides:



Advertisements
Similar presentations
Using a database to organize information
Advertisements

Jeopardy Objects Navigation Buttons True/False Parts of a Report Vocabulary Q $100 Q $200 Q $300 Q $400 Q $500 Q $100 Q $200 Q $300 Q $400 Q $500 Final.
© 2008 The McGraw-Hill Companies, Inc. All rights reserved. ACCESS 2007 M I C R O S O F T ® THE PROFESSIONAL APPROACH S E R I E S Lesson 10 – Designing.
Mark Dixon Page 1 05 – Database Design: Sub-forms.
Mark Dixon Page 1 04 – Database Design: Forms. Mark Dixon Page 2 Session Aims & Objectives Aims –To allow easier data entry using forms Objectives, by.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
Introduction to Access. What is Access? Database tool Creates a database Good data query (lookup and analysis) ability Good entry forms Good reports Multi-user.
1 CSE Students: Please do not log in yet. Check-in with Brian in the back. Review Days 3 and 4 in the book. Others: Please save your work and logout.
U:/msu/course/cse/103 Day 16, Slide 1 CSE 103 Day 16 Students: Read Day 10. If you are logged in, add records to your contacts.
U:/msu/course/cse/103 Day 23, Slide 1 Review of Day 22 What query did you use to search for an actor by name? –Return matches.
Chapter 2 Querying a Database
U:/msu/course/cse/103 Day 25, Slide 1 Back-up PHP Files If you have not yet passed the 3.0 BT, make back-up copies of ALL.
Chapter 2 Querying a Database MICROSOFT ACCESS 2010.
Microsoft Access 2010 Chapter 7 Using SQL. Change the font or font size for SQL queries Create SQL queries Include fields in SQL queries Include simple.
U:/msu/course/cse/103 Day 10, Slide 1 CSE 103 Students: Your BTs have been graded. See Erica or Jo with questions or stay.
U:/msu/course/cse/103 Day 04, Slide 1 CSE students: Do not log in yet. Computers are SLOW today! Review days 13.
McGraw-Hill Technology Education © 2004 by the McGraw-Hill Companies, Inc. All rights reserved. Office Access 2003 Lab 3 Analyzing Data and Creating Reports.
Building and Using Queries. Objectives Use the Query WizardUse the Query Wizard Work with data in a queryWork with data in a query Use Query Design ViewUse.
Database Queries. Queries Queries are questions used to retrieve information from a database. Contain criteria to specify the records and fields to be.
Microsoft Access 2010 Building and Using Queries.
Analyzing Data For Effective Decision Making Chapter 3.
Lesson 2.  To help ensure accurate data, rules that check entries against specified values can be applied to a field. A validation rule is applied to.
U:/msu/course/cse/103 Day 07, Slide 1 Day 15 Review What datatype would be an appropriate choice for: –A cell phone number.
Chapter 17 Creating a Database.
U:/msu/course/cse/103 Day 06, Slide 1 CSE students: Do not log in yet. Review Day 6 in your textbook. Think about.
Microsoft Access Illustrated Unit B: Building and Using Queries.
Day 13, Slide 1 U:/msu/course/cse/103 CSE 103 Students: Review INNER and OUTER JOINs, Subqueries. Others: Please save your.
Microsoft Office Illustrated Introductory, Premium Edition Using Tables and Queries.
1 CSE 103 Section 002: M/W 10:20am-12:10pm 216 Berkey Hall Section 004: T/R 10:20am-12:10pm 1210 Anthony Hall.
Microsoft Office XP Illustrated Introductory, Enhanced Tables and Queries Using.
ACCESS Part 2. OBJECTIVE  Use the Query Wizard.  Work with data in a query.  Use Query Design View.  Sort and find data.  Filter data Apply AND criteria.
Microsoft Office 2003: Advanced 1 ADVANCED MICROSOFT ACCESS Lesson 10 – Analyzing Data.
INTRODUCTION TO QUERIES William Klingelsmith. Reminders MyITLab Lesson C due 10/22 Homework #4 (Nielson TV Problem) due 10/26 Last day to drop is also.
Microsoft Office 2010 for Medical Professionals - Illustrated Access 2010 Unit B: Building and Using Queries.
Microsoft Office 2013: In Practice Chapter 3 Creating and Using Queries Copyright © 2014 by The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin.
INTRODUCTION TO QUERIES William Klingelsmith. Reminders MyITLab Lesson C due 10/22 Homework #4 (Nielson TV Problem) due 10/26 Last day to drop is also.
Introduction to a Database Defining a database Database window in Access The six items in window: Tables, Queries Forms, Reports, Macros, Modules.
U:/msu/course/cse/103 Day 18, Slide 1 CSE 103 Day 18 If you are not enrolled in CSE 103, please save and log out by 10:10.
Microsoft Access 2000 Presentation 5 Creating Databases Part IV (Creating Queries)
U:/msu/course/cse/103 Day 08, Slide 1 CSE 103 Students: –Review days 7 and 8 if you need to go over relationships and INNER.
DAY 18: MICROSOFT ACCESS – CHAPTER 3 CONTD. Akhila Kondai October 21, 2013.
U:/msu/course/cse/103 Day 12, Slide 1 CSE 103 Students: Read Day 18 and learn about subqueries Others: Please save your.
Querying Databases A query is a program that allows us to VIEW the data or operate on the data Several types of queries –Select query –Merge query –Summary.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Access Project 2 Querying a Database Using the Select Query Window.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 2 ® Building Queries.
Lesson 4: Querying a Database. 2 Learning Objectives After studying this lesson, you will be able to:  Create, save, and run select queries  Set query.
U:/msu/course/cse/103 Day 08, Slide 1 Debrief Homework What problems arose in trying to import the data from Classical_Music.xls?
Relational Databases Today we will look at: Different ways of searching a database Creating queries Aggregate Queries More complex queries involving different.
N5 Databases Notes Information Systems Design & Development: Structures and links.
SCC P2P – Collaboration Made Easy Contract Management training
Creating a database table
Microsoft Office Illustrated Introductory, Windows Vista Edition
Practical Office 2007 Chapter 10
Objectives Create an action query to create a table
Querying a Database Using the Select Query Window
Database application MySQL Database and PhpMyAdmin
Building and Using Queries
Microsoft Office Access 2003
Microsoft Office Access 2003
Introduction to Database Programs
Nagendra Vemulapalli Access chapters 3&5 Nagendra Vemulapalli 1/18/2019.
Access: Queries IV Participation Project
Access: Queries II Participation Project
Debrief Homework Import data from the text file CanadianUniversities06.txt into a temporary table. What is the primary key for this table? Construct an.
Spreadsheets, Modelling & Databases
Nagendra Vemulapalli Access chapters 3&6 Nagendra Vemulapalli
Introduction to Database Programs
Microsoft Office Illustrated Introductory, Windows XP Edition
Using the Bartlett Diagnostic Sample Submission Program (Plants)
Digital Story Telling with Frames
Presentation transcript:

CSE 103 103 Students: Please do not log in yet. Check-in with Brian/Erica in the back. Review Days 3 and 4 in the book. Others: Please save your work and logout. Class begins at 10:20.

Review Questions What does the LIKE operator do? What are wildcards and how do they relate to LIKE? If you want to find an empty field in a record, what keyword would you need? What is meant by “filtering”? http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Sample Problem from Homework TABLE: myTableOfMovies FIELDS: Title [Text] Length [Number, in minutes] MPAA_Rating [Text: one of {G, PG, PG13, R, NC17}] Director [Text] Producer [Text] Writer [Text] Seen [Yes/No] What SQL could be used to find all the movies directed by Steven Spielberg that are at least ninety minutes long but no longer than two hours? http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Queries in musicdemo.mdb Question: Which artists are musical groups? Under OBJECTS, select Queries, then the NEW button, and then Design View.  Then ADD the tbl_Artists table, and CLOSE the Show Table window. Enter the criterion in the Criteria row of the Design Grid. (In Access, =Yes and =True both work for Yes/No fields; =1 only sometimes works) Save your query as qry_day03_groups http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Queries Exercise: Design View Construct queries that: List only the track title, album ID and duration of the tracks in the collection [>376] (qry_day03_tracklength) List titles of all albums produced in 1996 [>4] (qry_day03_1996_albums) List the track titles and associated album IDs in the collection that run over 4 minutes [>64] (qry_day03_long_tracks) Compare the SQL generated by Access to that we created on day 2 http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Sorting a Query See the link Sorting Records in a Query on the Classwork page to see the Access Help entry Make queries that List the tracks from shortest to longest List the albums from newest to oldest List the albums from newest to oldest and further ordered by number of tracks You may optionally save them with names of your choice (following the qry_day03_ scheme). http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Complex Criteria Queries Boolean Operators AND / OR in Design View Same line: AND; different lines: OR Can mix and match: all ANDs grouped together, sets of ANDs are ORed NOT Type in criteria field, use NOT(condition) Other Criteria Keywords LIKE (and wildcard * in Access) IS NULL / IS NOT NULL BETWEEN … AND … Type these directly into the criteria field in Design View http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Complex Criteria Queries Construct queries which List albums released after 1990 but prior to 2000 [18] (qry_day03_90s_albums)  List the digital tracks in the collection, ordered by filesize, which have Christmas in the title and which are over 3 MB [10] (qry_day03_large_xmas_digtracks)  List the albums (and years) which have no label data [7] (qry_day03_albums_no_labels) http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103

Homework Read Days 13 and 15 in your textbook We will be covering Mail Merge with Access and calculated fields with aliases Be sure you understand queries in SQL and design views, take extra time to review if needed Fill out the Helproom Survey See link on the Classwork page for today http://www.cse.msu.edu/~cse103 U:/msu/course/cse/103