Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Formatting Help (Potential Feature Request) #308

Open
isaacsanders opened this issue Mar 8, 2023 · 0 comments
Open

Formatting Help (Potential Feature Request) #308

isaacsanders opened this issue Mar 8, 2023 · 0 comments

Comments

@isaacsanders
Copy link

isaacsanders commented Mar 8, 2023

Can I use pgFormatter to get this query

SELECT
    username,
    first_name,
    last_name,
    start_of_employment,
    end_of_employment
FROM
    employees
WHERE
    username IN ('tcbgpF46JJ', '5m6PFQ60Gd', 'z7vz3WJH6E', 'S5JPy48rLI', 'bKj3C-z1UI', 'NOEiCNJkQs', 'sz7NM-iBLQ', 'M4iYaA95UA', 'IvKVsadzDR', 'L1C3SGBwrp', 'aOYXq_JEkK', '8hv1.zDxcT', 'WRg8XIM_xJ', 'tdisducrdm', '6xWZqWNVZJ', 'oyxLJwKGlp', 'Tt6dkxMA4i', '4BsM0ux905', 'j8TJIq50fX', 'Bc9Q_eVIK1', 'd0TpJrv-5y')
ORDER BY
    start_of_employment;

To look something like

SELECT
    username,
    first_name,
    last_name,
    start_of_employment,
    end_of_employment
FROM
    employees
WHERE
    username IN (
      'tcbgpF46JJ',
      '5m6PFQ60Gd',
      'z7vz3WJH6E',
      'S5JPy48rLI',
      'bKj3C-z1UI',
      'NOEiCNJkQs',
      'sz7NM-iBLQ',
      'M4iYaA95UA',
      'IvKVsadzDR',
      'L1C3SGBwrp',
      'aOYXq_JEkK',
      '8hv1.zDxcT',
      'WRg8XIM_xJ',
      'tdisducrdm',
      '6xWZqWNVZJ',
      'oyxLJwKGlp',
      'Tt6dkxMA4i',
      '4BsM0ux905',
      'j8TJIq50fX',
      'Bc9Q_eVIK1',
      'd0TpJrv-5y'
    )
ORDER BY
    start_of_employment;

I can't determine if there is a flag I am using inappropriately.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant