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

script "flight analysis.sql" selecting db attribute "flight_number" not working. #150

Closed
jaber70599 opened this issue May 20, 2024 · 6 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@jaber70599
Copy link

Describe the bug
sql statement "flight analysis.sql" could not be executed.

To Reproduce
open sqlite db bowser.
open script "flight analysis.sql".
execute sql statement denoted as "Select specific values from tables position, aircraft and flight".

Expected behavior
no sql error

Screenshots

Context
See #104

@till213 till213 self-assigned this May 20, 2024
@till213 till213 added the question Further information is requested label May 20, 2024
@till213
Copy link
Owner

till213 commented May 20, 2024

The flight_number attribute has been moved from table AIRCRAFT to table FLUGHT in Sky Dolly version v0.17.

Reasoning: the flight number is specific to a „flight“ - not an individual aircraft.

That is, all aircraft in a formation flight have the same „flight number“.

-> Adjust your query accordingly.

E.g.

select flight_number from flight:;

Does that answer the question?

@till213
Copy link
Owner

till213 commented May 20, 2024

Btw did you forget to attach the script in question? I do not see such an attachement „flight_analysis.sql“.

@jaber70599
Copy link
Author

The flight_number attribute has been moved from table AIRCRAFT to table FLUGHT in Sky Dolly version v0.17.

Reasoning: the flight number is specific to a „flight“ - not an individual aircraft.

That is, all aircraft in a formation flight have the same „flight number“.

-> Adjust your query accordingly.

E.g.

select flight_number from flight:;

Does that answer the question?

yes it does.

@jaber70599
Copy link
Author

Btw did you forget to attach the script in question? I do not see such an attachement „flight_analysis.sql“.

sorry, for missing information.
I am referencing to a select statement which is part of "SkyDolly/doc/SQL/Flight-Analysis.sql". Select statement goes from line 19 to line 43.

@till213 till213 added bug Something isn't working and removed question Further information is requested labels May 21, 2024
@till213
Copy link
Owner

till213 commented May 21, 2024

I am referencing to a select statement which is part of "SkyDolly/doc/SQL/Flight-Analysis.sql"

Ah… good catch! I knew the script name sounded familiar ;)

This is a documentation bug then and will be fixed asap!

Thanks for reporting!

@till213 till213 added the documentation Improvements or additions to documentation label May 21, 2024
@till213
Copy link
Owner

till213 commented May 22, 2024

The example SQL script has been fixed.

@till213 till213 closed this as completed May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants