Skip to content

Tag: sqlite

Compare Two Relations in SQL

I just started studying SQL and this is a demo given by the teacher in an online course and it works fine. The statement is looking for “students such that number of other students with same GPA is equal to number of other students with same sizeHS”: It seems that in this where clause, we’re…

SQLite C# System.Data.SQLite.SQLiteException

I want to insert data into a database via sqlite but each time I got the error below: Connection Established Successfully… code = Error (1), message = System.Data.SQLite.SQLiteException (0x800007BF): SQL logic error near “hpi_caseid”: syntax error at System.Data.SQLite.SQLite3.Prepare(SQLite…

Retrieve Total Chapters in each books

I have got the database which has id,chapter_name,chapter_num,verse_num,verse_text,testament as columns. I would like to retrieve chapterName and the total number of chapters in each book. I’m using the following query to do so, Unfortunately, it lists a very big count of chapter names and duplicate cha…

‘KeyError’ while filling an SQL table with CSV data

I’m currently working on a project that’s requires wrangling OSM data (Udacity Course), and adding it to an SQLite dataset ready for queries. I’m currently trying to add a ‘.csv’ file to an exisiting SQL table with the following function: However each time I try to execute it get…