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.

Slides:



Advertisements
Similar presentations
Relational Database Systems Higher Information Systems Advanced Implementation in MySQL/PHP.
Advertisements

Organisation Of Data (1) Database Theory
Database Ed Milne. Theme An introduction to databases Using the Base component of LibreOffice LibreOffice.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
© 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.
Anatomy of the Keyword Search Results Screen. A keyword search will result in.
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.
Searching TAL Online Developed by Northern Lights Internet Solutions Ltd. Advanced Searching.
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.
Chapter 7 Data Management. Agenda Database concept Import data Input and edit data Sort data Function Filter data Create range name Calculate subtotal.
Introduction to Oracle9i: SQL1 Selected Single-Row Functions.
Information & Library Services SwetsWise User Guide Emma Crowley Senior Academic Services Librarian
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.
Data Types and Field Properties 5.01 Understand database tables used in business.
1 Agenda Views Pages Web Parts Navigation Office Wrap-Up.
Data Types and Field Properties 5.01 Understand database tables used in business.
PubMed/How to Search, Display, Download & (module 4.1)
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
Querying and Sorting IT Key Ideas, Dynamic Database Systems, 2002 Chapter 3.
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.
Managing Business Data Lecture 8. Summary of Previous Lecture File Systems  Purpose and Limitations Database systems  Definition, advantages over file.
Session 5: Working with MySQL iNET Academy Open Source Web Development.
BASIC QUERY CLASS N.C. State University Financials Reporting.
Introduction to Access By Mary Ann Chaney and Alicia Harkleroad.
Importing Data Text Data Parsing Scrubbing Data June 21, 2012.
ASP.NET Programming with C# and SQL Server First Edition
FUNCTIONS AND STORED PROCEDURES & FUNCTIONS AND PROTECTING A DB AND PHP (Chapters 9, 15, 18)
U:/msu/course/cse/103 Day 04, Slide 1 CSE students: Do not log in yet. Computers are SLOW today! Review days 13.
To enhance learning, service, and research through an advanced information technology environment. Our Mission:To enhance learning, service,and research.
10 May Microsoft Access 2010 Relational databases’ program Part of the Microsoft Office package Administer relational database Update database through.
CHAPTER:14 Simple Queries in SQL Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Using SAM 2013 in CGS1060 University of Central Florida.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
OARE Module 5A: Scopus (Elsevier). Table of Contents About Scopus (Elsevier) Using Scopus Search Page Results/Refine Search Pages Download, PDF, Export,
Structure Query Language SQL. Database Terminology Employee ID 3 3 Last name Small First name Tony 5 5 Smith James
Key Applications Module Lesson 21 — Access Essentials
Concepts of Database Management Seventh Edition
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.
Day 13, Slide 1 U:/msu/course/cse/103 CSE 103 Students: Review INNER and OUTER JOINs, Subqueries. Others: Please save your.
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.
Enhancing Forms with OLE Fields, Hyperlinks, and Subforms – Project 5.
Database Management Systems.  Database management system (DBMS)  Store large collections of data  Organize the data  Becomes a data storage system.
Database Applications – Microsoft Access Lesson 4 Working with Queries 36 Slides in Presentation.
ACCESS (CHAPTER 2-3 continued) Naman Kohli October 16,
1 Data Manipulation (with SQL) HRP223 – 2010 October 13, 2010 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Advanced SELECT Queries CS 146. Review: Retrieving Data From a Single Table Syntax: Limitation: Retrieves "raw" data Note the default formats… SELECT.
When I want to work with SQL, I start off as if I am doing a regular query.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Aliya Farheen October 29,2015.
U:/msu/course/cse/103 Day 21, Slide 1 CSE 103 Makeups –If you didn’t take one over the weekend, take one TUESDAY or WEDNESDAY!
1 Copyright © Oracle Corporation, All rights reserved. Writing Basic SQL SELECT Statements.
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.
Transportation Agenda 77. Transportation About Columns Each file in a library and item in a list has properties For example, a Word document can have.
U:/msu/course/cse/103 Day 12, Slide 1 CSE 103 Students: Read Day 18 and learn about subqueries Others: Please save your.
Microsoft Office 2013 Try It! Chapter 4 Storing Data in Access.
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?
1 Data Manipulation (with SQL) HRP223 – 2009 October 12, 2009 Copyright © Leland Stanford Junior University. All rights reserved. Warning: This.
Unit-8 Introduction Of MySql. Types of table in PHP MySQL supports various of table types or storage engines to allow you to optimize your database. The.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
MICROSOFT ACCESS – CHAPTER 3 CONTD. Sravanthi Lakkimsetty Mar 09, 2016.
Day 22, Slide 1 CSE 103 Day 22 Non-students: Please logout by 10:12. Students:
Tarik Booker CS 122. What we will cover… Tables (review) SELECT statement DISTINCT, Calculated Columns FROM Single tables (for now…) WHERE Date clauses,
N5 Databases Notes Information Systems Design & Development: Structures and links.
CSE 103 Day 20 Jo is out today; I’m Carl
Database application MySQL Database and PhpMyAdmin
CSE Students: Please do not log in yet.
Nagendra Vemulapalli Access chapters 3&5 Nagendra Vemulapalli 1/18/2019.
Computer Science Projects Database Theory / Prototypes
Presentation transcript:

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 after class. Makeup sign-up is now available. Others: Please save your work and log out ASAP.

U:/msu/course/cse/103 Day 10, Slide 2 Review: Calculated Fields and Aliases What are calculated fields? Calculated Fields in Access default to Expr1, Expr2, etc. when displayed What is an SQL alias and how can we use it with calculated fields? What SQL keyword is necessary in order to designate an alias? What do we have to remember when using table aliases?

U:/msu/course/cse/103 Day 10, Slide 3 Intro to Functions What are functions (in general)? What are some examples? We will deal mainly with functions in MySQL, rather than in Access. MySQL functions are similar to the SQL “standard”, and good HELP files are available. Access functions differ from those in most other systems, and have very little actual HELP for users. (Some of the HELP is actually Excel help and won’t even work in Access!)

U:/msu/course/cse/103 Day 10, Slide 4 Classes of Functions What are the main classes of functions? –String (for manipulating text) –Numeric (for mathematical operations) –Date/Time (for working with date and time fields) –Cast (for converting between data types) –Full-text search (useful if you have enormous text fields, like entire news or research articles) –Aggregate (we’ll cover these on Day 11) –Control (e.g., IF, CASE, IFNULL) –Other (e.g., encryption, information about database) We will cover String, Numeric, and Date/Time –Others are not used as often, much more advanced

U:/msu/course/cse/103 Day 10, Slide 5 String Functions “STRING” refers to a group of characters, like a word or a phrase (including spaces, punctuation) Text fields (char(X) and varchar(X) in MySQL) contain strings Examples of string functions: –obtain substrings (portions of a longer string) –calculate the length of a string –convert the case of a string –concatenate strings into one longer string See MySQL documentation for details (use the link on the navigation bar on CSE 103 page)

U:/msu/course/cse/103 Day 10, Slide 6 String Function Exercise Sort directors based on the length of their last name, longest first. Break ties by length of first name. Display full names and lengths. [290107, “Pedro”, “Sanchez”] –Notice the duplicate records? Why are those there? Use SELECT DISTINCT to fix this. [69236 (69787?)`] Create a listing of each movie from 2004 with a single field that contains the name of the movie with the rating behind it following a slash (e.g., The Lord of the Rings – The Fellowship of the Ring/PG-13). Sort the list alphabetically by movie title. [61, “30 Days of Night/Unrated”] A new language code scheme has been proposed – the first two letters and the last letter of each language will produce a 3-letter code. –Create a list of languages, old codes, and new codes [211] –See if this scheme will work – do conflicts exist? (Think about how to sort best to find conflicts. Could you write a query to look for conflicts?)

U:/msu/course/cse/103 Day 10, Slide 7 Date/Time Functions DMBSs store dates in a highly specialized format that allows for detailed manipulation. A common use for Date/Time functions is to extract various parts, such as month, day, hour, etc., from a single date/time field. There are also functions to calculate the difference between two dates and to get the current date/time. See MySQL documentation for details.

U:/msu/course/cse/103 Day 10, Slide 8 Date/Time Functions Exercise Which people in the database were born in July? [3402] Which people died on a Monday or Tuesday? [2670] Who was born on Valentine's day in any year? How old are they now? [129, oldest is 157!] –Think about this: If I was born in 1975 on February 14, how old am I now? –What if I just told you that I was born in ’75 and haven’t had my birthday yet this year?

U:/msu/course/cse/103 Day 10, Slide 9 Date/Time Functions Exercise, continued Find the current age, in order, of everyone who starred in The Ten Commandments (1956 version), as if they were still alive today. [22] This query should work correctly no matter what year it is when you run it. [oldest in ’05 is 143] –For simplicity, you can assume that everyone’s birthday has already occurred this year. –Remember that “A”, “An”, and “The” have been moved to the end of movie titles. Now modify your query to create a list of only the actors that are still living. [8]

U:/msu/course/cse/103 Day 10, Slide 10 Homework Check the HOMEWORK link from today’s Web page Finish queries from class There are problems that will involve using other classes of functions, so use the MySQL documentation link Read Day 16 in the textbook on Aggregate Functions