Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

a ) SQL statements can be grouped into 3 areas - DDL , DML and DOL. Outline the role of DDL statements, DML statements and

a) SQL statements can be grouped into 3 areas - DDL, DML and DOL. Outline the role of
DDL statements, DML statements and DCL statements. Give examples of all statements.
b) Outline the role of a trigger in maintaining a unique identifier on a table. What are the
steps and requirements in implementing such a solution?
c) Show the code to create a table called PRODUCT with two columns PROD_D and
P R O DDESCRIPTION. Show the code tocreate sequence to be used to populate the
PROD_ID primary key on the PRODUCT Table. Show the code to create a trigger to
populate the PROD_ID primary key on the PRODUCT table using asequence.
d) What is PL/SQL? How can it beused in a database and in application development?
e) Write an anonymous PL/SQL block to display the following -
Hello There
Today is today's date
Tomorrow istomorrow's date
Goodbye

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Administrator Limited Edition

Authors: Martif Way

1st Edition

B0CGG89N8Z

More Books

Students also viewed these Databases questions