Premium Essay

Database Processing

In:

Submitted By wsbloxton
Words 462
Pages 2
7.1 What does DDL stand for? List the SQL DDL statements.
7.2 What do es DML stand for? List the SQL DML statements.
7.4 Write a CREATE TABLE statement for the DEPARTMENT table.
7.6 Write a CREATE TABLE statement for PROJECT table. The default value for MaxHours is 100. Cascade updates but not deletions from DEPARTMENT to EMPLOYEE.

7.9 Write an alternate SQL statement that modifies your answer to Review Question 7.7 to make the relationship between EMPLOYEE and ASSIGNMENT a 1:1 relationship.
7.10 Write an ALTER statement to add the column AreaCode to EMPLOYEE. Assume that
AreaCode is not required.
7.13 Write an ALTER statement to drop the constraint that Phone is an alternate key in EMPLOYEE.
If you are using a DBMS, then at this point you should create a database named
WPC and run the SQL statements from Review Questions 7.4, 7.5, 7.6, and 7.8 only.
(Hint: Write and test an SQL script, and then run the script. Save the script as
DPB-e12-WPC-Create-Tables.sql for future use.) Do not run your answers to Review
Questions 7.7 or 7.9! After the tables are created, run your answers to Review
Questions 7.10 through 7.13. Note that after these four statements have been run the table structure is exactly the same as it was before you ran them.

7.17 Write INSERT statements to add the data shown in Figure 2-32 to the ASSIGNMENT table. Run these statements to populate the ASSIGNMENT table. (Hint: Write and test an
SQL script, and then run the script. Save the script as DBP-e12-WPC-Insert-ASSIGNMENTData. sql for future use.)
7.26 Write one DELETE statement that will delete all data for project ‘2011 Q3 Product Plan’ and all of its rows in ASSIGNMENT. Do not run this statement.
7.30 What is an SQL view? What purposes do views serve?
Why is this useful?
7.39 Explain how views can be used to improve data security.

Chapter 7 SQL for Database

Similar Documents

Premium Essay

Database Processing Ch 1 and Part of Ch 2

...Review Questions 1.1 What is the purpose of a database? - The purpose of a database is to help people keep track of things. 1.2 What is the most commonly used type of database? - The relational database is the most commonly used type of database. 1.7 Define the terms data and information. Explain how the two terms differ. - Data are facts and figures. Information is defined as knowledge derived from data, or as data presented in a meaningful context. Data is simply recorded in the database, but the data must be manipulated in some way to produce information. 1.12 What is the purpose of the largest databases used by e-commerce companies such as Amazon.com? - The largest databases used by e-commerce companies are Web-activity databases used to track customer behavior. 1.13 How do the e-commerce companies use these databases? - The e-commerce companies’ Web-activity databases are used to determine which Web page items are popular and successful, and to test if certain variations in Web page design will generate more orders. 1.14 How do digital dashboard and data mining applications differ from transaction processing applications? - Digital dashboard and data mining applications do not generate new data, but instead are used to summarize existing data to provide information to management. 1.15 Explain why a small database is not necessarily simpler than a large one. - While small databases vary from large databases in terms of the amount of data they store, they...

Words: 1418 - Pages: 6

Premium Essay

Cis Database Processing

...Chapter 2 2.1 What is a business intelligence (BI) system? Business intelligence (BI) systems are applications and technologies for gathering, storing, analyzing, and accessing information for better business decision making. 2.2 What is an ad-hoc query? An AD-HOC Query is a query which is created on the fly, for a specific Non-Generalizable one time requirement and may not be saved 2.3 What does SQL stand for, and what is SQL? SQL stands for structured query language. It is a special interfacing program that uses a certain language for sending questions to a search engine. 2.4 What does SKU stand for? What is an SKU? SKU stands for Stock Keeping Unit. A number assigned to a product by a retail store to identify the price, product options and manufacturer of the merchandise. 2.5 Summarize how data were altered and filtered in creating the Cape Codd data extraction. 2.6 Explain, in general terms, the relationships among the RETAIL_ORDER, ORDER_ITEM and SKU_DATA tables. 2.7 Summarize the background of SQL 2.8 What is SQL-92? How does it relate to the SQL statements in this chapter? 2.9 What features have been added to the SQL in versions subsequent to the SQL-92? 2.10 Why is SQL described as a data sublanguage? 2.11 What does DML stand for? What are DML statements? 2.12 What does DDL stand for? What are DDL statements? 2.13 What is the SQL SELECT/FROM/WHERE framework? 2.14 Explain how Microsoft Access uses SQL 2.15 Explain how enterprise-class DBMS products...

