Which of the following do you need to consider when you make a table in SQL?
Answer: D
Correct answer: All of the above.
All three are part of defining a table, and each answers a different question.
Data types fix what may be stored in a column and how much space it takes. Primary keys identify each row uniquely and are what foreign keys elsewhere refer to. Default values decide what a column holds when an INSERT does not mention it, which is how a column can be NOT NULL without every statement supplying it. Constraints and indexes belong to the same design decision.
Please log in or register to report this question.