1. Học hỏi
  2. /
  3. Khoa Học
  4. /
  5. Introduction to Relational Databases in SQL

Connected

Bài tập

RENAME and DROP COLUMNs in affiliations

As mentioned in the video, the still empty affiliations table has some flaws. In this exercise, you'll correct them as outlined in the video.

You'll use the following queries:

  • To rename columns:
ALTER TABLE table_name
RENAME COLUMN old_name TO new_name;
  • To delete columns:
ALTER TABLE table_name
DROP COLUMN column_name;

Hướng dẫn 1/2

undefined XP
    1
    2
  • Rename the organisation column to organization in affiliations.