Skip to content

SQLite now supports FULL JOINS #1150

Closed
@hadley

Description

@hadley
library(DBI)

con <- dbConnect(RSQLite::SQLite())
dbWriteTable(con, "df1", data.frame(x = c(1, 2)))
dbWriteTable(con, "df2", data.frame(x = c(2, 3)))

dbGetQuery(con, "SELECT COALESCE(df1.x, df2.x) FROM df1 FULL JOIN df2 ON df1.x = df2.x")
#>   COALESCE(df1.x, df2.x)
#> 1                      1
#> 2                      2
#> 3                      3

Created on 2023-02-11 with reprex v2.0.2

And it's no longer mentioned in https://www.sqlite.org/omitted.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions