0

I have two tables and one table that associates these two. Table A has two columns (pk,name) Table B also has two columns (id,name) Table AB has three columns (pk(FK of A), id(FK of B), date)

How can I write a select to retrieve A.name, B.name and AB.date for a certain A.pk?

1 Answers1

0
select A.name, B.name, AB.date
from A
join AB on A.pk=AB.pk
join B on AB.id=B.id
where A.pk=value
ors
  • 101
  • 2