Table 2 includes a field EXPLOSIVES which is either 1 or blank.
SELECT Table2.[month], Table2.[date], Table2.[year], dead, explosives
FROM Table2
where dead > 20 and EXPLOSIVES=1;
complains Enter parameter explosives. What does it want?
SELECT Table2.[month], Table2.[date], Table2.[year], dead, explosives
FROM Table2
where dead > 20;
works fine.
Is it case sensitive for the column names?
ReplyDeleteAlso is the column INT or CHAR?
Is that MS SQL, Oracle, or MySQL?
ReplyDeleteIs it case-sensitive? I.e. "explosives"" =/= "EXPLOSIVES".
ReplyDeleteinteger; 1 is true; null is false
DeleteWhat's the data type of the EXPLOSIVES attribute?
ReplyDeleteinteger: 1 or null; MS SQL
ReplyDeleteTry 'Explosives IS NOT NULL'. Comparing to a null value causes problems
ReplyDelete