私は '会議'テーブルを作成し、EndDateをStartDate + ConferenceDaysとして設定したいと考えています。それを行う方法はありますか? SQL ServerのSQL Server - 計算された日付列
create table Conferences(
ConferenceID int not null primary key,
ConferenceName varchar(50) not null,
ConferenceDays int not null,
StartDate date not null,
EndDate date not null,
)
3つの合計である新しい列が必要ですか? –
どのDBMSを使用していますか? Postgres?オラクル? DB2?ファイアバード? –
@ YashveerSingh StartDateが2016-01-01でConferenceDaysが4の場合、EndDateを2016-01-05にします。 –