Skip to content
Advertisement

Select Rows That Does Not Contain any Negative Or Missing Value

Assume a database table has a few hundred columns. In SQL statements, how would you select rows/records that do not contain any negative or missing value? Can you do it using the sqldf package for R users?

Here is an example of data frame with 6 rows and 2 columns:

The SQL statement(s) should only return a table containing the rows 1, 3, 5, and 6.

Advertisement

Answer

User contributions licensed under: CC BY-SA
10 People found this is helpful
Advertisement