0704 sql

looggi·2023년 7월 3일
0

TILs

목록 보기
111/114
post-thumbnail

175. Combine Two Tables

-- https://leetcode.com/problems/combine-two-tables/description/

select p.firstname, p.lastname, a.city, a.state
from person p
left outer join address a
on p.personid=a.personid

If the address of a personId is not present in the Address table, report null instead.

profile
looooggi

0개의 댓글