Database Concepts (8th Edition)
8th Edition
ISBN: 9780134601533
Author: David M. Kroenke, David J. Auer, Scott L. Vandenberg, Robert C. Yoder
Publisher: PEARSON
expand_more
expand_more
format_list_bulleted
Concept explainers
Question
Chapter 6, Problem 6.30RQ
Program Plan Intro
Cursor:
The term cursor is used to retrieve information in row by row fashion. If the records stored in the
- It plays the major role in fetching a required row from the table in the database which holds numerous records.
- Cursors are defined using SELECT statement.
- It points the set of rows which is resulted from an SQL SELECT statement.
- In general the cursor is placed in the first or last row.
- It influences the performance of the SQL Server as it uses the SQL server instances memory, decrease network bandwidth, reduction in concurrency.
- It’s recommended to avoid the use of cursor and the cursor can be replaced with WHILE loop, temporary tables, sub queries.
Types of cursor:
The types of cursor are listed below:
- Forward-only cursor
- Static cursor
- Dynamic cursor
- Keyset cursor
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
In a relational database, the number of columns in a table that are able to satisfy the constraints that have been defined may be decreased by the use of an operation called select.Which is it: the right answer or the erroneous answer?
Explain why a transaction may have many cursors. Also, how is it possible that a transaction may have more than one cursor on a given table?
How does a transaction number look in a dimensional model?
Chapter 6 Solutions
Database Concepts (8th Edition)
Ch. 6 - Prob. 6.1RQCh. 6 - Explain how database administration tasks vary...Ch. 6 - Prob. 6.3RQCh. 6 - Prob. 6.4RQCh. 6 - Prob. 6.5RQCh. 6 - Prob. 6.6RQCh. 6 - Prob. 6.8RQCh. 6 - Prob. 6.9RQCh. 6 - Prob. 6.10RQCh. 6 - Prob. 6.11RQ
Ch. 6 - Prob. 6.12RQCh. 6 - Prob. 6.13RQCh. 6 - Prob. 6.14RQCh. 6 - Prob. 6.15RQCh. 6 - Prob. 6.16RQCh. 6 - Prob. 6.17RQCh. 6 - Prob. 6.18RQCh. 6 - Explain the benefits of marking transaction...Ch. 6 - Explain the use of the SQL transaction control...Ch. 6 - Prob. 6.21RQCh. 6 - Describe statement-level consistency.Ch. 6 - Prob. 6.23RQCh. 6 - Prob. 6.24RQCh. 6 - Prob. 6.25RQCh. 6 - Prob. 6.26RQCh. 6 - Prob. 6.27RQCh. 6 - Explain what serializable isolation level is. Give...Ch. 6 - Explain the term cursor.Ch. 6 - Prob. 6.30RQCh. 6 - What is the advantage of using different types of...Ch. 6 - Explain forward-only cursors. Give an example of...Ch. 6 - Explain static cursors. Give an example of their...Ch. 6 - Prob. 6.34RQCh. 6 - Prob. 6.36RQCh. 6 - Prob. 6.37RQCh. 6 - Describe the advantages and disadvantages of...Ch. 6 - Prob. 6.40RQCh. 6 - Prob. 6.41RQCh. 6 - Prob. 6.42RQCh. 6 - Prob. 6.44RQCh. 6 - Prob. 6.45RQCh. 6 - What is the advantage of making frequent...Ch. 6 - Summarize a DBAs responsibilities for managing...Ch. 6 - Prob. 6.48RQCh. 6 - Prob. 6.49RQCh. 6 - Prob. 6.50E
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- In terms of Big O notation, how long does it take for a database to execute a given query? I can handle just one more thing at this point. Can you tell me the total number of deletions that occur in a single operation? Anything, even if it were to be used for only one advertising. In response to a single online query?arrow_forwardHow do "logical clocks" contribute to ordering in distributed transactions?arrow_forwardIf a parallel data-store is used to store two relations r and s and we need to join r and s, it may be useful to maintain the join as a materialized view. What are the benefits and overheads in terms of overall throughput, use of space, and response time to user queries?arrow_forward
- Convert this ER model to a list of tables (Please provide a picture of the tables from Access)Provide the queries that implement the databasearrow_forwardConsider the following ER diagram for a social network application.Write the SQL-DDL statements, to create tables for the following ER diagram andcapture as many of the constraints as possible. Specify your decisions with the foreignkey constraints.arrow_forwardA bridge/joint table is exactly what its name implies. What is the substitute? What is wrong with the substitute?arrow_forward
- Suppose relations R(A,B) and S(B,C,D) are as follows: 3 5 A 1 R B 6 2 4 4 6 8 9 C 5 7 c. The full outer join has 3 NULLs. d. The left outer join has 4 NULLS. S A Compute the full outer join on B, the left outer join on B, and the right outer join on B. In each case, R is the left operand and S is the right operand. Then, answer the following questions for each of the three resu How many rows are there in the result? 2 How many NULL's appear in the result? Finally, find the correct statement in the list below. O a. The right outer join has 2 rows. Ob. The right outer join has no NULLS. D 1 2 3arrow_forwardWRITE THE OF MYSQL IN PYTHON, JUST ANSWER THE 2ND QUESTION BY LOOKING AT THE FIRST QUESTION Create database and tables as given below by using Python. (a) Market database (b) Vendor: vendor id integer, vendor name varchar, license start date, license end date (c) Item:itemidinteger,itemnamevarchar,itemtypevarchar, previous price float, last sold date date (d) Auction: auction id integer, vendor id integer, item id integer, price float Choose primary and foreign keys depending on the relations in Market database design. Create arrays of at least 5 di↵erent records. Use these arrays to populate each table in the database.arrow_forwardIt may be advantageous to keep the join as a materialized view if a parallel data-store is used to hold two relations r and s and we need to connect them. What are the advantages and disadvantages in terms of total throughput, space utilization, and user query response time?arrow_forward
- It may be advantageous to keep the join as a materialized view if a parallel data-store is used to hold two relations r and s and we need to join r and s. What are the advantages and disadvantages in terms of total throughput, space usage, and user query response time?arrow_forwardAssignment 4: Question#1: Give any three examples of transaction where next operations are dependent upon previous and focus on importance of transaction. Question#2: Execute the given transaction left to right and fill “local variable” and “Database variable” columns. Initial Database Values: x=30, y=50,z=80arrow_forwardDefine second normal form. What types of problems might you encounter using tables that are not in second normal form?arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Principles of Information Systems (MindTap Course...Computer ScienceISBN:9781305971776Author:Ralph Stair, George ReynoldsPublisher:Cengage LearningDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781285196145Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos CoronelPublisher:Cengage LearningDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781305627482Author:Carlos Coronel, Steven MorrisPublisher:Cengage Learning
- A Guide to SQLComputer ScienceISBN:9781111527273Author:Philip J. PrattPublisher:Course Technology Ptr
Principles of Information Systems (MindTap Course...
Computer Science
ISBN:9781305971776
Author:Ralph Stair, George Reynolds
Publisher:Cengage Learning
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781285196145
Author:Steven, Steven Morris, Carlos Coronel, Carlos, Coronel, Carlos; Morris, Carlos Coronel and Steven Morris, Carlos Coronel; Steven Morris, Steven Morris; Carlos Coronel
Publisher:Cengage Learning
Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781305627482
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning
A Guide to SQL
Computer Science
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Course Technology Ptr