Displaying SQL Table in editable table on interface

Hi,

I have a SQL table which I want to display as my editable table on the interface. Also, I want to give the user an option to edit the data from that for few columns.

I am able to display the table in the site view, but I am unable to add the table into my existing interface, how shall I proceed. 

I watched the videos relating to query editor but it did not help.

Also is it possible to query from 2 tables using a foreign key or we need to create views?

  Discussion posts and replies are publicly visible