Name: Anonymous 2011-01-15 11:42
I'm trying to make something like an address book using SQL, with SQLite. I want to relate some entries with others. For example, let's say this is my table format:
id name lastname email
And these are some entries I have:
1 John Smith johnsmith@4chan.org
2 Bob Smith bobsmith@4chan.org
3 April Smith aprilsmith@4chan.org
I want to express that John, Bob and April are family. What field could I add to my table prototype so I can then make some query to list entire families? An option is to make a familyid field, but I'm trying to 'point' all the related entries one to another.
Thanks!
id name lastname email
And these are some entries I have:
1 John Smith johnsmith@4chan.org
2 Bob Smith bobsmith@4chan.org
3 April Smith aprilsmith@4chan.org
I want to express that John, Bob and April are family. What field could I add to my table prototype so I can then make some query to list entire families? An option is to make a familyid field, but I'm trying to 'point' all the related entries one to another.
Thanks!