Click here to Skip to main content
15,879,535 members
Home / Discussions / Database
   

Database

 
AnswerRe: Handle to chat room with mysql database Pin
Eddy Vluggen16-Jul-14 5:02
professionalEddy Vluggen16-Jul-14 5:02 
GeneralRe: Handle to chat room with mysql database Pin
Member 1094998616-Jul-14 7:18
Member 1094998616-Jul-14 7:18 
GeneralRe: Handle to chat room with mysql database Pin
Eddy Vluggen16-Jul-14 7:46
professionalEddy Vluggen16-Jul-14 7:46 
GeneralRe: Handle to chat room with mysql database Pin
Member 1094998616-Jul-14 7:53
Member 1094998616-Jul-14 7:53 
GeneralRe: Handle to chat room with mysql database Pin
Eddy Vluggen16-Jul-14 8:05
professionalEddy Vluggen16-Jul-14 8:05 
GeneralRe: Handle to chat room with mysql database Pin
Member 1094998616-Jul-14 8:09
Member 1094998616-Jul-14 8:09 
GeneralRe: Handle to chat room with mysql database Pin
Eddy Vluggen16-Jul-14 8:24
professionalEddy Vluggen16-Jul-14 8:24 
AnswerRe: Handle to chat room with mysql database Pin
data modeling guy16-Jul-14 17:42
data modeling guy16-Jul-14 17:42 
Delete the recipient-table, and add a table like below;

MessageStatusPerUser
UserId
MessageId
IsDeleted

Add a record to that table when the user read a message set 'IsDeleted' to false.
When user delete a message, set IsDeleted to true.
When fetching all messages for a particular user, fetch all messages where the messageId isn't named in the MessageStatusPerUser table and Messages marked 'IsDeleted' as false

in summary:
messages not appearing in MessageStatusPerUser table are unread.
messages appearing in MessageStatusPerUser table and flagged IsDeleted as false are read.
messages appearing in MessageStatusPerUser table and flagged IsDeleted as true are deleted messages.
GeneralRe: Handle to chat room with mysql database Pin
Member 1094998616-Jul-14 21:28
Member 1094998616-Jul-14 21:28 
GeneralRe: Handle to chat room with mysql database Pin
data modeling guy16-Jul-14 23:52
data modeling guy16-Jul-14 23:52 
GeneralRe: Handle to chat room with mysql database Pin
Member 1094998617-Jul-14 1:45
Member 1094998617-Jul-14 1:45 
QuestionSSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER Pin
Mangesh678616-Jul-14 2:04
Mangesh678616-Jul-14 2:04 
AnswerRe: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER Pin
Eddy Vluggen16-Jul-14 5:03
professionalEddy Vluggen16-Jul-14 5:03 
AnswerRe: SSIS Error Code DTS_E_CANNOTACQUIRECONNECTIONFROMCONNECTIONMANAGER Pin
PIEBALDconsult17-Jul-14 13:39
mvePIEBALDconsult17-Jul-14 13:39 
QuestionExtract Data in Single Record Pin
mrfalk15-Jul-14 13:05
mrfalk15-Jul-14 13:05 
AnswerRe: Extract Data in Single Record Pin
data modeling guy15-Jul-14 19:32
data modeling guy15-Jul-14 19:32 
AnswerRe: Extract Data in Single Record Pin
Richard Deeming16-Jul-14 2:42
mveRichard Deeming16-Jul-14 2:42 
AnswerRe: Extract Data in Single Record Pin
PIEBALDconsult17-Jul-14 13:54
mvePIEBALDconsult17-Jul-14 13:54 
Questionlinked list using CTE Pin
Ali Al Omairi(Abu AlHassan)14-Jul-14 22:29
professionalAli Al Omairi(Abu AlHassan)14-Jul-14 22:29 
AnswerRe: linked list using CTE Pin
Ali Al Omairi(Abu AlHassan)14-Jul-14 23:14
professionalAli Al Omairi(Abu AlHassan)14-Jul-14 23:14 
QuestionOVER (PARTITION BY ORDER BY ) Pin
Ambertje14-Jul-14 4:44
Ambertje14-Jul-14 4:44 
AnswerRe: OVER (PARTITION BY ORDER BY ) Pin
PIEBALDconsult14-Jul-14 5:13
mvePIEBALDconsult14-Jul-14 5:13 
GeneralRe: OVER (PARTITION BY ORDER BY ) Pin
Ambertje14-Jul-14 5:15
Ambertje14-Jul-14 5:15 
AnswerRe: OVER (PARTITION BY ORDER BY ) Pin
Eddy Vluggen14-Jul-14 5:27
professionalEddy Vluggen14-Jul-14 5:27 
GeneralRe: OVER (PARTITION BY ORDER BY ) Pin
PIEBALDconsult14-Jul-14 5:29
mvePIEBALDconsult14-Jul-14 5:29 

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.