Skip to content
Advertisement

Tag: sqlite

Result of ‘File.createNewFile()’ is ignored

I’m not sure why this is but in my IDE, for file.createNewFile(); I’m getting Result of ‘File.createNewFile()’ is ignored for it which I’ve no idea what I should be doing Answer Static Code Inspection in your IDE for createNewFile might be complaining this because createNewFile returns a boolean value. This is in place so that you have a way to

Use SQL to select one id that correspond to two indexing words in two rows

I’m trying to select the ids that have indices “a” and “b” by joining 3 tables, then using WHERE to select the rows I need. The three tables have roughly the following schema: I joined the 3 tables on id. Table 3 has a one-to-many relationship, where 1 id corresponds to multiple words: After joining the tables, they would look

Where am I going wrong in my cs50 pset 7 10.sql nested query?

I am currently trying to find the names of all people who have directed a movie that received a rating of at least 9.0 the scheme for these tables is MY SQL QUERY IS : This however fails the check50 test, and gives incorrect output. Can anyone help me with where I’m going wrong? Answer The spec says (emphasis added)

Advertisement