Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7582581
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T18:28:12+00:00 2026-05-30T18:28:12+00:00

Hey there I am trying to learn SQL by trying to complete online questions

  • 0

Hey there I am trying to learn SQL by trying to complete online questions and I’m trying to create a view.

I have created a SELECT query that works and now trying to turn it into a view, though when following the online instructions and enter the script that should create a view I come up with the duplicate field error.

I’ve looked into it and it may be “doctor.fullname” as a duplicate field but this is from another table. Andway I have deleted and still tried it but the error still appears.
I know there is probably an easy solution and sorry to bother you with this but it will be must appreciated.

CREATE VIEW patient_registration_form
AS
SELECT 
     patient.patient_id, 
     patient.nok_no,
     patient.f_name, 
     patient.s_name, 
     patient.sex, 
     patient.dob, 
     patient.marital_status, 
     patient.date_registered, 
     nok.tel_no, 
     nok.full_name, 
     nok.address, 
     nok.relationship, 
     doctor.doctor_id,
     doctor.clinic_no, 
     doctor.full_name, 
     doctor.address
FROM doctor, patient, nok
WHERE doctor.doctor_id = patient.doctor_id
AND nok.nok_no = patient.nok_no;
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T18:28:13+00:00Added an answer on May 30, 2026 at 6:28 pm

    You have two full_name listed… one for nok.full_name and one for doctor.full_name. One needs to be renamed such as nok.full_name as nok_full_name.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hey there. I'm trying to write a small program that will read the four
hey there, i have a div that expands when the page is loaded, now
Hey there, I have an issues/bug when trying to have a v3 and v2
Hey there! I'm doing this project and right now I'm trying to: create some
Hey bloggers out there! I've created Wordpress blog that I am hosting myself, and
Hey I'm trying to learn some of the recommendation algorithms that's being used in
Hey there, i am trying to make a little app that will serve multiple
Hey, a beginner's question here.... In order to learn PHP and SQl I have
hey there everyone. so, have a c# windows form that uses crystal reports and
Hey guys I am trying to learn how to create a P2P application in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.