Strange sequences - how to construct? - Mailing list pgsql-novice

From SQL Padawan
Subject Strange sequences - how to construct?
Date
Msg-id tiUZZ67DYCE5aY4wDAfIXjzlghyf4ndcG2m7wWRd0Rq3rtyhd38iJ9fN2iG088MxWOQtEBlEbsLXzqq-RUYer6rXXfS67pjdwthg8YRIgQU=@protonmail.com
Whole thread Raw
Responses Re: Strange sequences - how to construct?  (TIM CHILD <tim.child@comcast.net>)
Re: Strange sequences - how to construct?  (TIM CHILD <tim.child@comcast.net>)
Re: Strange sequences - how to construct?  (Alexey M Boltenkov <padrebolt@yandex.ru>)
Re: Strange sequences - how to construct?  (Alexey M Boltenkov <padrebolt@yandex.ru>)
List pgsql-novice

Good afternoon to everybody.

I wish to construct some weird sequences.

1
1
2
2
&c.

and with  3 ones, 4 ones... &c.

Now, I know how to do a simple
1
2
3
4

using both GENERATE_SERIES and using a RECURSIVE CTE.

What I would like is to be able to construct my specified sequences using *_both_* GENERATE_SERIES *_and_* RECURSIVE CTEs.

Regards,

SQL Padawan!




Sent with ProtonMail Secure Email.

pgsql-novice by date:

Previous
From: Nuno Sousa
Date:
Subject: Re: Numeric Scale Differences
Next
From: TIM CHILD
Date:
Subject: Re: Strange sequences - how to construct?