Words: 448 - Pages: 2

Premium Essay

Database Processing Chapt 2

...2.22 Write an SQL statement to display all of the columns using *. SELECT * FROM INVENTORY; 2.26 Write an SQL statement to display the SKU, SKU_Description, and Warehouse on products having QuantityOnHand equal to 0. Sort the results in descending order by Warehouse and ascending order of SKU. SELECT SKU, SKU_Description, Warehouse FROM INVENTORY WHERE QuantityOnHand =0 ORDER BY Warehouse DESC, SKU; 2.30 Write an SQL statement to display the SKU, SKU_Description, WarehouseID, and QuantityOnHand for all products having a QuantityOnHand greater than 1 and less than 10. Use the BETWEEN keyword. SELECT SKU, SKU_Description, WarehouseID, QuantityOnHand FROM INVENTORY WHERE QuantityOnHand BETWEEN 2 AND 9; 2.30 (11th Edition) Write an SQL statement to display the SKU and SKU_Description of all items stored in the Seattle, Chicago, or New Jersey warehouse. Use the IN keyword. SELECT SKU, SKU_Description FROM INVENTORY WHERE Warehouse IN ('Seattle', 'Chicago', 'New Jersey'); 2.35 Explain the difference between the SQL built-in functions COUNT and SUM. COUNT counts the number of rows or records in a table, while SUM adds up the data values in the specified column. 2.35 (11th Edition) Write an SQL statement to show SKU and SKU_Description for all products having an SKU_Description starting with “Half-dome”. SELECT SKU, SKU_Description FROM INVENTORY WHERE SKU_Description LIKE 'Half-dome%'; 2.36 Write an SQL statement to show SKU and...

Words: 476 - Pages: 2

Free Essay

Riordan Web Based Plan

...With three plants based in the continental US, which are located in Albany, Georgia; Pontiac Michigan; and in San Jose, California, which is the company headquarters. A fourth plant is located in Hangzhou, China will not be part of the plan as they purchase materials locally. This where we explain how the database will be set up. Refer to the ERD, Sequence diagram, Use Case diagram, and Class Diagram that followThe following paragraphs will describe the considerations that Riordan Manufacturing will need to make in implementing the database plan. Where ever it is possible to for our firm to do so, LTB and Associates will make a recommendation on the choice to make. In order to implement the database properly, these recommendations should be implemented in order to offer the tightest amount of security that will be possible. Type of Online ProcessingRiordan Manufacturing will need to decide between real-time asynchronous processing and batch processing. Real-time asynchronous processing is applicable when the processing must be performed immediately or when the results must eventually be communicated back to an on-line user. One of the problems with real-time processing is that real-time timers and events are required; they are expensive as the computer resources that are used to raise, maintain and check events. Another problem with timer or even processes is that they create locking problems as they may contend with...

Words: 2477 - Pages: 10

Premium Essay

Database

...meet the problems or opportunities of the business. 1) ___A. database analysis____ A) Database analysts B) Users C) Systems analysts D) Programmers TRUE/FALSE. Write 'T' if the statement is true and 'F' if the statement is false. 2) Database development projects are never done in a bottom-up fashion. 2) __False_ 3) A well-structured database establishes the entities between relationships in order to derive the desired information. 3) _False_ ESSAY. Write your answer in the space provided or on a separate sheet of paper. 4) Provide a brief overview of the various components of the database environment. TRUE/FALSE. Write 'T' if the statement is true and 'F' if the statement is false. 5) Database processing programs are coded and tested during the design stage of the systems development life cycle. 5) __F__ MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question. 6) Organizing the database in computer disk storage is done in the ________ phase. 6) _Design__ A) analysis B) design C) implementation D) maintenance 7) A workgroup database is stored on a central device called a(n): 7) __c. server_____ A) client. B) network. C) server. D) remote PC. TRUE/FALSE. Write 'T' if the statement is true and 'F' if the statement is false. 8) Many of the disadvantages of file processing systems can also be limitations of databases. 8) ___T____ MULTIPLE CHOICE. Choose the one alternative that...

