ln2sql icon indicating copy to clipboard operation
ln2sql copied to clipboard

Not working to perform joins

Open vasharma1 opened this issue 7 years ago • 3 comments

The english statement 'What is the name of the professor who is teaching the field Algorithm ?' does not work. There comes an error saying 'there is at least one column 'field' which is not reachable from 'professor'.

vasharma1 avatar Jun 13 '18 10:06 vasharma1

Thank you for your interest in ln2sql. Unfortunately, I'm not going forward with the project.

In addition, FYI, the pypi version is really not updated; it does not include most of features of the github version, the same goes for the release versions and especially for the python 2.X version. Maybe your problem comes from here.

I'm so sorry not to be able to help you more.

FerreroJeremy avatar Jun 13 '18 21:06 FerreroJeremy

@vasharma1 That is because the sql dump file does not contain the relation between primary key and foreign key. You have to define your ALTER TABLE statements. And then add : ALTER TABLE professor ADD CONSTRAINT professor_ibfk_1 FOREIGN KEY (idProf) REFERENCES teaching (idProf);

Thanks.

jps1001 avatar Apr 19 '20 05:04 jps1001

Sad to see this project has been abandoned

aitoehigie avatar Jul 27 '21 14:07 aitoehigie