G
Guest
Hi all
From the STORES table, I need to select a set of 3 stores, then put them
into the
"SETS" table on 1 line, as store 1, store2, store3.
I've done this as an append query with 3 instances of STORES - STORES as E1,
STORES as E2, STORES as E3 and then SELECT E1.STORE as STORE1, E2.STORE AS
STORE2, E3.STORE AS STORE3.
Is there any way to only have one instance of STORES, select the set of 3
and then append them into SETS ?
Something like - SELECT record#1.STORE as STORE1,
record#2.STORE as STORE2,
record#3.STORE as STORE3
FROM ( SELECT TOP 3 STORE 3 STORE FROM STORES
I won't include all the conditions here)
Any suggestions would be appreciated.
Thanks,
Mike
From the STORES table, I need to select a set of 3 stores, then put them
into the
"SETS" table on 1 line, as store 1, store2, store3.
I've done this as an append query with 3 instances of STORES - STORES as E1,
STORES as E2, STORES as E3 and then SELECT E1.STORE as STORE1, E2.STORE AS
STORE2, E3.STORE AS STORE3.
Is there any way to only have one instance of STORES, select the set of 3
and then append them into SETS ?
Something like - SELECT record#1.STORE as STORE1,
record#2.STORE as STORE2,
record#3.STORE as STORE3
FROM ( SELECT TOP 3 STORE 3 STORE FROM STORES
I won't include all the conditions here)
Any suggestions would be appreciated.
Thanks,
Mike