im making a database for a college project in mysql workbench, as one of the requisitions my teacher asked to make it so that i can select the patients from a medical consultation that did the test for Covid19, currently my code to do it is like this:
SELECT Paciente FROM consulta WHERE Diagnostico='Covid19'
however this only shows the index numbers of said patients, i wanted a code that could show up the actual names and surnames on their tables, is there any way to do it?
Edit: sorry i didnt give this info initially, but the name and surname im trying to reach are on another table called "paciente" of which this "Paciente" above is a foreign key of