I will write my code down and all infomation you need .1. Register a user with the system. The customer needs to provide name, address, phone#, email, password, and user type (host or guest or both). The procedure should check whether the email already exists in user table. If so, please print a message saying the customer exists. Otherwise create an account with input values and return a new user ID.Summary: This feature will allow customers to add their details in the system. These details will be used to create account. Every customer will have an unique id which can be used to login.Input : Name, Address, City, Zipcode, Phone Number, Email Id, PasswordOutput : If Email is already present in the system throw output message The email is already registeredIf not, throw message Email Id registered successfullyExample : exec RegisterGuest (‘Sam Williams’,’10 Gorman road, ‘Baltimore’,’20712′,’3016458723′,’firstname.lastname@example.org’,’abc%467′);If email@example.com is present in the Guest table, then throw message The email is already registered otherwise display Guest id 85768_____________________Create sequence userID_seq start with 100;Create or replace function User_registration(name users.u_fname%type, address users.u_street%type, phone number, email users.u_email%type, password users.u_pass%type, user_type users.u_g_type%type) Return users.u_id%typeAscheck_email users.u_email%typex users.u_id%type;BeginSelect u_email into check_email from Users where u_email = email;If check_email is NOT NULL thenDBMS_output.put_line(‘This email is already registered’)Elseinsert into users(UserID_seq.nextval, name, address, phone, email,password , user_type );Select userID_seq.currval into x from users;dbms_output.put_line(x);End if;End;———————–Create table user(u_id int,u_fname varchar(20),u_lname varchar(20), u_g_type int, u_h_type int, u_pass varchar(8), u_email varchar(30), u_address varchar(30), u_state varchar(2), u_zip int, u_city varchar(15), primary key (u_id));
Delivering a high-quality product at a reasonable price is not enough anymore.
That’s why we have developed 5 beneficial guarantees that will make your experience with our service enjoyable, easy, and safe.
You have to be 100% sure of the quality of your product to give a money-back guarantee. This describes us perfectly. Make sure that this guarantee is totally transparent.Read more
Each paper is composed from scratch, according to your instructions. It is then checked by our plagiarism-detection software. There is no gap where plagiarism could squeeze in.Read more
Thanks to our free revisions, there is no way for you to be unsatisfied. We will work on your paper until you are completely happy with the result.Read more
Your email is safe, as we store it according to international data protection rules. Your bank details are secure, as we use only reliable payment systems.Read more
By sending us your money, you buy the service we provide. Check out our terms and conditions if you prefer business talks to be laid out in official language.Read more