Click here to Skip to main content
15,904,934 members
Home / Discussions / Database
   

Database

 
AnswerRe: Decrypt Stored Procedure Pin
Pranay Rana27-Jan-10 22:03
professionalPranay Rana27-Jan-10 22:03 
QuestionUrgent : "There is not enough memeory to run this program" error in Business Objects XI R2 Pin
CodalcoholicNBrainy27-Jan-10 20:10
CodalcoholicNBrainy27-Jan-10 20:10 
AnswerRe: Urgent : "There is not enough memeory to run this program" error in Business Objects XI R2 Pin
Tim Carmichael28-Jan-10 4:44
Tim Carmichael28-Jan-10 4:44 
QuestionHandling SQL Server Multi User Pin
Kevin Marois27-Jan-10 6:32
professionalKevin Marois27-Jan-10 6:32 
AnswerRe: Handling SQL Server Multi User Pin
Mycroft Holmes27-Jan-10 14:00
professionalMycroft Holmes27-Jan-10 14:00 
QuestionHow to script jobs Pin
cdpace27-Jan-10 2:08
cdpace27-Jan-10 2:08 
AnswerRe: How to script jobs Pin
WoutL27-Jan-10 3:19
WoutL27-Jan-10 3:19 
QuestionQuery to find Unique Records Pin
sjs4u26-Jan-10 22:15
sjs4u26-Jan-10 22:15 
Hi,

I am having 3 tables A,B,C

table A:-

AID date
23 01/25/2010
24 01/25/2010


table B:

BID AID FileName date

1 23 1.doc 01/25/2010 1.00 AM

2 23 2.doc 01/25/2010 1.05 AM

3 23 3.doc 01/25/2010 1.06 AM

4 24 4.doc 01/25/2010 2.00 AM

5 24 5.doc 01/25/2010 2.01 AM



table 3

BID Status
1 E

2 M

3 P

4 P

5 P



Now I want Query that I want Unique number of records whos status is 'P' that is only Last file whos status is 'P'

Means I want the following output


AID FileName date status

23 3.doc 01/25/2010 1.06 AM P

24 5.doc 01/25/2010 2.01 AM P




Thanks
AnswerRe: Query to find Unique Records Pin
Pranay Rana26-Jan-10 22:55
professionalPranay Rana26-Jan-10 22:55 
GeneralRe: Query to find Unique Records Pin
sjs4u26-Jan-10 23:13
sjs4u26-Jan-10 23:13 
GeneralRe: Query to find Unique Records Pin
Pranay Rana27-Jan-10 18:15
professionalPranay Rana27-Jan-10 18:15 
QuestionSQL Query to update col_1 with col_2 value Pin
xcavin26-Jan-10 9:27
xcavin26-Jan-10 9:27 
AnswerRe: SQL Query to update col_1 with col_2 value Pin
xcavin26-Jan-10 10:07
xcavin26-Jan-10 10:07 
QuestionUpdatoing .NET Framework version Pin
Kaikus25-Jan-10 22:14
Kaikus25-Jan-10 22:14 
AnswerRe: Updatoing .NET Framework version Pin
David Skelly25-Jan-10 22:25
David Skelly25-Jan-10 22:25 
AnswerRe: Updatoing .NET Framework version Pin
Luc Pattyn26-Jan-10 1:25
sitebuilderLuc Pattyn26-Jan-10 1:25 
Questioncalculate age in stored procedure Pin
Jassim Rahma25-Jan-10 11:46
Jassim Rahma25-Jan-10 11:46 
AnswerRe: calculate age in stored procedure Pin
Mycroft Holmes25-Jan-10 12:10
professionalMycroft Holmes25-Jan-10 12:10 
AnswerRe: calculate age in stored procedure Pin
Pranay Rana25-Jan-10 20:07
professionalPranay Rana25-Jan-10 20:07 
AnswerRe: calculate age in stored procedure Pin
Pranay Rana25-Jan-10 20:24
professionalPranay Rana25-Jan-10 20:24 
QuestionSQL Server Unique/NonUnique Key Pin
Dirso25-Jan-10 1:04
Dirso25-Jan-10 1:04 
AnswerRe: SQL Server Unique/NonUnique Key Pin
Mycroft Holmes25-Jan-10 12:06
professionalMycroft Holmes25-Jan-10 12:06 
AnswerRe: SQL Server Unique/NonUnique Key Pin
David Skelly25-Jan-10 22:38
David Skelly25-Jan-10 22:38 
AnswerRe: SQL Server Unique/NonUnique Key Pin
Dirso27-Jan-10 6:59
Dirso27-Jan-10 6:59 
QuestionSQL Server 2000 connectivity issue [fixed] Pin
SarahMcM24-Jan-10 18:56
SarahMcM24-Jan-10 18:56 

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.