Click here to Skip to main content
15,921,028 members
Home / Discussions / Database
   

Database

 
QuestionSQL server query Pin
Jaggariah26-Feb-08 15:53
Jaggariah26-Feb-08 15:53 
GeneralRe: SQL server query Pin
Christian Graus26-Feb-08 19:18
protectorChristian Graus26-Feb-08 19:18 
GeneralRe: SQL server query Pin
Usharva26-Feb-08 19:49
Usharva26-Feb-08 19:49 
GeneralRe: SQL server query Pin
Jaggariah26-Feb-08 19:53
Jaggariah26-Feb-08 19:53 
GeneralRe: SQL server query Pin
Usharva26-Feb-08 19:58
Usharva26-Feb-08 19:58 
GeneralQuery to get most recent event for each item Pin
Dan Neely26-Feb-08 10:44
Dan Neely26-Feb-08 10:44 
GeneralRe: Query to get most recent event for each item Pin
Usharva26-Feb-08 19:56
Usharva26-Feb-08 19:56 
GeneralRe: Query to get most recent event for each item Pin
Dan Neely27-Feb-08 2:44
Dan Neely27-Feb-08 2:44 
With a few formatting tweaks (below) to make the DB happy it ran, but it only returns a single row with the single most recent event, not the most recent event for each item.

SELECT tblItems.ItemID, tblEvents.EventID, TimeStamp
FROM ((lnkItemEvents
INNER JOIN tblItems ON tblItems.ItemID = lnkItemEvents.ItemID)
INNER JOIN tblEvents ON tblEvents .EventID = lnkItemEvents.EventID)
WHERE TimeStamp = (SELECT MAX(TimeStamp)FROM lnkItemEvents)

Otherwise [Microsoft is] toast in the long term no matter how much money they've got. They would be already if the Linux community didn't have it's head so firmly up it's own command line buffer that it looks like taking 15 years to find the desktop.
-- Matthew Faithfull

GeneralRe: Query to get most recent event for each item Pin
Dan Neely27-Feb-08 4:01
Dan Neely27-Feb-08 4:01 
GeneralC# ado.net Pin
Member 462942126-Feb-08 10:26
Member 462942126-Feb-08 10:26 
GeneralRe: C# ado.net Pin
Nouman Bhatti27-Feb-08 2:30
Nouman Bhatti27-Feb-08 2:30 
GeneralRe: C# ado.net Pin
Member 462942128-Feb-08 9:00
Member 462942128-Feb-08 9:00 
Question[Message Deleted] Pin
vinodh.s26-Feb-08 7:12
vinodh.s26-Feb-08 7:12 
AnswerRe: use of datetime datatype Pin
pmarfleet26-Feb-08 8:33
pmarfleet26-Feb-08 8:33 
General[Message Deleted] Pin
vinodh.s26-Feb-08 9:07
vinodh.s26-Feb-08 9:07 
GeneralRe: use of datetime datatype Pin
pmarfleet26-Feb-08 9:20
pmarfleet26-Feb-08 9:20 
GeneralRe: use of datetime datatype Pin
vinodh.s26-Feb-08 9:25
vinodh.s26-Feb-08 9:25 
GeneralRe: use of datetime datatype Pin
pmarfleet26-Feb-08 9:43
pmarfleet26-Feb-08 9:43 
GeneralRe: use of datetime datatype Pin
vinodh.s26-Feb-08 9:48
vinodh.s26-Feb-08 9:48 
GeneralThey will not let me hit the database until the last minute. Help !!! [modified] Pin
crystal915426-Feb-08 5:52
crystal915426-Feb-08 5:52 
GeneralRe: They will not let me hit the database until the last minute. Help !!! Pin
SimulationofSai26-Feb-08 7:24
SimulationofSai26-Feb-08 7:24 
GeneralRe: They will not let me hit the database until the last minute. Help !!! Pin
crystal915426-Feb-08 8:13
crystal915426-Feb-08 8:13 
GeneralHelp! ADO . NET connecting to SQL Server 2005 Pin
D_Ana26-Feb-08 5:43
D_Ana26-Feb-08 5:43 
GeneralRe: Help! ADO . NET connecting to SQL Server 2005 Pin
Xmen Real 26-Feb-08 6:20
professional Xmen Real 26-Feb-08 6:20 
GeneralRe: Help! ADO . NET connecting to SQL Server 2005 Pin
D_Ana26-Feb-08 9:35
D_Ana26-Feb-08 9:35 

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.