Original Post
Basically I'm trying to grab 2 fields from one table and 1 field from another, we will call them Table1.Field1, Table1.Field2, and Table2.Field1..(so i can explain it a bit better) and I'm supplied with the Primary key of Table2, and the Foreign Key of Table1 (same value) here is what I have now
SELECT Table1.Field1, Table1.Field2, Table2.Field1 FROM Table2 INNER JOIN Table1
ON Table2.PrimaryKey = Table1.ForeignKey WHERE Table2.PrimaryKey = " + myVariable
Is that how the query should be done? and is that as fast I can make it? I'm asking because I have a page that is taking a while to load sometimes, I don't know if it's this query or another one...I ask about this one because I'm not sure how well INNER JOIN works..Should I be using that at all? Thanks ArchG