Database Design - Section 18. Instructor Guide

Size: px
Start display at page:

Download "Database Design - Section 18. Instructor Guide"

Transcription

1 Instructor Guide

2

3 Table of Contents...1 Lesson 1 - Logical Comparisons and Precedence Rules...1 What Will I Learn?...2 Why Learn It?...3 Tell Me / Show Me...4 Try It / Solve It...11 Lesson 2 - Sorting Rows...16 Why Learn It?...18 Tell Me / Show Me...19 Try It / Solve It...24 Lesson 3 - Practice Exercises and Quiz...26 What Will I Learn?...27 Why Learn It?...28 Tell Me / Show Me...29 Try It / Solve It...30 Lesson 4 - Mock Interview...35 What Will I Learn?...37 Why Learn It?...38 Tell Me / Show Me...39 Try It / Solve It...40 Lesson 5 - Introduction to Functions Single-Row Functions...41 What Will I Learn?...42 Why Learn It?...43 Tell Me / Show Me...45 Try It / Solve It...49 Page i

4

5 Lesson 1 - Logical Comparisons and Precedence Rules Lesson 1 - Logical Comparisons and Precedence Rules Lesson Preparation Evaluate logical comparisons to restrict the rows returned based on two or more conditions. Apply the rules of precedence to determine the order in which expressions are evaluated and calculated. What to Watch For Students will need practice understanding and using the AND condition. When using AND, both conditions must be true. If one or both conditions aren't true, the statement is false and then only the OR condition is used, if present. Connections Reinforce the OR condition with an example from data modeling. In the DJs on Demand data model, the entity EVENT had a relationship with two other entities, PRIVATE HOME and PUBLIC PLACE. In the ERD, an arc was drawn across the two relationship lines to signify the OR condition. An EVENT had to be held in either a PRIVATE HOME or a PUBLIC PLACE. Another example of the OR condition can be shown in data modeling when modeling subtypes. The Global Fast Foods staff were either order takers, cooks, managers, or other. A staff member could not be both an order taker and a cook. In this example, these four job titles were exhaustive and mutually exclusive. Staff were one OR the other. Page 1

6 What Will I Learn? What Will I Learn? Page 2

7 Why Learn It? Why Learn It? Page 3

8 Tell Me / Show Me Tell Me / Show Me Tell Me / Show Me Begin the class with a review question. Write a select statement to find an address in the DJs on Demand database d_venues table that has the word "Primrose" in the description. Answer: SELECT address FROM d_venues WHERE address LIKE '%Primrose%' WHERE cd_id NOT IN(105, 206, 332); WHERE cd_id!= 105 and cd_id!= 206 and cd_id!= 332; Will a query using this WHERE clause select cd_id = 206? No Students should not have difficulty with this lesson. It will be necessary to reinforce the AND condition when used with OR. Reinforce the order of precedence in that AND will be evaluated first. However, if one of the AND conditions is false, the whole condition is false. In that case, the OR operator is used to restrict the rows. Page 4

9 Page 5

10 Tell Me / Show Me Tell Me / Show Me Page 6

11 Tell Me / Show Me Tell Me / Show Me Page 7

12 Tell Me / Show Me Tell Me / Show Me Tell Me / Show Me Review each example. Reinforce the AND operator when it is true and when it is false. Use the following examples. Ask students to give an example that would be false in each situation. 1. employee_id = 100 AND last_name LIKE 'S%' Ms. Smith whose employee_id is 50 Employee_id 100 whose last name is King 2. Wash the car and fill it up with gas I only washed the car I filled up the car but didn't wash it yet 3. Eat breakfast and watch tv She ate breakfast and went to school She went to school but forgot to eat breakfast 4. department = 10 AND employee_id = 100; Employee_id 100 is in department 20 Employee_id 50 is in department 10 Page 8

13 Tell Me / Show Me Tell Me / Show Me Tell Me / Show Me These rules are very important. Ask students to view the data in the d_partners table or do a SELECT * from table. Ask students to look at the two examples shown. Without actually querying the table, what output is expected? Accept all answers. Ask students to do a query using each example. Is the output what they expected? Review the output with the students. SELECT last_name, specialty, auth_expense_amt FROM d_partners WHERE specialty ='All Types' OR specialty IS NULL AND auth_expense_amt = ; The order of operations is: 1. Specialty IS NULL AND auth_expense_amt = Both these conditions must be met to be returned. 2. Any instance of specialty = 'All Types' will be returned. SELECT last_name, specialty, auth_expense_amt FROM d_partners Page 9

14 WHERE (specialty ='All Types' OR specialty IS NULL) AND auth_expense_amt = ; The order of operations is: 1. The values in the parentheses are selected. 2. All instances of the values in the parentheses that also match auth_expense_amt = will be returned. Page 10

15 Try It / Solve It Try It / Solve It Try It / Solve It Answers 1. The AND condition must satisfy both code and description to return a value. The OR condition will return values that satisfy either condition. 2. SELECT last_name FROM f_staffs WHERE last_name LIKE '%e%' AND last_name LIKE '%i%'; 3. SELECT last_name FROM f_staffs WHERE salary > 6.50 AND staff_type!= 'Order Taker'; 4. SELECT last_name FROM employees WHERE last_name LIKE 'D%a%e%' or last_name LIKE 'D%e%a'; Page 11

16 Try It / Solve It Try It / Solve It Try It / Solve It Answers 5. SELECT loc_type FROM d_venues WHERE loc_type NOT IN('Private Home'); 6. c. NOT, AND, OR 7. SELECT first_name, last_name FROM employees WHERE last_name LIKE '%en%' and salary < 8000 and hire_date BETWEEN '01-JUN-98' AND '31-MAY-99'; Diana Lorentz 8. SELECT FROM employees WHERE hire_date BETWEEN '01-JAN-96' AND '31-DEC-96' AND salary > 9000 AND commission_pct IS NULL; Page 12

17 MHARTSTE An alternative solution for #8 is: SELECT FROM employees WHERE hire_date > '01-JAN-96' AND salary > 9000 AND commission_pct IS NULL; Page 13

18 Try It / Solve It Try It / Solve It Try It / Solve It Reinforce the importance of coding the practice exercises and looking at the data returned. Students will accept the results of a query just because it executed without looking at the result set to verify that the values returned satisfy the conditions in the query. Demonstrate the following example which executes, but does not return, the desired results. The logical operator should be AND, not OR. Omitting the salary columns, the result set doesn't show that the salary condition is not met by the statements in the query. What are the titles of the jobs whose minimum salary is 4000 and whose maximum salary is 9000? SELECT job_title FROM jobs WHERE min_salary = 4000 or max_salary = 9000; Rewritten query including the salary columns to verify that both conditions are met: SELECT job_title,min_salary, max_salary FROM jobs WHERE min_salary = 4000 AND max_salary = 9000; Page 14

