I have a 2 tables :
**Table Actor**
id_actor
name
surname
**Table Show**
id_show
name
date
time
fk_id_actor
Now I want to show all actors which playing in show "Rambo" (name of the Show).
part of my insert sql file :
INSERT INTO ACTOR VALUES (1, 'Bill', 'Clinton');
INSERT INTO ACTOR VALUES (2, 'Monika', 'Lewinsky');
.
.
.
INSERT INTO SHOW VALUES (1, 'Rambo', to_date('20.06.2012', 'DD.MM.YYYY'), '20:00 - 21:30', 1);
INSERT INTO SHOW VALUES (2, 'Rambo', to_date('20.06.2012', 'DD.MM.YYYY'), '20:00 - 21:30', 2);
.
.
.
And now my sql file which should display all actors in same movie but it display only 1 row (Bill Clinton Rambo) :
select actor.name, actor.surname, show.name
from actor
inner join show
on actor.id_actor = show.id_show
where show.name = 'Rambo';
output :
NAME SURNAME NAME
---------------------------------------
Bill Clinton Rambo
So, where is Monika Lewinsky?