SQL View Creation

Posted by george9170 on Stack Overflow See other posts from Stack Overflow or by george9170
Published on 2010-04-19T16:41:44Z Indexed on 2010/04/19 16:53 UTC
Read the original article Hit count: 330

Filed under:

I have two tables

Table FOO 
FooUniqueID| Year| Name| Worth|
---------------------------
1           2008   Bob    23.00 
2           2009   Bob    40200

Table Bar 
BarUniqueID | Name | Value
-----------------------
 1aBc         Year   2009

I would like to create a view. That will select everything from FOO where the Year is equal

select value from Bar where name = year

without using a sub query.

thank you

© Stack Overflow or respective owner

Related posts about sql