I want to get the data from two tables from one table i want to get all the data and from second table i want just one column i have a relationship between the tables
SELECT * from First,S.CodeName
INNER JOIN second AS S on Second.RID=First.RId
1-one way is to get all the columns from first table by name to name like i have to include all the columns just like that
SELECT F.Name,F.Code,F.Date from First
INNER JOIN Second as S ON s.Code=F.Code
Oder by F.Code
---This works fine but i want to know other way how to used Select * and a specific column in one query please assists


Suthish NairRank #92 · 22.8K reputationPosted Mar 22, 2016, 1:01 AM EDT
Manas MohapatraRank #182 · 13.2K reputationPosted Mar 22, 2016, 12:59 AM EDT
Danish HabibRank #2,024 · 715 reputationPosted Mar 22, 2016, 1:45 AM EDT