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

Format WHERE clause improvement #224

Open
1 of 2 tasks
paustint opened this issue Feb 25, 2023 · 0 comments
Open
1 of 2 tasks

Format WHERE clause improvement #224

paustint opened this issue Feb 25, 2023 · 0 comments

Comments

@paustint
Copy link
Collaborator

  • Feature
  • Bug

Description

WHERE clause formatting has some cases where formatting does not work properly.

SELECT ID FROM Account WHERE OwnerId = '0013t00001nJsHJAA0' AND ( AccountNumber = 'Open' OR AccountNumber = 'Called Off Rent' ) AND ( (NOT Name LIKE 'H%') OR (NOT Name LIKE 'L%') OR (NOT Name LIKE 'W%') OR (NOT Name LIKE 'R%') )
SELECT ID
FROM Account
WHERE OwnerId = '0013t00001nJsHJAA0'
	AND (
		AccountNumber = 'Open'
		OR AccountNumber = 'Called Off Rent'
	)
	AND (
(NOT Name LIKE 'H%')
	OR (NOT Name LIKE 'L%')
	OR (NOT Name LIKE 'W%')
	OR (NOT Name LIKE 'R%')
	)
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