Click here to Skip to main content
16,015,925 members
Home / Discussions / Database
   

Database

 
GeneralRe: MS-SQL Server querry question Pin
ZGelic12-Jan-12 11:36
ZGelic12-Jan-12 11:36 
AnswerRe: MS-SQL Server querry question Pin
sri08018819-Jan-12 0:26
sri08018819-Jan-12 0:26 
QuestionMaking my DB faster Pin
Dewald12-Jan-12 3:37
Dewald12-Jan-12 3:37 
AnswerSQL Server Profiler Pin
David Mujica12-Jan-12 3:58
David Mujica12-Jan-12 3:58 
GeneralRe: SQL Server Profiler Pin
Dewald12-Jan-12 4:03
Dewald12-Jan-12 4:03 
AnswerRe: Making my DB faster Pin
Shameel13-Jan-12 9:04
professionalShameel13-Jan-12 9:04 
Questionarray or new table for every user , which one ? Pin
kozmikadam11-Jan-12 21:22
professionalkozmikadam11-Jan-12 21:22 
AnswerRe: array or new table for every user , which one ? PinPopular
Wayne Gaylard11-Jan-12 22:38
professionalWayne Gaylard11-Jan-12 22:38 
This is a classic case of a Many to Many relationship and what you need to do is create a linking table. You have the original Users table with each user having a unique id UserID. Then you have another table call it Friends with only 2 fields UserID and FriendID. Each time a user adds a friend, you just add a row to the linking table, using the UserID of the Friend as the FriendID in the friends table, and if they remove the friend, you just drop the row.

Hope this makes sense.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman

GeneralRe: array or new table for every user , which one ? Pin
kozmikadam12-Jan-12 0:07
professionalkozmikadam12-Jan-12 0:07 
GeneralRe: array or new table for every user , which one ? Pin
Wayne Gaylard12-Jan-12 0:10
professionalWayne Gaylard12-Jan-12 0:10 
GeneralRe: array or new table for every user , which one ? Pin
Shameel13-Jan-12 9:06
professionalShameel13-Jan-12 9:06 
QuestionHow to Insert Record In MYSQL Pin
Anubhava Dimri11-Jan-12 19:19
Anubhava Dimri11-Jan-12 19:19 
AnswerRe: How to Insert Record In MYSQL Pin
Wayne Gaylard11-Jan-12 22:20
professionalWayne Gaylard11-Jan-12 22:20 
AnswerRe: How to Insert Record In MYSQL Pin
SilimSayo12-Jan-12 5:53
SilimSayo12-Jan-12 5:53 
GeneralRe: How to Insert Record In MYSQL Pin
Shameel13-Jan-12 9:08
professionalShameel13-Jan-12 9:08 
AnswerRe: How to Insert Record In MYSQL Pin
sri08018819-Jan-12 0:27
sri08018819-Jan-12 0:27 
QuestionSum the Counts Pin
Elizabeth Rani8-Jan-12 23:12
Elizabeth Rani8-Jan-12 23:12 
AnswerRe: Sum the Counts Pin
Mycroft Holmes8-Jan-12 23:51
professionalMycroft Holmes8-Jan-12 23:51 
QuestionDatabase Restor Pin
Danzy838-Jan-12 8:05
Danzy838-Jan-12 8:05 
AnswerRe: Database Restor Pin
manognya kota8-Jan-12 22:35
manognya kota8-Jan-12 22:35 
AnswerRe: Database Restor Pin
Eddy Vluggen9-Jan-12 8:05
professionalEddy Vluggen9-Jan-12 8:05 
QuestionResetting 'Identity Specification' column in Sql Table Pin
AmbiguousName5-Jan-12 20:56
AmbiguousName5-Jan-12 20:56 
AnswerRe: Resetting 'Identity Specification' column in Sql Table Pin
Ellen_South_Africa5-Jan-12 21:15
Ellen_South_Africa5-Jan-12 21:15 
GeneralRe: Resetting 'Identity Specification' column in Sql Table Pin
AmbiguousName9-Jan-12 6:08
AmbiguousName9-Jan-12 6:08 
AnswerRe: Resetting 'Identity Specification' column in Sql Table Pin
unclejimbob6-Jan-12 1:26
unclejimbob6-Jan-12 1:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.