19 Page 15

20 Lesson 2 - Sorting Rows Lesson 2 - Sorting Rows Lesson Preparation None. What to Watch For Ordering by single columns should be easy for most students. To help make ordering by more than one column more understandable, use practical examples such as: - The department store manager would like a list of all the shoes sorted by type and then by size for each type. Have students talk in SQL to give their answers (e.g., SELECT name, type, size FROM shoes ORDER BY type, size). - The restaurant manager would like a list of all the spices used by the cooks. The list should be organized first by the spice type (ginger, cinnamon, thyme, etc.) then by spice category (spice, herb, or seasoning). For example, SELECT spice_name, spice_type, spice_category FROM spices ORDER BY spice_type, spice_category. Connections Relate the ordering of information to the whole process of designing an ERD. Entities in an ERD make up the group of information items that are data requirements for a business. An entity is made up of a group of attributes that are properties of the entity. Page 16

21 Before music was available on compact disks (CDs), most music albums were stored on 8- track tapes or vinyl records. If you bought a music tape and wanted to skip to the third song, you had to fast-forward the tape through the first two songs before what you were looking for could be played. The recordings were locked into an order that, many times, was not very convenient and usually not in the order you wanted to listen to them. Today's technology has changed all that. The order in which songs are recorded on a CD is of little significance. With the push of a button, we can play them in any order desired. Page 17

22 Why Learn It? Why Learn It? Why Learn It? Ask students for other ways in which we order our lives. Suggested answers: Library books in library, grocery-store shelves, department stores, parking lots, and file cabinets. Page 18

23 Tell Me / Show Me Tell Me / Show Me Tell Me / Show Me To reinforce the difference between ascending (ASC) and descending (DESC), ask students the following questions: 1. If your last name is Yonkers, are you in the front or back of the line in ASC order? Back of the line 2. If you wanted to sort your address book in DESC order, what names could appear before mine? Answers will vary depending on the instructor's last name. 3. Would the student who would be first in line in ASC order please raise your hand? Answers will vary depending on the class list of names. Discuss and relate instances of ordering and sorting that can be found in school, at home, or in the business world. How do retail stores order their merchandise? How do websites with directories like Yahoo decide how to organize and order the information on their home page? Page 19

24 Tell Me / Show Me Tell Me / Show Me Tell Me / Show Me Dates can be confusing. The earliest dates are displayed first. Use the dates below to demonstrate that a date in 1985 would be at the top of a list of dates ordered in ascending order. Null values in ASC order are displayed last. Place the following dates in descending order: 22-MAY-85, null, 10-JAN-04, 17-NOV-55, 21- DEC-98 Answer: null, 10-JAN-04, 21-DEC-98, 22-MAY-85, 17-NOV-55 The following query can be used to demonstrate this concept: SELECT hire_date FROM employees ORDER BY hire_date DESC; Page 20

25 Tell Me / Show Me Tell Me / Show Me Tell Me / Show Me Explain the query execution order. Ask students to have a mental picture of being able to walk into a database to find information just like finding a book in a library. SELECT employee_id, first_name FROM employees WHERE employee_id < 105 ORDER BY last_name; Page 21

26 Explain to students that it s difficult to verify your results when you sort by a column that you re not SELECTing. In the real world, you would run your query selecting the last_name column until you were sure you were getting the right data. Then you could remove that column from your SELECT statement. Page 22

27 Tell Me / Show Me Tell Me / Show Me Page 23

28 Try It / Solve It Try It / Solve It Tell Me / Show Me Answers: 1. SELECT employee_id AS "Number", first_name, last_name FROM employees ORDER BY "Number"; 2. SELECT title, year FROM d_cds ORDER BY year, title; 3. SELECT title AS "Our Collection" FROM d_songs ORDER BY title DESC; Page 24

29 Try It / Solve It Try It / Solve It Try It / Solve It Answers: 4. SELECT first_name, last_name, student_id, year_in_school, parking_space FROM students WHERE year_in_school = 1 ORDER BY last_name, first_name DESC; (exact syntax names will vary) 5. SELECT department_id, last_name, manager_id FROM employees WHERE employee_id < 125 ORDER BY department_id DESC, last_name DESC; Discuss the graphics with students. Write SELECT statements for each. SELECT DISTINCT item_number, item_names ASC FROM inventory; SELECT last_name, salary DESC; FROM employees; ORDER BY salary DESC; Page 25

30 Lesson 3 - Practice Exercises and Quiz Lesson 3 - Practice Exercises and Quiz Lesson Preparation Review study guide with students. Review vocabulary exercise with students. Review SQL syntax. Ask students which problems they find difficult. Students should take the quiz after completing the practices exercises in this lesson. What is Watch For Students should achieve 70% or better on the quiz. Provide enough time to review for the quiz. After the quiz, review the most difficult questions. Encourage students to practice their skills using self-test software. After students have completed the quiz in this section, review selected questions from the quiz. It is helpful to take the quiz yourself. Give a brief overview of what's next. Connections None. Page 26

31 What Will I Learn? What Will I Learn? Page 27

32 Why Learn It? Why Learn It? Page 28

33 Tell Me / Show Me Tell Me / Show Me Page 29

34 Try It / Solve It Try It / Solve It Try It / Solve It Answers: 1. e. Selection 2. c. ORDER BY 3. a. SELECT d. FROM Page 30

35 Try It / Solve It Try It / Solve It Try It / Solve It Answers: 4. a, b, and c are true 5. c. To select last_names without duplicates 6. d. SELECT first_name ' ' last_name ' is an ' staff_type ' for Global Fast Foods' Page 31

36 Try It / Solve It Try It / Solve It Try It / Solve It Answers: 7. All of the above will return uppercase column headings by default 8. a,b,c will return last names in alphabetical order 9. d. SELECT employee_id AS "New Employees" Page 32

37 Try It / Solve It Try It / Solve It Try It / Solve It Answers: 10. c. Arnie Smithers, administration president, WHERE last_name LIKE 'St%'; 12. COMPENSATION Commission (null) Commission is Page 33

38 Try It / Solve It Try It / Solve It Try It / Solve It Answers: 13. Values less than or equal to 1900 or greater than or equal to 2100 will be included in the result set. 14. a. WHERE department_id NOT IN (101,102,103); b. WHERE last_name = 'King' c. WHERE start_date LIKE '05-MAY-98' d. WHERE salary BETWEEN 5000 AND 7000 e. WHERE id!= Assist students in completing assignments. Review selected practice questions with students. Allow enough time to complete the quiz. Page 34

