Skip to content

Instantly share code, notes, and snippets.

@Bilbottom
Created July 27, 2024 07:44
Show Gist options
  • Save Bilbottom/db6ca3842d38096802f54cfd02591bc7 to your computer and use it in GitHub Desktop.
Save Bilbottom/db6ca3842d38096802f54cfd02591bc7 to your computer and use it in GitHub Desktop.
Three-valued logic (SQL)
/*
Three-valued logic
DuckDB version: 1.0.0
Bill Wallis, 2024-07-27
https://modern-sql.com/concept/three-valued-logic
*/
select version();
select
true and null as "true and null",
false and null as "false and null",
true or null as "true or null",
false or null as "false or null",
;
@Bilbottom
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment