EE221 Databases Practicals Manual

Size: px
Start display at page:

Download "EE221 Databases Practicals Manual"

Transcription

1 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 of Electronic Engineering, Dublin City University, 2007 Authors: C. McArdle & T. Curran

2 EE221 Databases Lab 1 An Introduction to SQL Objective Prerequisites Procedure To introduce the SQL language and to familiarise the student with writing basic SQL statements and using a DBMS to query a simple database. 1. To complete this lab, you will need to be familiar with the course notes on the Relational Model and Relational Languages. 2. You will need to have read this lab manual, including the SQLite Introduction (Appendix A), in advance of the lab session. During the lab session, complete all the exercises highlighted in boxed text below. Make a note of the results obtained and answer any questions in your lab notebook. Firmly attach any printouts in your lab notebook. Lab notebooks must be handed in to the demonstrator at the end of the lab session. There are 3 hours allocated for completion of this lab. Introduction to SQL SQL (Structured Query Language) is the standard language used for creating, updating and querying relational databases. It is supported by all modern database management systems (e.g. Oracle, IBM DB2, Microsoft Access, Microsoft SQL Server, PostgreeSQL, MySQL, etc.). SQL is based on the relational model introduced in the course notes, but is not a strict implementation of all the relational rules. This means that it is up to the programmer to enforce the necessary relational rules; they are not automatically enforced by the database management system. You will investigate the differences between SQL and the relational model in Lab 2. SQL is a declarative language (as opposed to a procedural language like C, Perl, etc.). This means that the language is used by the programmer to directly describe what end result is required (e.g. what data is required from a query operation), as opposed to explicitly describing all the steps required to retrieve the required data from storage). Thus, SQL is high-level, quite easy to learn, allowing complex tasks on a database to be specified simply. SQL has a defined syntax that specifies how standard keywords can be combined to form valid SQL statements. SQL statements can be divided into three categories, according to their function: EE221 Databases Laboratory Manual Lab 1 Page 1 of 8

3 1. Data Manipulation: Statements that retrieve, insert, update, edit or delete data stored in database tables. These statements begin with the keywords: SELECT, INSERT, UPDATE or DELETE. 2. Data Definition: Statements that create, modify, or destroy database objects (such as tables). These statements begin with the keywords: CREATE, ALTER or DROP. 3. Data Control: Statements that authorise certain users to view, change or delete data. These statements begin with the keywords: GRANT or REVOKE. We do not consider data control in the lab exercises. SQL statements consist of one or more clauses each of which begins with an SQL keyword. For example, the SQL statement SELECT last_name FROM students WHERE first_name = John ; has three clauses: a SELECT clause, a FROM clause and a WHERE clause. The net result of this statement should be easy to understand: a list of students last names, whose first name is John, will be retrieved from the table named students. student_id first_name last_name 105 Sean Murphy 101 John Smith 109 Mary Douglass 108 Jane Smith 104 John Murphy Example values in a students table last_name Smith Murphy Result of the SQL SELECT statement EE221 Databases Laboratory Manual Lab 1 Page 2 of 8

4 In the above statement we see the other main elements of the SQL language, namely: Identifiers: the names of tables (students) and columns in tables (last_name and first_name) Literals: quoted strings and numeric values, for example John Delimiters: + -, ( ) = < > <= >= <>. * /? ; In the example above we see the delimiters = and ; used. Note that all SQL statements must end with a semicolon (;). Table names can be qualified using the dot (.) separator. For example, we could have specified the last_name column in the above statement as students.last_name, meaning the last_name column of the students table. Use of qualification may be required when tables in a database happen to use the same column names (e.g. students.last_name and lecturers.last_name in a database containing the two tables students and lecturers). We will now explore the syntax of the most common SQL statements. More detail on the SQL statements supported by the DBMS we will use in the lab may be found at: A more extensive SQL reference may be found at: Manual/sql/reference.html Basic SELECT statements The SELECT statement is used to retrieve data from tables in a database. The statement operates on one or more tables in the database and returns a result in the form of one new result table. The basic from of the statement begins with the SELECT clause, which specifies which column values are to be retrieved. It is followed by the FROM clause, which specifies which table to retrieve values from. The WHERE clause is used to filter rows based on a given condition. WHERE is optional and, if omitted, all result table rows are returned. An optional ORDER BY clause may be used to sort the data retrieved. Examples: SELECT * FROM students; SELECT first_name, last_name FROM students; EE221 Databases Laboratory Manual Lab 1 Page 3 of 8

5 SELECT * FROM students WHERE student_id > 104; SELECT last_name FROM students WHERE (student_id > 102) AND (student_id <110) ORDER BY last_name ASC; SELECT DISTINCT last_name FROM students WHERE (student_id > 102) AND (student_id <110) ORDER BY last_name DESC; SELECT student_id FROM students WHERE first_name IS NULL; The DISTINCT keyword may be used to remove duplicate rows from the result of a query. (Note that the need for the DISTINCT keyword in SQL indicates a variance from the strict relational model. In relational theory all result tables must be valid relations, so duplicate rows are removed from a result automatically.) EXERCISE 1A Copy the lab1 sql text from Appendix B and paste it into a text editor. Save the file as lab1.sql. Read through the file and try to understand the structure of the data in the database. (i) (ii) (iii) (iv) Load your lab1.sql file into SQLite (using the.read command) and then execute each of the six select statements (above) at the command line. Note the result table of each statement in your lab notebook and explain concisely what data each statement is retrieving from the database. Write a SELECT statement to retrieve the student ids of all students with last name Murphy. Is it possible to alter data in a database using a SELECT statement? How would the last select statement above be written using relational algebra? EE221 Databases Laboratory Manual Lab 1 Page 4 of 8

