Click here to Skip to main content
15,891,943 members
Home / Discussions / Database
   

Database

 
GeneralRe: Local ADO.NET Performance Issue Pin
I don't want a display name11-Jun-08 3:05
I don't want a display name11-Jun-08 3:05 
GeneralRe: Local ADO.NET Performance Issue Pin
Mycroft Holmes11-Jun-08 14:05
professionalMycroft Holmes11-Jun-08 14:05 
NewsSQL Server 2008 Release Candidate Available to Public Pin
brucedkyle10-Jun-08 6:00
brucedkyle10-Jun-08 6:00 
QuestionRecover Oracle Connection in a Windows Service. Pin
jamorey10-Jun-08 4:21
jamorey10-Jun-08 4:21 
AnswerRe: Recover Oracle Connection in a Windows Service. Pin
Mycroft Holmes10-Jun-08 16:26
professionalMycroft Holmes10-Jun-08 16:26 
QuestionDate Between Problem Pin
Babu.R.K10-Jun-08 3:48
Babu.R.K10-Jun-08 3:48 
AnswerRe: Date Between Problem Pin
Ashfield10-Jun-08 3:59
Ashfield10-Jun-08 3:59 
AnswerRe: Date Between Problem Pin
Kjetil Svendsen11-Jun-08 3:15
Kjetil Svendsen11-Jun-08 3:15 
Hi
Do you want the output to be only the StarRate witch has all the dates in the date interval?

Try

SELECT StarRate, date FROM BasicSearch WHERE date BETWEEN '2008-06-03' AND '2008-06-05'
AND StarRate in (
    SELECT StarRate FROM BasicSearch WHERE date BETWEEN '2008-06-03' AND '2008-06-05'
    GROUP BY StarRate 
    HAVING Count(*) = DATEDIFF("D", '2008-06-03', '2008-06-05') + 1)


This should work if it's uniqueness on StarRate and date

Kjetil
GeneralRe: Date Between Problem Pin
Ashfield11-Jun-08 5:01
Ashfield11-Jun-08 5:01 
AnswerRe: Date Between Problem Pin
Niraj_Silver26-Jun-08 1:10
Niraj_Silver26-Jun-08 1:10 
QuestionCan't read some cells in Excel [modified] Pin
gaby1192310-Jun-08 3:28
gaby1192310-Jun-08 3:28 
AnswerRe: Can't read some cells in Excel Pin
gaby119232-Jul-08 8:05
gaby119232-Jul-08 8:05 
Questionregistering a ".mdf" file in desktop engine Pin
asdf175310-Jun-08 3:05
asdf175310-Jun-08 3:05 
Questionproblem with output parameter Pin
Mr.Kode9-Jun-08 23:54
Mr.Kode9-Jun-08 23:54 
AnswerRe: problem with output parameter Pin
Mike Dimmick10-Jun-08 0:29
Mike Dimmick10-Jun-08 0:29 
GeneralRe: problem with output parameter Pin
Mr.Kode10-Jun-08 0:53
Mr.Kode10-Jun-08 0:53 
GeneralRe: problem with output parameter Pin
Ashfield10-Jun-08 1:34
Ashfield10-Jun-08 1:34 
QuestionSQL Server Management Studios Icon is gone ? Pin
Syed Kamran ul Haq9-Jun-08 21:56
Syed Kamran ul Haq9-Jun-08 21:56 
AnswerRe: SQL Server Management Studios Icon is gone ? Pin
Ashfield10-Jun-08 1:50
Ashfield10-Jun-08 1:50 
QuestionReporting Services - Reports Pin
john349-Jun-08 6:38
john349-Jun-08 6:38 
AnswerRe: Reporting Services - Reports Pin
DerekFL9-Jun-08 6:52
DerekFL9-Jun-08 6:52 
GeneralRe: Reporting Services - Reports Pin
john349-Jun-08 22:36
john349-Jun-08 22:36 
GeneralRe: Reporting Services - Reports Pin
john3410-Jun-08 1:07
john3410-Jun-08 1:07 
QuestionFormatting XML in SQL 2005 to include version Pin
DerekFL9-Jun-08 6:23
DerekFL9-Jun-08 6:23 
QuestionThe Top n Keyword [modified] Pin
Behzad Ordubadi9-Jun-08 5:02
professionalBehzad Ordubadi9-Jun-08 5:02 

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.