1

私はこのテーブルを持っています:

declare @Table table (value int)
insert @Table select 0
insert @Table select 1
insert @Table select 1
insert @Table select 1
insert @Table select 0
insert @Table select 1
insert @Table select 1

ここで、列を追加する Select クエリを作成する必要があります。列値に一連の値 1 があると、この列は幾何学的シーケンスを作成します。

結果は次のようになります。

ここに画像の説明を入力

4

2 に答える 2