Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 General SQL Server Forums
 Database Design and Application Architecture
 Select latest record from each category

Author  Topic 

jmicheal
Starting Member

1 Post

Posted - 2008-07-02 : 16:23:17

I'm using a SQL database for news. What I'm trying to do is display the latest headlines record(only 1) from each category. The database table is News and has news_ID, News_Cat, News_Title fields. There is also a Category Table called NewsCat with Cat_ID, Cat_Name fields in it. For some reason I just have a brain fart and cannot get this to just display only the latest record for each category. On a scale from 1 to 10 I'm maybe a 5-6 in SQL. Any help would be appreciated I'm going insane !?#**

madhivanan
Premature Yak Congratulator

22864 Posts

Posted - 2008-07-02 : 16:40:33
What is the relation between the two tables?

Madhivanan

Failing to plan is Planning to fail
Go to Top of Page
   

- Advertisement -