39 Lesson 4 - Mock Interview Lesson 4 - Mock Interview Lesson Preparation Doing research and conducting the interview may take longer than one class period. You may want to give students copies of the following articles or direct them to Internet resources to narrow their search. The following sites provide information students could use to formulate questions for the interview: Under the heading "Resources" in the left margin, click on "Company Information." CEO_Article_1 Tailoring Databases for Life Science CEO_Article_2 Larry Ellison What to Watch For Set the tone of this exercise from the beginning. Let students know that the interview should be as close to "real" as they can make it. Review your expectations with students. Connections Ask a school official or someone who hires employees to speak to the class about what qualities they look for in a candidate when conducting a job interview. Page 35

40 Some students in the class may have been interviewed for a job, a scholarship, or an internship. Have students relate their experiences. Relate your own experiences in getting a teaching job and the interview process for the job. Discuss why interviews are conducted and the types of interviews students might expect seeking a job, entrance into college, a scholarship, or internship. Internet keyword search "types of interviews." Page 36

41 What Will I Learn? What Will I Learn? Page 37

42 Why Learn It? Why Learn It? Page 38

43 Tell Me / Show Me Tell Me / Show Me Tell Me / Show Me The purpose of the mock interview is to introduce students to the interviewing process. This will allow them to organize and prepare what they want to say as well as how they want to say it. Help students formulate open-ended questions rather than questions that can be answered with a "yes" or "no" (not the best questions for getting an interview subject to share information). For example, "What are the hardest things you have to do as the CEO of such a large company?" "What's a typical business day like for you?" Instead of, Do you like working for Oracle Corporation?, ask Why do you like working for Oracle Corporation? Your role as "Larry Ellison" will be to respond to questions and keep students focused and on task. This simulation should be fun but business-like. This is a good time for you to start contacting other faculty members and local businesses for guest speakers and/or volunteer interviewers. A great resource to start with is the International Oracle User's Group (IOUG). Search for a local contact in your area: US - link UK - link Europe - link Page 39

44 Try It / Solve It Try It / Solve It Try It / Solve It Prepare a list of questions for an interview with Larry Ellison, CEO of Oracle. This exercise is intended to be lighthearted and fun. Give students the freedom to structure this interview. - Using research on the Oracle website, knowledge of new or existing Oracle products, Oracle's history, or news stories about Larry's personal/business life, ask students to create five leading, open-ended questions. One of the questions may be something personal directed to Larry Ellison, but the others should stay focused on business. - Have at least three students act out their fictitious interviews. A suggested method is the "fishbowl" technique. This requires assigning one student to be Larry Ellison and another to be the candidate. Students who are observers will constructively critique the interviews and make suggestions to improve the interview questions. This is an effective technique for simulating the interview experience and allowing other students to see what works and what doesn't. - Instructors and students should begin searching/contacting other faculty members, school administrators, and/or local businesses for job-shadowing opportunities. A sample letter for instructors to send to local businesses inquiring about job-shadowing opportunities can be obtained here. This can be modified for students to use in making their own inquiries. Page 40

45 Lesson 5 - Introduction to Functions Single-Row Functions Lesson 5 - Introduction to Functions Single-Row Functions Lesson Preparation None. What to Watch For You can't assign too much practice with functions! The next sections present them in depth. Connections Ask students who have used a library computer system to search for a specific book, if they had to enter the book title/author or subject in uppercase or lowercase? Did it matter what case the query was entered in? Most likely the computer program had built-in functions to handle this situation. Having functions built into programs makes data retrieval seamless for the user. Page 41

46 What Will I Learn? What Will I Learn? Page 42

47 Why Learn It? Why Learn It? Why Learn It? How could you find out whether the information in the DJ on Demand CD titles table is stored in uppercase or lowercase? Execute a SELECT statement for the column in HTML DB and look at the output. SELECT title FROM d_cds; What if the report you're reading has the date displayed as April 14th, 2004, but you know the data is stored in an internal numeric format and displayed in the DD-MON-YY format? The person who created the report changed the date format in the query. SELECT last_name, TO_CHAR(hire_date, 'Month ddth, YYYY') FROM employees; Explain to students that had they been the person searching for cd at the kiosk, they would have not made that case mistake! Explain the graphic to students. Define arg (arguments) as input values to functions. Functions use one or more arguments to perform calculations and in turn produce output. Input values Page 43

48 will be changed or transformed into something different as output -- that's the purpose of a function. Help students organize the SQL syntax for each of the five groups of single-row functions. Use the single-row functions graphic each time a new group is introduced. Page 44

49 Tell Me / Show Me Tell Me / Show Me Tell Me / Show Me Begin this lesson with a review question. How would you write a query to sort the song titles in the DJ database alphabetically? SELECT title FROM d_songs This lesson begins with an introduction to SQL functions and concludes with the History of Computing activity. Learning the many different functions can be a challenge for students. Focus on helping students see the big picture of the different categories of functions and the syntax for each type. If possible, copy for students the list of functions (link to it). It will help them organize the information in this and subsequent sections about functions. Students could make posters that summarize the different groups of functions. It may also help them organize the information. Display the Single-Row Functions graphic each time you teach a new function group. Read and discuss what functions are capable of accomplishing. Give examples for each and ask "What advantages do these capabilities offer businesses?" Look for answers that Include: Page 45

50 - Readability (you can store the date with date, hours, minutes, and seconds, but the user may only care about day, month, and year); - Formatting (numbers in the data base, such as salary data, lack formatting. The user, however, may require numeric data displayed as $ for United States dollars or for British pounds); - Ease of use in data entry (dates entered as Month dd, RRRR are converted to the default format using date conversions). Page 46

51 Tell Me / Show Me Tell Me / Show Me Page 47

52 Tell Me / Show Me Tell Me / Show Me Tell Me / Show Me Demonstrate the following examples of single-row functions to give students a preview for what's ahead. Explain that SQL functions are statements used to perform program-specific tasks. Ask students to identify the function in each example. SELECT 'The most popular song in our collection is ' UPPER(title)AS "Most Requested" FROM d_songs WHERE id = 47 SELECT CONCAT(title, year) FROM d_cds; Page 48

