What is a database transaction

Assignment Help Other Subject
Reference no: EM132424197

HS2021- Database Design and Use - Holmes Institute

Part 1

Lab Questions

Question 1. Consider the following statement:
SELECT 100 / 20 FROM DUAL
a) What is DUAL?
b) Why is it used?
c) What is displayed?

Question 2. Describe a business process that requires more than one row in a table to be updated and /or inserted and / or deleted?

Question 3. What is a database transaction?

Question 4. Why is a transaction often referred to as a 'logical unit of work'?

Question 5. Database transactions must be atomic. What does atomic mean?

Question 6. What could happen if a transaction was not atomic?

Question 7. What happens to a transaction when all statements in a transaction are successfully completed?

Question 8. What happens to a transaction when at least one statement in a transaction is not successfully completed?

Question 9. Assume that this statement has been executed:
• INSERT INTO Customer (Custld, Date, Balance) VALUES (*CV, '1-June', 0);
Sometime later, the following two statements are executed:
• INSERT INTO banktrans (TransType, Date, Custld, Amt) VALUES ('Deposit',1-Junes,t1', 1000);
• UPDATE Customer
SET Balance = Balance
♦ 1000 WHERE Custld
= 'C1';
a) Why is it important that both of the above statements are executed?
b) What are the repercussions if the first statement is executed but the second statement is not?
Question 10. How do the database needs of Business Analysts differ from the database needs of the same organisation's Operational staff?

Question 11. List 3 different corporate software applications that would use a database to store data. E.g. A payroll system.

Question 12. What is a TPS system or application? How is a database involved?

Question 13. Why are corporate software applications and databases often referred to as heterogeneous?

Question 14. List 2 reasons why an organisation would want to copy data from their operational TPS database(s) to a Data Warehouse.

Question 15. Assume that the table EMP has the following data
EmpNo Surname Firstname
1 Smith Fred
2 Jay Emma
2 Phelps Mark
Consider the following statement: SELECT Firstname ||"|| Surname
FROM Employee
What is displayed?

Question 16. Consider the following statement: SELECT Firstname ||"|| Surname
FROM Employee
WHERE INSTR(Firstname, 'm') > 0
What is displayed?

Part 2

Lab Questions

Indexes:

Question 1. What is an Index?

Question 2. Describe the contents of an Index based on the primary key of this table STUDENT TABLE
Stu No Number Primary Key
FirstName Varchar(30)
, SurName Vardiar(30)
, Phone Varchar(12)
, Gender Varchar(1));

Row

StuNo

Firstname

Surname

Phone

Gender

1

7070707

Sue

Davis

0444 111 222

F

2

1010101

Jim

Black

0444 221 332

M

3

3330000

Jenny

Hill

0444 999 777

F

4

2666662

Helen

Black

0411 222 176

F

S

2020202

Emma

Glee

0424 111 774

F

6

1893220

Adam

Black

0404 333 141

M

Question 3. How can an index improve the performance of a database system?

Question  4. How can index be detrimental to the performance of a database system?

Question  5. Write the code that would create an index on Surname in the above table

Question 6. Write the code that would remove the index created in the above question.

Question 7. Write the code that would create an index on Firstname & Surname in the above table

Question 8. Consider the data stored in this table. STUDENT(Stuld, Firstname, Surname, Gender, TutGrp) Note: (The Rowld is not a column in the table. It is merely used as a way of referencing each row)

a) Which of the following insert

statements would cause a duplicate primary key constraint error?
INSERT INTO student
VALUES (1, 'Fred, 'Smith', 'M', 4);
INSERT INTO student
VALUES (2856 'Emma', 'Jones', 'F', 2);
INSERT INTO student
VALUES (2912 'Davis', 'Sue, 'F', 1);

b) How many rows do you need to look at to list the firstname and tutgrp of all the students whose surname is Cortez?

c) How many rows had the surname of Cortez?

Note: Need 1st and 2nd question only in Part 1 and 2.

Reference no: EM132424197

Questions Cloud

Calculate the project cash flow generated for project a : Calculate the project cash flow generated for Project A and Project B using the NPV method.
Purpose of regulation and the concept of ethics : Briefly explain the purpose of regulation and the concept of ethics. Is it possible for a company to maximize shareholder value and be ethical?
How does it compare to a similar successful organization : How should the organization attract, develop, and maintain the workforce required to bring about your proposed change?How does it compare to a similar success
HD-DVD versus Blu-ray : In recent times, HD-DVD and Blu-ray were competing technology formats for creating and watching movies on DVDs.
What is a database transaction : Describe a business process that requires more than one row in a table to be updated and /or inserted and / or deleted and What is a database transaction
Trailing twelve month price-earnings ratio : The firm had earnings per share of $1.86 last year and projects earnings of $2.09 a share for next year. What is the trailing twelve month price-earnings ratio
Discounted payback period to evaluate cash flows : What are the problems associated with using the discounted payback period to evaluate cash flows? Please answer the following question.
Discus information security governance : Discus Information Security Governance. Discuss how ISG moves information security beyond technical decisions and makes security a strategic decision.
Describe the six steps in the risk management process : Question 1: Define risk. In your definition, state the relationship between risk and uncertainty.

Reviews

Write a Review

Other Subject Questions & Answers

  Cross-cultural opportunities and conflicts in canada

Short Paper on Cross-cultural Opportunities and Conflicts in Canada.

  Sociology theory questions

Sociology are very fundamental in nature. Role strain and role constraint speak about the duties and responsibilities of the roles of people in society or in a group. A short theory about Darwin and Moths is also answered.

  A book review on unfaithful angels

This review will help the reader understand the social work profession through different concepts giving the glimpse of why the social work profession might have drifted away from its original purpose of serving the poor.

  Disorder paper: schizophrenia

Schizophrenia does not really have just one single cause. It is a possibility that this disorder could be inherited but not all doctors are sure.

  Individual assignment: two models handout and rubric

Individual Assignment : Two Models Handout and Rubric,    This paper will allow you to understand and evaluate two vastly different organizational models and to effectively communicate their differences.

  Developing strategic intent for toyota

The following report includes the description about the organization, its strategies, industry analysis in which it operates and its position in the industry.

  Gasoline powered passenger vehicles

In this study, we examine how gasoline price volatility and income of the consumers impacts consumer's demand for gasoline.

  An aspect of poverty in canada

Economics thesis undergrad 4th year paper to write. it should be about 22 pages in length, literature review, economic analysis and then data or cost benefit analysis.

  Ngn customer satisfaction qos indicator for 3g services

The paper aims to highlight the global trends in countries and regions where 3G has already been introduced and propose an implementation plan to the telecom operators of developing countries.

  Prepare a power point presentation

Prepare the power point presentation for the case: Santa Fe Independent School District

  Information literacy is important in this environment

Information literacy is critically important in this contemporary environment

  Associative property of multiplication

Write a definition for associative property of multiplication.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd