Quiz 1 1. Given two sets S = {3, 5, 7} and T = {2, 4, 6}. List all elements of the following set: {(s, t) | (s, t)  S  T and s + t = 9} Result (3, 6)

Slides:



Advertisements
Similar presentations
Class Scope class Student { private: string id; string firstName, lastName; float gpa; public: void Read() { cin >> id >> firstName >> lastName >> gpa;
Advertisements

Assignment Design Methodology A structured approach that uses procedures, techniques, tools, and documentation aids to support and facilitate the.
CSC271 Database Systems Lecture # 11.
The Relational Algebra
Branch (Bno, Street, Area, City, Pcode, Tel_No, Fax_NO) Staff (Sno, FName, LName, Address, Tel_No, Position, Sex, DOB, Salary, NIN, Bno) Property_for_Rent.
Quiz By: Steven Hancock Click START to begin the quiz. ALGEBRA.
Access - 1 Table Query (View) FormReport Database Application Basic Database Objects Relationships among Access Database Objects A saved SELECT query is.
True/False. False True Subject May Go Here True / False ? Type correct answer here. Type incorrect answer here.
1 CS 3630 Database Design and Implementation. 2 Final Exam 7:00 – 8:52 PM, Thursday, May 16 Section 1: Ull 009 Section 2: Ull Points –50 points.
SQLite 1 CS440. What is SQLite?  Open Source Database embedded in Android  SQL syntax  Requires small memory at runtime (250 Kbytes)  Lightweight.
Your Oracle Account UserName is the same as your UWP username Followed Not case sensitive Initial Password: UWPstudent Password is case sensitive.
Quiz About [Your topic] [Your Name] [Date] Question 1 A true fact about [your topic] is: A. [Insert incorrect answer] C. [Insert incorrect answer] B.
WEEK 11 Database Design. Agenda Hybrid Review Create Tables Add, Edit Data Create Relationships in MS Access 2010 Queries.
Relational Model & Relational Algebra. 2 Relational Model u Terminology of relational model. u How tables are used to represent data. u Connection between.
12/6/2012ISC329 Isabelle Bichindaritz1 The Dreamhome Online Real- estate Company Management System.
1 CSE 480: Database Systems Lecture 11: SQL. 2 SQL Query SELECT FROM WHERE –In MySQL, FROM and WHERE clauses are optional –Example:
CSC271 Database Systems Lecture # 12. Summary: Previous Lecture  Row selection using WHERE clause  WHERE clause and search conditions  Sorting results.
It’s All About Properties of Equality. How could properties of equality be applied to solve this equation? Example 1: 3x + 11 = 32 What is the value of.
Quiz on Multiplying Integers. Find the product. Circle the correct answer. 1.2 x (-2) = A. -4 B. -2 C. 4 D. 0.
Test Your Knowledge. x + 3 =6 a.5 b.4 c.3 d.2 y - 11= 78 a. 69 b. 89 c. 87 d. 68.
SQL Data Manipulation II Chapter 5 CIS 458 Sungchul Hong.
1 General Form of the SELECT Statement SELECT [DISTINCT | ALL {* | col_expr [AS new_name] [,…]} FROMtable_name [,…] [,…] [WHERE condition] [GROUP BY col_list]
Introduction to Java Classes and Objects. What is a class A class is description of a structure that contains both data and methods – Describes a set.
CS 3630 Database Design and Implementation. 2 DreamHome Branch (branchNo, street, city, state, zipcode, phone1, phone2, phone3) Staff (staffNo, firstName,
Do Now 1. Which of the following is not a rational number? 2 4 – 3 7 π – Evaluate the expression – 62 + ÷ 4 4. ( 5734 –– )2)2 ANSWER 12.
CS 3630 Database Design and Implementation. 2 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
1 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
SQL Structured Query Language 1. Data Definition Language (DDL) is used to manage table and define data structure i.e. CREATE, ALTER, DROP Data Control.
CS 3630 Database Design and Implementation. Database Schema Branch (Bno…) Staff (Sno…Bno) Owner (Ono…) PropertyForRent (Pno…Ono) Renter (Rno…) Viewing.
IST 210 SQL Todd Bacastow IST 210: Organization of Data.
Structured Query Language
Friday Quiz Details! Part One-Geography You will have to correctly identify places and features of US and NC map. Part 2: Key terms.
CSC271 Database Systems Lecture # 7. Summary: Previous Lecture  Relational keys  Integrity constraints  Views.
1 All Powder Board and Ski Microsoft Access Workbook Chapter 5: Advanced Queries Jerry Post Copyright © 2003.
Chapter 4 Practice Problem Solutions. A list (Bno, Street, Area,Tel_No, Fax_No) of branches located in Bay Area Branch (Bno, Street, Area, City, Pcode,
Branch (Bno, Area, City, Pcode) Staff (Sno, FName, LName, Position, Sex, DOB, Salary, Bno) Property_for Rent (Pno, Area, City, Type, Rooms, Rent, Ono,
Exponent Quiz Review. Evaluate the expression 4 2  Answer: 16.
Quiz Where to Store Attributes of Relationship Staff (1) Interviews (0..*) Client Attributes: date, time, comment Staff (StaffNo, …) PK: StaffNo.
VB.NET 2008 Introduction to Variables Part 1. Overview.NET Languages –Source Code –Compiler –MSIL –CLR & Windows Variables –Data Types –Converting.
MANY-TO-MANY MAPPING. May 12, 2011  Implemented using a Set java collection  Mediator table is mandatory – Join table  Join table contains foreign.
 To find the numerical value of the expression, simply substitute the variables in the expression with the given number. Evaluate: 2x + 7, if x = 4 Substitute.
Which one of these answers is correct? Prove your answer!
Quiz About Your Topic Question 1 A question about your topic: A. [Insert incorrect answer] C. [Insert incorrect answer] B. [Insert incorrect answer]
Lecture 11 SQL. Agenda SQL Select statement WHERE clause BindingSource filtering.
Is the answer to 3 x (-2) positive or negative? How do you know?
CS336 F07 Counting 2. Example Consider integers in the set {1, 2, 3, …, 1000}. How many are divisible by either 4 or 10?
Multiplication Timed Tests.
Warm-up August 26, / /10 = 1 1/3 + 7 ¾ =
Teacher Workshop Database Design Pearson Education © 2014.
36 x 2 = ? A) 36 B) 72 C) 48 D) 76.
COMP3017 Advanced Databases
CS 3630 Database Design and Implementation
CS 3630 Database Design and Implementation
Quiz Time!.
CS 3630 Database Design and Implementation
Field Table Sort Show Criteria OR
Make Your Own Quiz.
© T Madas.
Quiz About [Your topic]
Find the inflection points of the following function: f ( x ) = -7 x sin x {image} {image}
Choose the best answer for each problem.
CMPT 354: Database System I
Simplify the expression: {image} Select the correct answer.
Quiz About [Your Topic]
Quiz About [Your topic]
Warmup Chapter P Review
SQL: Set Operations & Nested Queries. Presented by: Dr. Samir Tartir
Bell Work Combine all the like terms
Quiz Template Start quiz!
Presentation transcript:

Quiz 1 1. Given two sets S = {3, 5, 7} and T = {2, 4, 6}. List all elements of the following set: {(s, t) | (s, t)  S  T and s + t = 9} Result (3, 6) (5, 4) (7, 2)

Quiz 1 2. Give a one-to-one mapping from X to Y. N = {n: n is an integer and n  0} X = {x: x  N and x  3} Y = {y: y = 3 * n - 1, where n  N} N 1 2 X 3 4 5 Y -1 2 5 x  3 x = n + 3 y = 3 * n - 1 n = x- 3 y = 3 * (x – 3) - 1 = 3 * x - 10 (Either one is correct)

Quiz 1  (Att2  9) (A B) A (Att1, Att2) B (Att3, Att4, Att1)  Att1 Att2 Att3 Att4 Att1   2 2 x 1 1 7 10 a 6 5 5 9 y 5 5  (Att2  9) (A B) Answer: (2, 2, null, null) (5, 9, a, 6) (5, 9, y, 5)

Quiz 1 4. List all properties in city Platteville that are managed by staff Joe Young.  Property.* ( Fname = ‘Joe’ and Lname = ‘Young’ and City = ‘Platteville’ (Staff Property)) Incorrect string expression: -1 Fname = Joe and Lname = Young and City = “Platteville”

Quiz 1 (5 points) List Pno, Type and Rent of all properties of owner Frank Smith that have been viewed this year. You can use CurrentDate.Year as a function to get the current year. The same applies to viewDate. The same query should work for every year.  Property. Pno, Type, Rent ( viewDate.Year = CurrentDate.Year and firstName = ‘Frank’ and lastName = ‘Smith’ (Owner Property Viewing)) Either Property. Pno or Viewing.Pno will work Incorrect string expression: -1