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

Database

 
AnswerRe: How to use msadox and msado15 dll together Pin
RichardGrimmer17-Jun-04 3:49
RichardGrimmer17-Jun-04 3:49 
Questionhow i can take the sum of times Pin
syed saba16-Jun-04 1:01
syed saba16-Jun-04 1:01 
AnswerRe: how i can take the sum of times Pin
WoutL16-Jun-04 3:39
WoutL16-Jun-04 3:39 
GeneralRe: how i can take the sum of times Pin
syed saba16-Jun-04 3:50
syed saba16-Jun-04 3:50 
GeneralPulling the latest entry for ALL products BY DATE from a table Pin
lostsheep00715-Jun-04 22:22
lostsheep00715-Jun-04 22:22 
GeneralRe: Pulling the latest entry for ALL products BY DATE from a table Pin
WoutL15-Jun-04 22:53
WoutL15-Jun-04 22:53 
GeneralRe: Pulling the latest entry for ALL products BY DATE from a table Pin
lostsheep00715-Jun-04 23:24
lostsheep00715-Jun-04 23:24 
GeneralRe: Pulling the latest entry for ALL products BY DATE from a table Pin
Colin Angus Mackay16-Jun-04 0:14
Colin Angus Mackay16-Jun-04 0:14 
No, the GROUP BY clause will only permit you to select the fields in the GROUP BY clause itself and any field in an aggregate function.

To do what you want you would have to create some sort of subquery

SELECT * FROM my_table 
    INNER JOIN 
        (SELECT product_id, MAX(date_field) 
         FROM my_table GROUP BY product_id) 
    AS inner_table 
    ON my_table.product_id = inner_table.product_id


This will allow you to return all the fields from your table.





"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar

The Second EuroCPian Event will be in Brussels on the 4th of September

Can't manage to P/Invoke that Win32 API in .NET? Why not do interop the wiki way!

My Blog


GeneralRe: Pulling the latest entry for ALL products BY DATE from a table Pin
lostsheep00716-Jun-04 21:48
lostsheep00716-Jun-04 21:48 
GeneralEnterprise Manager problem Pin
TPN15-Jun-04 21:44
TPN15-Jun-04 21:44 
GeneralRe: Enterprise Manager problem Pin
RichardGrimmer15-Jun-04 22:15
RichardGrimmer15-Jun-04 22:15 
GeneralRe: Enterprise Manager problem Pin
fweinrebe16-Jun-04 1:59
fweinrebe16-Jun-04 1:59 
QuestionHow to set timeout for SQL server check access rights ? Pin
vgrigor115-Jun-04 21:06
vgrigor115-Jun-04 21:06 
AnswerRe: How to set timeout for SQL server check access rights ? Pin
RichardGrimmer15-Jun-04 22:16
RichardGrimmer15-Jun-04 22:16 
GeneralRe: How to set timeout for SQL server check access rights ? Pin
vgrigor116-Jun-04 1:02
vgrigor116-Jun-04 1:02 
GeneralRe: How to set timeout for SQL server check access rights ? Pin
RichardGrimmer16-Jun-04 1:50
RichardGrimmer16-Jun-04 1:50 
GeneralRe: How to set timeout for SQL server check access rights ? Pin
vgrigor116-Jun-04 4:00
vgrigor116-Jun-04 4:00 
GeneralRe: How to set timeout for SQL server check access rights ? Pin
RichardGrimmer16-Jun-04 4:08
RichardGrimmer16-Jun-04 4:08 
GeneralRe: How to set timeout for SQL server check access rights ? Pin
vgrigor116-Jun-04 5:02
vgrigor116-Jun-04 5:02 
GeneralGetting table structure out of MS-Access Pin
Member 64506715-Jun-04 19:39
Member 64506715-Jun-04 19:39 
GeneralRe: Getting table structure out of MS-Access Pin
RichardGrimmer15-Jun-04 22:21
RichardGrimmer15-Jun-04 22:21 
GeneralReturning a unique value Pin
Vicetta15-Jun-04 4:00
Vicetta15-Jun-04 4:00 
GeneralRe: Returning a unique value Pin
Mike Ellison15-Jun-04 14:18
Mike Ellison15-Jun-04 14:18 
GeneralRe: Returning a unique value Pin
Vicetta15-Jun-04 22:41
Vicetta15-Jun-04 22:41 
GeneralInserting & Updating A Row With Unique Key Pin
sanjaysagrawal15-Jun-04 2:45
sanjaysagrawal15-Jun-04 2:45 

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.