What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » SQL/Database Help

SQL/Database Help
Author: Message:
Mnjul
forum super mod
******

Avatar
plz wub me

Posts: 5396
Reputation: 58
– / Other / Flag
Joined: Nov 2002
Status: Away
RE: SQL/Database Help
The best I can come up with is:
sql code:
SELECT those_columns FROM tblFilms WHERE (tblFilms.Actor1=NAME1 OR tblFilms.Actor2=NAME1 OR tblFilms.Actor3=NAME1 OR tblFilms.Actor4=NAME1)
INTERSECT
SELECT those_columns FROM tblFilms WHERE (tblFilms.Actor1=NAME2 OR tblFilms.Actor2=NAME2 OR tblFilms.Actor3=NAME2 OR tblFilms.Actor4=NAME2)

But I dunno if your SQL engine supports INTERSECT (at least MySQL doesn't seem so). But if you're just doing an assignment then I think it's fine.

This post was edited on 03-18-2010 at 06:53 PM by Mnjul.
03-18-2010 06:52 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
SQL/Database Help - by djdannyp on 03-18-2010 at 06:42 PM
RE: SQL/Database Help - by Mnjul on 03-18-2010 at 06:52 PM
RE: SQL/Database Help - by djdannyp on 03-18-2010 at 07:02 PM
RE: SQL/Database Help - by Mnjul on 03-18-2010 at 07:05 PM
RE: SQL/Database Help - by djdannyp on 03-18-2010 at 07:18 PM
RE: SQL/Database Help - by toddy on 03-18-2010 at 07:42 PM
RE: SQL/Database Help - by djdannyp on 03-18-2010 at 07:56 PM
RE: SQL/Database Help - by matty on 03-18-2010 at 08:06 PM
RE: SQL/Database Help - by djdannyp on 03-18-2010 at 08:09 PM
RE: SQL/Database Help - by matty on 03-18-2010 at 08:17 PM
RE: SQL/Database Help - by toddy on 03-18-2010 at 08:17 PM
RE: SQL/Database Help - by matty on 03-18-2010 at 08:19 PM
RE: SQL/Database Help - by toddy on 03-18-2010 at 08:31 PM
RE: SQL/Database Help - by Adeptus on 03-19-2010 at 09:23 AM
RE: SQL/Database Help - by djdannyp on 03-19-2010 at 09:47 AM
RE: SQL/Database Help - by CookieRevised on 03-20-2010 at 10:28 AM
RE: SQL/Database Help - by djdannyp on 03-20-2010 at 10:49 AM
RE: SQL/Database Help - by CookieRevised on 03-20-2010 at 11:23 AM
RE: SQL/Database Help - by Adeptus on 03-20-2010 at 11:26 AM
RE: SQL/Database Help - by djdannyp on 03-20-2010 at 12:38 PM
RE: SQL/Database Help - by CookieRevised on 03-20-2010 at 04:45 PM
RE: SQL/Database Help - by djdannyp on 03-20-2010 at 07:08 PM
RE: SQL/Database Help - by CookieRevised on 03-20-2010 at 10:28 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On