Click here to Skip to main content
15,914,795 members
Home / Discussions / Database
   

Database

 
GeneralRe: DON'T BE SO RUDE Pin
Chris Meech7-Dec-06 10:07
Chris Meech7-Dec-06 10:07 
QuestionUsing foreign tables in select queries Pin
Steven J Jowett5-Dec-06 10:51
Steven J Jowett5-Dec-06 10:51 
AnswerRe: Using foreign tables in select queries Pin
Pete O'Hanlon6-Dec-06 1:39
mvePete O'Hanlon6-Dec-06 1:39 
QuestionSelect Distinct Question Pin
matthias s.5-Dec-06 0:03
matthias s.5-Dec-06 0:03 
AnswerRe: Select Distinct Question Pin
Paddy Boyd5-Dec-06 1:35
Paddy Boyd5-Dec-06 1:35 
AnswerRe: Select Distinct Question Pin
Pete O'Hanlon5-Dec-06 1:36
mvePete O'Hanlon5-Dec-06 1:36 
AnswerRe: Select Distinct Question Pin
Private_Void5-Dec-06 5:33
Private_Void5-Dec-06 5:33 
AnswerRe: Select Distinct Question Pin
Private_Void5-Dec-06 5:34
Private_Void5-Dec-06 5:34 
Assuming "Oldest" means been in the DB the Longest. And I understood what you are trying to do this should be pretty close. I did this without a SQL Server so forgive if a little off.

This is more complex than first meets the eye due to the fact that you need to tie in the Oldest TimeStamp with its cooresponding Body field.

SELECT T1.SenderID, T2.MIN([TimeStamp]), T2.MIN(Body) AS Body
FROM Messages T1
INNER JOIN (
SELECT MIN[TimeStamp] AS MINTimeStamp
,Body
FROM Messages
GROUP BY Body
)T2
ON T1.Body = T2.Body
AND T1.[TimeStamp] = T2.[TimeStamp]
WHERE RecipeintID = 1
GROUP BY T1.SenderID
AnswerRe: Select Distinct Question Pin
Private_Void5-Dec-06 5:35
Private_Void5-Dec-06 5:35 
QuestionConnect to database with another user Pin
Larza1234-Dec-06 23:50
Larza1234-Dec-06 23:50 
Questionalter an identity Pin
Rupa Kalluru4-Dec-06 23:28
Rupa Kalluru4-Dec-06 23:28 
AnswerRe: alter an identity Pin
JeganB5-Dec-06 1:38
JeganB5-Dec-06 1:38 
Questionexport OLAP in SSAS 2005 to excel pivot table Pin
remex_1980_junyongwu4-Dec-06 22:14
remex_1980_junyongwu4-Dec-06 22:14 
QuestionRetrieving connection string Defined in Web-Config Pin
mohd imran abdul aziz4-Dec-06 18:07
mohd imran abdul aziz4-Dec-06 18:07 
GeneralRe: Retrieving connection string Defined in Web-Config Pin
Guffa4-Dec-06 18:32
Guffa4-Dec-06 18:32 
GeneralRe: Retrieving connection string Defined in Web-Config Pin
mohd imran abdul aziz4-Dec-06 19:02
mohd imran abdul aziz4-Dec-06 19:02 
AnswerRe: Retrieving connection string Defined in Web-Config Pin
Steven J Jowett5-Dec-06 10:42
Steven J Jowett5-Dec-06 10:42 
Questionplease help - database design [modified] Pin
michal.kreslik4-Dec-06 15:09
michal.kreslik4-Dec-06 15:09 
AnswerRe: please help - database design Pin
Colin Angus Mackay4-Dec-06 23:33
Colin Angus Mackay4-Dec-06 23:33 
GeneralRe: please help - database design Pin
michal.kreslik5-Dec-06 3:24
michal.kreslik5-Dec-06 3:24 
QuestionSQL Select query for different combination of arguments Pin
steve_rm4-Dec-06 14:05
steve_rm4-Dec-06 14:05 
AnswerRe: SQL Select query for different combination of arguments Pin
Eric Dahlvang5-Dec-06 9:47
Eric Dahlvang5-Dec-06 9:47 
QuestionReading SQL return messages from .NET Pin
iammudman4-Dec-06 4:49
iammudman4-Dec-06 4:49 
AnswerRe: Reading SQL return messages from .NET Pin
Scott Serl4-Dec-06 6:32
Scott Serl4-Dec-06 6:32 
QuestionParsing very large file-low virtual memory error Pin
amnaahmad4-Dec-06 1:04
amnaahmad4-Dec-06 1:04 

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.