G
Guest
I saw the post from DB Girl about line numbering in a query which is almost
exacly what I want to do except the solution given isn't working for me...
What I want to get is:
VENDOR_NAME VENDOR_SITE_CODE SITEID (generated number)
Bobs Supply Charlotte 1
Bobs Supply Houston 2
Bobs Supply Phoenix 3
Jims Materials San Diego 1
Franks Raw Goods Charlotte 1
Franks Raw Goods Charlotte 2
I am querying the table that stores my “sites†and am using this as a
subquery expression:
Expr1: (SELECT COUNT(*) FROM Supplier_Site_Load 20071031 AS T WHERE
T.VENDOR_NAME = Supplier_Site_Load 20071031.VENDOR_NAME And
T.VENDOR_SITE_CODE <= Supplier_Site_Load 20071031.VENDOR_SITE_CODE)
It gives me a “Syntax error in query expression when I run it. I appreciate
any help you can provide.
Thanks,
Bob.
exacly what I want to do except the solution given isn't working for me...
What I want to get is:
VENDOR_NAME VENDOR_SITE_CODE SITEID (generated number)
Bobs Supply Charlotte 1
Bobs Supply Houston 2
Bobs Supply Phoenix 3
Jims Materials San Diego 1
Franks Raw Goods Charlotte 1
Franks Raw Goods Charlotte 2
I am querying the table that stores my “sites†and am using this as a
subquery expression:
Expr1: (SELECT COUNT(*) FROM Supplier_Site_Load 20071031 AS T WHERE
T.VENDOR_NAME = Supplier_Site_Load 20071031.VENDOR_NAME And
T.VENDOR_SITE_CODE <= Supplier_Site_Load 20071031.VENDOR_SITE_CODE)
It gives me a “Syntax error in query expression when I run it. I appreciate
any help you can provide.
Thanks,
Bob.