dimanche 3 mai 2015

Storing multiple data in SQLite Database system (using two tables)

So, say there's two tables TABLE 1 and TABLE 2. TABLE 1 has two columns - Activity and Measurement. The Activity column has 3 items stored in it - Football, Soccer and Basketball. (For now let's not think about what's stored the Measurement column).

Now, what I want to do is, on the other table, TABLE 2, I want to have the three items in the Activity column, to be the columns of TABLE 2. Here's the layout of what I want it to feel like -

http://ift.tt/1I4laU1

Sorry, for the dropbox link, apparently I cannot post images without having 10 or more reputations.

I am fairly new to Android Studio so I am having difficulties implementing the idea, and please let me know if there's any ways/ideas to implement it! Thanks!

Aucun commentaire:

Enregistrer un commentaire