Query Methods Where Clauses Start ….

Slides:



Advertisements
Similar presentations
Basic SQL Introduction Presented by: Madhuri Bhogadi.
Advertisements

Chapter 8 Special-Purpose Languages. SQL SQL stands for "Structured Query Language". Allows the user to pose complex questions of a database. It also.
Introduction to Structured Query Language (SQL)
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Microsoft Access 2010 Chapter 7 Using SQL.
CORE 2: Information systems and Databases STORAGE & RETRIEVAL 2 : SEARCHING, SELECTING & SORTING.
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
ASP.NET Programming with C# and SQL Server First Edition
LOGO 1 Lab_02: Basic SQL. 2 Outline  Database Tables  SQL Statements  Semicolon after SQL Statements?  SQL DML and DDL  SQL SELECT Statement  SQL.
Chapter 10 Queries and Updating Part C. SQL Copyright 2005 Radian Publishing Co.
Structured Query Language. SQL is an ANSI (American National Standards Institute) standard computer language for accessing and manipulating database systems.
Concepts of Database Management Seventh Edition
Sundara Ram Matta Apr 01 st, Sundara Ram Matta Apr 01 st, 2015
15/10/20151 PHP & MySQL 'Slide materials are based on W3Schools PHP tutorial, 'PHP website 'MySQL website.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
Structure Query Language SQL. Database Terminology Employee ID 3 3 Last name Small First name Tony 5 5 Smith James
Concepts of Database Management Seventh Edition
Microsoft Access Database Software.
SQL Unit – 2 Base Knowledge Presented By Mr. R.Aravindhan.
1 DBS201: Introduction to Structure Query Language (SQL) Lecture 1.
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.
Lab_03: Basic SQL.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
Database and Information Management Chapter 9 – Computers: Understanding Technology, 3 rd edition.
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
Lesson 13 Databases Unit 2—Using the Computer. Computer Concepts BASICS - 22 Objectives Define the purpose and function of database software. Identify.
Chapter 10 Database Management. Data and Information How are data and information related? p Fig Next processing data stored on disk Step.
INFANL01-3 ANALYSE 3 WEEK 3 March 2015 Institute voor Communication, Media en Informatietechnology.
ECMM6018 Enterprise Networking For Electronic Commerce Tutorial 6 CGI/Perl and databases.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
CS 1150 – Lab #12B – Databases TA – Sanjaya Wijeratne – Web Page -
Introduction to Database SEM I, AY Department of Information Technology Salalah College of Technology Chapter No.3 SQL.
ITS232 Introduction To Database Management Systems Siti Nurbaya Ismail Faculty of Computer Science & Mathematics, Universiti Teknologi MARA (UiTM), Kedah.
ACCESS CHAPTER 2 Introduction to ACCESS Learning Objectives: Understand ACCESS icons. Use ACCESS objects, including tables, queries, forms, and reports.
ADVANCED SQL.  The SQL ORDER BY Keyword  The ORDER BY keyword is used to sort the result-set by one or more columns.  The ORDER BY keyword sorts the.
MySQL Tutorial. Databases A database is a container that groups together a series of tables within a single structure Each database can contain 1 or more.
Copyright © it’sLearning 365. All rights reserved. DATABASE CONCEPTS Understanding Databases Start …
Programming with Microsoft Visual Basic 2012 Chapter 14: Access Databases and SQL.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
SQL FIS 1311 Nov. 28, Structured Query Language ANSI/ISO standard; used with relational databases Is a very simple but powerful computer language:
 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.
SQL SQL Ayshah I. Almugahwi Maryam J. Alkhalifa
DBMS and SQL.
Web Systems & Technologies
Module T03d Software Engineering
CHAPTER 7 DATABASE ACCESS THROUGH WEB
Query Methods Simple SQL Statements Start ….
Query Methods Where Clauses Start ….
3.5 Databases Relationships.
Introduction to Structured Query Language(SQL)
Database Concepts Relational Databases Start ….
Chapter 12 Information Systems.
Structured Query Language – The Basics
SQL Tutorial.
CIS16 Application Programming with Visual Basic
Introduction To Structured Query Language (SQL)
Database Design and Development
SQL Queries Chapter No 3.
HAVING,INDEX,COMMIT & ROLLBACK
SQL .. An overview lecture3.
Database Design and Development
Introduction To Structured Query Language (SQL)
Structured Query Language
Queries.
កម្មវិធីបង្រៀន SQL Programming ជាភាសាខ្មែរ Online SQL Training Course
Database SQL.
Shelly Cashman: Microsoft Access 2016
Presentation transcript:

