Click here to Skip to main content
15,894,250 members
Home / Discussions / Database
   

Database

 
JokeRe: Sqlserver Pin
SilimSayo2-Dec-11 9:37
SilimSayo2-Dec-11 9:37 
QuestionSQLite's FAIL ALGORITHM IN ONCONFLICT CLAUSE Pin
Member 83043881-Dec-11 20:16
Member 83043881-Dec-11 20:16 
QuestionDTC crashing SQL server on an update? Pin
devvvy1-Dec-11 18:43
devvvy1-Dec-11 18:43 
QuestionDatabase unable to return data to all clients for 10 clients or more making same call at same time. Pin
Steve Holdorf1-Dec-11 3:22
Steve Holdorf1-Dec-11 3:22 
AnswerRe: Database unable to return data to all clients for 10 clients or more making same call at same time. Pin
Shameel1-Dec-11 3:56
professionalShameel1-Dec-11 3:56 
GeneralRe: Database unable to return data to all clients for 10 clients or more making same call at same time. Pin
Steve Holdorf1-Dec-11 4:05
Steve Holdorf1-Dec-11 4:05 
AnswerRe: Database unable to return data to all clients for 10 clients or more making same call at same time. Pin
Steve Holdorf1-Dec-11 7:22
Steve Holdorf1-Dec-11 7:22 
QuestionDisplaying Objects within a Date Range Pin
Aptiva Dave30-Nov-11 5:12
Aptiva Dave30-Nov-11 5:12 
Here is my problem: I have a job posting board that displays job postings for a certain about of time. Each posting in the database has a start date and an end date. Both are datetime fields that contain the time of 00:00:00.0000. Now, when i go to display these jobs on the site I use the following query to get them:
SQL
	SELECT     TOP (10) Jobs.jobID, Job_Display.displayID, Jobs.title, Entity.entityName, Jobs.location
FROM         Entity INNER JOIN
                      Jobs ON Entity.entID = Jobs.entID INNER JOIN
                      Job_Display ON Jobs.jobID = Job_Display.jobID
WHERE     datediff(dd, getdate(), job_display.endDate) > -1 AND (Job_Display.display = 1) 
order by job_display.displayID desc


Here is there the problem is: Say a job ended today (11/30/2011) it won't show up on the site, but what is intended is that it will be on the site until 12/1/2011. What do I need to change in the where clause to fix this issue?
AnswerRe: Displaying Objects within a Date Range Pin
Chris Meech30-Nov-11 6:27
Chris Meech30-Nov-11 6:27 
AnswerRe: Displaying Objects within a Date Range Pin
jschell30-Nov-11 10:30
jschell30-Nov-11 10:30 
AnswerRe: Displaying Objects within a Date Range Pin
PIEBALDconsult30-Nov-11 14:59
mvePIEBALDconsult30-Nov-11 14:59 
AnswerRe: Displaying Objects within a Date Range Pin
Mycroft Holmes30-Nov-11 16:57
professionalMycroft Holmes30-Nov-11 16:57 
Questioncompare two SQL database Pin
jojoba201130-Nov-11 0:28
jojoba201130-Nov-11 0:28 
AnswerRe: compare two SQL database Pin
R. Giskard Reventlov30-Nov-11 0:57
R. Giskard Reventlov30-Nov-11 0:57 
AnswerRe: compare two SQL database Pin
Mycroft Holmes30-Nov-11 12:06
professionalMycroft Holmes30-Nov-11 12:06 
QuestionRe: compare two SQL database Pin
jojoba201130-Nov-11 17:55
jojoba201130-Nov-11 17:55 
QuestionLEFT OUTER JOIN not working Pin
mjackson1129-Nov-11 7:21
mjackson1129-Nov-11 7:21 
AnswerRe: LEFT OUTER JOIN not working Pin
berba29-Nov-11 7:44
berba29-Nov-11 7:44 
GeneralRe: LEFT OUTER JOIN not working Pin
Chris Meech29-Nov-11 7:50
Chris Meech29-Nov-11 7:50 
AnswerRe: LEFT OUTER JOIN not working Pin
Chris Meech29-Nov-11 7:52
Chris Meech29-Nov-11 7:52 
AnswerRe: LEFT OUTER JOIN not working - SOLVED Pin
mjackson1129-Nov-11 8:04
mjackson1129-Nov-11 8:04 
GeneralRe: LEFT OUTER JOIN not working - SOLVED Pin
i.j.russell29-Nov-11 10:32
i.j.russell29-Nov-11 10:32 
QuestionWeb Service Identity configuration error Pin
berba29-Nov-11 7:21
berba29-Nov-11 7:21 
AnswerRe: Web Service Identity configuration error Pin
coded00730-Nov-11 22:50
professionalcoded00730-Nov-11 22:50 
QuestionCertifications of SQL Pin
touseef4pk29-Nov-11 1:33
touseef4pk29-Nov-11 1:33 

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.