Words: 336 - Pages: 2

Free Essay

Network Processing Strategies

...organizations use multiple computer systems acrss the firm. Distributed processing enables computers in different locations to communicate with each other via telecommunication links. Basically we can divide such distributed processing into 3 primary categories. They are: ➢ Terminal-to-host processing: With terminal-to-host processing the application and database resides on the host computer. The users interact with the applications with “dumb” terminals. ➢ File server processing: With file server processing the application and database reside on the host computer, called the file server. The database management system runs on the user’s PC. When the user needs data from the file server. The file server sends to the user the entire file with the data requested. The downloaded data can be analyzed and manipulated on the user’s PC. ➢ Client/server architecture and processing: Client/server architecture links two or more computers in an arrangement in which some machines perform computing functions for end-user PC’s. Sometime either machine can perform processing and store applications. when two or more computers in an organization are linked in such a way that one acts as the client and the other as the server, and then such processing takes place. Here, usually it is the powerful server that is found to be doing the processing and data storing for its clients making organizations more efficient as proper processing can take place for the organizational data and...

Words: 412 - Pages: 2

Premium Essay

"Enterprise Level Data Work Flows and Data Warehouse

...whom this project would have been a distant reality. We also extend our heartfelt thanks to our family and well wishers. I would like to take this occasion to specially thank University of Northern Virginia to provide us with excellent faculty and also in supporting us getting quality education remotely. Contents SL No Title Page no 1 Abstract 5 2 Introduction to Databases 6 3 OLTP and OLAP Systems 7 4 Difference between OLTP and OLAP 9 5 Data Modeling 13 6 Workflows in Enterprise level Data warehousing 18 7 Business Intelligence tools used in Data flow and Data Warehousing 21 8 Analysis in Data warehousing 24 9 Conclusion 28 10 Foot Note 30 11 References 31 ABSTRACT These days majority of the applications, may it be web applications or windows applications or mobile applications, are completely database dependent. Most of the application developments are becoming database driven environments, hence rendering databases as one of the most key elements in a software environment. This dependency on databases can attributed to the increasing number of data requirements from the...

Words: 6349 - Pages: 26

Premium Essay

Exam

...Chapter 6 FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT Management Information Systems CHAPTER 6: FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT Learning Objectives • Describe how the problems of managing data resources in a traditional file environment are solved by a database management system • Describe the capabilities and value of a database management system • Apply important database design principles • Evaluate tools and technologies for accessing information from databases to improve business performance and decision making • Assess the role of information policy, data administration, and data quality assurance in the management of a firm’s data resources 2 © Pearson Education 2012 Management Information Systems CHAPTER 6: FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT Organizing Data in a Traditional File Environment • File organization concepts – – – – Database: Group of related files File: Group of records of same type Record: Group of related fields Field: Group of characters as word(s) or number • Describes an entity (person, place, thing on which we store information) • Attribute: Each characteristic, or quality, describing entity – E.g., Attributes Date or Grade belong to entity COURSE 3 © Pearson Education 2012 Management Information Systems CHAPTER 6: FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT Organizing Data in...

Words: 2709 - Pages: 11

Premium Essay

Dbms

