Mulitple Selects

10 pts.
Tags:
Query Design
Trying to isolate specific entries from a table based on Production Code: (Select (P.EntryDate) From Production P Full JOIN ProductionJobNumber PJ on P.Code = PJ.ProductionCode Where P.ProcessCode = 1080 and PJ.JobNumber = OH.JobNumber) as OkToPlate, (Select (P.EntryDate) From Production P FULL JOIN ProductionJobNumber PJ on P.Code = PJ.ProductionCode Where P.ProcessCode = 100 and PJ.JobNumber = OH.JobNumber) as DoneRack, (Select (P.EntryDate) From Production P FULL JOIN ProductionJobNumber PJ on P.Code = PJ.ProductionCode Where P.ProcessCode = 1010 and PJ.JobNumber = OH.JobNumber) as JobStart Getting inconsistent results This is for history of job. Would like this to be in row to export to Excel for end users. Without MIN or MAX

Software/Hardware used:
MS SQL 2005

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • carlosdl
    What exactly do you mean by "inconsistent results" ?You might want to post some example data, along with the results you would want to get from that data, to make sure everybody understands what you are trying to accomplish.Keep in mind that we don't know your table's structure. The more details you provide, the more chances to get useful responses.
    70,220 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following