Hello everyone,
In a DB I created an table “Authors” with the fields “id” and “name”, which gives:
author_id: 1 - author_name: “George Orwell”
author_id: 2 - author_name: “William Shakespeare”
author_id: 3 - author_name: “Arthur Conan Doyle”
In my table “Books” the name of the author is simply linked with author_id to the table “Authors” (“1” for “George Orwell”, etc.) So I have fields like this:
book_title: “1984” - author_id: 1
book_title: “Hamlet” - author_id: 2
etc.
Then, when I want to display the “Books” table in a form or grid, I can not find a solution that allows me to display the “Name” field properly. If I go through a “Text” data type, the author_name appears below the field to be completed. If it passes by a field “Selection”, the sorting of the author column will be done by “author_id” and will display something like :
George Orwell
William Shakespeare
Arthur Conan Doyle
and not in alphabetical order:
Arthur Conan Doyle
George Orwell
William Shakespeare
Has anyone an idea about it?
Sincerely.