Click here to Skip to main content
15,906,626 members
Home / Discussions / Database
   

Database

 
AnswerRe: Conditional Sum in SQL Query Pin
Niladri_Biswas20-Feb-10 18:15
Niladri_Biswas20-Feb-10 18:15 
QuestionList products sold to buyers Pin
freshonlineMax17-Feb-10 17:29
freshonlineMax17-Feb-10 17:29 
AnswerRe: List products sold to buyers Pin
_Damian S_17-Feb-10 17:32
professional_Damian S_17-Feb-10 17:32 
GeneralRe: List products sold to buyers Pin
freshonlineMax18-Feb-10 9:38
freshonlineMax18-Feb-10 9:38 
GeneralRe: List products sold to buyers Pin
_Damian S_18-Feb-10 11:59
professional_Damian S_18-Feb-10 11:59 
GeneralRe: List products sold to buyers without repeating buyers name Pin
freshonlineMax18-Feb-10 19:11
freshonlineMax18-Feb-10 19:11 
Questionsql statement to find missing records Pin
johnnysmith117-Feb-10 16:25
johnnysmith117-Feb-10 16:25 
AnswerRe: sql statement to find missing records Pin
_Damian S_17-Feb-10 17:29
professional_Damian S_17-Feb-10 17:29 
Because it's a single table, you are a little restricted in how you can do this...

One way is to use the following:

SELECT ID
FROM Table1
WHERE ID not in(
SELECT ID
FROM Table1
WHERE ((Table1.Date)=[Enter Date]
GROUP BY ID
HAVING COUNT(name)>1
)

Naturally this assumes that your existing query is returning the details you are after... Note also that your original query is only returning duplicates... If you want to return records where there is a single entry, your original query needs:

HAVING COUNT(name) >= 1
GeneralRe: sql statement to find missing records Pin
johnnysmith117-Feb-10 21:11
johnnysmith117-Feb-10 21:11 
GeneralGrouping Related Stored Procedures Pin
AspDotNetDev17-Feb-10 12:55
protectorAspDotNetDev17-Feb-10 12:55 
GeneralRe: Grouping Related Stored Procedures Pin
Not Active17-Feb-10 14:22
mentorNot Active17-Feb-10 14:22 
GeneralRe: Grouping Related Stored Procedures Pin
AspDotNetDev17-Feb-10 16:22
protectorAspDotNetDev17-Feb-10 16:22 
GeneralRe: Grouping Related Stored Procedures Pin
Mycroft Holmes17-Feb-10 17:08
professionalMycroft Holmes17-Feb-10 17:08 
Questionopen database Pin
mhh11217-Feb-10 11:26
mhh11217-Feb-10 11:26 
AnswerRe: open database Pin
Not Active17-Feb-10 11:53
mentorNot Active17-Feb-10 11:53 
GeneralRe: open database Pin
mhh1125-Mar-10 9:38
mhh1125-Mar-10 9:38 
GeneralRe: open database Pin
Not Active5-Mar-10 9:55
mentorNot Active5-Mar-10 9:55 
AnswerRe: open database Pin
Ashfield17-Feb-10 21:48
Ashfield17-Feb-10 21:48 
QuestionDate format in ACCESS database Pin
Johnkokk16-Feb-10 23:55
Johnkokk16-Feb-10 23:55 
AnswerRe: Date format in ACCESS database Pin
Eddy Vluggen17-Feb-10 0:13
professionalEddy Vluggen17-Feb-10 0:13 
GeneralRe: Date format in ACCESS database Pin
Luc Pattyn17-Feb-10 0:32
sitebuilderLuc Pattyn17-Feb-10 0:32 
GeneralRe: Date format in ACCESS database Pin
Eddy Vluggen17-Feb-10 0:52
professionalEddy Vluggen17-Feb-10 0:52 
GeneralRe: Date format in ACCESS database Pin
Luc Pattyn17-Feb-10 1:00
sitebuilderLuc Pattyn17-Feb-10 1:00 
GeneralRe: Date format in ACCESS database Pin
Johnkokk17-Feb-10 0:33
Johnkokk17-Feb-10 0:33 
AnswerRe: Date format in ACCESS database Pin
thatraja17-Feb-10 0:15
professionalthatraja17-Feb-10 0:15 

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.