6 SELECT statements using JOIN A join is a table operation that uses related columns to combine rows from two input tables to form one output (result) table. Often the most interesting database information is stored across multiple tables and requires joining to retrieve it. In SQL, joins are performed by using a JOIN clause (combined with an ON clause) in a SELECT statement. For example, the lab1 database (see Appendix B) contains the tables students and registrations: students student_id first_name last_name 105 Sean Murphy 101 John Smith 109 Mary Douglass 108 Jane Smith 104 John Murphy registrations student_id module_id The SELECT statement with a JOIN clause, as below, will retrieve the full names of students and the ids of modules for which they are registered: SELECT students.first_name, students.last_name, registrations.module_id FROM students JOIN registrations ON students.student_id=registrations.student_id; Here we have joined the tables students and registrations on the condition that the student_id value is the same in both tables and then selected particular columns from the result of the join. EE221 Databases Laboratory Manual Lab 1 Page 5 of 8

7 A WHERE clause may be added to filter rows from the result. For example the statement below will retrieve the ids of all modules taken by Sean Murphy. SELECT registrations.module_id FROM students JOIN registrations ON students.student_id=registrations.student_id WHERE students.first_name= Sean AND students.last_name= Murphy ; When tables are joined based on the equality of the values of two columns (as in above cases) the join is called a natural join. There are a number of other types of join. An inner join is similar to a natural join except that any comparison operator may be used to match rows, not just equality. A left outer join returns all rows from the left table, not just the ones with corresponding values in the right table. If there are no corresponding rows in the right table for a given left table row, then the values of the right table rows are NULL values (blank) in the result. EXERCISE 1B (i) Execute the following queries on the lab1 database, name the type of join being performed in each case, and explain the difference in the result: SELECT students.first_name, students.last_name, module_id FROM students JOIN registrations ON students.student_id = registrations.student_id; SELECT students.first_name, students.last_name, module_id FROM students LEFT OUTER JOIN registrations ON students.student_id = registrations.student_id; (ii) Write a query to return the full name of students who are not registered for any module. Execute the query on the lab1 database and note the result. (Hint: the clause WHERE [column_name] IS NULL will be useful for writing this statement.) EE221 Databases Laboratory Manual Lab 1 Page 6 of 8

8 SELECT statements with more than one JOIN More than two tables may be joined in a single select statement, using multiple JOIN clauses in the SELECT statement. A select statement joining three tables would take the following form: SELECT [columns] FROM [table1] JOIN [table2] ON [join_condition_a] JOIN [table3] ON [join_condition_b]; Conceptually, this statement first joins table1 with table2 based on join_condition_a and then joins the result with table3 based on join_condition_b. [columns] specifies the columns required from the combined joined tables. A WHERE clause may also be used, which will filter rows from the combined result. EXERCISE 1C Using the lab1 database, write an SQL statement that returns the module ids and module names of all modules for which student Mary Douglass is registered. Execute the query on the lab1 database and note the SQL and the result table in your lab book. Other useful SQL statements are described below: The INSERT Statement The SQL INSERT statement allows new rows to be inserted into a table. Values for the columns in the new row may be specified in the same statement. For example, to insert a new student into the students table: INSERT INTO students VALUES(110, Peter, Hall ); The UPDATE Statement The SQL UPDATE statement changes the values of specified columns, for all rows which satisfy a condition in a WHERE clause. For example, to change Peter Hall s student id from 110 to 111: UPDATE students SET student_id=111 WHERE student_id=110; EE221 Databases Laboratory Manual Lab 1 Page 7 of 8

9 The DELETE Statement The SQL DELETE statement allows rows to be deleted from a table. For example, to delete all registrations for student with id 101: DELETE FROM registrations WHERE student_id=101; The CREATE TABLE Statement The SQL CREATE statement allows new (empty) tables to be created. A name and a data type is specified for each column in the table. Constraints, such as primary keys and foreign keys, may be specified. Note that clauses in the CREATE statement are separated with a comma. An example of a create statement is: CREATE TABLE registrations ( student_id SMALLINT, module_id SMALLINT, CONSTRAINT pk_registrations PRIMARY KEY (student_id, module_id), CONSTRAINT fk_registrations_students FOREIGN KEY (student_id) REFERENCES students (student_id), CONSTRAINT fk_registrations_modules FOREIGN KEY (module_id) REFERENCES modules (module_id) ); The DROP Statement The SQL DROP statement permanently removes a table from the database. For example, to remove the students table from the lab1 database: DROP TABLE students; EXERCISE 1D Using the lab1 database, perform the following update to the database, noting the required SQL statements in you lab notebook: Insert a new student ( James Stevens with ID 110) and register him for modules Maths and Databases. Check your updated data using a query similar to your solution to Exercise 1C. EE221 Databases Laboratory Manual Lab 1 Page 8 of 8

10 DB Lab 1 APPENDIX A SQLite Introduction You will use the SQLite database management system (DBMS) for all lab exercises. SQLite implements the most important SQL features and has an easy-to-use command-line interface. The programme may be found on Windows in Start/Programmes/SQLite. When it is run you will receive the SQLite command prompt in a DOS box as follows: SQLite version Enter ".help" for instructions sqlite> SQLite is now running with C:/Temp as the working directory. Any files saved or loaded will be to/from this directory. Two types of command may be entered: 1. SQLite commands: these are commands directly to SQLite, allowing SQL files to be loaded/saved, output formats to be configured, output to be directed to a file, etc. All such commands start with a dot. 2. SQL statements: SQL statements can be entered directly at the command line. Each statement starts with an SQL keyword and ends with a semicolon (as described in the lab manual). Useful SQLite Commands.read [filename].tables.mode tabs.help.dump.dump table.output [filename] load an SQL file into the database show what tables are present in the database show output of queries in an easily read format show a synopsis of all SQLite commands show the SQL to construct the current database show the SQL to construct a particular table send the output to a file instead of to the screen Notes: SQL statements can be copied from the lab manual and pasted directly into SQLite by copying and right clicking to paste at the command prompt. Up and down arrow keys can be used to recall previously executed commands or SQL statements. You will only need to work on one database at a time, which will be stored in a temporary database in SQLite when tables are created. All tables created become part of the same database. To create a database, it is generally best to create an SQL text file and use the.read command to load it into SQLite. SQL queries that you write can also be saved in text files and loaded in the same way. It is then easy to edit the file and reload if corrections are necessary. Further information on SQLite is available at: EE221 Databases Laboratory Page 1 of 1

