-1

I have three tables like this:

Table1

english | hindi
--------------
 shakti  | शक्ति
 sharma  | शर्मा  

Table2

eng| hin
------------------
 Jai |जय  
 Jo  | जो 

**Table3*

name | commo| price  |
----------------------------------
 shakti  | jai  | 123.00 
 sharma  |jo  | 224.00 
 anil | paddy  | 1286.098

**I want to get result something like this*

 hindi| hin | price 
    --------------------------
     शर्मा    |   जो | | 224.00 

Description :
there is no primary key in any table I want all records where
**Table2* = 'जो'

I tried but I am not able to fetch the data correctly. Please help.

Brian Tompsett - 汤莱恩
  • 5,753
  • 72
  • 57
  • 129
user3493831
  • 47
  • 1
  • 1
  • 8

2 Answers2

0

There Must be a primary key and foreign key concept in table. Give Primary key in all table and give relation using foreign key.

I think you get the point.

Jatin
  • 1
  • 1
0

Its a simple inner join statement

select t1.hindi, t2.hin, t3.price
from table1 t1 inner join table3 t3 on t1.english=t3.name
inner join table2 t2 on t2.eng=t3.commo
where t2.hin='जो'

fiidle

G one
  • 2,679
  • 2
  • 14
  • 18