Querying.  Its about asking questions of the database in order to get some results  The are 4 different types of queries that we can run Different query.

Slides:



Advertisements
Similar presentations
Working with Tables 1 of 5. Working with Tables 2 of 5.
Advertisements

Microsoft Office Illustrated Fundamentals Unit K: Working with Data.
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
The TI-83 Plus Elementary Algebra Calculator Tutorial.
Some Introductory Programming 1. Structured Query Language (SQL) - used for queries. - a standard database product. 2. Visual Basic for Applications -
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
SQL Data Definition II Stanislava Armstrong 1SQL Data Definition II.
Word Processing. ► This is using a computer for:  Writing  EditingTEXT  Printing  Used to write letters, books, memos and produce posters etc.  A.
Create Forms Lesson 5. Software Orientation Creating Forms A form is a database object –enter, edit, or display data from a table or query Providing.
Affidavit for Enforcement Request FORM 20P
1Computer Sciences Department Princess Nourah bint Abdulrahman University.
Advanced Database Management System Lab no. 11. SQL Commands (for MySQL) –Update –Replace –Delete.
 SQL stands for Structured Query Language.  SQL lets you access and manipulate databases.  SQL is an ANSI (American National Standards Institute) standard.
 Mysql – popular open-source database management system  PHP usually works with Mysql for web- based database applications  LAMP applications—Web-based.
