I have a huge SELECT[/red] statement where many tables are being referenced. Without going into details, my SELECT[/red] statement utilizes TOP 100[/red] for efficiency.
What I have noticed is, probably due to my usage of many types of joins (FULL, INNER, OUTER), that multiple copies of certain IDs are coming up.
I tried implementing SELECT TOP 100 DISTINCT myID[/red] but I receive an error regarding text near the word DISTINCT.
Do I need to show more of my code or the relationships via my tables?
Your assistance will be greatly appreciated.
What I have noticed is, probably due to my usage of many types of joins (FULL, INNER, OUTER), that multiple copies of certain IDs are coming up.
I tried implementing SELECT TOP 100 DISTINCT myID[/red] but I receive an error regarding text near the word DISTINCT.
Do I need to show more of my code or the relationships via my tables?
Your assistance will be greatly appreciated.