Click here to Skip to main content
16,012,028 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi,

I have two tables table1 and table2.ie,

TABLE1
firstname lastname middlename
the gladiator warrior
FF HBO y2k

TABLE2
name address PhNo
gladiator USA 99999
HBO IND 89899

I have to retrive the column name of the two tables where
data having common data i.e:gladiator,HBO

Note: I dont know the column names of the two tables
Posted
Updated 12-Jul-12 23:44pm
v2
Comments
[no name] 13-Jul-12 10:16am    
This "question" makes no sense at all.

1 solution

Hi,..

You can use alias name for retrieving the Filedname in the Query.

Example:

select <columnname> as <aliasname> from <tablename>

Aliasname is USerDefined Simple Name...

Hope its ur REquirement.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900