I have a View V1 with a column Name, DateOfBirth.
In my stored proc, I created a temporary table T2 as given below.
MinAge MaxAge Category
0 5 Under 5
13 19 Teenager
My stored proc query goes:
Select V1.Name, T2.Category
from V1, T2
where DATEDIFF(hour,V1.DateOfBirth ,GETDATE())/8766 between T2.minage and T2.maxage
As of now my result set looks fine. My query is, since there is no direct relatioship between these two tables, going forward can my query result be effected in any way?
Since there is no answer, I am forced to assume that there would be no major effect. Though suggestion from @GregHNZ is quite helpful. Thanks.