11 DB Lab 1 APPENDIX B SQL for the lab1 database EE221 Lab1 SQL database -- Records the modules for which students are registered -- DROP TABLE IF EXISTS students; CREATE TABLE students ( student_id SMALLINT, first_name VARCHAR(30), last_name VARCHAR(30), CONSTRAINT pk_students PRIMARY KEY (student_id) ); DROP TABLE IF EXISTS registrations; CREATE TABLE registrations ( student_id SMALLINT, module_id SMALLINT, CONSTRAINT pk_registrations PRIMARY KEY (student_id, module_id), CONSTRAINT fk_registrations_students FOREIGN KEY (student_id) REFERENCES students (student_id), CONSTRAINT fk_registrations_modules FOREIGN KEY (module_id) REFERENCES modules (module_id) ); DROP TABLE IF EXISTS modules; CREATE TABLE modules ( module_id SMALLINT, module_name VARCHAR(50), CONSTRAINT pk_modules PRIMARY KEY (module_id) ); INSERT INTO students VALUES(105, 'Sean', 'Murphy'); INSERT INTO students VALUES(101, 'John', 'Smith'); INSERT INTO students VALUES(109, 'Mary', 'Douglass'); INSERT INTO students VALUES(108, 'Jane', 'Smith'); INSERT INTO students VALUES(104, 'John', 'Murphy'); INSERT INTO registrations VALUES(101, 200); INSERT INTO registrations VALUES(104, 200); INSERT INTO registrations VALUES(105, 200); INSERT INTO registrations VALUES(104, 201); INSERT INTO registrations VALUES(105, 201); INSERT INTO registrations VALUES(109, 201); INSERT INTO registrations VALUES(101, 202); INSERT INTO registrations VALUES(104, 202); INSERT INTO registrations VALUES(109, 202); INSERT INTO modules VALUES(200, 'Maths'); INSERT INTO modules VALUES(201, 'Databases'); INSERT INTO modules VALUES(202, 'Digital'); EE221 Databases Laboratory Page 1 of 1

12 EE221 Databases Lab 2 Database Creation and Querying using SQL Objectives Prerequisites Procedure (i) To use the SQL language to create and populate database tables and to write more advanced SQL queries. (ii) To identify keys and functional dependencies in relations. (iii) To explore the differences between SQL and the theoretic relational model. 1. To complete this lab, you will need to be familiar with the course notes on the Relational Model, Relational Languages and Relational Design and Functional Dependency. 2. You will need to have previously completed Databases Lab 1. Complete the exercises below. Make a note of the results obtained and answer any questions in your lab notebook. Firmly attach any printouts in your lab notebook. Lab notebooks must be handed in to the demonstrator at the end of the lab session. 3 hours are allocated for completion of this lab. EXERCISE 2A (i) Add the tables below to the lab1 database (given in Appendix 1 of Lab 1) noting the SQL required in your lab notebook (or by attaching a printout in your notebook). (It may be convenient to edit your lab1.sql file to include the new SQL statements and then reload it into SQLite.) Table lecturers lecturer_id first_name last_name 302 James Crilly 303 Anne Joyce 305 Mary Finnegan Table teaches lecturer_id module_id EE221 Databases Laboratory Manual Lab 2 Page 1 of 2

13 (ii) Identify all relation keys, foreign keys and functional dependencies of each of the five relations in the new database schema. (iii) Using your new database, write an SQL query to retrieve the full names of the lecturers(s) who teach Maths. Note the SQL and the result in your lab book. (iv) Write an SQL query to retrieve the full names of all lecturers who teach Sean Murphy. Note the SQL and the result in your lab book. (v) It would be possible to store all information in the database in one large table. This would have the advantage of not needing to write complex join queries. What would the disadvantages be? EXERCISE 2B Using INSERT and/or UPDATE statements explore how the SQLite implementation of SQL does or does not conform to the relational model, in terms of the following concepts described in the course notes: (i) (ii) (iii) Necessary properties of a relation (primary) keys Entity integrity Referential integrity Explain your method in each case. EE221 Databases Laboratory Manual Lab 2 Page 2 of 2

14 EE221 - Databases Assignment Data Analysis, Database Design, Implementation and Relation Normalisation Objectives Prerequisites Procedure (i) To analyse the requirements for a database, (ii) design the relational schema using E-R diagrams and (iii) implement the database and related queries in SQL. (iv) To identify the normal form of relations and normalise to a higher normal form, if necessary. To complete this assignment, you will need to be familiar with the course notes on the Relational Model, Data Modelling and E-R Diagrams, Relational Design and Functional Dependency and Normal Forms. Consider the following requirements for a database embedded in a portable music player and complete the exercises below. Make a note of the results obtained and answer any questions in your lab notebook. Firmly attach any printouts in your lab notebook. This exercise is given as an individual assignment. Shared work is not permitted. Lab notebooks must be handed in to the demonstrator on or before the deadline date, which you will be notified of in lectures. Database Requirements A database is required, as part of the software for a portable music player, to store and manipulate information about music files that are stored in the device. The database needs to store information on songs, artists and albums as follows. Music Player Database Requirements Each song has a title and a play length (stored in minutes and seconds). A single song can be associated with a number of artists (e.g. in the case of a duet or co-written song). An artist has a single name. Note that two (or more) different artists may happen to have the same names. Similarly, the titles of two (or more) different songs may happen to be the same. An artist may have different versions of the same song. An album is a collection of songs. The originating track number of each song from the album CD must be stored in the database. Two (or more) albums may have the same name. A song can be part of more than one album (e.g. in the case of an album originally released and a subsequent compilation album). EE221 Databases Laboratory Manual Databases Assignment Page 1 of 2