Query Methods Where Clauses Start …

All – most - some ... ALL : Define the term SQL MOST : Describe the syntax for using WHERE clauses SOME : Explain how to use operators with WHERE clauses Next …

Click to explore more about the WHERE clauses … What is a Database? SQL Statements AND & OR Thought board What is SQL? WHERE Clauses

What is a Database ..? A database is just a collection of data A simple database could be a computing text book Next …

What is a Database ..? Data about each topic is stored in the book The data is organised into chapters You can search for a topic using the content and index pages Back … Next …

What is a Database ..? Organisations have data that they need to store, collate and analyse 30 years ago this data would have been stored in a filing cabinet Back … Next …

What is a Database ..? Modern organisations use computer systems to store, collate and analyse data These systems are called Databases Back … Explore …

What is SQL ..? SQL (Structured Query Language) is used to search through and manage databases SQL is written as statements that are executed by the database Next …

What is SQL ..? SQL statements can be used to perform the following tasks … Execute queries against a database Retrieve data from a database Insert records in a database Update records in a database Delete records from a database Back … Explore …

Simple SQL Statements … We use SQL Statements to manage large databases SQL statements can be used to Select Data, Update Data and Delete Data Next …

Simple SQL Statements … Think about this SQL Statement … SELECT column_name,column_name FROM table_name; What do you think this SQL statement will do? Back … Explore …

Where Clauses … The WHERE clause is used to filter records in a Query It extracts (or selects) only those records that fulfil a specified criteria Next …

Can you think what this SQL statement might look like? Where Clauses … You could use a WHERE clause to search for everyone who lives in Leicester Can you think what this SQL statement might look like? Back … Next …

Where Clauses … The syntax for a WHERE clause is … SELECT column_name,column_name FROM table_name WHERE column_name operator value; Back … Next …

What do you think is the purpose of this SQL statement? Where Clauses … Think about this SQL statement … SELECT * FROM Customers WHERE Country=‘Scotland'; What do you think is the purpose of this SQL statement? Back … Next …

Where Clauses … SELECT * FROM Customers WHERE Country=‘Scotland'; This SQL statement selects all the customers from the country “Scotland", in the Customers table Back … Explore …

AND & OR … The AND & OR operators are used to filter records based on more than one WHERE condition For example … Male AND Brown Hair Male OR Brown Hair Next …

AND & OR … The AND operator displays a record if both the first condition AND the second condition are true The OR operator displays a record if either the first condition OR the second condition is true Back … Next …

What do you think this SQL statement does? AND & OR … Think about this SQL statement … SELECT * FROM Customers WHERE Country=‘UK' AND City=‘Birmingham'; What do you think this SQL statement does? Back … Next …

AND & OR … Think about this SQL statement … SELECT * FROM Customers WHERE Country=‘UK' AND City=‘Birmingham'; This statement selects all customers from the country “UK" AND the city “Birmingham", in the Customers table Back … Next …

What do you think this SQL statement does? AND & OR … Think about this SQL statement … SELECT * FROM Customers WHERE City=‘Birmingham' OR City=‘Glasgow'; What do you think this SQL statement does? Back … Next …

AND & OR … Think about this SQL statement … SELECT * FROM Customers WHERE City=‘Birmingham' OR City=‘Glasgow'; This SQL statement elects all customers from the city “Birmingham" OR “Glasgow", in the Customers table Back … Next …

AND & OR … You can combine AND and OR within one SQL statement Think about this SQL statement … SELECT * FROM Customers WHERE Country=‘Scotland' AND (City=‘Glasgow' OR City=‘Aberdeen'); Back … Next …

AND & OR … Think about this SQL statement … SELECT * FROM Customers WHERE Country=‘Scotland' AND (City=‘Glasgow' OR City=‘Aberdeen'); This SQL statement selects all customers from the country “Scotland" AND the city must be equal to “Glasgow" OR “Aberdeen" Back … Explore …

Thought Board … SELECT * FROM Customers WHERE City=‘Birmingham' OR City=‘Glasgow'; SELECT column_name,column_name FROM table_name; SELECT * FROM Customers WHERE Country=‘Scotland'; Explore …