CS 1150 – Lab #12B – Databases TA – Sanjaya Wijeratne – Web Page -

Slides:



Advertisements
Similar presentations
Structured Query Language (SQL)
Advertisements

1 CS 4396 Computer Networks Lab General Info. 2 Goal: This course aims at helping students get more insight into how the Internet works and gain hands.
CS 1150 – Lab #4 – Logic Circuits TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #15 – Networking TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #13 – Artificial Intelligence TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #16A & 16B – HTML TA – Sanjaya Wijeratne – Web Page -
Basic SQL Introduction Presented by: Madhuri Bhogadi.
CS 1150 – Lab #16A & 16B – HTML TA – Sanjaya Wijeratne – Web Page -
CS 1150 – Lab #2 – Exploring Number Systems TA – Sanjaya Wijeratne – Web Page -
Computers and Society Lecture 1: administrative details and an introduction to the class Professor: Evan Korth New York University.
IT 240 Intro to Desktop Databases Introduction. About this course Design a database: Entity Relation (ER) modeling and normalization techniques Create.
Introduction to Computers Lab Assignments. Introduction to Computers Laboratory Schedule All Lab Sessions are held in the classroom. The completion of.
OBJECT ORIENTED PROGRAMMING I LECTURE 1 GEORGE KOUTSOGIANNAKIS
Overview of C++ Chapter 2 in both books programs from books keycode for lab: get Program 1 from web test files.
CS 1150 – Lab #2 – Exploring Number Systems TA – Sanjaya Wijeratne – Web Page -
CS 1150 – JavaScript Programming Lab TA – Sanjaya Wijeratne – Web Page -
INFORMATION TECHNOLOGY IN BUSINESS AND SOCIETY SESSION 16 – SQL SEAN J. TAYLOR.
Computer Science 102 Data Structures and Algorithms V Fall 2009 Lecture 1: administrative details Professor: Evan Korth New York University 1.
CS 1150 – JavaScript Programming Lab TA – Sanjaya Wijeratne – Web Page -
CPS120: Introduction to Computer Science Information Systems: Database Management Nell Dale John Lewis.
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 7 Database: SQL, MySQL. Topics  Introduction  Relational Database Model  Relational Database Overview: Books.mdb Database  SQL (Structured.
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.
Welcome to CS 3260 Dennis A. Fairclough. Overview Course Canvas Web Site Course Materials Lab Assignments Homework Grading Exams Withdrawing from Class.
MGS 351 Introduction to Management Information Systems
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.
CS 1150 – Lab #3 – Representing Numbers TA – Sanjaya Wijeratne – Web Page -
Welcome to Physics 1403!!. Class Web Page! There, you can find: 1. Posted (MS Word format): Syllabus,
NMED 3850 A Advanced Online Design January 12, 2010 V. Mahadevan.
CPS120: Introduction to Computer Science Lecture 19 Introduction to SQL.
Introduction to Databases Computer Science 557 September 2007 Instructor: Joe Bockhorst University of Wisconsin - Milwaukee.
MGS 351 Introduction to Management Information Systems RECITATION 8.
Lecture Section 001 Spring 2008 Mike O’Dell CSE 1301 Computer Literacy.
CS 1150 – Lab #3 – Representing Numbers TA – Sanjaya Wijeratne – Web Page -
SQL Unit – 2 Base Knowledge Presented By Mr. R.Aravindhan.
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.
CS 1150 – Lab #8 – Using Algorithms for Painting TA – Sanjaya Wijeratne – Web Page -
Course FAQ’s I do not have any knowledge on SQL concepts or Database Testing. Will this course helps me to get through all the concepts? What kind of.
Database Fundamental & Design by A.Surasit Samaisut Copyrights : All Rights Reserved.
MGS 351 Introduction to Management Information Systems RECITATION 8.
DAY 4: EXCEL CHAPTER 1 Sravanthi Lakkimsetty Aug 26,2015.
Winter 2016CMPE212 - Prof. McLeod1 CMPE212 Object Oriented Programming for Engineers Course Web Site: Lecture.
MGS 351 Introduction to Management Information Systems Lecture #1.
WEEK# 12 Haifa Abulaiha November 02,
Winter 2016CISC101 - Prof. McLeod1 CISC101 Elements of Computing Science I Course Web Site: The lecture outlines.
Distribution of Marks For Second Semester Internal Sessional Evaluation External Evaluation Assignment /Project QuizzesClass Attendance Mid-Term Test Total.
Data Structures and Algorithms in Java AlaaEddin 2012.
1 CS 4396 Computer Networks Lab General Info. 2 Goal: This course aims at helping students get more insight into how the Internet works and gain hands.
CSE 1340 Introduction to Computing Concepts Class 1 ~ Intro.
Information Retrieval CIS-462 Dr. Samir Tartir 2013/2014 First Semester.
Course Information CSE 2031 Fall Instructor U.T. Nguyen Office: CSE Home page:
 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.
CS 201 Accelerated Introduction to Computer Science LECTURE 1 GEORGE KOUTSOGIANNAKIS 1 Copyright: FALL 2016 Illinois Institute of Technology/ George Koutsogiannakis.
CS 1150 – Lab #4 – Logic Circuits TA – Sanjaya Wijeratne – Web Page -
Fundamental of Database Systems
Web Systems & Technologies
Query Methods Simple SQL Statements Start ….
Query Methods Where Clauses Start ….
Query Methods Where Clauses Start ….
CS 1150 – Lab #8 – Using Algorithms for Painting
 2012 Pearson Education, Inc. All rights reserved.
CS5040: Data Structures and Algorithms
MS Access Database Connection
Introduction To Structured Query Language (SQL)
SQL Queries Chapter No 3.
HAVING,INDEX,COMMIT & ROLLBACK
Accelerated Introduction to Computer Science
Introduction To Structured Query Language (SQL)
Presentation transcript:

CS 1150 – Lab #12B – Databases TA – Sanjaya Wijeratne – Web Page -

TA Labs, Office Hours Laboratory Polices Lab Hours 2:30 PM - 4:20 PM, Monday and Friday at Room Oelman Hall TA Office Hours 4:40 PM - 5:40 PM, Monday and Friday at Room Russ Engineer Center By appointment – Please to Refer to CS 1150 Course Syllabus for Class and Laboratory Policies Zero tolerance policy for Academic Misconduct – All parties will get 0% marks CS 1150 – Lab 12B – Databases2

Lab # 12B Overview Write simple SQL queries using “Simple SQL” applet Answer all questions in Exercises 1, 2, 3 and answer up to 8 th question in Exercise 4. Lab #12B Due Date - Nov 04, :30 PM CS 1150 – Lab 12B – Databases3

How to Submit Lab # 12B Hard copy (Preferred) When you complete, hand it over to me Pilot Go to Pilot Course Page and Use Dropbox Submission Link to upload your files My Mailbox at CS Department Go to CS Department Front Desk and ask them to put your assignment into my mailbox – Please write my name on your assignment (TA – CS 1150 – Sanjaya Wijeratne) CS 1150 – Lab 12B – Databases4

Introduction to SQL CS 1150 – Lab 12B – Databases5 Standard language for accessing and manipulating databases. What can we do with SQL? Create new databases and tables Execute queries against a database Retrieve data from a database Insert, update, delete records in a database and many more Source –

SQL SELECT Statement CS 1150 – Lab 12B – Databases6 SQL select statement is used to extracts data from a table select Column_name_1, Column_name_2 from Table_name MovieIDMovieNameRating 1GravityPG-13 2Man of SteelPG-13 3World War ZPG-13 4The Hangover Part IIIR Question – Select all movie names from table Movie Answer – select MovieName from Movie

SELECT all (*) Records CS 1150 – Lab 12B – Databases7 select * is used to extract all data from a table select * from Table_name MovieIDMovieNameRating 1GravityPG-13 2Man of SteelPG-13 3World War ZPG-13 4The Hangover Part IIIR Question – Select all records (rows, tuples) from table Movie Answer – select * from Movie

SELECT Statement with WHERE Clause CS 1150 – Lab 12B – Databases8 SQL where clause is used to extract only those records that fulfill a specified criterion. select Column_name_1, Column_name_2 from Table_name where criteria MovieIDMovieNameRating 1GravityPG-13 2Man of SteelPG-13 3World War ZPG-13 4The Hangover Part IIIR Question – Select all movie names with a PG-13 Rating Answer – select MovieName from Movie where Rating = “PG-13”

SELECT Records from Multiple Tables CS 1150 – Lab 12B – Databases9 MovieIDMovieNameRating 1GravityPG-13 2Man of SteelPG-13 3World War ZPG-13 4The Hangover Part IIIR DirectorIDMovieIDDirectorName 1011Alfonso Cuarón 1022Zack Snyder 1033Marc Forster 1044Todd Phillips Question – Select movie names and their directors Often you will need more than one table to query at once

SELECT Records from Multiple Tables Cont. CS 1150 – Lab 12B – Databases10 select Table_name_1.Column_name_1, Table_name_2.Column_name_2 from Table_name_1, Table_name_2 where criteria MovieIDMovieNameRatingDirectorIDDirectorName 1GravityPG-13101Alfonso Cuarón 2Man of SteelPG-13102Zack Snyder 3World War ZPG-13103Marc Forster 4The Hangover Part IIIR104Todd Phillips Answer – select Movie.MovieName, Director.DirectorName from Movie, Director where Movie.MovieID = Director.MovieID

Simple SQL Applet CS 1150 – Lab 12B – Databases11

Additional Help CS 1150 – Lab 12B – Databases12 Database Queries (Database Select Statements) Slides by Ms. Karen Meyer discussed in Class Chapter 12 of Course Text Book – Information Systems

Questions ? If you have questions, please raise your hand, Colin or myself will come to help you CS 1150 – Lab 12B – Databases13