Hello,
I have a table that has multiple common fields for example size, size2, size3, etc.
I am trying to get only 3 fields with a union table but get an error
here is the sql code I am using
I have a table that has multiple common fields for example size, size2, size3, etc.
I am trying to get only 3 fields with a union table but get an error
here is the sql code I am using
Code:
SELECT DAVLOGIC_TAPOPS.SIZE, DAVLOGIC_TAPOPS.QTY, DAVLOGIC_TAPOPS.TOOLS_REQ
FROM DAVLOGIC_TAPOPS
UNION ALL
SELECT DAVLOGIC_TAPOPS_1.SIZE2, DAVLOGIC_TAPOPS_1.QTY2, DAVLOGIC_TAPOPS_1.TOOLSREQ2
DAVLOGIC_TAPOPS AS DAVLOGIC_TAPOPS_1
UNION ALL
SELECT DAVLOGIC_TAPOPS_2.SIZE3, DAVLOGIC_TAPOPS_2.QTY3, DAVLOGIC_TAPOPS_2.TOOLS_REQ3
DAVLOGIC_TAPOPS AS DAVLOGIC_TAPOPS_2
UNION ALL
SELECT DAVLOGIC_TAPOPS_3.SIZE4, DAVLOGIC_TAPOPS_3.QTY4, DAVLOGIC_TAPOPS_3.TOOLS_REQ4
DAVLOGIC_TAPOPS AS DAVLOGIC_TAPOPS_3
UNION ALL
SELECT DAVLOGIC_TAPOPS_4.SIZE5, DAVLOGIC_TAPOPS_4.QTY5, DAVLOGIC_TAPOPS_4.TOOLS_REQ5
DAVLOGIC_TAPOPS AS DAVLOGIC_TAPOPS_4
UNION ALL
SELECT DAVLOGIC_TAPOPS_5.SIZE6, DAVLOGIC_TAPOPS_5.QTY6, DAVLOGIC_TAPOPS_5.TOOLS_REQ6
DAVLOGIC_TAPOPS AS DAVLOGIC_TAPOPS_5
UNION ALL
SELECT DAVLOGIC_TAPOPS_6.SIZE7, DAVLOGIC_TAPOPS_6.QTY7, DAVLOGIC_TAPOPS_6.TOOLS_REQ7
DAVLOGIC_TAPOPS AS DAVLOGIC_TAPOPS_6