#SQL Naming conventions

1 messages · Page 1 of 1 (latest)

soft kernel
#

Hey i need some outside input here. Cuz i dont like my thoughts i get here 😄

Im creating a database for saving questions, answers and tests taken.

There is a questions table, a answers table and a taken_tests table

the question table has id, type_id and "content"
the answers table has id, question_id and "content"

im curious how to name this "content" column properly...
i was thinking about "text" or simple "question" or "answer",
but... anyhow using questions.question feels wrong, same as questions.content

Any other ideas on this? How you do that? and why?

tulip panther
#

questions.content seems fine to me

#

Idk about text

#

It pretty cool, and it's easier to show an er diagram instead of trying to explain your tables and attributes haha

soft kernel
#

yeah i know, just wanted not use much time on asking this question sorry 😄 (i thought woud be enough to udnerstand my question)
Ima chekc that out in a few