i have a table ‘Group’
it has Group id (primary key),Group Name, Sensor ID(Foreign key), Units Id.
Units ID is a foreign key reference to Sensor table.
while,
select * from Group
gives me a answer of
Group Id,Group Name, Sensor Id,Units Id.
but i want to get corresponding Sensor Id’s Sensorname and Units id’s Units name from the sensor table in Group table.
how can i get that?
You can use a join: