Explain the differences between sql and pl-sql

Assignment Help Database Management System
Reference no: EM131054352

1. In a 200 words or less explain the differences between SQL and PL/SQL? Why do we need SQL in a procedural language?

2. Respond to the following in 100 words-APA Format and Cite work

SA

SQL is a structured query language that is used to retrieve and manipulate data as well as create and modify objects in a database. There are some capabilities for logic in SQL statements such as case and decode statements, but it is very limited. PL/SQL is a procedural language that has many more logic options available such as if-else statements and for loops. However, PL/SQL isn't very useful without SQL to retrieve and manipulate the data. For instance, you can use SQL to retrieve a value from a table and based on the value; use an if-else statement to choose to update a value in another table or not. PL/SQL also has a few other features that make it more efficient than just SQL alone. One being that PL/SQL transmits multiple SQL statements at one time in a block whereas SQL sends each statement separately thus saving bandwidth. Another is that PL/SQL that is stored in the database as a program unit is stored in executable form and is cached in memory making it more efficient to run (Casteel, 2013, pp. 3-4).

Reference:

Casteel, J. (2013). Oracle 11g: PL/SQL programming. Boston, MA: Course Technology, Cengage Learning.

3. Respond to the following in 100 words-APA Format and Cite work

Structured Query Language (SQL) is used primarily to conduct various actions within a database. These actions are typically categorized as data manipulation (DML), data definition (DDL), querying, and transaction control. DML includes actions like insertion, update, deletion. DDL includes, alteration, creation, and dropping. Queries are performed via select statements, and transaction control can be conducted via commit and rollback statements (Casteel, 2013, p. 15).

PL/SQL is Oracle's procedural language extension of SQL. Procedural languages are used to design logic statements which control decision making and the flow of information which makes a system conduct tasks. By extending procedural language to SQL, programmers gain the ability to perform traditional programming logic alongside SQL statements. The textbook example points out the use of PL/SQL to validate a customer input by checking database details after a customer has conducted a certain action. Using PL/SQL can improve performance by packaging multiple statements, increase productivity through enhanced integration, increased portability, and better security (Casteel, 2013, p. 4).

Reference

Casteel, J. (2013). Oracle 11g: PL/SQL Programming (2nd ed.). Boston, MA: Course Technology.

Reference no: EM131054352

Questions Cloud

What resources important to include in activity definition : What resources are important to include in activity definition and sequencing? Describe the impact of having either proper or improper representation of resources in the estimating process of a project you worked on.
What estimation tools have you seen utilized on projects : What estimation tools have you seen utilized on projects that you have managed or been a project team member? Have the tools been effectively used? How do tools support the project manager in the estimation process?
Concentrations of the components of at equilibrium : For the following reaction the concentrations of the components of at equilibrium are given calculate K 2A+B C+3D
Re-creation of the beginning of this famous : The 1913 premier of the ballet, The Rite of Spring, caused a riot because of its "pagan primitivism, harsh dissonance, percussiveness, and pounding rhythms." Read about the premiere of The Rite of Spring and its performance in Milestones of Music..
Explain the differences between sql and pl-sql : In a 200 words or less explain the differences between SQL and PL/SQL? Why do we need SQL in a procedural language?
Question regarding the samples of metal : Calculate the amount of water required to reduce the temperature of the following samples of metal. Assume that you can use as much water (at 4 ?) as required.
Second equivalence point : At what added volume of base does the first equivalence point occur? At what added volume of base does the second equivalence point occur?
What is the estimated amount of time for implementation : What is the estimated amount of time for implementation? Create a visual representation that captures your timeline (e.g., Gantt chart) based on the systems development life cycle.
Mean square speed of the molecules : What is the temperature of co2 gas if the average speed actually the root mean square speed of the molecules is 850 m/s? Note the molar mass of O2 is 44 g/mo2

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

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