15 The following queries will need to be performed on the data in the database: 1. List the titles of all albums in the database in alphabetic order. 2. List all song titles by a chosen artist. 3. List all songs on a particular album, along with their track numbers, in order of track number. Database Design Exercise (i) Draw a basic Entity-Relationship diagram for the database schema, showing only the entities and the relationships (with multiplicities) between them. This E-R diagram can include many-to-many relationships. (ii) Refine your model and draw a second Entity-Relationship diagram for the database schema. This diagram should replace any many-to-many relationships with new association entities and 1-to-many relationships. The E-R diagram should also show all attributes of each entity and identify primary keys and foreign keys in each entity. (iii) List the functional dependencies in each relation. By examining the functional dependencies in each relation, verify that the relations are in 3NF. Normalise to 3NF, if they are not. (iv) Write an SQL file to create your database schema and insert some test data. The test data should hold information on at least 6 tracks, 3 artists and 4 albums (there should be at least one artist with 2 albums). (v) Write an SQL file to perform the queries (1, 2 and 3) listed above. EE221 Databases Laboratory Manual Databases Assignment Page 2 of 2

In mathematical terms, the relation itself can be expressed simply in terms of the attributes it contains:

In mathematical terms, the relation itself can be expressed simply in terms of the attributes it contains: The Relational Model The relational data model organises data as 2-dimensional tables or relations. An example of one such relation would be STUDENT shown below. As we have seen in the wine list example,

More information

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 7 Introduction to Structured Query Language (SQL)

Database Systems: Design, Implementation, and Management Tenth Edition. Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management Tenth Edition Chapter 7 Introduction to Structured Query Language (SQL) Objectives In this chapter, students will learn: The basic commands and

More information

Chapter 7. Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel

Chapter 7. Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel Chapter 7 Introduction to Structured Query Language (SQL) Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel 1 In this chapter, you will learn: The basic commands

More information

SQL functions fit into two broad categories: Data definition language Data manipulation language

SQL functions fit into two broad categories: Data definition language Data manipulation language Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Beginning Structured Query Language (SQL) MDM NUR RAZIA BINTI MOHD SURADI 019-3932846 razia@unisel.edu.my

More information

tablename ORDER BY column ASC tablename ORDER BY column DESC sortingorder, } The WHERE and ORDER BY clauses can be combined in one

tablename ORDER BY column ASC tablename ORDER BY column DESC sortingorder, } The WHERE and ORDER BY clauses can be combined in one } The result of a query can be sorted in ascending or descending order using the optional ORDER BY clause. The simplest form of an ORDER BY clause is SELECT columnname1, columnname2, FROM tablename ORDER

More information

T-SQL Training: T-SQL for SQL Server for Developers

T-SQL Training: T-SQL for SQL Server for Developers Duration: 3 days T-SQL Training Overview T-SQL for SQL Server for Developers training teaches developers all the Transact-SQL skills they need to develop queries and views, and manipulate data in a SQL

More information

G64DBS Database Systems. Lecture 7 SQL SELECT. The Data Dictionary. Data Dictionaries. Different Sections of SQL (DDL) Different Sections of SQL (DCL)

G64DBS Database Systems. Lecture 7 SQL SELECT. The Data Dictionary. Data Dictionaries. Different Sections of SQL (DDL) Different Sections of SQL (DCL) G64DBS Database Systems Lecture 7 SQL SELECT Tim Brailsford Different Sections of SQL (DDL) The Data Definition Language (DDL): CREATE TABLE - creates a new database table ALTER TABLE - alters (changes)

More information

Chapter 1 SQL and Data

Chapter 1 SQL and Data Chapter 1 SQL and Data What is SQL? Structured Query Language An industry-standard language used to access & manipulate data stored in a relational database E. F. Codd, 1970 s IBM 2 What is Oracle? A relational

More information

Unit 27 Web Server Scripting Extended Diploma in ICT

Unit 27 Web Server Scripting Extended Diploma in ICT Unit 27 Web Server Scripting Extended Diploma in ICT Dynamic Web pages Having created a few web pages with dynamic content (Browser information) we now need to create dynamic pages with information from

More information

Chapter-14 SQL COMMANDS

Chapter-14 SQL COMMANDS Chapter-14 SQL COMMANDS What is SQL? Structured Query Language and it helps to make practice on SQL commands which provides immediate results. SQL is Structured Query Language, which is a computer language

More information

CSC Web Programming. Introduction to SQL

CSC Web Programming. Introduction to SQL CSC 242 - Web Programming Introduction to SQL SQL Statements Data Definition Language CREATE ALTER DROP Data Manipulation Language INSERT UPDATE DELETE Data Query Language SELECT SQL statements end with

More information

Networks and Web for Health Informatics (HINF 6220)

Networks and Web for Health Informatics (HINF 6220) Networks and Web for Health Informatics (HINF 6220) Tutorial #1 Raheleh Makki Email: niri@cs.dal.ca Tutorial Class Timings Tuesday & Thursday 4:05 5:25 PM Course Outline Database Web Programming SQL PHP

More information

The University of Nottingham

The University of Nottingham The University of Nottingham SCHOOL OF COMPUTER SCIENCE AND INFORMATION TECHNOLOGY A LEVEL 1 MODULE, SPRING SEMESTER 2006-2007 DATABASE SYSTEMS Time allowed TWO hours Candidates must NOT start writing

More information

Lecture 07. Spring 2018 Borough of Manhattan Community College

Lecture 07. Spring 2018 Borough of Manhattan Community College Lecture 07 Spring 2018 Borough of Manhattan Community College 1 SQL Identifiers SQL identifiers are used to identify objects in the database, such as table names, view names, and columns. The ISO standard

