Site Sponsored By: SQLDSC - SQL Server Desired State Configuration
Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
Morning,I'm sure this is simple I just can't seem to make it work.I want it to say show me everyone with who withdrew from a class OR got suspended.This is what I have:
WHERE m.stu_level = 'UG' --undergraduatesAND (m.rsts_code = 'WC' --withdrawl codeOR s.shrevnt_even_code in ('N14','N15','O16','P25')) --suspension code
Thanks for any help you can provide.Laura
harsh_athalye
Master Smack Fu Yak Hacker
5581 Posts
Posted - 2007-03-30 : 08:27:18
WHERE clause seems fine to me. Post some sample data, expected output and complete query to see what's the problem.Harsh AthalyeIndia."The IMPOSSIBLE is often UNTRIED"
lauramayer
Posting Yak Master
152 Posts
Posted - 2007-03-30 : 08:49:16
Thanks for that. I found the error. You're right the where clause was correct, it was the join that was wrong.ThanksLaura