53 Try It / Solve It Try It / Solve It Try It / Solve It In this lesson, students will use the Internet to research the people and businesses that contributed to the development of the Internet. Internet search keywords "internet timeline" or "Hobbe's Internet Timeline." Using adding-machine-tape paper or poster paper cut into strips, create a 10-foot mural for the classroom. Divide the paper into a timeline as follows: allow about 1/4 of the length from 1800 to 1970 and the remaining 3/4 from 1970 to present. Assign topics to groups. Each group should find a minimum of four events. Each group must identify a person, a place, and a thing associated with their topic. The topics to be included are: - Historical thinkers: people without whose inventions computers and communication as we know it today could not be possible (Samuel Morse, Alexander Graham Bell, Vannevar Bush) - Enablers: universities, government agencies, and businesses that contributed to the idea of the Internet and birth of the Internet (ARPANET, NSF, CERN, Rand Corp.) - Communicators: people who developed computer languages, computer networks, and the technology to be able to talk computer to computer (Ray Tomlinson, Bob Metcalf, Vinton Cerf, Larry Wall) Page 49

54 - Innovators: people and business that enabled the average person to be able to use a computer and communicate on the Internet (Microsoft, Apple, AOL, Netscape, Yahoo) - Movers and shakers: people and companies that transformed the Internet into a virtual mall of information and services (Oracle, Amazon.com, EBay, MSN) Page 50

DUE: 9. Create a query that will return the average order total for all Global Fast Foods orders from January 1, 2002, to December 21, 2002.

DUE: 9. Create a query that will return the average order total for all Global Fast Foods orders from January 1, 2002, to December 21, 2002. CIS 207 Oracle - Database Programming and SQL HOMEWORK: # 10 DUE: Run the following queries in Oracle Application Express. Paste a copy of each query Into this word document below the questions or notepad.txt

More information

CS 275 Winter 2011 Problem Set 3

CS 275 Winter 2011 Problem Set 3 CS 275 Winter 2011 Problem Set 3 Run the following quires in Oracle Application Express where appropriate. Cut and paste your query for each applicable question. For short answer or multiple choice type

More information

GIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement

GIFT Department of Computing Science Data Selection and Filtering using the SELECT Statement GIFT Department of Computing Science [Spring 2013] CS-217: Database Systems Lab-2 Manual Data Selection and Filtering using the SELECT Statement V1.0 4/12/2016 Introduction to Lab-2 This lab reinforces

More information

Restricting and Sorting Data. Copyright 2004, Oracle. All rights reserved.

Restricting and Sorting Data. Copyright 2004, Oracle. All rights reserved. Restricting and Sorting Data Objectives After completing this lesson, you should be able to do the following: Limit the rows that are retrieved by a query Sort the rows that are retrieved by a query Use

More information

Database Programming with SQL

Database Programming with SQL Database Programming with SQL 3-2 Objectives This lesson covers the following objectives: Construct a query to sort a result set in ascending or descending order State the order in which expressions are

More information

Restricting and Sorting Data. Copyright 2004, Oracle. All rights reserved.

Restricting and Sorting Data. Copyright 2004, Oracle. All rights reserved. Restricting and Sorting Data Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Limit the rows that are retrieved by a query Sort

More information

Database Programming - Section 11. Instructor Guide

Database Programming - Section 11. Instructor Guide Database Programming - Section 11 Instructor Guide Table of Contents...1 Lesson 1 - In-Class Interview...1 What Will I Learn?...3 Why Learn It?...4...5 Try It / Solve It...9 Lesson 2 - Creating Views...12

More information

Limit Rows Selected. Copyright 2008, Oracle. All rights reserved.

Limit Rows Selected. Copyright 2008, Oracle. All rights reserved. What Will I Learn? In this lesson, you will learn to: Apply SQL syntax to restrict the rows returned from a query Demonstrate application of the WHERE clause syntax Explain why it is important, from a

More information

chapter 2 G ETTING I NFORMATION FROM A TABLE

chapter 2 G ETTING I NFORMATION FROM A TABLE chapter 2 Chapter G ETTING I NFORMATION FROM A TABLE This chapter explains the basic technique for getting the information you want from a table when you do not want to make any changes to the data and

More information

Database Programming - Section 7. Instructor Guide

Database Programming - Section 7. Instructor Guide Database Programming - Section 7 Instructor Guide Table of Contents...1 Lesson 1 - Multiple-Row Subqueries...1 What Will I Learn?...3 Why Learn It?...4...5 Try It / Solve It...12 Lesson 2 - Practice Exercises

More information

Testing Masters Technologies

Testing Masters Technologies 1. What is Data warehouse ETL TESTING Q&A Ans: A Data warehouse is a subject oriented, integrated,time variant, non volatile collection of data in support of management's decision making process. Subject

More information

DUE: CD_NUMBER TITLE PRODUCER YEAR 97 Celebrate the Day R & B Inc Holiday Tunes for All Tunes are US 2004

DUE: CD_NUMBER TITLE PRODUCER YEAR 97 Celebrate the Day R & B Inc Holiday Tunes for All Tunes are US 2004 CIS 207 Oracle - Database Programming and SQL HOMEWORK: # 12 DUE: Run the following queries in Oracle Application Express. Paste a copy of each query Into this word document below the questions, save and

More information

Database Programming - Section 1. Instructor Guide

Database Programming - Section 1. Instructor Guide Database Programming - Section 1 Instructor Guide Table of Contents...1 Lesson 1 - Case and Character Manipulation...1 What Will I Learn?...2 Why Learn It?...3...4 Try It / Solve It...10 Lesson 2 - Number

More information

Getting Information from a Table

Getting Information from a Table ch02.fm Page 45 Wednesday, April 14, 1999 2:44 PM Chapter 2 Getting Information from a Table This chapter explains the basic technique of getting the information you want from a table when you do not want

More information

Database Foundations. 6-4 Data Manipulation Language (DML) Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Foundations. 6-4 Data Manipulation Language (DML) Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Foundations 6-4 Roadmap You are here Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML) Transaction Control

More information

Database Programming - Section 10. Instructor Guide

Database Programming - Section 10. Instructor Guide Database Programming - Section 10 Instructor Guide Table of Contents...1 Lesson 1 - Defining NOT NULL and UNIQUE Constraints...1 What Will I Learn?...2 Why Learn It?...3...4 Try It / Solve It...13 Lesson

More information

RESTRICTING AND SORTING DATA

RESTRICTING AND SORTING DATA RESTRICTING AND SORTING DATA http://www.tutorialspoint.com/sql_certificate/restricting_and_sorting_data.htm Copyright tutorialspoint.com The essential capabilities of SELECT statement are Selection, Projection

More information

Database Programming - Section 18. Instructor Guide

