Creating Temp Tables in an excel query

goofy78270

Well-known Member
Joined
May 16, 2007
Messages
555
I use the built in query functions to pull info from the database and was wondering if it was possible to create and populate a temp table within the query or if this would have to be done via an ODBC connection or such.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
L

Legacy 98055

Guest
What do you mean by a "temp table". Are changes made to this table ultimately going to be reflected in the database? I have seen this post several times and am not surprised that there have been no replies. Please explain clearly... :)
 
Upvote 0

goofy78270

Well-known Member
Joined
May 16, 2007
Messages
555
I am looking to create two temp tables - both pull in values from a codeset table - 1 temp table is for all references with Codeset ID 11 and the other is for all references with Codeset ID 24. Within these two temp tables, I am exctracting the Code Num and Description for all references under the appropriate Codeset ID.

Ex

Codesets
1 10 a
1 20 b
1 30 c
11 19 test
11 20 test2
11 21 test3
24 19 apple
24 20 orange
24 21 banana

Temp Table 1 (codeset 11)
19 test
20 test2
21 test3

Temp Table 2 (codeset 24)
19 apple
20 orange
21 banana

based on my knowledge of SQL, I have to create these temp tables to pull back descritpions for each reference to codeset 11 and 24 that are stored in a single table.

ie - product, productID, codeset11, codeset24, price, datein, dateout
 
Upvote 0
L

Legacy 98055

Guest
Hi Goofy. I still so not understand. The only time, that I know of, to create anything temporal as far as updating a database is concerned, is when I have used disconnected recordsets. It seems to me, that you are simply wishing to return the results of a query...
 
Upvote 0

goofy78270

Well-known Member
Joined
May 16, 2007
Messages
555
Yes, but I cannot, or do not know how, to return multiple lookups from one table without dividing that table into temp tables.
 
Upvote 0

Forum statistics

Threads
1,191,671
Messages
5,987,958
Members
440,122
Latest member
branhill

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top