Re: create query with date values

From: Ron <ronljohnsonjr(at)gmail(dot)com>
To: pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: create query with date values
Date: 2021-12-31 15:34:36
Message-ID: d03a143e-db82-f6b8-6ed6-ee1719ee453f@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On 12/31/21 7:12 AM, ourdiaspora wrote:
> Recipients,
>
> How to create a query such that when a date value is entered, the date may be associated with the result of another query.
>
> The scenario is that a date value is entered (the plan is these dates should be a separate table), then a query result is joined with the date value.
>
> Please advise the correct terminology for appropriate review of the manual.

Maybe I misunderstand you, but it sounds like you are referring to an /inner
join/ (which is the standard way of joining):

SELECT .....
FROM SEPARATE_TABLE
   , MAIN_TABLE
WHERE SEPARATE_TABLE.SOME_DATE = MAIN_TABLE.OTHER_DATE
;

If this isn't what you mean, please clarify.

--
Angular momentum makes the world go 'round.

In response to

Browse pgsql-general by date

  From Date Subject
Next Message David G. Johnston 2021-12-31 16:24:09 Re: create query with date values
Previous Message ourdiaspora 2021-12-31 13:12:02 create query with date values