troubleshooting Question

SQL Statement Help

Avatar of MariusGM
MariusGM asked on
MySQL ServerWeb ApplicationsSQL
12 Comments2 Solutions225 ViewsLast Modified:
Hi All,

I require a statement that will indidcate whether a record is 'high' given a variable stored in another table.

sample ( sample_ID {pk}, job_ID{fk} )
result ( result_ID{pk}, sample_ID{fk}, job_ID{fk}, test_ID{fk}, result_value)
test ( test_ID{pk}, test_name, test_high )

'test_high' stores the high variable for any given 'test_ID' which would need to be checked against the 'result_value' in result.

DB is MySQL. Statement intended to be used in online PHP application.

Hope this makes sense, on standby to clarify. Any help much appreciated. M.

Daniel Wilson

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 2 Answers and 12 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 2 Answers and 12 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros