Hi Marino,
You can get data from table by creating ODATA.
First you have to create ODATA service configuration for that table and then you can check whether the service configuration is correct or not via any REST client. If anything wrong in that service configuration results Error. If there is no error you will get data in json or xml format. After succession of checking, you can get that json file data as normal json file by using jquery get json and you can do what ever function you want inside that.
Thanks,
Surendra.