I am designing a website, and I’m having a problem with the SQL query function. My table looks like this:
Table Structure
Ref_ID Mem_ID
1001 1002
1001 1003
1001 1004
1002 1005
1003 1006
1003 1007
1003 1008
When I try the command “select * from table where ref_id='1001',” it returns 1002, 1003 and 1004. However, I want all the co-related data together. What can I do?
Software/Hardware used:
ASKED:
August 21, 2008 4:16 PM
UPDATED:
August 22, 2008 12:43 AM
Check out my SQL Server blog “SQL Server with Mr Denny” for more SQL Server information.