Artificial Intelligence Repsitory: Micro-Project: Part B
Artificial Intelligence Repsitory: Micro-Project: Part B
Artificial
INTELLIGENCE
REPSITORY
1. Rationale :-
4. Literature Review: -
Through this mini project we learnt some deep and advanced concepts
of database and data mining through this project and learnt how the
E-Commercial database actually works.
We have experienced the advantages and disadvantages of
implementing such database and how it actually works after the
deployment.
--Admin Section
DECLARE
city_n customer.city%type;
s_id customer.c_id%type;
s_name customer.c_name%type;
product customer.Products_Purchased%type;
sg_id suggestion.c_id%type;
pr_name suggestion.pname%type;
feed feedback.customer_feedback%type;
username varchar(30);
pass varchar(30);
BEGIN
username:=:Enter_The_Username;
pass:=:pass;
if (username='SARP' AND pass='key') then
s_id:=:Enter_id;
select c_id,c_name,city,Products_Purchased into s_id,city_n,s_name,product from customer
where c_id=s_id;
select pname into pr_name from suggestion where c_id=s_id;
select customer_feedback into feed from feedback where c_id=s_id;
dbms_output.put_line('-----------------------------------------------------------------------------------------------
----');
dbms_output.put_line('|ID | City | Name | Product Purchased | Product Suggestion |
Customer Feedback |');
dbms_output.put_line('-----------------------------------------------------------------------------------------------
----');
dbms_output.put_line(s_id ||' '||s_name ||' '||city_n ||' '||product||' '|| pr_name
||' '|| feed);
dbms_output.put_line('-----------------------------------------------------------------------------------------------
----');
else
dbms_output.put_line('Invalid Pass');
END IF;
END;
--Customer Section
DECLARE
cid customer.c_id%type;
cname customer.c_name%type;
product customer.Products_Purchased%type;
feed feedback.customer_feedback%type;
BEGIN
cid:=:cid;
dbms_output.put_line(cid ||' '|| cname ||' '|| product ||' '|| feed);
dbms_output.put_line('--------------------------------------------------------------------------');
END;