Preview

Yea Yeah Yeah

Good Essays
Open Document
Open Document
386 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Yea Yeah Yeah
Additional SQL Concepts








Database Transactions o logical unit of work in a database system o consists of one or more database operations (insert, delete, update) which together reflect the data changes resulting from a “real-world transaction” o properties of transactions atomicity - the execution of the component operations of a transaction is an all-or-nothing affair;
i.e., either all the component operations are executed, or none at all are consistency - a (correct) transaction transforms the database from one consistent state to another consistent state, without necessarily preserving consistency at all intermediate points isolation durability - the effects of the updates of a committed transaction persists, even in the face of subsequent failures o DBMS transaction processing system (concurrency and recovery mechanisms) autocommit mode and isolation levels
SQL (transaction initiation, COMMIT, ROLLBACK, intermediate savepoints)
Triggers
o database object which defines an action the database should take some related database event occurs o fired (automatically executed) when some DML statement is issued (either before or after the event)
CREATE TRIGGER newinvdetail
AFTER INSERT ON invdetail FOR EACH ROW
BEGIN
UPDATE invoice
SET invamt = invamt + (:new.invqty * :new.unitprice)
WHERE invno = :new.invno;
UPDATE item
SET qtyonhand = qtyonhand - :new.invqty
WHERE itemno = :new.itemno;
END;
Stored Procedures and Functions o database program modules that are stored and executed by the DBMS (persistent stored modules) o usefulness stored module can be used by several applications server processing can reduce data transfer and communication cost allows more complex types of derived data to be made available to users o written in a general purpose programming language (e.g. PL/SQL in Oracle, Transact-SQL in MS SQL) o typically provides for explicit usage of IN, OUT, INOUT parameters
CREATE PROCEDURE procname

You May Also Find These Documents Helpful

  • Satisfactory Essays

    ECO 550 FINAL EXAM

    • 1006 Words
    • 5 Pages

    12. When someone contracts to do a task but fails to put full effort into the performance of an agreement, yet the lack of effort is not independently verifiable, this lack of effort constitutes a…

    • 1006 Words
    • 5 Pages
    Satisfactory Essays
  • Satisfactory Essays

    - Any action that a database takes, creating objects, adding rows, changing data in rows, removing rows, and so on.…

    • 327 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Pt2520 Unit 6

    • 1447 Words
    • 6 Pages

    DBMS, a collection of programs that are stored, managed and simultaneously given controlled access to the end users to create, modify and delete.…

    • 1447 Words
    • 6 Pages
    Powerful Essays
  • Satisfactory Essays

    Unit 6 True

    • 287 Words
    • 1 Page

    SQL is the programming language used to manipulate data and data objects in a relational database management system. TRUE…

    • 287 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    unit 6

    • 360 Words
    • 2 Pages

    1) SQL is the programming language used to manipulate data and data objects in a relational database management system.…

    • 360 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    bis345345

    • 487 Words
    • 3 Pages

    1. (TCO 1) A database server can be best described with which of the following?…

    • 487 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Dbm 381 Week 1paper

    • 885 Words
    • 4 Pages

    A database consists of one or more tables; each containing data stored as individual records. Different database architectures determine how the tables and records are organized or related…

    • 885 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Athabasca Assignment

    • 837 Words
    • 4 Pages

    Relational databases are not new technology. Commercially, they gained importance in the early 1980s with the introduction of Oracle’s relational database, and since then they have been an essential tool for most businesses. Databases are critical tools that help to support various business functions in an organization. These information systems help a business to build and maintain competitive advantage. Databases not only support the operational levels of business—they are also used to support the activities of managers.…

    • 837 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    There were 4 major factors that led up to the end of reconstruction. The first major factor was the Jim Crow Laws. Jim Crow was used as another word for African Americans back then. The Jim Crow laws made segregation. Because of these laws, the US Supreme Court declared that segregation was lawful as long as facilities for black and whites were equal, a policy known as "supreme but equal". The second major factor was Ku Klux Klan Violence. The K.K.K. was a secret group formed after the civil war. The Klan aimed to keep African Americans powerless. The Klan was known to kill freed slaves just because they could read and write. The Klan demanded that the Freedmen's Bureau be shut down. In every county where the Klan was active, Republican voters…

    • 265 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    CS-669 Assignment 1

    • 985 Words
    • 4 Pages

    It also supports quick requests in query such that ad hoc query and responses almost immediately.…

    • 985 Words
    • 4 Pages
    Powerful Essays
  • Powerful Essays

    Database and Page Ref

    • 4307 Words
    • 19 Pages

    12) A transaction is a group of alternative database actions, from which the database can choose to perform only one of them.…

    • 4307 Words
    • 19 Pages
    Powerful Essays
  • Best Essays

    The DBMS reveals much of the database’s internal complexity to the application programs and users.…

    • 2439 Words
    • 17 Pages
    Best Essays
  • Good Essays

    Relational Databases

    • 750 Words
    • 3 Pages

    Data for our programs are stored in various formats. The most commonly used format is in the form of a database since databases are not dependent on a single program or hardware platform. These databases are stored in five structures of hierarchical, network, relational, multidimensional, and object-oriented. Hierarchical structure organizes data in a one to many relationship. The network goes of the hierarchical structure by organizing data in a many to many relationship. The relational structure organizes the data in tables and allows the end user to determine the relationship at run time. Multidimensional takes the relational structures concept and uses multi dimensions to organize the data. Object-oriented structure has not only the attributes of the entity, but also contain the operations that can be performed on it.…

    • 750 Words
    • 3 Pages
    Good Essays
  • Good Essays

    A data manipulation language, such as SQL, that is used to add, change, delete, and retrieve the data in the database. This language contains commands that permit end users and programming specialists to extract data from the database to satisfy information requests and develop applications.…

    • 890 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Yeah, Yeah

    • 437 Words
    • 2 Pages

    Revenge has played an intricate part in society since the beginning of man. There are quite a few stories in which people use revenge to amend the wrong that was done to them. This brings about the question, does revenge promote justice? I believe that revenge can promote justice but only if the punishment is ethical and executed properly.…

    • 437 Words
    • 2 Pages
    Satisfactory Essays

Related Topics