R
ryan.fitzpatrick3
OK I'm going to try an explain this to the best of my ability. I have
a query where I pull vendor numbers with sub vendor numbers. My report
that runs the query would look like this.
state vendnum vend desc sub vend
CA 000011 Vendor1
1234
1264
5874
state total 3
NV 000011 Vendor1
6548
state total 1
TN 000011 Vendor1
3456
1789
state total 2
There are states that have vendors and each vendor can have from 0-?
amount of sub vendors. I have a report that runs this query. I have a
count in the report that counts how many sub vendors per each vendor
per each state. That works good. The vendors that only have 1 sub
vendor though in the report I do not want to show up. So i would like
for it to look like this instead
state vendnum vend desc sub vend
CA 000011 Vendor1
1234
1264
5874
state total 3
TN 000011 Vendor1
3456
1789
state total 2
The vendors with one sub vendor are not on the report anymore. This
make sense? Now my question is how do I do this. I don't know how to
get rid of that vendors that have one sub vendor per state. If it's in
the query where do I do so.
Here is SQL:
SELECT Qrywimssum.DST_CNTR, Qrywimssum.VEND_NUM,
Qrywimssum.WIMS_SUB_VEND, Qrywimssum.SUB_VEND_DESC,
Qrywimssum.SHIPPING_POINT, Qrywimssum.LAST_FM_DATE
FROM Qrywimssum
GROUP BY Qrywimssum.DST_CNTR, Qrywimssum.VEND_NUM,
Qrywimssum.WIMS_SUB_VEND, Qrywimssum.SUB_VEND_DESC,
Qrywimssum.SHIPPING_POINT, Qrywimssum.LAST_FM_DATE
HAVING (((Qrywimssum.WIMS_SUB_VEND)>"1"))
ORDER BY Qrywimssum.VEND_NUM, Qrywimssum.WIMS_SUB_VEND DESC;
DST_CNTR is State
VEND_NUM is Vendor Number
WIMS_SUB is the sub vendor
If you're going to ask whats the >1 is for on the wims_sub, this
brings all sub vendor ID's greater than 1, because the sub vend
numbers in our system that are not used have a 0 in it, so this brings
in active numbers. It might not be the best way right now.
Any help.
ryan
a query where I pull vendor numbers with sub vendor numbers. My report
that runs the query would look like this.
state vendnum vend desc sub vend
CA 000011 Vendor1
1234
1264
5874
state total 3
NV 000011 Vendor1
6548
state total 1
TN 000011 Vendor1
3456
1789
state total 2
There are states that have vendors and each vendor can have from 0-?
amount of sub vendors. I have a report that runs this query. I have a
count in the report that counts how many sub vendors per each vendor
per each state. That works good. The vendors that only have 1 sub
vendor though in the report I do not want to show up. So i would like
for it to look like this instead
state vendnum vend desc sub vend
CA 000011 Vendor1
1234
1264
5874
state total 3
TN 000011 Vendor1
3456
1789
state total 2
The vendors with one sub vendor are not on the report anymore. This
make sense? Now my question is how do I do this. I don't know how to
get rid of that vendors that have one sub vendor per state. If it's in
the query where do I do so.
Here is SQL:
SELECT Qrywimssum.DST_CNTR, Qrywimssum.VEND_NUM,
Qrywimssum.WIMS_SUB_VEND, Qrywimssum.SUB_VEND_DESC,
Qrywimssum.SHIPPING_POINT, Qrywimssum.LAST_FM_DATE
FROM Qrywimssum
GROUP BY Qrywimssum.DST_CNTR, Qrywimssum.VEND_NUM,
Qrywimssum.WIMS_SUB_VEND, Qrywimssum.SUB_VEND_DESC,
Qrywimssum.SHIPPING_POINT, Qrywimssum.LAST_FM_DATE
HAVING (((Qrywimssum.WIMS_SUB_VEND)>"1"))
ORDER BY Qrywimssum.VEND_NUM, Qrywimssum.WIMS_SUB_VEND DESC;
DST_CNTR is State
VEND_NUM is Vendor Number
WIMS_SUB is the sub vendor
If you're going to ask whats the >1 is for on the wims_sub, this
brings all sub vendor ID's greater than 1, because the sub vend
numbers in our system that are not used have a 0 in it, so this brings
in active numbers. It might not be the best way right now.
Any help.
ryan