i have 2 tables
base:
Id int
Name Varchar
and values in base:
1 abc
2 cde
3 def
Sub:
sid int
CreatedBy Id(From base table Id)
ModiFiedBy Id(From base table Id)
and values in sub
1 2 3
2 1 2
3 3 2
now i want table like this
sid CreatedBy CreatedByName ModifiedBy ModifiedByName
1 2 cde 3 def
2 1 abc 2 cde
3 3 def 2 cde
how to write this query please help me

Tapan PatelRank #614 · 3.9K reputationPosted Sep 17, 2016, 9:06 AM EDT
Bikesh SrivastavaRank #108 · 20.3K reputationPosted Sep 17, 2016, 8:49 PM EDT
Midhun TpRank #388 · 6.5K reputationPosted Sep 17, 2016, 8:58 PM EDT
Delpin Susai RajRank #53 · 29.5K reputationPosted Sep 17, 2016, 10:50 PM EDT
FROM table1
JOIN table2
ON table1.column_name=table2.column_name;