More information

Chapter 8: Working With Databases & Tables

Chapter 8: Working With Databases & Tables Chapter 8: Working With Databases & Tables o Working with Databases & Tables DDL Component of SQL Databases CREATE DATABASE class; o Represented as directories in MySQL s data storage area o Can t have

More information

Concepts of Database Management Seventh Edition. Chapter 4 The Relational Model 3: Advanced Topics

Concepts of Database Management Seventh Edition. Chapter 4 The Relational Model 3: Advanced Topics Concepts of Database Management Seventh Edition Chapter 4 The Relational Model 3: Advanced Topics Views View: application program s or individual user s picture of the database Less involved than full

More information

SQL Interview Questions

SQL Interview Questions SQL Interview Questions SQL stands for Structured Query Language. It is used as a programming language for querying Relational Database Management Systems. In this tutorial, we shall go through the basic

More information

More MySQL ELEVEN Walkthrough examples Walkthrough 1: Bulk loading SESSION

More MySQL ELEVEN Walkthrough examples Walkthrough 1: Bulk loading SESSION SESSION ELEVEN 11.1 Walkthrough examples More MySQL This session is designed to introduce you to some more advanced features of MySQL, including loading your own database. There are a few files you need

More information

Data about data is database Select correct option: True False Partially True None of the Above

Data about data is database Select correct option: True False Partially True None of the Above Within a table, each primary key value. is a minimal super key is always the first field in each table must be numeric must be unique Foreign Key is A field in a table that matches a key field in another

More information

Index. Bitmap Heap Scan, 156 Bitmap Index Scan, 156. Rahul Batra 2018 R. Batra, SQL Primer,

Index. Bitmap Heap Scan, 156 Bitmap Index Scan, 156. Rahul Batra 2018 R. Batra, SQL Primer, A Access control, 165 granting privileges to users general syntax, GRANT, 170 multiple privileges, 171 PostgreSQL, 166 169 relational databases, 165 REVOKE command, 172 173 SQLite, 166 Aggregate functions

More information

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1 Basic Concepts :- 1. What is Data? Data is a collection of facts from which conclusion may be drawn. In computer science, data is anything in a form suitable for use with a computer. Data is often distinguished

More information

Chapter # 7 Introduction to Structured Query Language (SQL) Part I

Chapter # 7 Introduction to Structured Query Language (SQL) Part I Chapter # 7 Introduction to Structured Query Language (SQL) Part I Introduction to SQL SQL functions fit into two broad categories: Data definition language Data manipulation language Basic command set

More information

Indexes (continued) Customer table with record numbers. Source: Concepts of Database Management

Indexes (continued) Customer table with record numbers. Source: Concepts of Database Management 12 Advanced Topics Objectives Use indexes to improve database performance Examine the security features of a DBMS Discuss entity, referential, and legal-values integrity Make changes to the structure of

More information

Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept]

Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept] Interview Questions on DBMS and SQL [Compiled by M V Kamal, Associate Professor, CSE Dept] 1. What is DBMS? A Database Management System (DBMS) is a program that controls creation, maintenance and use

More information

Database Management System 9

Database Management System 9 Database Management System 9 School of Computer Engineering, KIIT University 9.1 Relational data model is the primary data model for commercial data- processing applications A relational database consists

More information

THE COPPERBELT UNIVERSITY

THE COPPERBELT UNIVERSITY THE COPPERBELT UNIVERSITY SCHOOL OF INFORMATION AND COMMUNICATION TECHNOLOGY IT/IS DEPARTMENT MAY, 2018 SESSIONAL EXAMINATIONS CS235 DATABASE TECHNOLOGY TIME ALLOWED: THREE HOURS INSTRUCTIONS : Maximum

More information

CPS221 Lecture: Relational Database Querying and Updating

CPS221 Lecture: Relational Database Querying and Updating CPS221 Lecture: Relational Database Querying and Updating last revised 8/5/10 Objectives: 1. To introduce the SQL select statement 2. To introduce the SQL insert, update, and delete statements Materials:

More information

SQL language. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c)

SQL language. Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) SQL language Jaroslav Porubän, Miroslav Biňas, Milan Nosáľ (c) 2011-2016 SQL - Structured Query Language SQL is a computer language for communicating with DBSM Nonprocedural (declarative) language What

More information

Informatics 1: Data & Analysis

Informatics 1: Data & Analysis Informatics 1: Data & Analysis Lecture 7: SQL Ian Stark School of Informatics The University of Edinburgh Tuesday 4 February 2014 Semester 2 Week 4 http://www.inf.ed.ac.uk/teaching/courses/inf1/da Careers

More information

CPS221 Lecture: Relational Database Querying and Updating

CPS221 Lecture: Relational Database Querying and Updating CPS221 Lecture: Relational Database Querying and Updating Objectives: last revised 10/29/14 1. To introduce the SQL select statement 2. To introduce the SQL insert, update, and delete statements Materials:

More information

Informatics 1: Data & Analysis

Informatics 1: Data & Analysis Informatics 1: Data & Analysis Lecture 7: SQL Ian Stark School of Informatics The University of Edinburgh Tuesday 7 February 2017 Semester 2 Week 4 https://blog.inf.ed.ac.uk/da17 Homework from Friday 1.

More information

STRUCTURED QUERY LANGUAGE (SQL)

STRUCTURED QUERY LANGUAGE (SQL) 1 SQL STRUCTURED QUERY LANGUAGE (SQL) The first questions to ask are what is SQL and how do you use it with databases? SQL has 3 main roles: Creating a database and defining its structure Querying the

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

Informatics 1: Data & Analysis

Informatics 1: Data & Analysis Informatics 1: Data & Analysis Lecture 7: SQL Ian Stark School of Informatics The University of Edinburgh Tuesday 3 February 2015 Semester 2 Week 4 http://www.inf.ed.ac.uk/teaching/courses/inf1/da Careers

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

