View Single Post
Old 12-25-2012, 11:05 AM   PM User | #3
sfdigital
New to the CF scene

 
Join Date: Sep 2012
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
sfdigital is an unknown quantity at this point
Suppose I have two tables

In table 1 I have

movie_id, movie_name

In table_2 I have

movie_id,movie_genre

Now I want to know the the names of movie which belongs to particular genre


ANSWER

SELECT movie_name
FROM table1
JOIN table2 USING (movie_id)
WHERE movie_genre = 'some_genre'

This is the example to get data from two tables

Destination Wedding Photographer

Top Wedding Photographers
Wedding Photographer Hertfordshire

Last edited by sfdigital; 12-25-2012 at 11:07 AM..
sfdigital is offline   Reply With Quote