Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: SQL-Server-2008
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 5-Jan-13 0:36am

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

if you want to fetch records having age between range then write query as beow...
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!
Smile | :)
  Permalink  

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

  Print Answers RSS
Your Filters
Interested
Ignored
     
0 Sergey Alexandrovich Kryukov 457
1 OriginalGriff 380
2 Shai Vashdi 335
3 Peter Leow 171
4 Emre Ataseven 165
0 Sergey Alexandrovich Kryukov 8,944
1 OriginalGriff 5,280
2 Peter Leow 3,985
3 Maciej Los 3,535
4 Abhinav S 3,218


Advertise | Privacy | Mobile
Web02 | 2.8.140415.2 | Last Updated 5 Jan 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Use
Layout: fixed | fluid