Learn SQLite in 1 Day: Definitive Guide to Learn SQLite for Beginners by Krishna Rungta
Author:Krishna Rungta [Rungta, Krishna]
Language: eng
Format: azw3
Published: 2017-03-19T04:00:00+00:00
The query returns only the value 4. Which is the only value that exists in the departments table, and doesn't exist in the students table.
NULL handling
The "NULL" value is a special value in SQLite. It is used to represent a value that is unknown or missing value. Note that null value is totally different than "0" or blank "" value. Because 0 and the blank value is a known value, however, the null value is unknown.
NULL values require a special handling in SQLite, we will see now how to handle the NULL values.
Search for NULL values
You can't use the normal equality operator (=) to search the null values. For example, the following query searches for the students that have a null DepartmentId value:
SELECT * FROM Students WHERE DepartmentId = NULL;
This query won't give any result:
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
Implementing Enterprise Observability for Success by Manisha Agrawal and Karun Krishnannair(7381)
Supercharging Productivity with Trello by Brittany Joiner(6639)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(6423)
Mastering Tableau 2023 - Fourth Edition by Marleen Meier(6407)
Inkscape by Example by István Szép(6253)
Visualize Complex Processes with Microsoft Visio by David J Parker & Šenaj Lelić(5950)
Build Stunning Real-time VFX with Unreal Engine 5 by Hrishikesh Andurlekar(4947)
Design Made Easy with Inkscape by Christopher Rogers(4624)
Customizing Microsoft Teams by Gopi Kondameda(4160)
Linux Device Driver Development Cookbook by Rodolfo Giometti(3936)
Extending Microsoft Power Apps with Power Apps Component Framework by Danish Naglekar(3749)
Business Intelligence Career Master Plan by Eduardo Chavez & Danny Moncada(3728)
Salesforce Platform Enterprise Architecture - Fourth Edition by Andrew Fawcett(3628)
Pandas Cookbook by Theodore Petrou(3601)
The Tableau Workshop by Sumit Gupta Sylvester Pinto Shweta Sankhe-Savale JC Gillet and Kenneth Michael Cherven(3404)
TCP IP by Todd Lammle(2988)
Drawing Shortcuts: Developing Quick Drawing Skills Using Today's Technology by Leggitt Jim(2923)
Applied Predictive Modeling by Max Kuhn & Kjell Johnson(2881)
Exploring Microsoft Excel's Hidden Treasures by David Ringstrom(2863)
