Export SQL CREATE TABLE from Collect - species list missing

  • Asked
  • Active
  • Viewed 7903 times
0

Dear friends, I sometimes use the SQL export to get a build statement for the database structure resulting from the survey definition (for example to create a database or to visualize it). In this export, however, the species list is missing. E.g. if you use DBschema (as free software to visualize it) and parse the CREATE TABLE statement with the SQL exported from collect, my species list is missing. For completeness it would be nice to include this in the export, if possible.

Cheers, Lutz

0

Accepted answer

Dear Lutz,
Good suggestion, I think that the species list tables could be added, maybe using a prefix species_list_ followed by the species list name.
Also the code list tables could be added to that export.
What columns do you need in those tables?
Let us know, many thanks,
Open Foris Team

0

Accepted answer

Using the SQL export in Collect already includes all code tables, they come out nicely with all relations. Adding the species list would complement this. Even the sampling point data could potentially be included, at least the level_1 to level_x code and label which might be related to the plot entity. It should be no problem to include all columns of the species list (if users have additional fields), but in fact the species code (which is the key field relating to other tables) and species name (Latin and common) would already be fine. There are people who like to bypass the complex Collect and Calc database and use other techniques, like dynamical data models to analyze data, for them such a simpler structure might be helpful as basis. Thank you! Lutz

Your answer

Markdown text. Shortcuts: Ctrl+B bold, Ctrl+I italic, Ctrl+K link, Ctrl+E code, Ctrl+Shift+V paste as plain text. Tab indents list items and code; press Escape, then Tab, to leave the text box.

Insert an image

Say what the image shows, for people who can't see it.

Tip: type a few words from the error message, or put a tag in [brackets] to look only there.

Menu

Keyboard shortcuts

Anywhere

?
Show this list
/
Search
g h
Go to the home page
g q
Go to the questions
g t
Go to the tags
g u
Go to the users
a
Ask a question

Lists of questions

j k
Next or previous question
Enter
Open the question

Question pages

j k
Next or previous post

Shortcuts never apply while you type in a text field. Members can turn them off in their preferences.