Click here to Skip to main content
15,884,099 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hiii,

SQL
select Id,DescName from A
    where CompanyId=@CompanyId
    select TypeName,Id as TypeId from B
    where CompanyId=@CompanyId


this is what i am returning from storeprocedure and assgining to list in my class file.

but in list i am getting only two columns of first table that is A but not from table B..
Posted
Comments
Nandakishore G N 26-Aug-13 1:37am    
use join to accomplish this task.
Torakami 26-Aug-13 1:57am    
If i join it , then from B it will return same data twp times ... as i have to give relation in join .. i simply want to return this first column .. and assign it to dropdowns using list

1 solution

 
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