Department of Computer Science and Information Systems, College of Business and Technology, Morehead State University
|
|
- Joel James
- 6 years ago
- Views:
Transcription
1 1 Department of Computer Science and Information Systems, College of Business and Technology, Morehead State University Lecture 3 Part A CIS 311 Introduction to Management Information Systems (Spring 2017) Computers and information technology have been the main tools used to handle data. In the earlier days, however, data were not the main part of software. In other words, software was designed in such a way that programs (instructions or processes) were the main part, and data were handled as a byproduct of the programs. This approach is still used sometimes, but it is not a good way to manage a large amount of data, and new approaches to managing data have been introduced since the 1960s. Some earlier models (e.g., the hierarchical model such as IBM s IMS system, the network model such as IDMS, etc.) were efficient in terms of speed but too rigid to be used in daily operations. A more reliable and robust database model (i.e., the relational model for databases) was introduced in 1969 by Edgar F. Codd, and later commercial relational database management systems were introduced (Oracle 2). Since then many organizations have used relational database management systems because they are reliable and flexible enough to support their business. In the 1990s, with the popularity of the Internet and the World Wide Web, organizations began to collect external data and use a special type of database management system called data warehouses to manage and analyze different types of internal and external data. Since 2002, the amount of data that organizations deal with is so big that traditional database management systems would not be useful. These traditional systems (e.g., relational database management systems) are still widely used for internal enterprise database management, but for Big Data, different types of database management systems are used (e.g., NoSQL, NewSQL, etc.). Nowadays, all these database managements systems (relational DBMS, data warehouses, NoSQL, etc.) are used in business. Database management systems are used to organize a set of data efficiently and store it economically in a permanent or secondary storage device (e.g., hard disk drives). They also provide efficient tools to locate the on-demand part or whole of the data set, retrieve it, manipulate it, and generate outputs. So far, the most reliable, flexible, and efficient database management systems are based on the relational model, and thus it is important to understand the model. Relational databases use relations to organize and store data. A relation in a relational database is a twodimensional table with a primary key and other constraints integrated. In other words, not every table is a relation. To be a relation, the following conditions should be met: 1. A relation has a name. 2. Data in a relation are organized in two dimensions: row (record, tuple) and column (field, attribute) 3. Each column in a table (field or attribute) is of the same data type. If a column is of numeric data type, the data of text type cannot be inserted in the column. 4. The order of columns does not matter. 5. The order of rows does not matter. 6. Every relation must have one, and only one, primary key. 7. Foreign key is optional. A relation may not have a foreign key or may have one or more foreign keys. In a database, several tables are stored. This is to improve database management and save resources. Let s review the following table. It could be a relation if it has a name (EMPLOYEE_INFORMATION) and if it has a primary key (e.g., the empno and deptno columns together could be set as the primary key for the table). Even
2 2 if it may be a relation, the data should not be stored as is because it has many anomalies and redundant data. EMPLOYEE_INFORMATION empno ename job hiredate sal deptno dname loc 7839 KING PRESIDENT 17-Nov-81 $5, ACCOUNTING NEW YORK 7782 CLARK MANAGER 09-Jun-81 $2, ACCOUNTING NEW YORK 7934 MILLER CLERK 23-Jan-82 $1, ACCOUNTING NEW YORK 7566 JONES MANAGER 02-Apr-81 $2, RESEARCH DALLAS 7788 SCOTT ANALYST 13-Jul-87 $3, RESEARCH DALLAS 7902 FORD ANALYST 03-Dec-81 $3, RESEARCH DALLAS 7369 SMITH CLERK 17-Dec-80 $ RESEARCH DALLAS 7876 ADAMS CLERK 13-Jul-87 $1, RESEARCH DALLAS 7698 BLAKE MANAGER 01-May-81 $2, SALES CHICAGO 7499 ALLEN SALESMAN 20-Feb-81 $1, SALES CHICAGO 7521 WARD SALESMAN 22-Feb-81 $1, SALES CHICAGO 7654 MARTIN SALESMAN 28-Sep-81 $1, SALES CHICAGO 7844 TURNER SALESMAN 08-Sep-81 $1, SALES CHICAGO 7900 JAMES CLERK 03-Dec-81 $ SALES CHICAGO In the EMPLOYEE_INFORMATION table, there are many redundant data. For instance, the dname column has many repeating values (e.g., ACCOUNTING, RESEARCH, and SALES). The loc column also has repeating values. This table shows only 14 records (rows), and thus the redundant data may be ignorable. In practice, however, a relation usually has a large amount of data (e.g., millions or billions of records), and these repeating values would be a big waste. Another problem is the anomalies in the table. For instance, if the accounting department moves to a new place (e.g., L.A.), then many values of the data (i.e., the cell values, NEW YORK, in the loc column) should be changed (i.e., to L.A.). This is called update anomalies. In the table, it is not possible to enter a new record if a department does not exist (e.g., no record of IT department exists), and this is called insertion anomalies. Another type, deletion anomaly, occurs when a record cannot be deleted without deleting all related data (e.g., if the ACCOUNTING department was removed, several records will be deleted. A table with these problems is called a non-normalized relation (or table). One easy way to avoid or minimize these problems in the example is to divide the table into two or more tables. For instance, the EMPLOYEE_INFORMATION table could be divided into two tables as shown in the following figure (the Employees and Departments tables). To make each of these a relation, the primary key constraint should be set up in each table (e.g., empno for Employees and deptno for Departments). If the tables are compared with the previous table, it is clear that a significant amount of data points (i.e., values in many cells) has been saved, if not completely. As shown in the figure, there are less repeating values in the new tables. For instance, the value, ACCOUNTING, is shown only one time. Likewise, the values RESEARCH, SALES, OPERATIONS, NEW YORK, DALLAS, CHICAGO, and BOSTON appear only once. There are, however, still some redundant values. For instance, the repeating values appear in the job column and the deptno column. If there was more information for jobs (e.g., job characteristics, job title number, etc.), a new table may be developed. In the given example, however, there are none, and thus keeping it as is seems OK. The deptno column in the Employees table is different and plays an important role in the table. In fact, it is the
3 3 foreign key in the Employees table which references the primary key in the Departments table. The foreign key is used as a linking point between the two tables. For instance, if a record is selected in the Employees table (e.g., SMITH with the empno 7369), then the foreign key can be used to trace the relevant information on the Departments table (deptno 20). In other words, with the value in the deptno of the Employees table, the foreign key constraint makes it possible to trace the value in the deptno of the Departments table (i.e., the department name is RESEARCH, and the department location is DALLAS). These tables are normalized relations, and this process of converting tables with anomalies into normalized tables is called normalization. This process, however, can be very complex and time consuming. A better way is to use a conceptual data model, and the most popular one is an entity-relationship model. In practice, system analysts or database administrators develop a conceptual data model first, convert it into a relational data schema, generate SQL statements based on the relational data schema, and execute the SQL statements to create actual tables and databases. For instance, the following SQL statement can be executed in a database management system to create a table (relation) called Departments. create table Departments( deptno byte, dname text, loc text, constraint pk_departments primary key (deptno) ); SQL, or Structured Query Language, is a fourth generation programming language (non-procedural or goaloriented). It is the US and international standard for relational databases. In the previous SQL example, create table is the reserved keyword that is used to create a relation. The word after the create table keyword, Departments, is the name of the table (relation). Inside the parentheses, columns (attributes or fields) are defined with column names, data types, and optional constraints. The columns are separated by commas, and the whole statement could be written in one line like the following: create table Departments(deptno byte, dname text, loc text, constraint pk_departments primary key (deptno)); In practice, however, the former is frequently used for better readability. The semicolon after the closing
4 4 parenthesis is the ending mark (like a period in an English sentence). The SQL code in the example is modified to conform to Microsoft Access, and it can be executed in the program using the SQL view of the Query Design menu. To test the code, first, open Microsoft Access and click on the Blank database menu. Initially, an unnamed database has been created with a table (Table1 which can be deleted). Select the Create tab menu, click on the Query Design menu of the Queries group, and click on the Close button if you see a pop-up window (Show Tables). If this is done correctly, the following will be shown.
5 5 If the SQL View menu is selected, the following will be displayed. Delete the SELECT; statement in the Query1 window, type in the example SQL code, and click on the Run button to create the Departments table.
6 6 Likewise, in the Query1 window, delete the previous SQL statement and type in the following to create the Employees table. After the code replaces the previous statement, click on the Run button (if it is not shown, select the Design tab). create table Employees( empno int, ename text, job text, hiredate date, sal currency, deptno byte, constraint pk_employees primary key (empno), constraint fk_deptno foreign key (deptno) references Departments (deptno) ); Once the relations have been created, an insert into statement can be used to enter a record (row or tuple) into a table. For instance, the following statement can be executed to enter a record into the Departments table (Follow the process explained previously to enter the data): insert into Departments values(10, 'ACCOUNTING', 'NEW YORK'); There are some ways to enter the whole data at one time, but this requires advanced programming, and thus, type in the following SQL statements one by one to enter all the records for the Departments and Employees tables:
7 7 insert into Departments values(20, 'RESEARCH', 'DALLAS'); insert into Departments values(30, 'SALES', 'CHICAGO'); insert into Departments values(40, 'OPERATIONS', 'BOSTON'); values( 7839, 'KING', 'PRESIDENT',format(' ','dd-mm-yyyy'), 5000, 10); values( 7698, 'BLAKE', 'MANAGER', format(' ','dd-mm-yyyy'), 2850, 30); values( 7782, 'CLARK', 'MANAGER', format(' ','dd-mm-yyyy'), 2450, 10); values( 7566, 'JONES', 'MANAGER', format(' ','dd-mm-yyyy'), 2975, 20); values( 7788, 'SCOTT', 'ANALYST', format('13-jul-1987','dd-mmm-yyyy'), 3000, 20); values( 7902, 'FORD', 'ANALYST', format(' ','dd-mm-yyyy'), 3000, 20); values( 7369, 'SMITH', 'CLERK', format(' ','dd-mm-yyyy'), 800, 20); values( 7499, 'ALLEN', 'SALESMAN', format(' ','dd-mm-yyyy'), 1600, 30); values( 7521, 'WARD', 'SALESMAN', format(' ','dd-mm-yyyy'), 1250, 30); values( 7654, 'MARTIN', 'SALESMAN', format(' ','dd-mm-yyyy'), 1250, 30); values( 7844, 'TURNER', 'SALESMAN', format(' ','dd-mm-yyyy'), 1500, 30); values( 7876, 'ADAMS', 'CLERK', format('13-jul-1987', 'dd-mmm-yyyy'), 1100, 20); values( 7900, 'JAMES', 'CLERK', format(' ','dd-mm-yyyy'), 950, 30); values( 7934, 'MILLER', 'CLERK', format(' ','dd-mm-yyyy'), 1300, 10); After the insert into statements are executed, if the following select statement is executed, the records of the Departments table will be displayed: select * from Departments;
8 8 If the Run button is clicked on, the data will be displayed as follows: The records shown in the Query1 window is not the Departments table, but the data set retrieved from the table and loaded into the computer memory. Likewise, the following statement will display the data from the Employees table: select * from Employees;
9 9 The following SQL statement will summarize the data from the two tables and display the result as shown in the following figure: select Departments.deptno, sum(sal) from Departments, Employees where Departments.deptno = Employees.deptno group by Departments.deptno, dname; The query (currently Query1) can be saved by clicking on the Save button.
10 10 Name it as SalaryByDepartment, click the OK button, and the query is shown in the Queries area. The outcome from the database by the SQL statement can be used in different application programs (e.g., Excel). To understand the process, first, click the right mouse button on top of the query and select the Excel menu of the Export list. Complete the Export to Excel process by clicking on the OK and Close buttons, and the file (SalaryByDepartment.xlsx) can be located where the file has been exported.
11 11
12 12 In Excel, the data can be modified and analyzed further. The summarized data can be saved in the Excel file, too, but the raw data is usually stored in a database. As mentioned before, Excel is different from Access. Excel is an electronic spreadsheet program which is used to analyze numeric data; on the other hand, Access is a relational database management system which is used to collect, organize, and store a large amount of data. In Excel, there are many cells in a big table-like structure, but it is not a relation (no primary key, foreign key, or any other constraints). In Access, many tables are organized, and each table is a relation which should include a primary key. Optionally, if necessary, a foreign key or more foreign keys could be implemented in a relation. A primary key is a column or a set of columns in a relation and is used to identify each record. For instance, if a value of the primary key is given, a specific record can be identified (differentiated from other records). A foreign key is an extra column or set of columns in a relation. It is the primary key in another relation (reference table) and is used to keep a link between the tables (the reference table and the referring table that has the foreign key). In practice, ordinary business people don t use a database management system directly unless they know the important concepts and techniques. Usually they use business applications or analytic programs (e.g., electronic spreadsheet programs) which can be used to import data from database management systems indirectly and process and analyze the imported data. Some business applications or analytic systems are introduced in CIS 211, CIS 385, and other IS courses. Some database management courses (CIS 326, CIS 426) provide more information on database management. It is strongly recommended that Microsoft Access not be used unless the advanced concepts and techniques (e.g., Entity-Relationship Model, Relational Data Model, etc.) are learned. On the other hand, all college students, especially business-major students, should master an electronic spreadsheet program.
CS2 Current Technologies Note 1 CS2Bh
CS2 Current Technologies Note 1 Relational Database Systems Introduction When we wish to extract information from a database, we communicate with the Database Management System (DBMS) using a query language
More informationCS2 Current Technologies Lecture 2: SQL Programming Basics
T E H U N I V E R S I T Y O H F R G E D I N B U CS2 Current Technologies Lecture 2: SQL Programming Basics Dr Chris Walton (cdw@dcs.ed.ac.uk) 4 February 2002 The SQL Language 1 Structured Query Language
More informationKing Fahd University of Petroleum and Minerals
1 King Fahd University of Petroleum and Minerals Information and Computer Science Department ICS 334: Database Systems Semester 041 Major Exam 1 18% ID: Name: Section: Grades Section Max Scored A 5 B 25
More informationReal-World Performance Training SQL Introduction
Real-World Performance Training SQL Introduction Real-World Performance Team Basics SQL Structured Query Language Declarative You express what you want to do, not how to do it Despite the name, provides
More informationCS2 Current Technologies Lecture 3: SQL - Joins and Subqueries
T E H U N I V E R S I T Y O H F R G E D I N B U CS2 Current Technologies Lecture 3: SQL - Joins and Subqueries Chris Walton (cdw@dcs.ed.ac.uk) 11 February 2002 Multiple Tables 1 Redundancy requires excess
More informationPart III. Data Modelling. Marc H. Scholl (DBIS, Uni KN) Information Management Winter 2007/08 1
Part III Data Modelling Marc H. Scholl (DBIS, Uni KN) Information Management Winter 2007/08 1 Outline of this part (I) 1 Introduction to the Relational Model and SQL Relational Tables Simple Constraints
More informationProgramming Languages
Programming Languages Chapter 19 - Continuations Dr. Philip Cannata 1 Exceptions (define (f n) (let/cc esc (/ 1 (if (zero? n) (esc 1) n)))) > (f 0) 1 > (f 2) 1/2 > (f 1) 1 > Dr. Philip Cannata 2 Exceptions
More informationIntroduction. Introduction to Oracle: SQL and PL/SQL
Introduction Introduction to Oracle: SQL and PL/SQL 1 Objectives After completing this lesson, you should be able to do the following: Discuss the theoretical and physical aspects of a relational database
More informationInformatics Practices (065) Sample Question Paper 1 Section A
Informatics Practices (065) Sample Question Paper 1 Note 1. This question paper is divided into sections. Section A consists 30 marks. 3. Section B and Section C are of 0 marks each. Answer the questions
More informationDatabase Management System. * First install Mysql Database or Wamp Server which contains Mysql Databse.
Database Management System * First install Mysql Database or Wamp Server which contains Mysql Databse. * Installation steps are provided in pdf named Installation Steps of MySQL.pdf or WAMP Server.pdf
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 informationIntroduc.on to Databases
Introduc.on to Databases G6921 and G6931 Web Technologies Dr. Séamus Lawless Housekeeping Course Structure 1) Intro to the Web 2) HTML 3) HTML and CSS Essay Informa.on Session 4) Intro to Databases 5)
More informationPivot Tables Motivation (1)
Pivot Tables The Pivot relational operator (available in some SQL platforms/servers) allows us to write cross-tabulation queries from tuples in tabular layout. It takes data in separate rows, aggregates
More informationDatabase implementation Further SQL
IRU SEMESTER 2 January 2010 Semester 1 Session 2 Database implementation Further SQL Objectives To be able to use more advanced SQL statements, including Renaming columns Order by clause Aggregate functions
More informationCS Reading Packet: "Writing relational operations using SQL"
CS 325 - Reading Packet: "Writing relational operations using SQL" p. 1 CS 325 - Reading Packet: "Writing relational operations using SQL" Sources: Oracle9i Programming: A Primer, Rajshekhar Sunderraman,
More informationCopyright 2007 Pearson Education, Inc. Publishing as Pearson Addison-Wesley. Slide 17-1
Slide 17-1 Chapter 17 Introduction to Transaction Processing Concepts and Theory Multi-user processing and concurrency Simultaneous processing on a single processor is an illusion. When several users are
More informationSQL Structured Query Language Introduction
SQL Structured Query Language Introduction Rifat Shahriyar Dept of CSE, BUET Tables In relational database systems data are represented using tables (relations). A query issued against the database also
More informationCS Reading Packet: "Views, and Simple Reports - Part 1"
CS 325 - Reading Packet: "Views, and Simple Reports - Part 1" p. 1 Sources: CS 325 - Reading Packet: "Views, and Simple Reports - Part 1" * Oracle9i Programming: A Primer, Rajshekhar Sunderraman, Addison
More informationTable : Purchase. Field DataType Size Constraints CustID CHAR 5 Primary key CustName Varchar 30 ItemName Varchar 30 PurchaseDate Date
Q1. Write SQL query for the following : (i) To create above table as per specification given (ii) To insert 02 records as per your choice (iii) Display the Item name, qty & s of all items purchased by
More informationObjectives. After completing this lesson, you should be able to do the following:
Objectives After completing this lesson, you should be able to do the following: Describe the types of problems that subqueries can solve Define subqueries List the types of subqueries Write single-row
More information1 SQL Structured Query Language
1 SQL Structured Query Language 1.1 Tables In relational database systems (DBS) data are represented using tables (relations). A query issued against the DBS also results in a table. A table has the following
More informationCreating and Managing Tables Schedule: Timing Topic
9 Creating and Managing Tables Schedule: Timing Topic 30 minutes Lecture 20 minutes Practice 50 minutes Total Objectives After completing this lesson, you should be able to do the following: Describe the
More information1 SQL Structured Query Language
1 SQL Structured Query Language 1.1 Tables In relational database systems (DBS) data are represented using tables (relations). A query issued against the DBS also results in a table. A table has the following
More informationRDBMS Using Oracle. BIT-4 Lecture Week 3. Lecture Overview
RDBMS Using Oracle BIT-4 Lecture Week 3 Lecture Overview Creating Tables, Valid and Invalid table names Copying data between tables Character and Varchar2 DataType Size Define Variables in SQL NVL and
More informationRelational Database Management Systems Mar/Apr I. Section-A: 5 X 4 =20 Marks
Relational Database Management Systems Mar/Apr 2015 1 I. Section-A: 5 X 4 =20 Marks 1. Database Database: Database is a collection of inter-related data which contains the information of an enterprise.
More information: ADMINISTRATION I EXAM OBJECTIVES COVERED IN THIS CHAPTER:
4367c01.fm Page 1 Wednesday, April 6, 2005 8:14 AM Chapter 1 Oracle Database 10g Components and Architecture ORACLE DATABASE 10G: ADMINISTRATION I EXAM OBJECTIVES COVERED IN THIS CHAPTER: Installing Oracle
More informationDatabases 1. Daniel POP
Databases 1 Daniel POP Week 4 Agenda The Relational Model 1. Origins and history 2. Key concepts 3. Relational integrity 4. Relational algebra 5. 12+1 Codd rules for a relational DBMSes 7. SQL implementation
More informationProgramming the Database
Programming the Database Today s Lecture 1. Stored Procedures 2. Functions BBM471 Database Management Systems Dr. Fuat Akal akal@hacettepe.edu.tr 3. Cursors 4. Triggers 5. Dynamic SQL 2 Stored Procedures
More informationRelational Database Management Systems Oct I. Section-A: 5 X 4 =20 Marks
Relational Database Management Systems Oct 2015 1 I. Section-A: 5 X 4 =20 Marks 1. Data Consistency Files and application programs are created by different programmers over a long period of time, the files
More informationTopic 8 Structured Query Language (SQL) : DML Part 2
FIT1004 Database Topic 8 Structured Query Language (SQL) : DML Part 2 Learning Objectives: Use SQL functions Manipulate sets of data Write subqueries Manipulate data in the database References: Rob, P.
More informationOracle Database 18c. Gentle introduction to Polymorphic Tables Functions with Common patterns and sample use cases
Oracle Database 18c Gentle introduction to Polymorphic Tables Functions with Common patterns and sample use cases About me. Keith Laker Product Manager for Analytic SQL and Autonomous DW Oracle Blog: oracle-big-data.blogspot.com
More informationa 64-bit Environment Author: Rob procedures. SSIS servers. Attunity.
Oracle Driver configuration for SSIS, SSRS and SSAS in Environment a 64-bit Technical Article Author: Rob Kerr ( rkerr@blue-granite.com, http://blog.robkerr.com ) Published: March 2010 Applies to: SQL
More informationDatabases. Relational Model, Algebra and operations. How do we model and manipulate complex data structures inside a computer system? Until
Databases Relational Model, Algebra and operations How do we model and manipulate complex data structures inside a computer system? Until 1970.. Many different views or ways of doing this Could use tree
More informationCIS Reading Packet: "Views, and Simple Reports - Part 1"
CIS 315 - Reading Packet: "Views, and Simple Reports - Part 1" p. 1 CIS 315 - Reading Packet: "Views, and Simple Reports - Part 1" Sources: * Oracle9i Programming: A Primer, Rajshekhar Sunderraman, Addison
More informationDefinitions. Database Architecture. References Fundamentals of Database Systems, Elmasri/Navathe, Chapter 2. HNC Computing - Databases
HNC Computing - s HNC Computing - s Architecture References Fundamentals of Systems, Elmasri/Navathe, Chapter 2 Systems : A Practical Approach, Connolly/Begg/Strachan, Chapter 2 Definitions Schema Description
More informationChapter. Relational Database Concepts COPYRIGHTED MATERIAL
Chapter Relational Database Concepts 1 COPYRIGHTED MATERIAL Every organization has data that needs to be collected, managed, and analyzed. A relational database fulfills these needs. Along with the powerful
More informationGetting Information from a Table
ch02.fm Page 45 Wednesday, April 14, 1999 2:44 PM Chapter 2 Getting Information from a Table This chapter explains the basic technique of getting the information you want from a table when you do not want
More informationActive Databases Part 1: Introduction CS561
Active Databases Part 1: Introduction CS561 1 Active Databases n Triggers and rules are developed for data integrity and constraints n Triggers make passive database active Database reacts to certain situations
More informationSQL Simple Queries. Chapter 3.1 V3.01. Napier University
SQL Simple Queries Chapter 3.1 V3.01 Copyright @ Napier University Introduction SQL is the Structured Query Language It is used to interact with the DBMS (database management system) SQL can Create Schemas
More informationNURSING_STAFF NNbr NName Grade
The SELECT command is used to indicate which information we need to obtain not how the information is to be processed. SQL is a non-procedural language. SELECT [DISTINCT ALL] {* [column_expression [AS
More informationChapter 6. Foundations of Business Intelligence: Databases and Information Management VIDEO CASES
Chapter 6 Foundations of Business Intelligence: Databases and Information Management VIDEO CASES Case 1a: City of Dubuque Uses Cloud Computing and Sensors to Build a Smarter, Sustainable City Case 1b:
More informationCS Reading Packet: "Sub-selects, concatenating columns, and projecting literals"
CS 325 - Reading Packet: "Sub-s, concatenating columns, and projecting literals" p. 1 CS 325 - Reading Packet: "Sub-s, concatenating columns, and projecting literals" SOURCES: "Oracle9i Programming: A
More informationCode No. 90 Please check that this question paper contains 6 printed pages. Code number given on the right hand side of the question paper should be written on the title page of the answer-book by the
More informationajpatelit.wordpress.com
ALPHA COLLEGE OF ENGINEERING & TECHNOLOGY COMPUTER ENGG. / INFORMATION TECHNOLOGY Database Management System (2130703) All Queries 1. Write queries for the following tables. T1 ( Empno, Ename, Salary,
More informationPBarel@Qualogy.com http://blog.bar-solutions.com About me Patrick Barel Working with Oracle since 1997 Working with PL/SQL since 1999 Playing with APEX since 2003 (mod_plsql) ACE since 2011 OCA since December
More informationData and Knowledge Management Dr. Rick Jerz
Data and Knowledge Management Dr. Rick Jerz 1 Goals Define big data and discuss its basic characteristics Understand ways to store information Understand the value of a Database Management System Explain
More informationLecture 8. Database Management and Queries
Lecture 8 Database Management and Queries Lecture 8: Outline I. Database Components II. Database Structures A. Conceptual, Logical, and Physical Components III. Non-Relational Databases A. Flat File B.
More informationThe Seven Case Tables
A P P E N D I X A The Seven Case Tables This appendix offers an overview of the seven case tables used throughout this book, in various formats. Its main purpose is to help you in writing SQL commands
More informationDatabase Design. 1-3 History of the Database. Copyright 2015, Oracle and/or its affiliates. All rights reserved.
Database Design 1-3 Objectives This lesson covers the following objectives: Describe the evolution of the database and give an example of its role in the business world Name important historical contributions
More informationData Management Lecture Outline 2 Part 2. Instructor: Trevor Nadeau
Data Management Lecture Outline 2 Part 2 Instructor: Trevor Nadeau Data Entities, Attributes, and Items Entity: Things we store information about. (i.e. persons, places, objects, events, etc.) Have relationships
More informationDATABASE MANAGEMENT SYSTEMS. UNIT I Introduction to Database Systems
DATABASE MANAGEMENT SYSTEMS UNIT I Introduction to Database Systems Terminology Data = known facts that can be recorded Database (DB) = logically coherent collection of related data with some inherent
More informationData and Knowledge Management. Goals. Big Data. Dr. Rick Jerz
Data and Knowledge Management Dr. Rick Jerz 1 Goals Define big data and discuss its basic characteristics Understand ways to store information Understand the value of a Database Management System Explain
More informationTest bank for accounting information systems 1st edition by richardson chang and smith
Test bank for accounting information systems 1st edition by richardson chang and smith Chapter 04 Relational Databases and Enterprise Systems True / False Questions 1. Three types of data models used today
More informationQ1. (SQL) Consider the following table HOSPITAL. Write SQL commands for the statements (i) to (v)
Q1. (SQL) Consider the following table HOSPITAL. Write SQL commands for the statements (i) to Table : HOSPITAL No Name Age Department Date of adm Charges Sex 1 Arpit 62 Surgery 21.01.98 300 M 2 Zarina
More informationU1. Data Base Management System (DBMS) Unit -1. MCA 203, Data Base Management System
Data Base Management System (DBMS) Unit -1 New Delhi-63,By Vaibhav Singhal, Asst. Professor U2.1 1 Data Base Management System Data: Data is the basic raw,fact and figures Ex: a name, a digit, a picture
More informationEvolution of Database Systems
Evolution of Database Systems Krzysztof Dembczyński Intelligent Decision Support Systems Laboratory (IDSS) Poznań University of Technology, Poland Intelligent Decision Support Systems Master studies, second
More informationIntroduction to Oracle
Class Note: Chapter 1 Introduction to Oracle (Updated May 10, 2016) [The class note is the typical material I would prepare for my face-to-face class. Since this is an Internet based class, I am sharing
More informationWhy Relational Databases? Relational databases allow for the storage and analysis of large amounts of data.
DATA 301 Introduction to Data Analytics Relational Databases Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca DATA 301: Data Analytics (2) Why Relational Databases? Relational
More informationFull file at
David Kroenke's Database Processing: Fundamentals, Design and Implementation (10 th Edition) CHAPTER TWO INTRODUCTION TO STRUCTURED QUERY LANGUAGE (SQL) True-False Questions 1. SQL stands for Standard
More informationData, Information, and Databases
Data, Information, and Databases BDIS 6.1 Topics Covered Information types: transactional vsanalytical Five characteristics of information quality Database versus a DBMS RDBMS: advantages and terminology
More informationSQL. Char (30) can store ram, ramji007 or 80- b
SQL In Relational database Model all the information is stored on Tables, these tables are divided into rows and columns. A collection on related tables are called DATABASE. A named table in a database
More information16/06/56. Databases. Databases. Databases The McGraw-Hill Companies, Inc. All rights reserved.
Distinguish between the physical and logical views of data. Describe how data is organized: characters, fields, records, tables, and databases. Define key fields and how they are used to integrate data
More informationDatabases The McGraw-Hill Companies, Inc. All rights reserved.
Distinguish between the physical and logical views of data. Describe how data is organized: characters, fields, records, tables, and databases. Define key fields and how they are used to integrate data
More informationDATABASE DEVELOPMENT (H4)
IMIS HIGHER DIPLOMA QUALIFICATIONS DATABASE DEVELOPMENT (H4) Friday 3 rd June 2016 10:00hrs 13:00hrs DURATION: 3 HOURS Candidates should answer ALL the questions in Part A and THREE of the five questions
More informationPractical Workbook Database Management Systems
Practical Workbook Database Management Systems Name : Year : Batch : Roll No : Department: Third Edition Reviewed in 2014 Department of Computer & Information Systems Engineering NED University of Engineering
More information22/01/2018. Data Management. Data Entities, Attributes, and Items. Data Entities, Attributes, and Items. ACS-1803 Introduction to Information Systems
ACS-1803 Introduction to Information Systems Instructor: Kerry Augustine Data Management Lecture Outline 2, Part 2 ACS-1803 Introduction to Information Systems Data Entities, Attributes, and Items Entity:
More informationACS-1803 Introduction to Information Systems. Instructor: Kerry Augustine. Data Management. Lecture Outline 2, Part 2
ACS-1803 Introduction to Information Systems Instructor: Kerry Augustine Data Management Lecture Outline 2, Part 2 ACS-1803 Introduction to Information Systems Data Entities, Attributes, and Items Entity:
More informationIntroduction to Database Systems
Introduction to Database Systems UVic C SC 370 Daniel M German Introduction to Database Systems (1.2.0) CSC 370 4/5/2005 14:51 p.1/27 Overview What is a DBMS? what is a relational DBMS? Why do we need
More informationP.G.D.C.M. (Semester I) Examination, : ELEMENTS OF INFORMATION TECHNOLOGY AND OFFICE AUTOMATION (2008 Pattern)
*4089101* [4089] 101 P.G.D.C.M. (Semester I) Examination, 2011 101 : ELEMENTS OF INFORMATION TECHNOLOGY AND OFFICE AUTOMATION (2008 Pattern) Time : 3 Hours Max. Marks : 70 Note : 1) Q. 1 is compulsory.
More informationKENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOMEWORK CLASS-XII INFORMATICS PRACTICES
KENDRIYA VIDYALAYA ALIGANJ SHIFT-II HOLIDAY HOMEWORK 18-19 CLASS-XII INFORMATICS PRACTICES 1. Arrange the following data types in increasing order of their size : byte, int, float, double, char, boolean.
More information8) A top-to-bottom relationship among the items in a database is established by a
MULTIPLE CHOICE QUESTIONS IN DBMS (unit-1 to unit-4) 1) ER model is used in phase a) conceptual database b) schema refinement c) physical refinement d) applications and security 2) The ER model is relevant
More informationOverview of Data Management
Overview of Data Management School of Computer Science University of Waterloo Databases CS348 (University of Waterloo) Overview of Data Management 1 / 21 What is Data ANSI definition of data: 1 A representation
More informationQ5 Question Based on SQL & Database Concept Total Marks 8. Theory Question 2 Marks / SQL Commands 6 Marks / Output of commands 2 Marks
Q5 Question Based on SQL & Database Concept Total Marks 8 Theory Question 2 Marks / SQL Commands 6 Marks / Output of commands 2 Marks Q1 Define the Following with example i) Primary Key ii) Foreign Key
More informationMeaning & Concepts of Databases
27 th August 2015 Unit 1 Objective Meaning & Concepts of Databases Learning outcome Students will appreciate conceptual development of Databases Section 1: What is a Database & Applications Section 2:
More informationExcel Functions & Tables
Excel Functions & Tables SPRING 2016 Spring 2016 CS130 - EXCEL FUNCTIONS & TABLES 1 Review of Functions Quick Mathematics Review As it turns out, some of the most important mathematics for this course
More informationDatabase Compatibility for Oracle Developers Tools and Utilities Guide
Database Compatibility for Oracle Developers EDB Postgres Advanced Server 10 August 29, 2017 by EnterpriseDB Corporation Copyright 2007-2017 EnterpriseDB Corporation. All rights reserved. EnterpriseDB
More informationObjectives. After completing this lesson, you should be able to do the following:
Objectives After completing this lesson, you should be able to do the following: Write SELECT statements to access data from more than one table using equality and nonequality joins View data that generally
More informationOverview of PL/SQL. About PL/SQL. PL/SQL Environment. Benefits of PL/SQL. Integration
About PL/ Overview of PL/ PL/ is an extension to with design features of programming languages. Data manipulation and query statements of are included within procedural units of code. PL/ Environment Benefits
More informationPart 1 on Table Function
CIS611 Lab Assignment 1 SS Chung 1. Write Table Functions 2. Automatic Creation and Maintenance of Database from Web Interface 3. Transforming a SQL Query into an Execution Plan in Relational Algebra for
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 informationThe DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.
Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting
More informationDr. Lyn Mathis Page 1
CSIS 3222, Fall 2008, Chapter 1, 3, 4, 5 (through p. 128) Name (Six Pages) Part I: MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. (3 points each)
More informationDATA Data and information are used in our daily life. Each type of data has its own importance that contribute toward useful information.
INFORMATION SYSTEM LESSON 41 DATA, INFORMATION AND INFORMATION SYSTEM SMK Sultan Yahya Petra 1 DATA Data and information are used in our daily life. Each type of data has its own importance that contribute
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 informationSolved MCQ on fundamental of DBMS. Set-1
Solved MCQ on fundamental of DBMS Set-1 1) Which of the following is not a characteristic of a relational database model? A. Table B. Tree like structure C. Complex logical relationship D. Records 2) Field
More informationQ.1 Short Questions Marks 1. New fields can be added to the created table by using command. a) ALTER b) SELECT c) CREATE. D. UPDATE.
ID No. Knowledge Institute of Technology & Engineering - 135 BE III SEMESTER MID EXAMINATION ( SEPT-27) PAPER SOLUTION Subject Code: 2130703 Date: 14/09/27 Subject Name: Database Management Systems Branches:
More informationStyles and Conditional Features
Styles and Conditional Features Intellicus Enterprise Reporting and BI Platform Intellicus Technologies info@intellicus.com www.intellicus.com Copyright 2010 Intellicus Technologies This document and its
More informationCSCI 1100L: Topics in Computing Lab Lab 07: Microsoft Access (Databases) Part I: Movie review database.
CSCI 1100L: Topics in Computing Lab Lab 07: Microsoft Access (Databases) Purpose: The purpose of this lab is to introduce you to the basics of creating a database and writing SQL (Structured Query Language)
More informationDatabase: Collection of well organized interrelated data stored together to serve many applications.
RDBMS Database: Collection of well organized interrelated data stored together to serve many applications. Database-management System(DBMS): Data Base Management System is a software that can be used to
More informationRapid Application Development
Rapid Application Development Chapter 6: Development Database Application Tools: Microsoft Access Cr: fisher.osu.edu Dr.Orawit Thinnukool College of Arts, Media and Technology, Chiang Mai University Contents
More informationRelational Model. IT 5101 Introduction to Database Systems. J.G. Zheng Fall 2011
Relational Model IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 Overview What is the relational model? What are the most important practical elements of the relational model? 2 Introduction
More informationAmendments & Transactions
Slide 1 Amendments & Transactions Objectives of the Lecture : To consider amendments to a relation; To consider transactions in SQL. Slide 2 Relational Amendment Strictly speaking, relational amendment
More informationDatabase Programming with PL/SQL
Database Programming with PL/SQL 1-1 Objectives This lesson covers the following objectives: Describe PL/SQL Differentiate between SQL and PL/SQL Explain the need for PL/SQL 3 Purpose PL/SQL is Oracle
More informationDatabases - 3. Null, Cartesian Product and Join. Null Null is a value that we use when. Something will never have a value
Databases - 3, Cartesian Product and Join is a value that we use when Something will never have a value Something will have a value in the future Something had a value but doesn t at the moment is a reserved
More informationDatabases - 3. Null, Cartesian Product and Join. Null Null is a value that we use when. Something will never have a value
Databases - 3 Null, Cartesian Product and Join Null Null is a value that we use when Something will never have a value Something will have a value in the future Something had a value but doesn t at the
More informationIntroduction to Geographic Information Science. Updates. Last Lecture. Geography 4103 / Database Management
Geography 4103 / 5103 Introduction to Geographic Information Science Database Management Updates Last Lecture We tried to explore the term spatial model by looking at definitions, taxonomies and examples
More informationStyles and Conditional Features. Version: 7.3
Styles and Conditional Features Version: 7.3 Copyright 2015 Intellicus Technologies This document and its content is copyrighted material of Intellicus Technologies. The content may not be copied or derived
More information2) SQL includes a data definition language, a data manipulation language, and SQL/Persistent stored modules. Answer: TRUE Diff: 2 Page Ref: 36
Database Processing, 12e (Kroenke/Auer) Chapter 2: Introduction to Structured Query Language (SQL) 1) SQL stands for Standard Query Language. Diff: 1 Page Ref: 32 2) SQL includes a data definition language,
More informationCOGS 121 HCI Programming Studio. Week 03 - Tech Lecture
COGS 121 HCI Programming Studio Week 03 - Tech Lecture Housekeeping Assignment #1 extended to Monday night 11:59pm Assignment #2 to be released on Tuesday during lecture Database Management Systems and
More informationDatabase Programming with SQL
Database Programming with SQL 4-3 Objectives This lesson covers the following objectives: Demonstrate the use of SYSDATE and date functions State the implications for world businesses to be able to easily
More information