MS Access Database Connection. Database? A database is a program that stores data and records in a structured and queryable format. The tools that are.
Microsoft Access Get a green book. Page AC 2 Define Access Define database.
Credentials in Detail An ACEware Presentation Chuck HavlicekLauri Thompson.
Lecture6:Data Manipulation in SQL, Simple SQL queries Prepared by L. Nouf Almujally Ref. Chapter5 Lecture6 1.
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
PHP MySQL Introduction. MySQL is the most popular open-source database system. What is MySQL? MySQL is a database. The data in MySQL is stored in database.
MS-ACCESS BY SANGEETHA PARTHASARATHY Topics to be covered §Comparing Values in Selection Criteria §Calculating Values in a Query §Changing the appearance.
Microsoft Access You will need a pen/pencil.. What is Microsoft Access? Access is a database management system.  Create a database, add/change delete.
Structure Query Language SQL. Database Terminology Employee ID 3 3 Last name Small First name Tony 5 5 Smith James
With SQL Michael Pace & Jerome Martinez. What is CoffeeScript? CoffeeScript is a language that compiles to JavaScript. Therefore, it can be used to interact.
Creating a new Database Open Microsoft Access – Start  Programs  Microsoft Office -> Microsoft Office Access Click on Blank Database Click the yellow.
Database Systems Microsoft Access Practical #3 Queries Nos 215.
Databases. What is a database?  A database is used to store data. The word DATA is actually Latin for FACTS. A database is, therefore, a place, or thing.
Intro to DatabasesClass 4 SQL REVIEW To talk to the database, you have to use SQL SQL is used by many databases, not just MySQL. SQL stands for Structured.
OCR Nationals ICT – Unit 1 Task 6 Grade C Task Overview In this task, you will update and use a database file called Hosts, which you will need to download.
SQL Unit – 2 Base Knowledge Presented By Mr. R.Aravindhan.
Relationships. “ Situation that exists between two relational database tables”  It stop the need for repeating data  Allows the database to be smaller.
What have we learned?. What is a database? An organized collection of related data.
Actions Queries. Understanding Action Queries  Action queries are a way to make corrections to database. They can make an enormous mess of database if.
SQL Basic. What is SQL? SQL (pronounced "ess-que-el") stands for Structured Query Language. SQL is used to communicate with a database.
SQL. คำสั่ง SQL SQL stands for Structured Query Language is a standard language for accessing and manipulating databases.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
PHP and Mysql Database. PHP and Database Mysql – popular open-source database management system PHP usually works with Mysql for web-based database applications.
PHP: MySQL. PHP Connect to MySQL PHP 5 and later can work with a MySQL database using: – MySQLi extension (the "i" stands for improved) – PDO (PHP Data.
CHAPTER 10 PHP MySQL Database
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
A Guide to MySQL 6. 2 Objectives Create a new table from an existing table Change data using the UPDATE command Add new data using the INSERT command.
به نام خدا SQL QUIZ جوانمرد Website: ejavanmard.blogfa.com.
Making a great Project 2 OCR 1994/2360. Testing The point of testing is to make sure that it does what it set out to do Test to see that the user requirements.
SQL Reminder Jiankang Yuan Martin Lemke. SQL Reminder - SELECT SELECT column_name1, column_name2, … FROM table_name SELECT * FROM table_name.
KEY STAGE 3 ICT Databases – Lesson 2. Recap of keywords – Task 2A In your workbooks from last lesson What is a database? A DATABASE is a collection of.
 MySQL is a database system used on the web  MySQL is a database system that runs on a server  MySQL is ideal for both small and large applications.
PHP & MY SQL Instructor: Monireh H. Sayadnavard 1.
SQL SQL Ayshah I. Almugahwi Maryam J. Alkhalifa
PHP: MySQL Lecture 14 Kanida Sinmai
Database Access with SQL
Query Methods Where Clauses Start ….
Sort and display data There are many ways to collect, sort and represent data. Try these activities to learn a few.
Introduction to Web programming
PHP + MySQL Commands Refresher.
Microsoft Office Illustrated Fundamentals
MySQL Working on Turing.
MS Access Database Connection
SQL Tutorial.
Workbench Data Definition Language (DDL)
Insert, Update, Delete Manipulating Data.
I am opeing Access 2003 in the Microsoft Office.
SQL Queries Chapter No 3.
Access: Queries IV Participation Project
Creating and Managing Database Tables
Graphing Pictures on the Coordinate Plane
Updating Databases With Open SQL
Manipulating Data Lesson 3.
Query-by-Example Transparencies
Introduction to Web programming
Updating Databases With Open SQL
Presentation transcript:

Querying

 Its about asking questions of the database in order to get some results  The are 4 different types of queries that we can run Different query types  SELECT  UPDATE  INSERT  DELETE (use with care!!)

SELECT This query is one which will bring data back from the database, so you’re able to use the information SELECT * FROM tableName WHERE x=y Returned Results idnameDobphoneclass 356Jess3 Mar B 412Hamad12 Nov X 459Sita9 Jan B 502James10 March B

INSERT Inserted Correctly – 1 (or true) Not inserted Correctly – 0 (or False) INSERT INTO tableName (column1, column2, column3) VALUES (value1, value2, value3) Returned Results This query allows you to add new records into the database table

Challenges Bronze Select all of the information out of the film table Silver 1.Select on the data from the film table where the rating is equal to 15 2.Select the data from the directors table where the director is from the USA. Gold Insert another three films into the film table but the films director must be James Cameron or Frank Darabont. You will also have to insert the Directors into the directors table Any SELECT results need to be screen printed and then put into a word document as results.

Update Inserted Correctly – 1 (or true) Not inserted Correctly – 0 (or False) UPDATE table_name SET column1=value, column2=value2 WHERE some_column=some_value Returned Results This query allows you to update record(s) in the database table

Delete Inserted Correctly – 1 (or true) Not inserted Correctly – 0 (or False) DELETE FROM tableName WHERE some_column = some_value Returned Results This query allows you to delete record(s) in the database table WARNING Be VERY careful when using the delete function

Challenges Bronze There has been a mistake in data that has been entered, and the wrong certification has been awarded to The Dark Knight, it’s now a 15 Silver Das Boot and The good the bad and the ugly need to be removed, update the list to show this Gold Come up with a could of queries of your own, and don’t forget to screenshot them and paste them into your word document.