Question

Briefly discuss dynamic and embedded SQL. Cite an example of how either enhance database design and...

Briefly discuss dynamic and embedded SQL. Cite an example of how either enhance database design and performance

Homework Answers

Answer #1

Dynamic SQL

Dynamic SQL is a programming techniques that enables you to built SQL statements dynamically at runtime.
dynamic SQL allows you to write SQL that will then write and execute more SQL for you. This can be a great time saver because you can:

Automate repetitive tasks.
Write code that will work in any database or server.
Write code that dynamically adjusts itself to changing conditions
Most dynamic SQL is driven off the system tables, and all the examples I use here will use system tables, but if you have suitable data in user tables, you can write dynamic SQL from the contents of these tables, too.

Embedded SQL

Embedded SQL is a method of combining the computing power of a programing language and the database manipulation capabilities of SQL.

Executable SQL statements let you query, manipulate, and control Oracle data and create, define, and maintain Oracle objects such as tables, views, and indexes. This chapter focuses on the statements that query and manipulate data.

Static SQL provides performance advantages over dynamic SQL because static SQL is preprocessed, which means the statements are parsed, validated, and optimized only once.

If you are using a standards-based API, such as ODBC, to develop your application, static SQL is probably not an option for you. However, you can achieve a similar level of performance by using either statement pooling or stored procedures.
A stored procedure is a set of SQL statements (a subroutine) available to applications accessing a relational database system. Stored procedures are physically stored in the database. The SQL statements you define in a stored procedure are parsed, validated, and optimized only once, as with static SQL.

Stored procedures are database dependent because each relational database system implements stored procedures in a proprietary way. Therefore, if you want your application to be database independent, think twice before using stored procedures.

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
1. Most database applications require a host programming language to communicate with the database using SQL....
1. Most database applications require a host programming language to communicate with the database using SQL. A wide range of programming languages can be used with SQL,from traditional languages such as COBOL, FORTRAN, and Assembler to more modern languages such as C/C++, Java, and Visual Basic. Your choice of host programming language can impact the way you will have to code SQL. True or False? 2. It is an entity name guideline: a. Do not pluralize the name; use singular...
Task: The understanding of database analysis and design are necessary to develop a database management system....
Task: The understanding of database analysis and design are necessary to develop a database management system. Choose a real-world example to illustrate the effectiveness of database systems in the business world? In order to do that, you are asked to design and implement a database system for any business of your choice. By developing this database system, you should be able to achieve better business processes and operations with goal to enhance how the average person views and interacts with...
1- How can database systems improve data quality and data integrity? 2- Discuss database constraints: Primary...
1- How can database systems improve data quality and data integrity? 2- Discuss database constraints: Primary key, check, and referential integrity constraints? Give an example for each.
Must choose one from Category (4) MENTAL ILLNESS: Choose either A or B (A)Briefly discuss depression...
Must choose one from Category (4) MENTAL ILLNESS: Choose either A or B (A)Briefly discuss depression or generalized anxiety disorder (GAD). Compare and contrast TWO psychological perspectives discussed throughout the course (see list in Category 1) with regard to cause and treatment of either depression or GAD. (Hint: Be as specific as you can in your discussion as to how each perspective is similar and different in how they regard the particular. Do not just describe the perspectives).
Give an example, USING YOUR OWN WORDS (NOT TEXT COPIED FROM THE INTERNET), of how either...
Give an example, USING YOUR OWN WORDS (NOT TEXT COPIED FROM THE INTERNET), of how either the Poisson or the Exponential distribution could be used to model something in real life (only one example is necessary). You can give an example in an area that interests you (a list of ideas is below). Give a very rough description of the sample space. If you use an idea from another source, please provide a citation in the sentence and a reference...
1. Read the article and discuss how operations can provide strategic advantage to this organisation. 2....
1. Read the article and discuss how operations can provide strategic advantage to this organisation. 2. Discuss the performance of the company in terms of the five performance objectives and the relationship among these performance objectives. 3. Discuss a suitable operations strategy approach for these kinds of organisations. Operations Strategy in Action Almost every company seems to be restructuring itself to face the downturn, be it through financial engineering, or by retrenching to core activities. So they sell off foreign...
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation....
Using the model proposed by Lafley and Charan, analyze how Apigee was able to drive innovation. case:    W17400 APIGEE: PEOPLE MANAGEMENT PRACTICES AND THE CHALLENGE OF GROWTH Ranjeet Nambudiri, S. Ramnarayan, and Catherine Xavier wrote this case solely to provide material for class discussion. The authors do not intend to illustrate either effective or ineffective handling of a managerial situation. The authors may have disguised certain names and other identifying information to protect confidentiality. This publication may not be...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary...
Please answer the following Case analysis questions 1-How is New Balance performing compared to its primary rivals? How will the acquisition of Reebok by Adidas impact the structure of the athletic shoe industry? Is this likely to be favorable or unfavorable for New Balance? 2- What issues does New Balance management need to address? 3-What recommendations would you make to New Balance Management? What does New Balance need to do to continue to be successful? Should management continue to invest...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how...
Delta airlines case study Global strategy. Describe the current global strategy and provide evidence about how the firms resources incompetencies support the given pressures regarding costs and local responsiveness. Describe entry modes have they usually used, and whether they are appropriate for the given strategy. Any key issues in their global strategy? casestudy: Atlanta, June 17, 2014. Sea of Delta employees and their families swarmed between food trucks, amusement park booths, and entertainment venues that were scattered throughout what would...
In February 2012, the Pepsi Next product was launched into the US market. This case study...
In February 2012, the Pepsi Next product was launched into the US market. This case study provides students with an interesting insight into PepsiCo’s new product process and some of the challenging decisions that they faced along the way. Pepsi Next Case Study Introduction Pepsi Next was launched by PepsiCo into the US market in February 2012, and has since been rolled out to various international markets (for instance, it was launched in Australia in September 2012). The new product...