Almost a month can't get the query to work...

Help, I can't seem to get this application to work as I need to. I don't know what I'm missing but it all seems fine for me.

Here's what my control panel looks like (Simplified)
------------------------------------------------------------------------------------------ --------------------
ID | trait_a | trait_b
------------------------------------------------------------------------------------------ --------------------
1 5 6
2 2 1


Here's my table of contents (Simplified)
------------------------------------------------------------------------------------------ ---------------------
ID | label
------------------------------------------------------------------------------------------ ---------------------
1 black
2 cherry
5 Orange
6 pink

So for 1 order id, it has two traits I need to back Orange and pink. Order 2 a cherry and black for line and b. All the ways to do this, it seems to me, I always just get the point 'b' label. I can't go back to each of them. Here is my code. Thank you!

Are any other fields that you join to null in your bag_orders table? Namely:
bag_orders.order_party
bag_orders.order_consultant
bag_orders.order_hostess
bag_orders. Order_Customer
bag_orders.bag_style
bag_orders.bag_trait_a
bag_orders.bag_trait_b
?
If one of these fields, that you do a join internal are null, or do not have matching records in the tables you are joining in, the query will return no rows.

In addition, to simplify, it looks like arguments.thisParty is always going to be a simple integer. You can remove the check IN and just do an equality check:
WHERE bag_orders.order_party =

Tags: ColdFusion

Similar Questions

Maybe you are looking for