Oracle Database: Introduction to SQL Ed 2

Oracle Database: Introduction to SQL Ed 2 Oracle University Contact Us: +40 21 3678820 Oracle Database: Introduction to SQL Ed 2 Duration: 5 Days What you will learn This Oracle Database 12c: Introduction to SQL training helps you write subqueries,

More information

SQL Fundamentals. Chapter 3. Class 03: SQL Fundamentals 1

SQL Fundamentals. Chapter 3. Class 03: SQL Fundamentals 1 SQL Fundamentals Chapter 3 Class 03: SQL Fundamentals 1 Class 03: SQL Fundamentals 2 SQL SQL (Structured Query Language): A language that is used in relational databases to build and query tables. Earlier

More information

CMPT 354: Database System I. Lecture 2. Relational Model

CMPT 354: Database System I. Lecture 2. Relational Model CMPT 354: Database System I Lecture 2. Relational Model 1 Outline An overview of data models Basics of the Relational Model Define a relational schema in SQL 2 Outline An overview of data models Basics

More information

Advance Database Systems. Joining Concepts in Advanced SQL Lecture# 4

Advance 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 information

Using the SQL Editor. Overview CHAPTER 11

Using the SQL Editor. Overview CHAPTER 11 205 CHAPTER 11 Using the SQL Editor Overview 205 Opening the SQL Editor Window 206 Entering SQL Statements Directly 206 Entering an SQL Query 206 Entering Non-SELECT SQL Code 207 Creating Template SQL

More information

SQL Commands & Mongo DB New Syllabus

SQL Commands & Mongo DB New Syllabus Chapter 15 : Computer Science Class XI ( As per CBSE Board) SQL Commands & Mongo DB New Syllabus 2018-19 SQL SQL is an acronym of Structured Query Language.It is a standard language developed and used

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

Relational terminology. Databases - Sets & Relations. Sets. Membership

Relational terminology. Databases - Sets & Relations. Sets. Membership Relational terminology Databases - & Much of the power of relational databases comes from the fact that they can be described analysed mathematically. In particular, queries can be expressed with absolute

More information

CMPT 354: Database System I. Lecture 3. SQL Basics

CMPT 354: Database System I. Lecture 3. SQL Basics CMPT 354: Database System I Lecture 3. SQL Basics 1 Announcements! About Piazza 97 enrolled (as of today) Posts are anonymous to classmates You should have started doing A1 Please come to office hours

More information

Oracle Database 10g: Introduction to SQL

Oracle Database 10g: Introduction to SQL ORACLE UNIVERSITY CONTACT US: 00 9714 390 9000 Oracle Database 10g: Introduction to SQL Duration: 5 Days What you will learn This course offers students an introduction to Oracle Database 10g database

More information

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe CHAPTER 6 Basic SQL Slide 6-2 Chapter 6 Outline SQL Data Definition and Data Types Specifying Constraints in SQL Basic Retrieval Queries in SQL INSERT, DELETE, and UPDATE Statements in SQL Additional Features

More information

Mastering phpmyadmiri 3.4 for

Mastering phpmyadmiri 3.4 for Mastering phpmyadmiri 3.4 for Effective MySQL Management A complete guide to getting started with phpmyadmin 3.4 and mastering its features Marc Delisle [ t]open so 1 I community experience c PUBLISHING

More information

GlobAl EDITION. Database Concepts SEVENTH EDITION. David M. Kroenke David J. Auer

GlobAl EDITION. Database Concepts SEVENTH EDITION. David M. Kroenke David J. Auer GlobAl EDITION Database Concepts SEVENTH EDITION David M. Kroenke David J. Auer This page is intentionally left blank. Chapter 3 Structured Query Language 157 the comment. We will use similar comments

More information

CGS 3066: Spring 2017 SQL Reference

CGS 3066: Spring 2017 SQL Reference CGS 3066: Spring 2017 SQL Reference Can also be used as a study guide. Only covers topics discussed in class. This is by no means a complete guide to SQL. Database accounts are being set up for all students

More information

30. Structured Query Language (SQL)

30. Structured Query Language (SQL) 30. Structured Query Language (SQL) Java Fall 2009 Instructor: Dr. Masoud Yaghini Outline SQL query keywords Basic SELECT Query WHERE Clause ORDER BY Clause INNER JOIN Clause INSERT Statement UPDATE Statement

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

COSC 304 Introduction to Database Systems SQL DDL. Dr. Ramon Lawrence University of British Columbia Okanagan

COSC 304 Introduction to Database Systems SQL DDL. Dr. Ramon Lawrence University of British Columbia Okanagan COSC 304 Introduction to Database Systems SQL DDL Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca SQL Overview Structured Query Language or SQL is the standard query language

More information

EGCI 321: Database Systems. Dr. Tanasanee Phienthrakul

EGCI 321: Database Systems. Dr. Tanasanee Phienthrakul 1 EGCI 321: Database Systems Dr. Tanasanee Phienthrakul 2 Chapter 10 Data Definition Language (DDL) 3 Basic SQL SQL language Considered one of the major reasons for the commercial success of relational

More information

Querying Data with Transact-SQL

Querying Data with Transact-SQL Querying Data with Transact-SQL 20761B; 5 Days; Instructor-led Course Description This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can

More information

Database Management Systems,

Database Management Systems, Database Management Systems SQL Query Language (1) 1 Topics Introduction SQL History Domain Definition Elementary Domains User-defined Domains Creating Tables Constraint Definition INSERT Query SELECT

More information

Chapter 4. Basic SQL. SQL Data Definition and Data Types. Basic SQL. SQL language SQL. Terminology: CREATE statement

Chapter 4. Basic SQL. SQL Data Definition and Data Types. Basic SQL. SQL language SQL. Terminology: CREATE statement Chapter 4 Basic SQL Basic SQL SQL language Considered one of the major reasons for the commercial success of relational databases SQL Structured Query Language Statements for data definitions, queries,

