0% found this document useful (0 votes)
74 views3 pages

Oracle Procedure 1

The document describes 13 programs involving Oracle SQL and PL/SQL. The programs cover topics such as creating and modifying database tables, inserting and querying data, using constraints, joins, functions, variables, procedures and conditionals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
74 views3 pages

Oracle Procedure 1

The document describes 13 programs involving Oracle SQL and PL/SQL. The programs cover topics such as creating and modifying database tables, inserting and querying data, using constraints, joins, functions, variables, procedures and conditionals.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

PGM 1

1. Create table using DDL query in Oracle


2. Describe the structure of a table using DESC query
3. Modify the structure of the table using ADD/ MODIFY column specification
4. Delete the table structure using DROP query

PGM 2

1. Create table using DDL query in Oracle with primary key constraints
2. Create table using DDL query in Oracle with unique key constraints
3. Create table using DDL query in Oracle with check and referential constraints
4. Insert query is executed for checking these constraints working or not

PGM 3

1. Create table using DDL query in Oracle


2. Insert the data for the specified table using INSERT via DML query
3. Update the data using UPDATE query for the specified record using where clause
4. Delete the record from the specified table using DELETE query
5. Retrieve the selected data from the specified table using SELECT query

PGM 4

1. Create table using DDL query in Oracle with primary key constraints
2. Describe the structure of a table using DESC query
3. Enable the constraints using ALTER TABLE query
4. While DML is executed, these constraints may or may not be enabled.

PGM 5

1. Create table using DDL query in Oracle


2. Insert the data into the specified table
3. Retrieve the data from the specified table using operator such as AND, OR , NOT
4. Retrieve the data from the specified table using operator such as between .. and, in, not in

PGM 6

1. Create table using DDL query in Oracle


2. Insert the data into the specified table
3. Retrieve the data from the specified table using character function such as upper, lower
4. Retrieve the data from the specified table using character function such as substr,trim
5. Retrieve the data from the specified table using character function such as lpad,rpad

PGM 7

1. Create table using DDL query in Oracle


2. Insert the data into the specified table
3. Retrieve the data from the specified table using number function such as abs,sign
4. Retrieve the data from the specified table using number function such as round, trunk
5. Retrieve the data from the specified table using date function such as add_months, to_char

PGM 8

1. Create table using DDL query in Oracle


2. Insert the data into the specified table
3. Retrieve the data from the specified table using Aggregate function such as sum,count
4. Retrieve the data from the specified table using Aggregate function such as sum,count for
the specified column using GROUP BY function with WHERE or HAVING clause

PGM 9

1. Create two table using DDL query in Oracle


2. Insert the data into the specified table
3. Retrieve the data from the specified table using natural join
4. Retrieve the data from the specified table using Equi and Non-equi join
5. Retrieve the data from the specified table using Inner join
6. Retrieve the data from the specified table using Outer join (Right, Left and Full)

PGM 10

1. Create a PL/SQL program using ed command in SQL prompt


2. Set serveroutput on
3. Odd numbers only are displayed using / command in SQL prompt
4. The PL/SQL procedure is successfully completed

PGM 11

1. Create table using DDL query in Oracle


2. Create a PL/SQL program using ed command in SQL prompt
3. Set serveroutput on
4. Insert the data into the specified table using IF statement in begin section of PL/SQL
5. The PL/SQL procedure is successfully completed

PGM 12

1.Create a PL/SQL program using ed command in SQL prompt


2.Declare and initialize variable a with the value 23.
3.Define a procedure named squareNum that takes an IN OUT parameter x and calculates its
square. Call the squareNum
4.procedure passing the variable a as an argument.
5.Output the result of the square calculation using DBMS_OUTPUT.PUT_LINE.
6.End the PL/SQL block.

PGM 13

1.Begin the PL/SQL block


2.Declare variables a, b, and c:
Declare three variables a, b, and c of type NUMBER to hold the values.
3.Define the findMin procedure:
Define a procedure named findMin that takes two input parameters (x and y) and one
output parameter (z). Inside the procedure, determine the minimum value between x and y
and assign it to z.
4.Initialize variables a and b:
Initialize the variables a and b with the values 23 and 45, respectively.
5.Call the findMin procedure:
Call the findMin procedure passing a and b as arguments and assign the result to variable c.
6.Output the result using DBMS_OUTPUT.PUT_LINE:
Output the minimum value of a and b using DBMS_OUTPUT.PUT_LINE.
7.End the block:End the PL/SQL block.

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy