What's new
Carbonite

South Africa's Top Online Tech Classifieds!
Register a free account today to become a member! (No Under 18's)
Home of C.U.D.

SQL Query

ArriBen

Epic Member
Rating - 100%
10   0   0
Joined
Sep 18, 2015
Messages
1,064
Reaction score
174
Points
3,485
Morning,
Wondering if someone can help me here, I am not a SQL developer and am learning as I go.
I wrote a query which appears to be working, however it also appears to be looping itself as shown in the screenshot.
I suspect this has something to do with the join I am using for the order recipe as it works fine if I take it out.

The recipe is on a different table to the orders one and am struggling to understand where I am going wrong - I know that you need need to have a common field between 2 tables to create a join, so where am I going wrong?

Thanks!
 

Attachments

  • SQL.png
    SQL.png
    57.7 KB · Views: 45
Could you perhaps post the setup of each table - i.e. the fields, also showing their primary/foreign keys?

Like this:

1547877314120.png
 
Thanks for the replies, I have spoken to one of our SQL staff who will help me later.
Hope you understand but I don't want to post too many shots of work related stuff due to confidentiality etc.
 

Users who are viewing this thread

Back
Top Bottom