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

Syntax Error in query 1. Also move src/querry1.sql to src/query1.sql #7

Closed
i1i1 opened this issue Nov 21, 2019 · 0 comments
Closed
Assignees

Comments

@i1i1
Copy link
Owner

i1i1 commented Nov 21, 2019

JOIN Doctor ON Doctor.employee_id = Appointment.doctor_id
JOIN Employee ON Doctor.employee_id = Employee.id
WHERE Client.name = %name AND (Doctor.name LIKE "%M%" OR Doctor.name LIKE "%L%") AND
(NOT Doctor.name LIKE "M% M%") AND (NOT Doctor.name LIKE "L% L%")

psycopg2.errors.SyntaxError: syntax error at or near "%"
LINE 5: WHERE Client.name = %name AND (Doctor.name LIKE "%M%" OR Doc...
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

2 participants