...CHAPTER 1 – The Database Environment Database – organized collection of logically related data Data – stored representations of meaningful objects and events Structured – numbers, text, dates Unstructured – images, video, documents Information – data processed to increase knowledge in the person using the data Metadata – data that describes the properties and context of user data Disadvantages of File Processing Program-Data Dependence - All programs maintain metadata for each file they use Duplication of Data - Different systems/programs have separate copies of the same data Limited Data Sharing - No centralized control of data Lengthy Development Times - Programmers must design their own file formats Excessive Program Maintenance - 80% of information systems budget Problems with Data Dependency - Each application programmer must maintain his/her own data - Each application program needs to include code for the metadata of each file - Each application program must have its own processing routines for reading, inserting, updating, and deleting data - Lack of coordination and central control - Non-standard file formats Problems with Data Redundancy - Waste of space to have duplicate data - Causes more maintenance headaches The biggest problem: - Data changes in one file could cause inconsistencies - Compromises in data integrity SOLUTION: The DATABASE Approach - Central repository of shared data - Data is managed by a controlling agent ...

Words: 391 - Pages: 2

Free Essay

Data Information

...HCI/520 11/18/2013 Data and Information Summary Today we live in a world where data is a critical resource. Information is also a critical resource and consists of data that is processed into meaningful information for the purpose of organizations and users. Collected data is stored into what is known as databases where it is organized into potentially valuable information. Data also known as Raw data is a stream of facts that are not organized or arranged into a form that people can understand or use (Gillenson, Ponniah, Kriegel, Trukhnov, Taylor, Powell, & Miller, 2008) . Raw Data are facts that have not yet been processed to reveal their meaning (Gillenson, Ponniah, Kriegel, Trukhnov, Taylor, Powell, & Miller, 2008). For example when AT&T wireless ask their clients to participate in a survey about the products they have purchased or how was their customer service experience the data collected is useful but not until the raw data is organized by combining it with other similar data and analyzed into meaningful information. Information is the result of processing raw data to reveal its meaning (Coronel, Morris, & Rob, 2010). Data processing can be as simple as organizing data to reveal patterns or as complex as making forecasts or drawing inferences using statistical modeling (Gillenson, Ponniah, Kriegel, Trukhnov, Taylor, Powell, & Miller, 2008). Both data and information are types of knowledge which share similarities in the fact that each are...

Words: 538 - Pages: 3

Free Essay

Mobile Service Provider

... TERM PAPER COURSE NAME: CSE COURSE CODE: CSE101 TOPIC: Mobile service database provider DOS: 20-11-2010 Submitted To: Submitted By: ACKNOWLEDGEMENT I am grateful to Almighty for giving me the strength to successfully conduct my term paper and for sustaining my efforts which many a times did oscillate. I am deeply indebted to mam, our CSE faculty without whose constructive guidance this term paper would not have been a success. Her valuable advice and suggestions for the corrections, modifications and improvement did enhance the perfection in performing my job well. I am obliged LOVELY PROFESSIONAL UNIVERSITY for providing the best of facilities and environment to bring out our innovation and spirit of inquiry through this venture. I am grateful to My Parents whose blessings and wishes have gone a long way in the completion of this arduous task. Last but not the least I thank all My Friends and Batch Mates, without their prompt support my efforts would have been in vain. CONTENTS 1. Introduction of C 2. Mobile services present scenario 3. Model of mobile computing 4. Benefits of the Mobile Web For Mobile Service Provider: 5. Routing and Query Processing 6.Description of mobile service provider 7. Disconnectivity and consistency 8. Coding 9. Snapshot 10. Future Scope 11. Refernces ...

Words: 4262 - Pages: 18

Free Essay

Abc Markets

...Downloaded By: [Schmelich, Volker] At: 10:58 11 March 2010 Focus THEME COMPETITIVESTRATEGY FOR ELECTRONIC COMMERCE In many respects, Korean economy has been coordinated by the visible hand of the government. The world economy is becoming a borderless one, which directly affects the Korean economy driving it into an open economy. The rising cost of production factors, wage rates, interest rates, and land costs stalls economic growth. Both internal and external economic environment casts doubt over the prospects of the Korean economy. Both public and private sectors are looking for ways to maintain their competitive edge by improving economic efficiency, and one of those efforts is the use of IT. They are making an utmost effort to build the information-communication infrastructure, and promoting EC to explore new business opportunities. Various efforts are being made to facilitate the diffusion of the EC in Korea. The diffusion of proprietary EC within a conglomerate may be made quickly with little trouble. The IOS or EC within a conglomerate is highly likely to be a closed one, which is not unusual among Korean conglomerates. This may result in a situation that goes against global technological future: an open EC system. Korean corporates have recently devoted a vast amount of effort to business process reengineering using IT to improve efficiency. In contrasts, SMEs lack appropriate IT skills requirrd for such innovative movements. This may result...

Words: 2647 - Pages: 11

Free Essay

Cover Letter

.... Now looking for a suitable data entry position with an ambitious company. WORK EXPERIENCE Data Processing Company – Coventry DATA ENTRY CLERK June 2008 - Present Working as part of a team in a busy office environment processing, cleaning and then imputing data. Accurately entering the business names , addresses and financial details of on businesses and individuals. Duties: Ensuring report tables and listings accurately reflect data within a database. Entering data accurately onto computerised databases & Excel spreadsheets. Locate and correct data entry errors. Lifting of files and boxes containing paper records. Maintain logs of activities and completed work. Ensuring documents meet required quality standards. Compiling, coding, categorizing, calculating, tabulating and auditing data. Handling inbound telephone queries from colleagues / clients regarding data . Data manipulation in Excel spreadsheets. Occasionally carrying out various administration tasks like, photocopying, filing. Reviewing validation output and performing specified manual checks on the data to ensure consistency and completeness. KEY SKILLS AND COMPETENCIES Excellent knowledge of Excel & other specialist database tools & software. Computer literate with extensive IT knowledge. Experience of using a scanner and working with TIFF image files. Experience working with Sage systems. Enthusiastic, flexible and capable of working on own initiative. Comprehensive understanding of the Data Protection Act...

Words: 267 - Pages: 2

Premium Essay

Big Data (Mongodb, Hbase and Casandra)

...are clear about how to face the challenge to store, organize, display and analyze large volumes of data. There are multiple techniques in terms of huge database storing approaches that can store petabytes, exabytes and may be zetabytes data. These options are Cassendara, Mongodb and HBase. We will discuss about them one by one and in a proper research method and will compare them in order to contrast their difference and efficiency. Research Background One problem in understanding the phenomenon is that the size of these data sets the volume greatly exceeds the Data warehouse. A plane collects 10 terabytes of information from sensors every 30 minutes flight, while the Stock Exchange of New York collects structured information 1 TB per day. In the context of Big Data, volumes are reaching peta bytes, exa bytes and then soon to zeta bytes. For instance, Apple has just announced that 7 trillion send daily notifications to iOS devices. The explosion of information in social networks, blogs, and emails is characterized the presence of data key "unstructured" and "semi" in contrast with the data type “structured” is what is commonly handled in the Data warehouse. However, the concept of Big Data makes sense from the moment that not only the volume but also the speed and variety of data exceeds the processing capacity that can handle traditional IT systems into information of value to decision. This last feature, the value is the key...

Words: 3463 - Pages: 14

Premium Essay

Hrm Database Systems

...HR Database Systems Question 1 The two commercial HR database systems that I would recommend for my organization are the Oracle Human resources Management systems and the HR Quik HR database system. Using the HR Quik HR database system provides an advantage in that its reports are very simple to run with all its data being generated in Excel. It can track the costs and benefit plans of employees and all the data within the systems can easily be merged with an employee’s documents (Lee, Tan & Wuwongse, 2006). This database also generates forms automatically with regards to the newly hired employees and those who have been terminated; it saves the documents which have been scanned and offers sample forms for guiding users in their generation and use (Kavanagh, Thite & Johnson, 2011). However, the database also has several disadvantages manifested in its inability of creating security profiles, facilitating the effective performance of audit trails due to its concurrent access anomalies and it only offers cloud-hosting features as an optional tool only in some of those models found in the market (Singh, 2009). On the other hand, the Oracle Human Resource Management System also offers several advantages to its users that include the creation and definition of user and security profiles, enabling the effective performance of audit trails and enables the HR to make payroll payments as it has the capability of handling multiple assignments. The Oracle Human Resource Management System...

Words: 1036 - Pages: 5