Consider the subsequent relations along with keys underlined
Street (name, location, city)
House (number, street_name)
Lives (name, house_number)
Define the above relations as tables in SQL making real world assumptions about the kind of the fields. Define the primary keys and the foreign keys.
Create table street (name character(30) primary key, location character(30), city character(30));
Create table house( number integer primary key, street_name character(30) references street(name));
Create table lives ( name character(30) primary key, house number integer references house(number));