Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
select t1.Gender,t1.Religion,t1.Caste,t1.Age,t3.Image
from Ushadi as t1
inner join RshiHabit as t3
on t3.FId=t1.Id


Respected Sir,

I want to use ""select Age from Ushadi where Age between @minage and @maxage"" this statement query within t1.Age field like;

select t1.Gender,t1.Religion,t1.Caste,t1.Age(select Age from Ushadi where Age between @minage and @maxage),t3.Image
from Ushadi as t1
inner join RshiHabit as t3
on t3.FId=t1.Id

how should i use this qyery within t1.Age?

plz reply...
Posted

1 solution

if you want to fetch records having age between range then write query as beow...
SQL
select t1.Gender,t1.Religion,t1.Caste,t1.Age,t3.Image
from Ushadi as t1
inner join RshiHabit as t3 on t3.FId=t1.Id
where
t1.Age between @minage and @maxage 

Happy Coding!
:)
 
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