Assignment Grading Rubric
|
|
- Diana Underwood
- 5 years ago
- Views:
Transcription
1 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 specified data types, foreign keys, primary keys and all other constraints. 3. INSERT DATA The inserts should run without error and the proper number of records containing the proper data types should be in each table. Constraints must be respected throughout. For 4 7 Use the Northwind database for answering all queries, sub-queries, views, and FIX the Code sections. -- You created the Northwind database in the Unit 9 assignment by running the instnwnd.sql script located in doc sharing. 4. CREATE VIEWs The views should display the correct data and run without error. 5. CREATE QUERIES Queries should display the correct result set and run without error. 6. CREATE SUB-QUERIES Sub-queries should display the correct result set and run without error. 7. FIX the CODE Make sure to read the instructions carefully under the FIX the CODE The Details of each of these outcomes are presented below in the details section. Complete a word Document with Cover Page
2 Provide a text version of each SQL statement you use below the specific question and above the screenshot of you results. Your Professor may want to cut and paste the SQL Statements into SQL Server in order to test them -- He cannot do that if they are only screen shots. and Be sure to paste in all screenshots of each of the SQL statements, showing the results for each step in the process. For Views show the results of running a select * from viewname as well as the actual view creation SQL Statement Be as complete as possible, your Professor will be looking to see if you have thought about and have implemented all the details properly. Final Project Details. 1. Create a new Empty Database called Final_db 1. CREATE 3 tables in Final_db With the following appropriate and correct (syntax, readability, primary keys, data types and lengths, and foreign key creation). Create the following 3 tables. Choose appropriate data types and create all specified NOTE**** You must have all the following constraints properly defined in order to receive any points on the final project Primary and Foreign key constraints and Named CHECK Constraints. Table: DEPARTMENTS DEPARTMENT_ID Primary Key
3 DEPARTMENT_NAME NOT NULL MANAGER_ID FK refers to PK of Employees table. LOCATION_ID FK refers to PK of Locations table. Table: EMPLOYEES EMPLOYEE_ID Primary Key FIRST_NAME NOT NULL LAST_NAME NOT NULL SALARY NOT NULL MUST BE > 10,000 and < 500,000 INCOMETXRATE NOT NULL MUST BE 5, 10, or 15 PHONE_NUMBER HIRE_DATE NOT NULL MANAGER_ID FK refers to the PK of the Employees table. DEPARTMENT_ID FK refers to the PK of the Departments table. Table: LOCATIONS LOCATION_ID Primary Key DESCRIPTION NOT NULL POSTAL_CODE NOT NULL CITY NOT NULL STATE_PROVINCE NOT NULL COUNTRY NOT NULL Default United States Hint.. You may use ALTER table syntax in order to apply Foreign Key Constraints after the data has been loaded into the tables. This can make it easier and faster when working with large data sets. But you need to know that your data is consistent and does not violate the Foreign Keys before loading. 3. INSERT data for each table. (Make up appropriate data for each table - respecting Data Types and Foreign Keys) Your insert SQL Statements need to have the required number of rows in each table, run without error and be in the proper order so that Foreign key constraints do not fail. Insert 4 departments, 10 employees, and 3 locations. Make sure to use all locations within the departments table Make sure to use all departments within the employees table
4 Make sure your insert statements execute in order so that they do not fail on the Foreign Key Constraint requirement For 4 7 Use the Northwind database for answering all queries, sub-queries, views, and FIX the Code sections. -- You created the Northwind database in the Unit 9 assignment by running the instnwnd.sql script located in doc sharing. 4. Create Views #1: CREATE VIEW Create a VIEW that returns the total number of daily orders placed in July 1996 Display the Number of Orders and the order date. #2 CREATE VIEW Use a Sub-query and Logical operators: AND, OR Create a View that return the orders placed in July 1996 by Nancy Davolio, Janet Leverling, and Steven Buchanan. List the order id, employee id, and the order date. #3 CREATE VIEW Create a View that returns all employees with last name containing the letter 'a' twice or more. Display the employee id, first and last names 5. Create Three Queries #1: Query Write a query that returns the three ship countries with the highest average freight in List the country and the average freight. #2: Query Write a query that returns the employees' id who handled orders 10248, 10249, and List the orderid, employeeid, and the order date
5 #3: Query Using the Logical operators: AND, OR, write a query that returns the orders placed in July 1996 by Nancy Davolio, Janet Leverling, and Steven Buchanan. List the order id, employee id, and the order date. Order the result set by the employeeid 6. Create Sub-Queries #1: SUB-QUERY Write a sub-query that returns all orders placed on the last day of activity that can be found in the Orders table. Include the orderid, orderdate, customerid, and the employeeid. #2: SUB-QUERY Write a sub-query that returns the total number of orders placed by the customer with the highest number of orders. Include the customerid and the number of orders placed. #3: SUB-QUERY Write a sub-query that returns employees who did not place orders on or after May 1st, Include the employeeid, last and first names. 7. Fix-It (3 problems) NOTES: In all cases more than one fix in the T-SQL script will be necessary for the result set to look similar to the display shown below each query. You must fix the code that is provided here. Using another code in order to display the correct result will not be accepted Troubleshooting the code is one of the best learning techniques for enhancing the critical thinking and problem solving skills. FIX #1: --Use a subquery that returns the monetary values of all orders that have discounts --greater than 15% --List the orderid and the order value this last with the highest value at the top SELECT SUM(od.orderid) As OrderID, (formula?) AS [Order Values] FROM [Order Details] od WHERE od.discount = (SELECT od.discount FROM [Order Details] od GROUP BY od.discount
6 HAVING od.discount >.15) GROUP BY od.quantity, od.discount, od.unitprice ORDER BY [Order Values] ASC; Expected result set: FIX #2: -- Write a sub-query that returns all orders placed on the last day of -- activity that can be found in the Orders table SELECT orderid, orderdate, customerid, employeeid FROM Orders WHERE orderdate = MAX(orderdate) ; Expected result set:
7 FIX #3: Write a query that returns the name of the city with the highest number of orders placed. SELECT MAX(o.OrderID) AS [Number of Orders], od.shipcity FROM Orders o, [Order Details] od GROUP BY o.shipcity ORDER BY [Number of Orders] DESC Review the grading rubric below before beginning this activity. Assignment grading rubric = 100 points Assignment Criteria 1. CREATE DATABASE & TABLEs The create table statements should Points possible 0-20 Points earned by student
8 work without errors, have the specified data types, foreign keys, and primary keys. 2. INSERT data with correct data types 0-20 The inserts should run without error and the proper number of records containing the proper data type should be in each table. 3. VIEWs the views should display the correct data and run without error QUERIES queries should display the correct result set and run without error. 5. SUB-QUERIES sub-queries should display the correct result set and run without error Fix it problems 0-15 Column Total 100
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 informationDatabase 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 informationManipulating 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 informationDatabase Programming with SQL
Database Programming with SQL 12-2 Objectives In this lesson, you will learn to: Construct and execute an UPDATE statement Construct and execute a DELETE statement Construct and execute a query that uses
More informationRestricting 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 informationSchool 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Ç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 informationDatabase Wizard Guide. i-net Designer
Guide i-net Designer 1 Content... 2 2 Introduction... 3 2.1 Definitions... 3 3 Setting Up a Simple Database Connection... 5 4 Choosing and Joining Table Sources... 6 5 Creating a Custom SQL Command... 10
More informationEXISTS NOT EXISTS WITH
Subquery II. Objectives After completing this lesson, you should be able to do the following: Write a multiple-column subquery Use scalar subqueries in SQL Solve problems with correlated subqueries Update
More informationAssignment Grading Rubric
Unit 5 Assignment Unit Outcomes Create result set based on queries using Inner joins. Create result set based on queries using Outer joins. Course Outcomes IT350-3: Create SELECT statements that join multiple
More informationData 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 informationIntroduction 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 informationBsc (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 informationGIFT 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 informationRetrieving 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 informationOracle Academy Amazing Books Part 1: Building Tables and Adding Constraints
Oracle Academy Amazing Books In this section, you use the Object Browser in Oracle Application Express to: Build the base tables for the project Add foreign key constraints Be sure to have a copy of the
More informationUsing DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Categorize the main database
More informationSchool 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 information1Z0-007 ineroduction to oracle9l:sql
ineroduction to oracle9l:sql Q&A DEMO Version Copyright (c) 2007 Chinatag LLC. All rights reserved. Important Note Please Read Carefully For demonstration purpose only, this free version Chinatag study
More informationHR Database. Sample Output from TechWriter 2007 for Databases
Table of Contents...3 Tables... 4 COUNTRIES... 5 DEPARTMENTS... 6 EMPLOYEES... 7 JOBS... 9 JOB_HISTORY... 10 LOCATIONS...12 REGIONS...13 Views...14 EMP_DETAILS_VIEW... 15 Procedures...17 SECURE_DML...18
More informationRetrieving 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 informationUsing DDL Statements to Create and Manage Tables. Copyright 2004, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Categorize the main database
More informationTá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 informationSIR MICHELANGELO REFALO
SIR MICHELANGELO REFALO SIXTH FORM Annual Exam 2014 Subject: Computing ADV 1st Time: 3Hrs Section A Answer all Questions, No Calculators allowed. 1. Write a Boolean expression represented by this Karnaugh
More informationWorking 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 informationAdditional 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 informationRestricting 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 informationUpdating 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 informationRetrieving 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 informationSérie n 6 Bis : Ateliers SQL Data Modeler (Oracle)
Série n 6 Bis : Ateliers SQL Data Modeler (Oracle) Getting started with data Modeler Adding a Table to An Existing Database Purpose This tutorial shows you how to add a table to an existing database using
More informationAlkérdések II. Copyright 2004, Oracle. All rights reserved.
Alkérdések II. Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Write a multiple-column subquery Use scalar subqueries in SQL
More informationSELF 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 informationRetrieving 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 informationThree types of sub queries are supported in SQL are Scalar, Row and Table sub queries.
SQL Sub-Queries What are Sub queries? SQL Sub queries are the queries which are embedded inside another query. The embedded queries are called as INNER query & container query is called as OUTER query.
More informationL e a r n S q l select where
L e a r n S q l The select statement is used to query the database and retrieve selected data that match the criteria that you specify. Here is the format of a simple select statement: select "column1"
More informationLimit 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 informationViews in SQL Server 2000
Views in SQL Server 2000 By: Kristofer Gafvert Copyright 2003 Kristofer Gafvert 1 Copyright Information Copyright 2003 Kristofer Gafvert (kgafvert@ilopia.com). No part of this publication may be transmitted,
More informationIntermediate 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 informationUsing 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 informationJoin, 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 informationCS 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 informationUsing 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 informationUsing DDL Statements to Create and Manage Tables. Copyright 2006, Oracle. All rights reserved.
Using DDL Statements to Create and Manage Tables Objectives After completing this lesson, you should be able to do the following: Categorize the main database objects Review the table structure List the
More informationDEFAULT Values, MERGE, and Multi-Table Inserts. Copyright 2009, Oracle. All rights reserved.
DEFAULT Values, MERGE, and Multi-Table Inserts What Will I Learn? In this lesson, you will learn to: Understand when to specify a DEFAULT value Construct and execute a MERGE statement Construct and execute
More informationDatabase 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 informationCREATE 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 informationDATA CONSTRAINT. Prepared By: Dr. Vipul Vekariya
DATA CONSTRAINT Prepared By: Dr. Vipul Vekariya What is constraint? Constraints enforce rules at the table level. Constraints prevent the deletion of a table if there are dependencies. There are two types
More informationAssignment 6: SQL III Solution
Data Modelling and Databases Exercise dates: April 12/April 13, 2018 Ce Zhang, Gustavo Alonso Last update: April 16, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 6: SQL III Solution This assignment
More informationDisplaying Data from Multiple Tables. Copyright 2004, Oracle. All rights reserved.
Displaying Data from Multiple Tables Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Write SELECT statements to access data
More informationAdvance Database Systems. Joining Concepts in Advanced SQL Lecture# 4
Advance Database Systems Joining Concepts in Advanced SQL Lecture# 4 Lecture 4: Joining Concepts in Advanced SQL Join Cross Join Inner Join Outer Join 3 Join 4 Join A SQL join clause combines records from
More informationDatabase 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 informationDUE: 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 informationA subquery is a nested query inserted inside a large query Generally occurs with select, from, where Also known as inner query or inner select,
Sub queries A subquery is a nested query inserted inside a large query Generally occurs with select, from, where Also known as inner query or inner select, Result of the inner query is passed to the main
More informationModule 11: Implementing Triggers
Module 11: Implementing Triggers Overview Introduction Defining Create, drop, alter triggers How Triggers Work Examples Performance Considerations Analyze performance issues related to triggers Introduction
More informationCourse 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 informationCreating Other Schema Objects. Copyright 2004, Oracle. All rights reserved.
Creating Other Schema Objects Copyright 2004, Oracle. All rights reserved. Objectives After completing this lesson, you should be able to do the following: Create simple and complex views Retrieve data
More informationCONCAT SUBSTR LOWER (*) All three will be evaluated simultaneously. Correct
1. You query the database with this SQL statement: SELECT CONCAT(last_name, (SUBSTR(LOWER(first_name), 4))) Default Password FROM employees; Which function will be evaluated first? CONCAT SUBSTR LOWER
More informationExam : 1Z Title : Introduction to Oracle9i: SQL
Exam : 1Z0-007 Title : Introduction to Oracle9i: SQL Ver : 01-15-2009 QUESTION 1: Examine the data in the EMPLOYEES and DEPARTMENTS tables. EMPLOYEES LAST_NAME DEPARTMENT_ID SALARY Getz 10 3000 Davis 20
More informationDatabase Design. 9-2 Basic Mapping: The Transformation Process. Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Design 9-2 Objectives This lesson covers the following objectives: Distinguish between a conceptual model and a physical model Apply terminology mapping between the two models Understand and apply
More informationImplementing 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 informationOracle 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 informationBasic 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 informationRETRIEVING 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 informationGIFT 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 informationExam: 1Z Title : Introduction to Oracle9i: SQL. Ver :
Exam: 1Z0-007 Title : Introduction to Oracle9i: SQL Ver : 05.14.04 QUESTION 1 A: This query uses "+" to create outer join as it was in Oracle8i, but it requires also usage of WHERE clause in SELECT statement.b:
More informationDatabase Management Systems,
Database Management Systems SQL Query Language (2) 1 Topics Update Query Delete Query Integrity Constraint Cascade Deletes Deleting a Table Join in Queries Table variables More Options in Select Queries
More informationMANAGING 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 informationKORA. RDBMS Concepts II
RDBMS Concepts II Outline Querying Data Source With SQL Star & Snowflake Schemas Reporting Aggregated Data Using the Group Functions What Are Group Functions? Group functions operate on sets of rows to
More informationDatabase Foundations. 6-9 Joining Tables Using JOIN. Copyright 2014, Oracle and/or its affiliates. All rights reserved.
Database Foundations 6-9 Roadmap Introduction to Oracle Application Express Structured Query Language (SQL) Data Definition Language (DDL) Data Manipulation Language (DML Transaction Control Language (TCL)
More informationQUETZALANDIA.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 informationSQL Server 2008 Tutorial 3: Database Creation
SQL Server 2008 Tutorial 3: Database Creation IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 DDL Action in SQL Server Creating and modifying structures using the graphical interface Table
More informationAppendix A Practices and Solutions
Appendix A Practices and Solutions Table of Contents Practices and Solutions for Lesson I... 3 Practice I-1: Accessing SQL Developer Resources... 4 Practice I-2: Using SQL Developer... 5 Practice Solutions
More informationINDEX. 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 informationExam Code: 1z Exam Name: Ineroduction to oracle9l:sql. Vendor: Oracle. Version: DEMO
Exam Code: 1z0-007 Exam Name: Ineroduction to oracle9l:sql Vendor: Oracle Version: DEMO Part: A 1: Examine the structure of the EMPLOYEES table: EMPLOYEE_ID NUMBER Primary Key FIRST_NAME VARCHAR2(25) LAST_NAME
More informationSYSTEM CODE COURSE NAME DESCRIPTION SEM
Course: CS691- Database Management System Lab PROGRAMME: COMPUTER SCIENCE & ENGINEERING DEGREE:B. TECH COURSE: Database Management System Lab SEMESTER: VI CREDITS: 2 COURSECODE: CS691 COURSE TYPE: Practical
More informationBraindumpsVCE. Best vce braindumps-exam vce pdf free download
BraindumpsVCE http://www.braindumpsvce.com Best vce braindumps-exam vce pdf free download Exam : 1z1-061 Title : Oracle Database 12c: SQL Fundamentals Vendor : Oracle Version : DEMO Get Latest & Valid
More informationOracle 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 informationUnit Assessment Guide
Unit Assessment Guide Unit Details Unit code Unit name Unit purpose/application ICTWEB425 Apply structured query language to extract and manipulate data This unit describes the skills and knowledge required
More informationOracle MOOC: SQL Fundamentals
Week 4 Homework for Lesson 4 Homework is your chance to put what you've learned in this lesson into practice. This homework is not "graded" and you are encouraged to write additional code beyond what is
More informationCreating 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 informationGraphical Joins in More Detail
Graphical Joins in More Detail Using the Connector, data is made available through the addition of containers and relevant expressions. The source of the underlying data can be a Table, a View, a Stored
More informationDatabase 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 informationExam code: Exam name: Database Fundamentals. Version 16.0
98-364 Number: 98-364 Passing Score: 800 Time Limit: 120 min File Version: 16.0 Exam code: 98-364 Exam name: Database Fundamentals Version 16.0 98-364 QUESTION 1 You have a table that contains the following
More informationchapter 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 information1z Exam Code: 1z Exam Name: Oracle Database SQL Expert
1z0-047 Number: 1z0-047 Passing Score: 800 Time Limit: 120 min File Version: 12.0 Exam Code: 1z0-047 Exam Name: Oracle Database SQL Expert 1z0-047 QUESTION 1 Which three statements are true regarding single-row
More informationRESTRICTING 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 informationSQL Best Practices. Chandra Sekhar
SQL Best Practices Chandra Sekhar Agenda Application failing with "String too large error" My application is not running fast enough Push your application logic to User Defined Functions Use Scalar Subquery
More informationDatabase Systems CSE 303. Outline. Lecture 06: SQL. What is Sub-query? Sub-query in WHERE clause Subquery
Database Systems CSE 303 Lecture 06: SQL 2016 Subquery Outline What is a Subquery Subquery in WHERE clause >ALL, >ANY, >=ALL,
More informationOracle Introduction to PL/SQL
Oracle Introduction to PL/SQL 1. For which column would you create an index? a. a column that is small b. a column that is updated frequently c. a column containing a wide range of values d. a column with
More informationData Modelling and Databases Exercise dates: March 22/March 23, 2018 Ce Zhang, Gustavo Alonso Last update: March 26, 2018.
Data Modelling and Databases Exercise dates: March 22/March 23, 2018 Ce Zhang, Gustavo Alonso Last update: March 26, 2018 Spring Semester 2018 Head TA: Ingo Müller Assignment 4: SQL This assignment will
More informationMicrosoft Exam Transition Your MCTS on SQL Server 2008 to MCSA: SQL Server 2012, Part 1 Version: 7.8 [ Total Questions: 183 ]
s@lm@n Microsoft Exam 70-457 Transition Your MCTS on SQL Server 2008 to MCSA: SQL Server 2012, Part 1 Version: 7.8 [ Total Questions: 183 ] Question No : 1 You have a database that contains the tables
More informationSet theory is a branch of mathematics that studies sets. Sets are a collection of objects.
Set Theory Set theory is a branch of mathematics that studies sets. Sets are a collection of objects. Often, all members of a set have similar properties, such as odd numbers less than 10 or students in
More informationMySQL. Prof.Sushila Aghav
MySQL Prof.Sushila Aghav Introduction SQL is a standard language for storing, manipulating and retrieving data in databases. SQL is a part of many relational database management systems like: MySQL, SQL
More informationDatabase 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 informationItem: 1 (Ref:Cert-1Z )
Page 1 of 13 Item: 1 (Ref:Cert-1Z0-071.10.2.1) Evaluate this CREATE TABLE statement: CREATE TABLE customer ( customer_id NUMBER, company_id VARCHAR2(30), contact_name VARCHAR2(30), contact_title VARCHAR2(20),
More informationStructured Query Language (SQL)
Structured Query Language (SQL) SQL Chapters 6 & 7 (7 th edition) Chapters 4 & 5 (6 th edition) PostgreSQL on acsmysql1.acs.uwinnipeg.ca Each student has a userid and initial password acs!
More informationDUE: 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 informationKeys are fields in a table which participate in below activities in RDBMS systems:
Keys are fields in a table which participate in below activities in RDBMS systems: 1. To create relationships between two tables. 2. To maintain uniqueness in a table. 3. To keep consistent and valid data
More informationOracle 1z z0-146 Oracle Database 11g: Advanced PL/SQL. Practice Test. Version QQ:
Oracle 1z0-146 1z0-146 Oracle Database 11g: Advanced PL/SQL Practice Test Version 1.1 QUESTION NO: 1 Which two types of metadata can be retrieved by using the various procedures in the DBMS_METADATA PL/SQL
More informationOracle 1Z0-007 Introduction to Oracle9i: SQL 210 Q&A
Oracle 1Z0-007 Introduction to Oracle9i: SQL 210 Q&A Looking for Real Exam Questions for IT Certification Exams! We guarantee you can pass any IT certification exam at your first attempt with just 10-12
More information