This question has already been answered:
- Sample from related tables Mysql 2 answers
There are 4 tables:
Vigruzka User_Name0 Name0 DisplayName0 Publisher0 LastW Anna.CM Anna Skype Microsoft 2.0.9 ... rows 700 Users Id_users User_Name0 Name0 1 Anna.CM Anna ... rows 3 Programs Id_programs DisplayName0 Publisher0 1 Skype Microsoft ... rows 300 Updates Id_updates id_Users Id_programs LastW 1 1 1 2.0.9 ... rows 300 How to display (make a selection) the Updates table so that it looks like:
Updates Id_updates id_Users Id_programs LastW 1 Anna.CM Skype 2.0.9 ... rows 300 Ie that for the place of figures there was related data.
Tables are related
Display through the command Select * from updates;