0

There's an error in join syntax. And I can't find it at all.

<asp:AccessDataSource ID="fav_data" runat="server" DataFile="~/paperhome_data.accdb"
                                SelectCommand="INNER JOIN (SELECT * FROM [music_data] [music_junc] ON [music_d_id].[music_data]=[music_d_id].[music_junc]) WHERE ([profile_id] = 2)"></asp:AccessDataSource>
                            <SelectParameters>
                        <asp:Parameter DefaultValue="2" Name="profile_id" Type="Boolean" />
                    </SelectParameters>
0

1 Answer 1

2

It's not easy to guess what you are trying to, but it could be something like this:

"SELECT * FROM [music_data] INNER JOIN [music_junc] ON [music_data].[music_d_id]=[music_junc].[music_d_id]) WHERE ([profile_id] = 2)"

It seems as you really need to read up on SQL syntax. You will get nowhere trying to write SQL in the wild.

Sign up to request clarification or add additional context in comments.

3 Comments

That did it, had to add an opening bracket after FROM. :)
Oops, sorry, but try to remove the closing bracket instead.
Works both ways. Interesting. :/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.