Hello-
I have these two tables:
CREATE TABLE ampref (
ampref_id serial NOT NULL,
amp_id integer NOT NULL,
code character varying(255) NOT NULL,
description text
);
CREATE TABLE amp (
amp_id serial NOT NULL,
name character varying(255) NOT NULL,
description character varying(255),
url character varying(255)
);
...and I'm trying to figure out how to run this query: For each ampref.code, if its amp.name = 'LUNA' find its url. I would appreciate any help on this thanks.