Database Programming - Section 18. Instructor Guide Database Programming - Section 18 Instructor Guide Table of Contents...1 Lesson 1 - Certification Exam Preparation...1 What Will I Learn?...2 Why Learn It?...3 Tell Me / Show Me...4 Try It / Solve It...5

More information

Using the Set Operators. Copyright 2006, Oracle. All rights reserved.

Using the Set Operators. Copyright 2006, Oracle. All rights reserved. Using the Set Operators Objectives After completing this lesson, you should be able to do the following: Describe set operators Use a set operator to combine multiple queries into a single query Control

More information

Database Programming with SQL

Database Programming with SQL Database Programming with SQL 2-1 Objectives This lesson covers the following objectives: Apply the concatenation operator to link columns to other columns, arithmetic expressions, or constant values to

More information

ÇALIŞMA TEST SORULARI

ÇALIŞMA TEST SORULARI 1. A table has the following definition: EMPLOYEES( EMPLOYEE_ID NUMBER(6) NOT NULL, LAST_NAME VARCHAR2(10) NOT NULL, MANAGER_ID VARCHAR2(6)) and contains the following rows: (1001, 'Bob Bevan', '200')

More information

Instructor: Craig Duckett. Lecture 03: Tuesday, April 3, 2018 SQL Sorting, Aggregates and Joining Tables

Instructor: Craig Duckett. Lecture 03: Tuesday, April 3, 2018 SQL Sorting, Aggregates and Joining Tables Instructor: Craig Duckett Lecture 03: Tuesday, April 3, 2018 SQL Sorting, Aggregates and Joining Tables 1 Assignment 1 is due LECTURE 5, Tuesday, April 10 th, 2018 in StudentTracker by MIDNIGHT MID-TERM

More information

Database Design & Programming with SQL: Part 1 Learning Objectives

Database Design & Programming with SQL: Part 1 Learning Objectives Database Design & Programming with SQL: Part 1 Learning Objectives This is the first portion of the Database Design and Programming with SQL course. In this portion, students learn to analyze complex business

More information

Manipulating Data. Copyright 2004, Oracle. All rights reserved.

Manipulating Data. Copyright 2004, Oracle. All rights reserved. Manipulating Data Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML) statement

More information

Database Programming with SQL 5-1 Conversion Functions. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Programming with SQL 5-1 Conversion Functions. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Programming with SQL 5-1 Objectives This lesson covers the following objectives: Provide an example of an explicit data-type conversion and an implicit data-type conversion Explain why it is important,

More information

School of Computing and Information Technology. Examination Paper Autumn Session 2017

School of Computing and Information Technology. Examination Paper Autumn Session 2017 School of Computing and Information Technology CSIT115 Data Management and Security Wollongong Campus Student to complete: Family name Other names Student number Table number Examination Paper Autumn Session

More information

Retrieving Data Using the SQL SELECT Statement. Copyright 2009, Oracle. All rights reserved.

Retrieving Data Using the SQL SELECT Statement. Copyright 2009, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement

More information

Working with Columns, Characters and Rows. Copyright 2008, Oracle. All rights reserved.

Working with Columns, Characters and Rows. Copyright 2008, Oracle. All rights reserved. Working with Columns, Characters and Rows What Will I Learn? In this lesson, you will learn to: Apply the concatenation operator to link columns to other columns, arithmetic expressions or constant values

More information

Database Design - Section 11. Instructor Guide

Database Design - Section 11. Instructor Guide Instructor Guide Table of Contents...1 Lesson 1 - What About Me?...1 What Will I Learn?...2 Why Learn It?...3...4 Try It / Solve It...5 Lesson 2 - Drawing Conventions for Readability...6 What Will I Learn?...7

More information

Retrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved.

Retrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL

More information

Database Programming - Section 8. Instructor Guide

Database Programming - Section 8. Instructor Guide Database Programming - Section 8 Instructor Guide Table of Contents...1 Lesson 1 - DEFAULT Values and the MERGE Statement...1 What Will I Learn?...3 Why Learn It?...4 Tell Me / Show Me...5 Try It / Solve

More information

Intermediate SQL: Aggregated Data, Joins and Set Operators

Intermediate SQL: Aggregated Data, Joins and Set Operators Intermediate SQL: Aggregated Data, Joins and Set Operators Aggregated Data and Sorting Objectives After completing this lesson, you should be able to do the following: Identify the available group functions

More information

Using the Set Operators. Copyright 2004, Oracle. All rights reserved.

Using the Set Operators. Copyright 2004, Oracle. All rights reserved. Using the Set Operators Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe set operators Use a set operator to combine

More information

Data Manipulation Language

Data Manipulation Language Manipulating Data Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML) statement Insert rows into a table Update rows in a table

More information

Institute of Aga. Microsoft SQL Server LECTURER NIYAZ M. SALIH

Institute of Aga. Microsoft SQL Server LECTURER NIYAZ M. SALIH Institute of Aga 2018 Microsoft SQL Server LECTURER NIYAZ M. SALIH Database: A Database is a collection of related data organized in a way that data can be easily accessed, managed and updated. Any piece

More information

Institute of Aga. Network Database LECTURER NIYAZ M. SALIH

Institute of Aga. Network Database LECTURER NIYAZ M. SALIH 2017 Institute of Aga Network Database LECTURER NIYAZ M. SALIH Database: A Database is a collection of related data organized in a way that data can be easily accessed, managed and updated. Any piece of

More information

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9)

MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) Technology & Information Management Instructor: Michael Kremer, Ph.D. Class 4 Professional Program: Data Administration and Management MANAGING DATA(BASES) USING SQL (NON-PROCEDURAL SQL, X401.9) AGENDA

More information

Database Programming with SQL

Database Programming with SQL Database Programming with SQL 4-3 Objectives This lesson covers the following objectives: Demonstrate the use of SYSDATE and date functions State the implications for world businesses to be able to easily

More information

Retrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved.

Retrieving Data Using the SQL SELECT Statement. Copyright 2004, Oracle. All rights reserved. Retrieving Data Using the SQL SELECT Statement Objectives After completing this lesson, you should be able to do the following: List the capabilities of SQL SELECT statements Execute a basic SELECT statement

More information

School of Computing and Information Technology Session: Spring CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018

School of Computing and Information Technology Session: Spring CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018 School of Computing and Information Technology Session: Spring 2018 University of Wollongong Lecturer: Janusz R. Getta CSCI835 Database Systems (Bridging Subject) Sample class test 23 July 2018 THE QUESTIONS

More information

c r e at i N g yo u r F i r S t d ata b a S e a N d ta b l e

c r e at i N g yo u r F i r S t d ata b a S e a N d ta b l e 1 Creating Your First Database and Table SQL is more than just a means for extracting knowledge from data. It s also a language for defining the structures that hold data so we can organize relationships