More information

Assignment 6: SQL III Solution

Assignment 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 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

20761B: QUERYING DATA WITH TRANSACT-SQL

20761B: QUERYING DATA WITH TRANSACT-SQL ABOUT THIS COURSE This 5 day course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can be taught as a course to students requiring the knowledge

More information

SQL IN PL/SQL. In this chapter, you will learn about: Making Use of DML in PL/SQL Page 68 Making Use of Savepoint Page 77

SQL IN PL/SQL. In this chapter, you will learn about: Making Use of DML in PL/SQL Page 68 Making Use of Savepoint Page 77 CHAPTER 4 SQL IN PL/SQL CHAPTER OBJECTIVES In this chapter, you will learn about: Making Use of DML in PL/SQL Page 68 Making Use of Savepoint Page 77 This chapter is a collection of some fundamental elements

More information

Introduction to SQL Part 1 By Michael Hahsler based on slides for CS145 Introduction to Databases (Stanford)

Introduction to SQL Part 1 By Michael Hahsler based on slides for CS145 Introduction to Databases (Stanford) Introduction to SQL Part 1 By Michael Hahsler based on slides for CS145 Introduction to Databases (Stanford) Lecture 2 Lecture Overview 1. SQL introduction & schema definitions 2. Basic single-table queries

More information

SQL: Concepts. Todd Bacastow IST 210: Organization of Data 2/17/ IST 210

SQL: Concepts. Todd Bacastow IST 210: Organization of Data 2/17/ IST 210 SQL: Concepts Todd Bacastow IST 210: Organization of Data 2/17/2004 1 Design questions How many entities are there? What are the major entities? What are the attributes of each entity? Is there a unique

More information

Course Outline Faculty of Computing and Information Technology

Course Outline Faculty of Computing and Information Technology Course Outline Faculty of Computing and Information Technology Title Code Instructor Name Credit Hours Prerequisite Prerequisite Skill/Knowledge/Understanding Category Course Goals Statement of Course

More information

Lecture 5. Monday, September 15, 2014

Lecture 5. Monday, September 15, 2014 Lecture 5 Monday, September 15, 2014 The MySQL Command So far, we ve learned some parts of the MySQL command: mysql [database] [-u username] p [-- local-infile]! Now let s go further 1 mysqldump mysqldump

More information

Chapter 4. Basic SQL. Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley

Chapter 4. Basic SQL. Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4 Basic SQL Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 4 Outline SQL Data Definition and Data Types Specifying Constraints in SQL Basic Retrieval Queries

More information

COMP 430 Intro. to Database Systems. Encapsulating SQL code

COMP 430 Intro. to Database Systems. Encapsulating SQL code COMP 430 Intro. to Database Systems Encapsulating SQL code Want to bundle SQL into code blocks Like in every other language Encapsulation Abstraction Code reuse Maintenance DB- or application-level? DB:

More information

Chapter 13 : Informatics Practices. Class XI ( As per CBSE Board) SQL Commands. New Syllabus Visit : python.mykvs.in for regular updates

Chapter 13 : Informatics Practices. Class XI ( As per CBSE Board) SQL Commands. New Syllabus Visit : python.mykvs.in for regular updates Chapter 13 : Informatics Practices Class XI ( As per CBSE Board) SQL Commands New Syllabus 2018-19 SQL SQL is an acronym of Structured Query Language.It is a standard language developed and used for accessing

More information

Sql Server Syllabus. Overview

Sql Server Syllabus. Overview Sql Server Syllabus Overview This SQL Server training teaches developers all the Transact-SQL skills they need to create database objects like Tables, Views, Stored procedures & Functions and triggers

More information

QQ Group

QQ Group QQ Group: 617230453 1 Extended Relational-Algebra-Operations Generalized Projection Aggregate Functions Outer Join 2 Generalized Projection Extends the projection operation by allowing arithmetic functions

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

Unit Assessment Guide

Unit 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 information

Databases and SQL programming overview

Databases and SQL programming overview Databases and SQL programming overview Databases: Digital collections of data A database system has: Data + supporting data structures The management system (DBMS) Popular DBMS Commercial: Oracle, IBM,

More information

FIT 100 More Microsoft Access and Relational Databases Creating Views with SQL

FIT 100 More Microsoft Access and Relational Databases Creating Views with SQL FIT 100 More Microsoft Access and Relational Databases Creating Views with SQL Creating Views with SQL... 1 1. Query Construction in SQL View:... 2 2. Use the QBE:... 5 3. Practice (use the QBE):... 6

More information

UFCEKG 20 2 : Data, Schemas and Applications

UFCEKG 20 2 : Data, Schemas and Applications Lecture 11 UFCEKG 20 2 : Data, Schemas and Applications Lecture 11 Database Theory & Practice (5) : Introduction to the Structured Query Language (SQL) Origins & history Early 1970 s IBM develops Sequel

More information

SYSTEM CODE COURSE NAME DESCRIPTION SEM

SYSTEM 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 information

Ministry of Higher Education and Scientific research

Ministry of Higher Education and Scientific research Department of IT Technical Institute of Amedi Duhok Polytechnic University Subject: Database System Course Book: Year 2 (Second year) Lecturer's name: Dipl.Eng.Shorash A. Sami Academic Year: 2018/2019

More information

MySQL for Beginners Ed 3

MySQL for Beginners Ed 3 MySQL for Beginners Ed 3 Duration: 4 Days What you will learn The MySQL for Beginners course helps you learn about the world's most popular open source database. Expert Oracle University instructors will

More information

SQL Functionality SQL. Creating Relation Schemas. Creating Relation Schemas

SQL Functionality SQL. Creating Relation Schemas. Creating Relation Schemas SQL SQL Functionality stands for Structured Query Language sometimes pronounced sequel a very-high-level (declarative) language user specifies what is wanted, not how to find it number of standards original

