English

code snippet. CREATE TABLE student( name CHAR(30) student_id INT, gender CHAR(1), PRIMARY KEY (student_id) ); What does ‘name’ represent in the above code snippet?

Advertisements
Advertisements

Question

Choose the appropriate answer with respect to the following code snippet.

code snippet.
CREATE TABLE student(
name CHAR(30)
student_id INT,
gender CHAR(1),
PRIMARY KEY (student_id)
);

What does ‘name’ represent in the above code snippet?

Options

  • a table

  • a row

  • a column

  • a database

MCQ
Advertisements

Solution

a column

Explanation:

name is a column because it stores the names of students.

shaalaa.com
  Is there an error in this question or solution?
Chapter 8: Introduction to Structured Query Language (SQL) - Exercise [Page 170]

APPEARS IN

NCERT Informatics Practices [English] Class 11
Chapter 8 Introduction to Structured Query Language (SQL)
Exercise | Q 2. b) | Page 170
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×