java programming of javat point and tutorials point, Exercises of Java Programming

detail of java and brief description of java

Typology: Exercises

2021/2022

Uploaded on 11/15/2022

mitali-gadhiya
mitali-gadhiya 🇮🇳

5

(1)

5 documents

1 / 11

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Name: Mitali Gadhiya Enrollment no: 186250307015
1
January 15, 2021
PRACTICAL : 2
STORED ROUTINES
1. Create a stored procedure in that a user passes a
number through IN parameter and make a sum of even
numbers between 1 and that particular number.
Open MySQL workbench.
Then connect database.
Select create new schema in the connected server.
pf3
pf4
pf5
pf8
pf9
pfa

Partial preview of the text

Download java programming of javat point and tutorials point and more Exercises Java Programming in PDF only on Docsity!

PRACTICAL : 2

STORED ROUTINES

1. Create a stored procedure in that a user passes a

number through IN parameter and make a sum of even

numbers between 1 and that particular number.

▪ Open MySQL workbench.

▪ Then connect database.

▪ Select create new schema in the connected server.

▪ Then select store procedure. ▪ Double click and select create new procedure. ▪ Then write code.

2. Create a Product Table and insert at least 5 records in it. product (product id, product code , product name, description, unit price). ▪ Select schema. ▪ Select table and double click then select create table. ▪ Click apply. ▪ Click finish. ▪ Then insert row in table product.

▪ Open command line Unicode.

b) Create Procedure to display the highest price among all the products.

(Use OUT parameter).

▪ Open command line Unicode.

c) create a stored routine for counting all product types.

▪ Open command line Unicode.

f) Write a command to drop a Function.