Verdagon
12-04-2009, 07:53 PM
Hey everyone, I think I have a simple question. I have table A, which has a foreign key field whichB that references B's "id" field.
Table A:
whichB int references B(id)
Table B:
id int primary key
numGizmos int;
is there a way to do this?
select * from A a where a.whichB.numGizmos = 4;
basically an inlined lookup. I remember seeing it somewhere but I cant get it to work and for the life of me I can't find anything on google; I tried searching "lookup", "reference", "follow", but the terms just aren't specific enough.
Anyone know how to do this?
- Evan
Table A:
whichB int references B(id)
Table B:
id int primary key
numGizmos int;
is there a way to do this?
select * from A a where a.whichB.numGizmos = 4;
basically an inlined lookup. I remember seeing it somewhere but I cant get it to work and for the life of me I can't find anything on google; I tried searching "lookup", "reference", "follow", but the terms just aren't specific enough.
Anyone know how to do this?
- Evan