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.

 All Forums
 SQL Server 2005 Forums
 Transact-SQL (2005)
 About joins, views and subqueries?

Author  Topic 

samsun125
Yak Posting Veteran

63 Posts

Posted - 2008-12-08 : 02:47:52
Hi all ,

In my application if i want company details means i am using innerjoin to join 3 tables ,but in real time using joins and views performance issue will come. can u please tell me otherthan joins and view which one is good
I don't want to common column for both tables?

ex:tableA tableB tableC
rowid companyid countryid
companyid companyname countryname
countryid

if i want country wise companyid and companyname means i am getting the details using joins, what i want to do is i want to eliminate joins and views.

visakh16
Very Important crosS Applying yaK Herder

52326 Posts

Posted - 2008-12-08 : 03:11:34
As long as you've proper indexes, i dont think joins will cause too much of performance issue. If you want to megre deatils from different tables in your resultset, you need to join them with approprite fields.
Go to Top of Page

spirit1
Cybernetic Yak Master

11752 Posts

Posted - 2008-12-08 : 04:03:04
moved from script library.

___________________________________________________________________________
Causing trouble since 1980
Blog: http://weblogs.sqlteam.com/mladenp
Speed up SSMS development: www.ssmstoolspack.com <- version 1.1 out!
Go to Top of Page
   

- Advertisement -