BaşlayınÜcretsiz Başlayın

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;

Bu egzersiz

Introduction to Relational Databases in SQL

kursunun bir parçasıdır
Kursu Görüntüle

Uygulamalı interaktif egzersiz

Bu örnek kodu tamamlayarak bu egzersizi bitirin.

-- Rename the organisation column
ALTER TABLE ___
RENAME ___ organisation TO ___;
Kodu Düzenle ve Çalıştır