Csci 4707- Chapter 4 Quiz SQL Queries Group 8: Tanoja Sunkam and Kaitlyn Christensen Tuesday, February 9th.

Slides:



Advertisements
Similar presentations
Views-basics 1. 2 Introduction a view is a perspective of the database different users may need to see the database differently; this is achieved through.
Advertisements

SQL: The Query Language Part 2
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Joins and Sub-queries in SQL.
Query Methods (SQL). What is SQL A programming language for databases. SQL (structured Query Language) It allows you add, edit, delete and run queries.
Chapter 15 A Table with a View: Database Queries.
Basic SQL Introduction Presented by: Madhuri Bhogadi.
1Key – Report Creation with DB2. DB2 Databases Create Domain for DB2 Test Demo.
PRACTICE 1 Drilling DBA-SQL.
CSEN 5314 Quiz What type of join is needed when you wish to include rows that do not have matching values? A. Equi-joinB. Natural join C. Outer.
Access Quiz October 24, The database objects bar in Access contains icons for tables, queries, forms and reports 1.True 2.False.
Concepts of Database Management Sixth Edition
Microsoft Access 2010 Chapter 7 Using SQL.
Advanced Query Formulation with SQL Week 10 Quiz Jaymond Huynh Tim Nguyen.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
Structured Query Language 2 Presented by: Annisa, M.Kom. Source: Database System Concepts 5 th edition.
IFS180 Intro. to Data Management Chapter 9 – Outer Joins.
Constraints  Constraints are used to enforce rules at table level.  Constraints prevent the deletion of a table if there is dependencies.  The following.
Using Special Operators (LIKE and IN)
Concepts of Database Management Seventh Edition
Bellringer 1. Choose the sentence that has parallel structure. a.The campers will practice rowing, swimming and to fish b.The campers will practice rowing,
Week 10 Quiz 9 Answers Group 28 Christine Hallstrom Deena Phadnis.
Programming in R SQL in R. Running SQL in R In this session I will show you how to: Run basic SQL commands within R.
Concepts of Database Management Eighth Edition Chapter 3 The Relational Model 2: SQL.
SE305 Database System Technology 23/10/2014 Quiz-2.
Chapter 8 Part 2 SQL-99 Schema Definition, Constraints, Queries, and Views.
IFS Intro to Data Management Chapter 5 Getting More Than Simple Columns.
Indexes and Views Unit 7.
Access Chapter 3-Obtaining Answers to Your Data Questions.
ICS 321 Spring 2011 The Database Language SQL (iii) Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 3/14/20111Lipyeow.
Concepts of Database Management Seventh Edition Chapter 3 The Relational Model 2: SQL.
1/18/00CSE 711 data mining1 What is SQL? Query language for structural databases (esp. RDB) Structured Query Language Originated from Sequel 2 by Chamberlin.
SqlExam1Review.ppt EXAM - 1. SQL stands for -- Structured Query Language Putting a manual database on a computer ensures? Data is more current Data is.
Digital Media Technology Databases / SQL 2 Fleur Praal 17 November 2015 Leiden University. The university to discover.
Mining real world data RDBMS and SQL. Index RDBMS introduction SQL (Structured Query language)
A Guide to SQL, Eighth Edition Chapter Five Multiple-Table Queries.
Exponent Quiz Review. Evaluate the expression 4 2  Answer: 16.
603 Database Systems Senior Lecturer: Laurie Webster II, M.S.S.E.,M.S.E.E., M.S.BME, Ph.D., P.E. Lecture 9 A First Course in Database Systems.
Soal Minggu 1 Pengenalan Basis Data Perintah Dasar SQL.
A Guide to SQL, Eighth Edition Chapter Four Single-Table Queries.
CSCI 3328 Object Oriented Programming in C# Chapter 12: Databases and LINQ – Exercises 1 Xiang Lian The University of Texas Rio Grande Valley Edinburg,
QUERY CONSTRUCTION CS1100: Data, Databases, and Queries CS1100Microsoft Access1.
Review Types of Relationship – there are in general three different types of relationships - One to One – where each record in one table can have not more.
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
Simple Queries DBS301 – Week 1. Objectives Basic SELECT statement Computed columns Aliases Concatenation operator Use of DISTINCT to eliminate duplicates.
Quiz Which of the following is not a mandatory characteristic of a relation? Rows are not ordered (Not required) Each row is a unique There is a.
1 SQL Chapter 9 – 8 th edition With help from Chapter 2 – 10 th edition.
Database Systems, 8 th Edition SQL Performance Tuning Evaluated from client perspective –Most current relational DBMSs perform automatic query optimization.
Chapter 8 Advanced SQL. Relational Set Operators UNIONINTERSECTMINUS Work properly if relations are union- compatible –Names of relation attributes must.
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
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.
Select Complex Queries Database Management Fundamentals LESSON 3.1b.
1 Agenda TMA02 M876 Block 4. 2 Model of database development data requirements conceptual data model logical schema schema and database establishing requirements.
Concepts of Database Management, Fifth Edition Chapter 3: The Relational Model 2: SQL.
DAY 20: ACCESS CHAPTERS 5, 6, 7 Larry Reaves October 28,
IFS180 Intro. to Data Management Chapter 10 - Unions.
Databases.
© 2016, Mike Murach & Associates, Inc.
Multiple Table Queries
A Table with a View: Database Queries
Database Management  .
The University of Texas – Pan American
Chapter 4 Summary Query.
Access: SQL Participation Project
HAVING,INDEX,COMMIT & ROLLBACK
A Table with a View: Database Queries
Databases Continued 10/18/05.
Topic 12 Lesson 2 – Retrieving Data with Queries
A Table with a View: Database Queries
Database SQL.
Presentation transcript:

Csci Chapter 4 Quiz SQL Queries Group 8: Tanoja Sunkam and Kaitlyn Christensen Tuesday, February 9th

1.Which relational operation may be represented using a SELECT statement using the SELECT and FROM clauses: a.Selection b.Projection c.Grouped aggregation d.Ordering of rows based on a column Answers

2. Which relational operation may NOT be represented using the SELECT and FROM clauses: a.Selection b.Projection c.Natural join d.Cross Product

3. Which clause of the SELECT statement is never needed to represent a Natural join query: a.SELECT b.FROM c.WHERE d.GROUP BY

4. Which is the following apply to the GROUP clause: a.The GROUP BY clause must contain every column in the SELECT clause, as well as every aggregate expression in the SELECT clause or the query will not be valid. b.The SELECT clause must contain every column in the GROUP BY clause c.The GROUP BY clause must contain all columns in the SELECT clause d.The GROUP BY clause may not include columns in the SELECT clause

5. Which of the following statements is true about SQL Tables a.Some SQL tables are not relational because they may be ordered by the primary key columns b. Some SQL tables are not relational they may contain two columns with the same name c.Some SQL tables are not relational since they may contain duplicate rows d.All SQL tables have primary keys and are relational

Discussion Question 6. What mental steps in the query formulation process are addressed by the conceptual evaluation process and critical questions? Conceptual evaluation process does not quite help with the query formulation process because the conceptual process does not understand the database language after it has been converted from a problem statement. Critical Questions are very helpful in the query formulation process because they help give the user information about what information is available in a certain table, what information they desire to get, and how different tables are related.