Click here to Skip to main content
12,628,277 members (35,413 online)
Click here to Skip to main content
Articles » Database » Database » General » Revisions

Tagged as

Stats

12.4K views
1 bookmarked
Posted

Best Practices to tune up T-SQL and SP

, 2 Mar 2012 CPOL
I can't imagine that a correlated subquery is your best answer here:SELECT name FROM teacher WHERE EXISTS (SELECT 1 FROM student WHERE teacher.teacher_id = student.teacher_id)Instead, how about an INNER JOIN?SELECT DISTINCT teacher.nameFROM teacher INNER JOIN student ...

Revisions


  

Compare Revision Minor Date Status Editor
1 - publicly available No 2-Mar-12 7:04 Available Sean Ewington

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Drew Rhoades
Technical Lead PDI
United States United States
No Biography provided

You may also be interested in...

Pro
| Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.161205.3 | Last Updated 2 Mar 2012
Article Copyright 2012 by Drew Rhoades
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid