Using SQL Server 2016, I have one row in a table, and I am trying to craft a query to select the primary key from that row, based on two columns.
I know the information in the row, but when I include the info in the where clause it still doesn't find anything. Below is the screenshot showing the row and the query. The query returns nothing.
I also tried using the & operator, and I tried putting the 22 in '' and (). The finished column is datatype binary(50)
, and the DoorNum
column is datatype int
.
select *
from Dropoff
where finished = NULL
and DoorNum = 22;