Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Whats wrong with my Inner Join 2

Status
Not open for further replies.
Mar 17, 2005
147
US
SELECT aid, articletitle, shortdescrp, eventdate, datenow
FROM articles
INNERT JOIN comments
ON articles.aid = comments.aid
ORDER BY articles.datenow DESC

It keeps telling me syntax error in from clause?

Much appreciated.
Steve
 
you have written 'innert' rather than inner.
If that's just in the post and not the syntax let us know.
 
After fixing the INNERT issue, you will likely get another error. You are selecting a field named 'aid'. This field appears in both tables, so SQL Server will not know which field you really want. You will need to specify the table name.

Ex...

Select Articles.aid, .....


-George

Strong and bitter words indicate a weak cause. - Fortune cookie wisdom
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top