More information

Querying Data with Transact-SQL

Querying Data with Transact-SQL Querying Data with Transact-SQL Course 20761C 5 Days Instructor-led, Hands on Course Information The main purpose of the course is to give students a good understanding of the Transact- SQL language which

More information

Oracle Database 11g: SQL and PL/SQL Fundamentals

Oracle Database 11g: SQL and PL/SQL Fundamentals Oracle University Contact Us: +33 (0) 1 57 60 20 81 Oracle Database 11g: SQL and PL/SQL Fundamentals Duration: 5 Days What you will learn In this course, students learn the fundamentals of SQL and PL/SQL

More information

Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No.

Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. Database Management System Dr. S. Srinath Department of Computer Science & Engineering Indian Institute of Technology, Madras Lecture No. # 5 Structured Query Language Hello and greetings. In the ongoing

More information

Oral Questions and Answers (DBMS LAB) Questions & Answers- DBMS

Oral Questions and Answers (DBMS LAB) Questions & Answers- DBMS Questions & Answers- DBMS https://career.guru99.com/top-50-database-interview-questions/ 1) Define Database. A prearranged collection of figures known as data is called database. 2) What is DBMS? Database

More information

Simple Quesries in SQL & Table Creation and Data Manipulation

Simple Quesries in SQL & Table Creation and Data Manipulation Simple Quesries in SQL & Table Creation and Data Manipulation Based on CBSE Curriculum Class -11 By- Neha Tyagi PGT CS KV 5 Jaipur II Shift Jaipur Region Neha Tyagi, PGT CS II Shift Jaipur Introduction

More information

Oracle Database 10g Express

Oracle Database 10g Express Oracle Database 10g Express This tutorial prepares the Oracle Database 10g Express Edition Developer to perform common development and administrative tasks of Oracle Database 10g Express Edition. Objectives

More information

Informatics 1: Data & Analysis

Informatics 1: Data & Analysis Informatics 1: Data & Analysis Lecture 3: The Relational Model Ian Stark School of Informatics The University of Edinburgh Tuesday 24 January 2017 Semester 2 Week 2 https://blog.inf.ed.ac.uk/da17 Lecture

More information

Course Design Document: IS202 Data Management. Version 4.5

Course Design Document: IS202 Data Management. Version 4.5 Course Design Document: IS202 Data Management Version 4.5 Friday, October 1, 2010 Table of Content 1. Versions History... 4 2. Overview of the Data Management... 5 3. Output and Assessment Summary... 6

More information

Querying Data with Transact-SQL

Querying Data with Transact-SQL Querying Data with Transact-SQL Duration: 5 Days Course Code: M20761 Overview: This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days can

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

SQL Data Definition Language: Create and Change the Database Ray Lockwood

SQL Data Definition Language: Create and Change the Database Ray Lockwood Introductory SQL SQL Data Definition Language: Create and Change the Database Pg 1 SQL Data Definition Language: Create and Change the Database Ray Lockwood Points: DDL statements create and alter the

More information

Exam code: Exam name: Database Fundamentals. Version 16.0

Exam 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 information

Introduction to Computer Science and Business

Introduction to Computer Science and Business Introduction to Computer Science and Business This is the second portion of the Database Design and Programming with SQL course. In this portion, students implement their database design by creating a

More information

CS317 File and Database Systems

CS317 File and Database Systems CS317 File and Database Systems http://dilbert.com/strips/comic/1995-10-11/ Lecture 5 More SQL and Intro to Stored Procedures September 24, 2017 Sam Siewert SQL Theory and Standards Completion of SQL in

More information

INFORMATION TECHNOLOGY NOTES

INFORMATION TECHNOLOGY NOTES Unit-6 SESSION 7: RESPOND TO A MEETING REQUEST Calendar software allows the user to respond to other users meeting requests. Open the email application to view the request. to respond, select Accept, Tentative,

More information

Course Outline. Querying Data with Transact-SQL Course 20761B: 5 days Instructor Led

Course Outline. Querying Data with Transact-SQL Course 20761B: 5 days Instructor Led Querying Data with Transact-SQL Course 20761B: 5 days Instructor Led About this course This course is designed to introduce students to Transact-SQL. It is designed in such a way that the first three days

More information

MySQL 5.0 Certification Study Guide

MySQL 5.0 Certification Study Guide MySQL 5.0 Certification Study Guide Paul DuBois, Stefan Hinz, and Carsten Pedersen MySQC Press 800 East 96th Street, Indianapolis, Indiana 46240 USA Table of Contents Introduction 1 About This Book 1 Sample

More information

NCSS: Databases and SQL

NCSS: Databases and SQL NCSS: Databases and SQL Tim Dawborn Lecture 1, January, 2016 Motivation SQLite SELECT WHERE JOIN Tips 2 Outline 1 Motivation 2 SQLite 3 Searching for Data 4 Filtering Results 5 Joining multiple tables

More information

6.1 Understand Relational Database Management Systems

6.1 Understand Relational Database Management Systems L E S S O N 6 6.1 Understand Relational Database Management Systems 6.2 Understand Database Query Methods 6.3 Understand Database Connection Methods MTA Software Fundamentals 6 Test L E S S O N 6. 1 Understand

More information

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II CISC 3140 (CIS 20.2) Design & Implementation of Software Application II Instructor : M. Meyer Email Address: meyer@sci.brooklyn.cuny.edu Course Page: http://www.sci.brooklyn.cuny.edu/~meyer/ CISC3140-Meyer-lec4

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

Assignment Session : July-March

Assignment Session : July-March Faculty Name Class/Section Subject Name Assignment Session : July-March 2018-19 MR.RAMESHWAR BASEDIA B.Com II Year RDBMS Assignment THEORY ASSIGNMENT II (A) Objective Question 1. Software that defines

More information