Professional Documents
Culture Documents
Dbms 1
Dbms 1
SYSTEM
An augmented experiment report submitted in partial fulfilment
of the requirement for the completion of the course
DATABASE MANAGEMENT
SYSTEM
Submitted by
P.Pavan 22341A05D1
P.Vamsi 22341A05D2
P.Sravanthi 22341A05D3
P.Mano Abhinav 22341A05D4
P.Mounika 22341A05D5
CERTIFICATE
This is to certify that augumented experiment report entitled “INVENTORY
MANAGEMENT SYSTEM” submitted by P.Pavan(22341A05D1),
P.Vamsi(22341A05D2),P.Sravanthi(22341A05D3),P.ManoAbhinav(22341A05D4),P.Mou
nika(22341A05D5) have been carried out In partial fulfilment for the award of B.Tech
degree in the discipline of CSE to JNTU-GV is a record of bonafide work carried out under
guidance and supervision. The report embodied in this paper has not been submitted to any
other university or institution for the award of any degree or diploma.
ACKNOWLEDGEMENT
ABSTRACT
INTRODUCTION
IMPLEMENTATION
OUTPUT
CONCLUSION
ACKNOWLEDGEMENT
We the take privilege to thank our principal Dr. C.L .V.R.S. V .Prasad who has
made the atmosphere easy to work ,I shall always be indebted to them.
We would like to thank all the faculty members of the computer science and engineering
for their direct or indirect support and all the lab technicians for their valuable suggestions and
providing excellent opportunities in completion of this report.
Finally, We would like to thank all our friends and family members for their continuous
help and encouragement.
P.Pavan-22341A05D1
P.Vamsi-22341A05D2
P.Sravanthi- 23341A05D3
P.Mano Abhinav-22341A05D4
P.Mounika-22341A05D5
ABSTRACT
With the help of this system we can fix a minimum quantity of any
inventory below which we need to place an order for that inventory. This will help
us in good sales results and never the out of stock stage for any inventory.
Functions:
DECLARE
due1 number(7);
cart_id1 number(7);
function get_cart(c_id number)return number is
BEGIN
return (c_id);
end;
BEGIN
cart_id1:=get_cart('&c_id');
select due into due1 from transaction where
cart_id=cart_id1;
dbms_output.put_line(due1);
end;
/
Cursors:
DECLARE
p_id product.pid%type;
p_name product.pname%type;
p_stock product.p_stock%type;
cursor p_product is
select pid,pname ,p_stock from product;
BEGIN
open p_product;
loop
fetch p_product into p_id,p_name,p_stock;
exit when p_product%notfound;
dbms_output.put_line(p_id||' '||p_name||' '||p_stock);
end
loop;
close p_product;
end;
/
Procedure:
DECLARE
a number;
b number;
PROCEDURE check_stock(x IN number) IS
BEGIN
IF x < 2 THEN
dbms_output.put_line('Stock is Less');
ELSE
dbms_output.put_line('Enough Stock');
END IF;
END;
BEGIN
b:='&b';
select p_stock into a from product where pid=b;
check_stock(a);
END;
/
CONCLUSION: