The document describes 13 procedures for creating Oracle programs to perform various SQL operations:
1) Creating, modifying, and dropping tables
2) Creating tables with constraints
3) Inserting, modifying, and deleting rows
4) Controlling constraints
5) Retrieving rows with operators
6) Retrieving rows with string functions
7) Retrieving rows with numeric and date functions
8) Retrieving rows with grouping and aggregates
9) Joining tables
10) Simple PL/SQL programs
11) PL/SQL programs with control structures
12) PL/SQL programs with procedures
13) PL/SQL programs with functions
The document describes 13 procedures for creating Oracle programs to perform various SQL operations:
1) Creating, modifying, and dropping tables
2) Creating tables with constraints
3) Inserting, modifying, and deleting rows
4) Controlling constraints
5) Retrieving rows with operators
6) Retrieving rows with string functions
7) Retrieving rows with numeric and date functions
8) Retrieving rows with grouping and aggregates
9) Joining tables
10) Simple PL/SQL programs
11) PL/SQL programs with control structures
12) PL/SQL programs with procedures
13) PL/SQL programs with functions
The document describes 13 procedures for creating Oracle programs to perform various SQL operations:
1) Creating, modifying, and dropping tables
2) Creating tables with constraints
3) Inserting, modifying, and deleting rows
4) Controlling constraints
5) Retrieving rows with operators
6) Retrieving rows with string functions
7) Retrieving rows with numeric and date functions
8) Retrieving rows with grouping and aggregates
9) Joining tables
10) Simple PL/SQL programs
11) PL/SQL programs with control structures
12) PL/SQL programs with procedures
13) PL/SQL programs with functions
The document describes 13 procedures for creating Oracle programs to perform various SQL operations:
1) Creating, modifying, and dropping tables
2) Creating tables with constraints
3) Inserting, modifying, and deleting rows
4) Controlling constraints
5) Retrieving rows with operators
6) Retrieving rows with string functions
7) Retrieving rows with numeric and date functions
8) Retrieving rows with grouping and aggregates
9) Joining tables
10) Simple PL/SQL programs
11) PL/SQL programs with control structures
12) PL/SQL programs with procedures
13) PL/SQL programs with functions
Aim To create Oracle program for Creating, Modifying and Dropping tables Procedure 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
2.Creating tables with Referential and Check Constraints
Aim To create Oracle program for Creating tables with Referential and Check Constraints Procedure 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
3. Inserting, Modifying and Deleting rows
Aim To create Oracle program for Inserting, Modifying and Deleting rows Procedure 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
4. Dropping, Disabling, Enabling Constraints
Aim To create Oracle program for Dropping, Disabling, Enabling Constraints Procedure 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.
5. Retrieving rows with operators in where clause
Aim To create Oracle program to Retrieving rows with operators in where clause Procedure 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 6.Retrieving rows with character / string functions Aim To create Oracle program to Retrieving rows with character / string functions Procedure 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
7. Retrieving rows with number and date function
Aim To create Oracle program to Retrieving rows with number and date function Procedure 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
8. Retrieving row with GROUP BY clause and HAVING clause
Aim To create Oracle program to Retrieving row with GROUP BY clause and HAVING clause Procedure 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
9. Joining tables (Inner and Outer)
Aim To create Oracle program to Joining tables (Inner and Outer) Procedure 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) 10. Simple PL / SQL program Aim To create Oracle program using Simple PL / SQL program Procedure 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 11. PL / SQL Program with control structures Aim To create Oracle program using PL / SQL Program with control structures Procedure 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
12. PL/SQL program with Procedure
Aim To create Oracle program using PL/SQL program with Procedure Procedure 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.
13. PL/SQL program with functions using in and out parameters
Aim To create Oracle program using PL/SQL program with functions using in and out parameters Procedure 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.