MET CS 669 Database Design and Implementation for Business
SQL Lab 4 Instructions: Procedural SQL
Objective
The objective of this lab is to teach you how to develop and use basic stored procedures and triggers the procedural language of your chosen DBMS.
Prerequisites
Before attempting this lab, it is best to read the textbook and lecture material covering the objectives listed above. While this lab shows you how to create and use these constructs in SQL, the lab does not explain in full the theory behind the constructs, as does the lecture and textbook. The second section in this lab builds on Lab 3. It is best to complete Lab 3 first before completing the second section in this lab.
Required Software
The
…show more content…
These constructs greatly enhance the native capabilities of the DBMS. The procedural languages also support the ability to embed and use the results of SQL queries. The combination of the programming constructs provided by the procedural language, and the data retrieval and manipulation capabilities provided by the SQL engine, is powerful and useful. Database texts and DBMS documentation commonly refers to the fusion of the procedural language and the declarative SQL language as a whole within the DBMS.
Oracle’s implementation is named Procedural Language/Structured Query Language, and is more commonly referred to as PL/SQL, while SQL Server’s implementation is named Transact‐SQL, and is more commonly referred to as T‐SQL. SQL predates the procedural constructs in both DBMS, and therefore documentation for both DBMS refer to the procedural language as an extension to the SQL language. This idea can become confusing because database texts and documentation also refer to the entire unit, for example PL/SQL and T‐SQL, as a vendor‐specific extension to the SQL language. It is important for us to avoid this confusion by recognizing that there are two distinct languages within a relational DBMS – declarative and procedural – and that both are treated very differently within a DBMS in concept and in implementation. In concept, we use the SQL
It describes what you need to do, what you need to know and how you need to do it within each
1. Make sure that you understand the objective of the lab(s) and the requirements for successfully performing them.
There are several sections to this lab. Find each section and complete the “Preparing for Class” sections.
The lab begins with a simple example of query development using Access; then, evolves to more complex queries which the student should perform after completing the first exercise. The student can create a query with the wizard, with query design view, or with SQL statements. The Northwind database will be used again in this lab.
Which database management system platform should I use? This is a very common question that developers ask themselves when they work on a project that requires storing and querying data. There are 4 well-known platforms that people may consider; they are: Oracle, Microsoft SQL, Teradata and DB2. This essay will compare and contrast the differences and similarities between these fours platforms.
To answer each question, darken the circle corresponding to your answer using a pencil. If you decide to change your answer, please erase your original answer completely and darken your new answer.
If you have not already read the laboratory description for part 1 in the ELEC 2531 Lab 3 report document, do so before proceeding.
Write a short paragraph (minimum five college-level sentences) below that summarizes what was accomplished in this lab, what you learned by performing it, how it relates to this week’s TCOs and other course material, and just as important, how you feel it will benefit you in your academic and professional career. (3 points)
This paper will discuss the difference between procedural modules and object-oriented methods. How both methods work and some of the pro
able to answer this lab. Please submit queries as download the results in a CSV file
A good place to start making sense of the differences is by identifying the two great tensions that we as
However these two perspectives have some traits which make one unique from another and these are discussions as below,
The database used should be open and industry standard to allow easy integration with other applications and easy movement of data in the future. The database
Three types of maintenance plans include: preventative, corrective, and adaptive maintenance which improve the data quality. Activities to improve data quality include database backups, integrity checks, optimizing the index. Preventative maintenance incorporates creating and continuously maintaining daily and/or weekly backups for data loss prevention, corrective maintenance ensures system errors are corrected. One activity associated to corrective maintenance includes resolving deadlocks, which occurs when two or more tasks permanently block each other. Adaptive maintenance includes enhancing system and database performance via based on utility assessments and optimized queries to improve performance. (Coronel, Morris, & Rob., 2013).
In 1977, Larry Ellison, Bob Miner, and Ed Oates founded System Development Laboratories. After being inspired by a research paper written in 1970 by an IBM researcher titled “A Relational Model of Data for Large Shared Data Banks” they decided to build a new type of database called a relational database system. The original project on the relational database system was for the government (Central