oleg-agapov / data-engineering-book

Accumulated knowledge and experience in the field of Data Engineering

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SQLite Database example is not by default autoincrement

xis123 opened this issue · comments

Hi,

The SQLite database provided in your folder to help with the SQL for beginners tutorial does not have primary key / autoincrement properties on id by default. When I used insert into without referencing the ID it returned a NULL result when the intended outcome would've been 10001 (there are 10000 records)

I had to look up a tutorial to alter a table on SQLite (which I found out is way less unfriendly than other engines) to modify the column (which was helpful in itself, thank you) but hoping you could change the database file so ID is set to integer primary key autoincrement by default :D

I'm new to SQL & GitHub so I hope I've explained this alright.

Cheers,

Will

Hi,

Indeed, I may have missed auto incrementing during DB creation. Will take a look.

How can you find my chapter in terms of explanations? Was it easy to follow? Any problems you got?

Hi Oleg,

It was very easy to follow - well written and uses most of the stuff I was looking for. I've come from not knowing a single thing about SQL to knowing/understanding the concepts very quick with your guide. It has been a huge help!

The only suggestion I would add is perhaps a quick snippet on adding new records using insert into .

Looking forward to another chapter - will you expand on unions, joins, nested select statements?

Cheers,

Will

Hi Will,

Yes, I'm planning to cover all those topics in the second part of that chapter.

Thanks for the feedback!