More information

RETRIEVING DATA USING THE SQL SELECT STATEMENT

RETRIEVING DATA USING THE SQL SELECT STATEMENT RETRIEVING DATA USING THE SQL SELECT STATEMENT Course Objectives List the capabilities of SQL SELECT statements Execute a basic SELECT statement Development Environments for SQL Lesson Agenda Basic SELECT

More information

Oracle 1Z Oracle Database 11g SQL Fundamentals I. Download Full Version :

Oracle 1Z Oracle Database 11g SQL Fundamentals I. Download Full Version : Oracle 1Z1-051 Oracle Database 11g SQL Fundamentals I Download Full Version : https://killexams.com/pass4sure/exam-detail/1z1-051 QUESTION: 238 You need to perform these tasks: - Create and assign a MANAGER

More information

King Fahd University of Petroleum and Minerals

King Fahd University of Petroleum and Minerals 1 King Fahd University of Petroleum and Minerals Information and Computer Science Department ICS 334: Database Systems Semester 041 Major Exam 1 18% ID: Name: Section: Grades Section Max Scored A 5 B 25

More information

Instructional Design: ADDIE Model

Instructional Design: ADDIE Model Instructional Design: ADDIE Model RenWeb Training for Teachers at Trinity Lutheran School EDT 892 Instructional Design Tiffany Gurgel October 2013 EDT 892 Instructional Design - RenWeb Training by Tiffany

More information

Táblák tartalmának módosítása. Copyright 2004, Oracle. All rights reserved.

Táblák tartalmának módosítása. Copyright 2004, Oracle. All rights reserved. Táblák tartalmának módosítása Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Describe each data manipulation language (DML)

More information

EE221 Databases Practicals Manual

EE221 Databases Practicals Manual EE221 Databases Practicals Manual Lab 1 An Introduction to SQL Lab 2 Database Creation and Querying using SQL Assignment Data Analysis, Database Design, Implementation and Relation Normalisation School

More information

Introduction to Oracle9i: SQL

Introduction to Oracle9i: SQL Oracle 1z0-007 Introduction to Oracle9i: SQL Version: 22.0 QUESTION NO: 1 Oracle 1z0-007 Exam Examine the data in the EMPLOYEES and DEPARTMENTS tables. You want to retrieve all employees, whether or not

More information

Additional Practice Solutions

Additional Practice Solutions Additional Practice Solutions Additional Practices Solutions The following exercises can be used for extra practice after you have discussed the data manipulation language (DML) and data definition language

More information

Oracle Database 10g: SQL Fundamentals I

Oracle Database 10g: SQL Fundamentals I Oracle Database 10g: SQL Fundamentals I Electronic Presentation D17108GC11 Production 1.1 August 2004 D39769 Author Nancy Greenberg Technical Contributors and Reviewers Wayne Abbott Christian Bauwens Perry

More information

Conversion Functions

Conversion Functions Conversion Functions Data type conversion Implicit data type conversion Explicit data type conversion 3-1 Implicit Data Type Conversion For assignments, the Oracle server can automatically convert the

More information

SQL Structured Query Language Introduction

SQL Structured Query Language Introduction SQL Structured Query Language Introduction Rifat Shahriyar Dept of CSE, BUET Tables In relational database systems data are represented using tables (relations). A query issued against the database also

More information

Bsc (Hons) Software Engineering. Examinations for / Semester 1. Resit Examinations for BSE/15A/FT & BSE/16A/FT

Bsc (Hons) Software Engineering. Examinations for / Semester 1. Resit Examinations for BSE/15A/FT & BSE/16A/FT Bsc (Hons) Software Engineering Cohort: BSE/16B/FT Examinations for 2017-2018 / Semester 1 Resit Examinations for BSE/15A/FT & BSE/16A/FT MODULE: DATABASE APPLICATION DEVELOPMENT MODULE CODE: DBT2113C

More information

What Are Group Functions? Reporting Aggregated Data Using the Group Functions. Objectives. Types of Group Functions

What Are Group Functions? Reporting Aggregated Data Using the Group Functions. Objectives. Types of Group Functions What Are Group Functions? Group functions operate on sets of rows to give one result per group. Reporting Aggregated Data Using the Group Functions Maximum salary in table Copyright 2004, Oracle. All rights

More information

CS 327E Lecture 2. Shirley Cohen. January 27, 2016

CS 327E Lecture 2. Shirley Cohen. January 27, 2016 CS 327E Lecture 2 Shirley Cohen January 27, 2016 Agenda Announcements Homework for today Reading Quiz Concept Questions Homework for next time Announcements Lecture slides and notes will be posted on the

More information

Updating Column Values and Deleting Rows. Copyright 2008, Oracle. All rights reserved.

Updating Column Values and Deleting Rows. Copyright 2008, Oracle. All rights reserved. Updating Column Values and Deleting Rows What Will I Learn? In this lesson, you will learn to: Construct and execute an UPDATE statement Construct and execute a DELETE statement Construct and execute a

More information

Using DbVisualizer Variables

Using DbVisualizer Variables Using DbVisualizer Variables DbVisualizer variables are used to build parameterized SQL statements and let DbVisualizer prompt you for the values when the SQL is executed. This is handy if you are executing

More information

Database Programming - Section 16. Instructor Guide

Database Programming - Section 16. Instructor Guide Database Programming - Section 16 Instructor Guide Table of Contents...1 Lesson 1 - Final Exam Preparation...1 What Will I Learn?...2 Why Learn It?...3 Tell Me / Show Me...4 Try It / Solve It...5 Lesson

More information

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one

Consistency The DBMS must ensure the database will always be in a consistent state. Whenever data is modified, the database will change from one Data Management We start our studies of Computer Science with the problem of data storage and organization. Nowadays, we are inundated by data from all over. To name a few data sources in our lives, we

More information

Overview: Students explore how they can use to communicate with real people within their schools, families, and communities.

Overview: Students explore how they can use  to communicate with real people within their schools, families, and communities. Sending Email LESSON PLAN Essential Question: How do you connect with others through email? Learning Overview and Objectives Overview: Students explore how they can use email to communicate with real people

More information

Lab # 6. Using Subqueries and Set Operators. Eng. Alaa O Shama

Lab # 6. Using Subqueries and Set Operators. Eng. Alaa O Shama The Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4113: Database Lab Lab # 6 Using Subqueries and Set Operators Eng. Alaa O Shama November, 2015 Objectives:

More information

Retrieving Data from Multiple Tables

