can someone fix my code ?

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 registered’If not, throw message ‘Email Id registered successfully’Example : exec RegisterGuest (‘Sam Williams’,’10 Gorman road, ‘Baltimore’,’20712′,’3016458723′,’swilliams@gmail.com’,’abc%467′);If ‘swilliams@gmail.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));

Don't use plagiarized sources. Get Your Custom Essay on
can someone fix my code ?
Just from $13/Page
Order Essay
Order a unique copy of this paper
(550 words)

Approximate price: $22

Basic features
  • Free title page and bibliography
  • Unlimited revisions
  • Plagiarism-free guarantee
  • Money-back guarantee
  • 24/7 support
On-demand options
  • Writer’s samples
  • Part-by-part delivery
  • Overnight delivery
  • Copies of used sources
  • Expert Proofreading
Paper format
  • 275 words per page
  • 12 pt Arial/Times New Roman
  • Double line spacing
  • Any citation style (APA, MLA, Chicago/Turabian, Harvard)

Our guarantees

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.

Money-back guarantee

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

Zero-plagiarism guarantee

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

Free-revision policy

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

Privacy policy

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

Fair-cooperation guarantee

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

Calculate the price of your order

550 words
We'll send you the first draft for approval by September 11, 2018 at 10:52 AM
Total price:
$26
The price is based on these factors:
Academic level
Number of pages
Urgency

Order your essay today and save 15% with the discount code ESSAYHELP