Click here to Skip to main content
15,899,313 members
Home / Discussions / Database
   

Database

 
JokeRe: Need a Sql query Pin
Chris Meech6-Apr-11 3:02
Chris Meech6-Apr-11 3:02 
GeneralRe: Need a Sql query Pin
Corporal Agarn6-Apr-11 6:52
professionalCorporal Agarn6-Apr-11 6:52 
GeneralRe: Need a Sql query Pin
thatraja6-Apr-11 7:58
professionalthatraja6-Apr-11 7:58 
Questioni need help plz Pin
ace3005-Apr-11 6:33
ace3005-Apr-11 6:33 
AnswerRe: i need help plz Pin
Chris Meech5-Apr-11 6:44
Chris Meech5-Apr-11 6:44 
AnswerRe: i need help plz Pin
Om Prakash Pant5-Apr-11 20:31
Om Prakash Pant5-Apr-11 20:31 
QuestionRecords with default values Pin
CodingLover5-Apr-11 0:36
CodingLover5-Apr-11 0:36 
AnswerRe: Records with default values Pin
Wendelius5-Apr-11 2:36
mentorWendelius5-Apr-11 2:36 
Hi,

Perhaps the easiest way could be that you create a new table, for example SingleDate and add all necessary dates to that table. After that, using outer join, join the data between the date table and your table. So something like:
SELECT ...
FROM SingleDate d LEFT OUTER JOIN Packages p
     ON d.Date = p.Add_Date
GROUP BY d.Date

The need to optimize rises from a bad design.My articles[^]

QuestionRe: Records with default values Pin
CodingLover5-Apr-11 17:48
CodingLover5-Apr-11 17:48 
AnswerRe: Records with default values Pin
Wendelius5-Apr-11 17:59
mentorWendelius5-Apr-11 17:59 
NewsRe: Records with default values Pin
CodingLover5-Apr-11 18:40
CodingLover5-Apr-11 18:40 
AnswerRe: Records with default values Pin
Wendelius5-Apr-11 18:46
mentorWendelius5-Apr-11 18:46 
GeneralRe: Records with default values Pin
CodingLover5-Apr-11 18:55
CodingLover5-Apr-11 18:55 
GeneralRe: Records with default values Pin
Wendelius5-Apr-11 19:04
mentorWendelius5-Apr-11 19:04 
GeneralRe: Records with default values Pin
CodingLover5-Apr-11 22:14
CodingLover5-Apr-11 22:14 
AnswerRe: Records with default values Pin
Shameel5-Apr-11 5:22
professionalShameel5-Apr-11 5:22 
GeneralRe: Records with default values Pin
CodingLover5-Apr-11 17:53
CodingLover5-Apr-11 17:53 
AnswerRe: Records with default values Pin
jschell6-Apr-11 8:30
jschell6-Apr-11 8:30 
AnswerRe: Records with default values Pin
SilimSayo4-May-11 10:30
SilimSayo4-May-11 10:30 
QuestionRealtime Backups Pin
Lasanthapw4-Apr-11 20:14
Lasanthapw4-Apr-11 20:14 
AnswerRe: Realtime Backups Pin
Wendelius4-Apr-11 20:50
mentorWendelius4-Apr-11 20:50 
AnswerRe: Realtime Backups Pin
Mycroft Holmes4-Apr-11 22:21
professionalMycroft Holmes4-Apr-11 22:21 
GeneralRe: Realtime Backups Pin
Wendelius5-Apr-11 6:03
mentorWendelius5-Apr-11 6:03 
QuestionSchema ideas Pin
Super Lloyd4-Apr-11 17:58
Super Lloyd4-Apr-11 17:58 
AnswerRe: Schema ideas Pin
Wendelius4-Apr-11 18:50
mentorWendelius4-Apr-11 18:50 

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.