Retrieving Data from Multiple Tables Islamic University of Gaza Faculty of Engineering Computer Engineering Dept. Database Lab (ECOM 4113) Lab 5 Retrieving Data from Multiple Tables Eng. Mohammed Alokshiya November 2, 2014 An JOIN clause

More information

Oracle Database: SQL Fundamentals I. Oracle Internal & Oracle Academy Use Only. Volume II Student Guide. D64258GC10 Edition 1.0 January 2010 D65028

Oracle Database: SQL Fundamentals I. Oracle Internal & Oracle Academy Use Only. Volume II Student Guide. D64258GC10 Edition 1.0 January 2010 D65028 D64258GC10 Edition 1.0 January 2010 D65028 Oracle Database: SQL Fundamentals I Volume II Student Guide Authors Salome Clement Brian Pottle Puja Singh Technical Contributors and Reviewers Anjulaponni Azhagulekshmi

More information

Course Overview. Copyright 2010, Oracle and/or its affiliates. All rights reserved.

Course Overview. Copyright 2010, Oracle and/or its affiliates. All rights reserved. Course Overview Course Objectives After completing this course, you should be able to do the following: Manage application navigation by using hierarchical lists with images, database-driven navigation,

More information

Introduction to Relational Database Concepts. Copyright 2011, Oracle. All rights reserved.

Introduction to Relational Database Concepts. Copyright 2011, Oracle. All rights reserved. Introduction to Relational Database Concepts Copyright 2011, Oracle. All rights reserved. What Will I Learn? Objectives In this lesson, you will learn to: Define a primary key Define a foreign key Define

More information

CS Reading Packet: "Views, and Simple Reports - Part 1"

CS Reading Packet: Views, and Simple Reports - Part 1 CS 325 - Reading Packet: "Views, and Simple Reports - Part 1" p. 1 Sources: CS 325 - Reading Packet: "Views, and Simple Reports - Part 1" * Oracle9i Programming: A Primer, Rajshekhar Sunderraman, Addison

More information

Oracle Database SQL Basics

Oracle Database SQL Basics Oracle Database SQL Basics Kerepes Tamás, Webváltó Kft. tamas.kerepes@webvalto.hu 2015. február 26. Copyright 2004, Oracle. All rights reserved. SQL a history in brief The relational database stores data

More information

Database Programming - Section 3. Instructor Guide

Database Programming - Section 3. Instructor Guide Database Programming - Section 3 Instructor Guide Table of Contents...1 Lesson 1 - Destinations: What's in My Future?...1 What Will I Learn?...3 Why Learn It?...4 Tell Me / Show Me...5 Try It / Solve

More information

Writing Cover Letters

Writing Cover Letters Writing Cover Letters Communicating with Employers What is a cover letter? A cover letter is a document submitted with a job application explaining the applicant s credentials and interest in the open

More information

Access 2016 Module 7: Enhancing Forms

Access 2016 Module 7: Enhancing Forms Microsoft Access 2016 Instructor s Manual Page 1 of 8 Access 2016 Module 7: Enhancing Forms A Guide to this Instructor s Manual: We have designed this Instructor s Manual to supplement and enhance your

More information

Curriculum Mapping for National Curriculum Statement Grades R-12 and Oracle Academy.

Curriculum Mapping for National Curriculum Statement Grades R-12 and Oracle Academy. Curriculum Mapping for National Curriculum Statement Grades R-12 and Oracle Academy. Contents Executive Summary... 3 IT Curriculum Overview... 3 Aims... 3 Oracle Academy Introduction to Computer Science...

More information

GIFT Department of Computing Science. [Spring 2016] CS-217: Database Systems. Lab-3 Manual. Single Row Functions in SQL

GIFT Department of Computing Science. [Spring 2016] CS-217: Database Systems. Lab-3 Manual. Single Row Functions in SQL GIFT Department of Computing Science [Spring 2016] CS-217: Database Systems Lab-3 Manual Single Row Functions in SQL V3.0 4/26/2016 Introduction to Lab-3 Functions make the basic query block more powerful,

More information

Unit 9 Tech savvy? Tech support. 1 I have no idea why... Lesson A. A Unscramble the questions. Do you know which battery I should buy?

Unit 9 Tech savvy? Tech support. 1 I have no idea why... Lesson A. A Unscramble the questions. Do you know which battery I should buy? Unit 9 Tech savvy? Lesson A Tech support 1 I have no idea why... A Unscramble the questions. 1. which battery / Do you know / should / buy / I? Do you know which battery I should buy? 2. they / where /

More information

GIFT Department of Computing Science. CS-217/224: Database Systems. Lab-5 Manual. Displaying Data from Multiple Tables - SQL Joins

GIFT Department of Computing Science. CS-217/224: Database Systems. Lab-5 Manual. Displaying Data from Multiple Tables - SQL Joins GIFT Department of Computing Science CS-217/224: Database Systems Lab-5 Manual Displaying Data from Multiple Tables - SQL Joins V3.0 5/5/2016 Introduction to Lab-5 This lab introduces students to selecting

More information

Data Manipulation Language (DML)

Data Manipulation Language (DML) In the name of Allah Islamic University of Gaza Faculty of Engineering Computer Engineering Department ECOM 4113 DataBase Lab Lab # 3 Data Manipulation Language (DML) El-masry 2013 Objective To be familiar

More information

Assignment Grading Rubric

Assignment Grading Rubric Final Project Outcomes addressed in this activity: Overview and Directions: 1. Create a new Empty Database called Final 2. CREATE TABLES The create table statements should work without errors, have the

More information

Join, Sub queries and set operators

Join, Sub queries and set operators Join, Sub queries and set operators Obtaining Data from Multiple Tables EMPLOYEES DEPARTMENTS Cartesian Products A Cartesian product is formed when: A join condition is omitted A join condition is invalid

More information

CS Reading Packet: "Writing relational operations using SQL"

CS Reading Packet: Writing relational operations using SQL CS 325 - Reading Packet: "Writing relational operations using SQL" p. 1 CS 325 - Reading Packet: "Writing relational operations using SQL" Sources: Oracle9i Programming: A Primer, Rajshekhar Sunderraman,

More information

COURSE OUTLINE. IST 253 Database Concept 3 Course Number Course Title Credits

