Hi all .I am have 2 tables as shown below. I run this query and i get no sets of data!! idyoutube in both tables are the same. i have 2 playlists and one video in each but the query returns nothing!! I be happy if some help me fix this query.
Code:
select F.idyoutube, F.thumbnail_url, F.title, F.view_count, F.comment_count, F.embed_status from playlist as P inner join youtubevideos2 as F on F.idyoutube = P.idyoutube where playlistname='popsong'
Code:
CREATE TABLE `playlist` (
`User_ID` int(10) unsigned NOT NULL default '0',
`idyoutube` varchar(93) character set latin1 NOT NULL default '0',
`playlistname` varchar(32) character set latin1 NOT NULL default '',
UNIQUE KEY `Index_1` (`User_ID`,`idyoutube`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
CREATE TABLE `youtubevideos2` (
`ID` int(11) NOT NULL auto_increment,
`author` varchar(93) NOT NULL default '0',
`idyoutube` varchar(93) NOT NULL default '0',
`title` varchar(93) NOT NULL default '0',
`length_seconds` int(10) unsigned NOT NULL default '0',
`rating_avg` int(10) unsigned NOT NULL default '0',
`rating_count` int(10) unsigned NOT NULL default '0',
`description` varchar(255) NOT NULL default '0',
`view_count` int(10) unsigned NOT NULL default '0',
`upload_time` int(10) unsigned NOT NULL default '0',
`comment_count` int(10) unsigned NOT NULL default '0',
`tags` varchar(93) NOT NULL default '0',
`url` varchar(93) NOT NULL default '0',
`thumbnail_url` varchar(93) NOT NULL default '0',
`embed_id` varchar(93) NOT NULL default '0',
`embed_status` varchar(93) NOT NULL default '0',
PRIMARY KEY (`ID`)
) ENGINE=MyISAM DEFAULT CHARSET=latin1 AUTO_INCREMENT=237 ;