Click here to Skip to main content
16,006,535 members
Home / Discussions / Database
   

Database

 
AnswerRe: How do I Limit SQL Transaction Logs? Pin
Andrew Connell2-Jul-02 3:31
Andrew Connell2-Jul-02 3:31 
GeneralMixed mode installation MSDE 2000 Pin
29-May-02 2:56
suss29-May-02 2:56 
GeneralRe: Mixed mode installation MSDE 2000 Pin
Sebastian Weber5-Jun-02 0:08
Sebastian Weber5-Jun-02 0:08 
GeneralRe: Mixed mode installation MSDE 2000 Pin
Bernhard Hofmann15-May-03 4:46
Bernhard Hofmann15-May-03 4:46 
GeneralCRecordset - SQL - Count() Pin
28-May-02 23:38
suss28-May-02 23:38 
GeneralRe: CRecordset - SQL - Count() Pin
Matt Gullett28-May-02 23:53
Matt Gullett28-May-02 23:53 
GeneralRe: CRecordset - SQL - Count() Pin
29-May-02 2:55
suss29-May-02 2:55 
GeneralSQL problem Pin
Alex Deem28-May-02 19:42
Alex Deem28-May-02 19:42 
Hi,

I have a table consisting of an ID, a Date and a StatusCode. Basically it holds a log of when the status of things ('Defects') identified by the ID changed. (The ID is NOT unique in this table).

I am trying to develop an SQL statement that will return the ID and Date for records that have most recently been changed to a certain status. I am using MS Access.

The Query below will return the date that each Defect's status was last changed:

SELECT DefectNumber, Max(DateTime)
FROM MAIN_Status
GROUP BY DefectNumber

I want to be able to discard records from the results of this that are not currently "issued". NOTE: Using a WHERE StatusCode = "ISS" clause does not do what is required - it will give me the most recent date that each Defect has been issued. After a defect has been issued it can then be changed to completed and thus is no longer relevant.

I hope this makes sense...

Any suggestions at all would be great.
Thanks,

Alex
GeneralRe: SQL problem Pin
Matt Gullett28-May-02 23:51
Matt Gullett28-May-02 23:51 
GeneralRe: SQL problem Pin
Alex Deem29-May-02 0:07
Alex Deem29-May-02 0:07 
QuestionFiles in SQL Server? Pin
HenrikO28-May-02 8:27
HenrikO28-May-02 8:27 
AnswerRe: Files in SQL Server? Pin
Matt Gullett28-May-02 8:34
Matt Gullett28-May-02 8:34 
GeneralRe: Files in SQL Server? Pin
HenrikO28-May-02 10:12
HenrikO28-May-02 10:12 
GeneralRe: Files in SQL Server? Pin
Matt Gullett28-May-02 10:15
Matt Gullett28-May-02 10:15 
GeneralRe: Files in SQL Server? Pin
HenrikO28-May-02 10:32
HenrikO28-May-02 10:32 
GeneralOLE DB/Dialog based program Pin
22-May-02 4:09
suss22-May-02 4:09 
QuestionHow does SQL Server verify the conditions Pin
Alexandru Savescu22-May-02 2:19
Alexandru Savescu22-May-02 2:19 
AnswerRe: How does SQL Server verify the conditions Pin
Carlos Antollini22-May-02 4:20
Carlos Antollini22-May-02 4:20 
AnswerRe: How does SQL Server verify the conditions Pin
Ed Gadziemski1-Jun-02 12:37
professionalEd Gadziemski1-Jun-02 12:37 
GeneralHelp! - Really wierd error... Pin
soup20-May-02 13:24
soup20-May-02 13:24 
GeneralRe: Help! - Really wierd error... Pin
soup20-May-02 23:08
soup20-May-02 23:08 
QuestionHELP:how to change ado data control para? Pin
sages20-May-02 1:57
sages20-May-02 1:57 
GeneralMS Jet and Installshield Pin
Blade[DMS]20-May-02 0:46
Blade[DMS]20-May-02 0:46 
GeneralRe: MS Jet and Installshield Pin
Carlos Antollini22-May-02 4:23
Carlos Antollini22-May-02 4:23 
GeneralRe: MS Jet and Installshield Pin
Blade[DMS]22-May-02 4:37
Blade[DMS]22-May-02 4:37 

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.