COURSE OUTLINE. IST 253 Database Concept 3 Course Number Course Title Credits COURSE OUTLINE IST 253 Database Concept 3 Course Number Course Title Credits 2 2 N/A N/A 15 Class or Laboratory Clinical or Studio Practicum, Course Length Lecture Work Hours Hours Co-op, Internship (15

More information

Department of Computer Science and Information Systems, College of Business and Technology, Morehead State University

Department of Computer Science and Information Systems, College of Business and Technology, Morehead State University 1 Department of Computer Science and Information Systems, College of Business and Technology, Morehead State University Lecture 3 Part A CIS 311 Introduction to Management Information Systems (Spring 2017)

More information

Why Relational Databases? Relational databases allow for the storage and analysis of large amounts of data.

Why Relational Databases? Relational databases allow for the storage and analysis of large amounts of data. DATA 301 Introduction to Data Analytics Relational Databases Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Relational Databases? Relational

More information

Key Points. COSC 122 Computer Fluency. Databases. What is a database? Databases in the Real-World DBMS. Database System Approach

Key Points. COSC 122 Computer Fluency. Databases. What is a database? Databases in the Real-World DBMS. Database System Approach COSC 122 Computer Fluency Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Key Points 1) allow for easy storage and retrieval of large amounts of information. 2) Relational

More information

Introduction to

Introduction to Introduction to Email gcflearnfree.org/print/email101/introduction-to-email Introduction Do you ever feel like the only person who doesn't use email? You don't have to feel left out. If you're just getting

More information

Sending LESSON PLAN UNIT 1. Essential Question How do you connect with others through ?

Sending  LESSON PLAN UNIT 1. Essential Question How do you connect with others through  ? LESSON PLAN Sending Email UNIT 1 Essential Question How do you connect with others through email? Lesson Overview Students explore how they can use email to communicate with real people within their schools,

More information

3/3/2008. Announcements. A Table with a View (continued) Fields (Attributes) and Primary Keys. Video. Keys Primary & Foreign Primary/Foreign Key

3/3/2008. Announcements. A Table with a View (continued) Fields (Attributes) and Primary Keys. Video. Keys Primary & Foreign Primary/Foreign Key Announcements Quiz will cover chapter 16 in Fluency Nothing in QuickStart Read Chapter 17 for Wednesday Project 3 3A due Friday before 11pm 3B due Monday, March 17 before 11pm A Table with a View (continued)

More information

Basic Mapping: The Transformation Process. Copyright 2011, Oracle. All rights reserved.

Basic Mapping: The Transformation Process. Copyright 2011, Oracle. All rights reserved. Basic Mapping: The Transformation Process Copyright 2011, Oracle. All rights reserved. What Will I Learn? Objectives In this lesson, you will learn to: Distinguish entity relationship models from database

More information

SELF TEST. List the Capabilities of SQL SELECT Statements

SELF TEST. List the Capabilities of SQL SELECT Statements 98 SELF TEST The following questions will help you measure your understanding of the material presented in this chapter. Read all the choices carefully because there might be more than one correct answer.

More information

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables

INDEX. 1 Basic SQL Statements. 2 Restricting and Sorting Data. 3 Single Row Functions. 4 Displaying data from multiple tables INDEX Exercise No Title 1 Basic SQL Statements 2 Restricting and Sorting Data 3 Single Row Functions 4 Displaying data from multiple tables 5 Creating and Managing Tables 6 Including Constraints 7 Manipulating

More information

Database Programming with SQL

Database Programming with SQL Database Programming with SQL 10-4 Objectives This lesson covers the following objectives: Identify when correlated subqueries are needed. Construct and execute correlated subqueries. Construct and execute

More information

Database Design. 2-3 Entity Relationship Modeling and ERDs. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Design. 2-3 Entity Relationship Modeling and ERDs. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Design 2-3 Objectives This lesson covers the following objectives: Define the meaning of implementation-free as it relates to data models and database design implementation List the four goals

More information

STUDENT USER GUIDE FOR

STUDENT USER GUIDE FOR STUDENT USER GUIDE FOR Contents Registering on Handshake... p. 2 Adjusting Public/Private settings...p. 3 Setting Notification Preferences p. 4 Uploading Documents. p. 4 Editing Documents... p. 5 Searching

More information

Creating Other Schema Objects

Creating Other Schema Objects Creating Other Schema Objects Objectives After completing this lesson, you should be able to do the following: Create simple and complex views Retrieve data from views Database Objects Object Table View

More information

CREATE TABLE COUNTRIES (COUNTRY_ID CHAR(2), COUNTRY_NAME VARCHAR2(40), REGION_ID NUMBER(4)); INSERT INTO COUNTRIES VALUES ('CA','Canada',2); INSERT INTO COUNTRIES VALUES ('DE','Germany',1); INSERT INTO

More information

QUETZALANDIA.COM. 5. Data Manipulation Language

QUETZALANDIA.COM. 5. Data Manipulation Language 5. Data Manipulation Language 5.1 OBJECTIVES This chapter involves SQL Data Manipulation Language Commands. At the end of this chapter, students should: Be familiar with the syntax of SQL DML commands

More information

Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations. SQL: Structured Query Language

Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations. SQL: Structured Query Language Implementing Table Operations Using Structured Query Language (SQL) Using Multiple Operations Show Only certain columns and rows from the join of Table A with Table B The implementation of table operations

More information

ITEC212 Database Management Systems Laboratory 2

ITEC212 Database Management Systems Laboratory 2 ITEC212 Database Management Systems Laboratory 2 Aim: To learn how to use Single Row Functions and other important functions. In this handout we will learn about the single row functions that are used

More information

Can't Add Songs To Iphone From Itunes 11 >>>CLICK HERE<<<

Can't Add Songs To Iphone From Itunes 11 >>>CLICK HERE<<< Can't Add Songs To Iphone From Itunes 11 Plug in your iphone or ipad running ios 8 or higher and launch itunes. Even for my ipod touch, for which I have a 64GB, I have to add genres one by Make sure you

More information

chapter 12 C ONTROLLING THE LEVEL OF

chapter 12 C ONTROLLING THE LEVEL OF chapter 12 C ONTROLLING THE LEVEL OF S UMMARIZATION In chapter 11, we summarized all the data in a column of a table. The result was a single value. In this chapter, we divide the rows of the table into

More information

Course Outline and Objectives: Database Programming with SQL

Course Outline and Objectives: Database Programming with SQL Introduction to Computer Science and Business Course Outline and Objectives: Database Programming with SQL This is the second portion of the Database Design and Programming with SQL course. In this portion,

More information

DEC Computer Technology LESSON 6: DATABASES AND WEB SEARCH ENGINES

DEC Computer Technology LESSON 6: DATABASES AND WEB SEARCH ENGINES DEC. 1-5 Computer Technology LESSON 6: DATABASES AND WEB SEARCH ENGINES Monday Overview of Databases A web search engine is a large database containing information about Web pages that have been registered

More information