Question
sql 'in' problem
Hi,
I have 2 tables(below), I need to pull out all the rows in the videostream table where the videostream.movieCat list contains the ID of the category in the moviecat table. Normally I would just use the IN query:
SELECT * FROM videostream WHERE #catid# IN videostream.movieCat
However I cant get his to work, can anyone tell me the best way to go about this?
Thankyou
movicat
movieCatID int
movieCatName nvarchar
Videostream
movieID int
movieFilename ntext
movietitle nvarchar
movieCat nvarchar
movieSubtitle nvarchar
movieEpisode int
movieduration int
moviekeywords ntext
moviebroadcaster int
moviebroadcastdate smalldatetime
movieLicense nvarchar
movieDescription ntext
I have 2 tables(below), I need to pull out all the rows in the videostream table where the videostream.movieCat list contains the ID of the category in the moviecat table. Normally I would just use the IN query:
SELECT * FROM videostream WHERE #catid# IN videostream.movieCat
However I cant get his to work, can anyone tell me the best way to go about this?
Thankyou
movicat
movieCatID int
movieCatName nvarchar
Videostream
movieID int
movieFilename ntext
movietitle nvarchar
movieCat nvarchar
movieSubtitle nvarchar
movieEpisode int
movieduration int
moviekeywords ntext
moviebroadcaster int
moviebroadcastdate smalldatetime
movieLicense nvarchar
movieDescription ntext
