
November 28th, 2012, 02:49 PM
|
|
Registered User
|
|
Join Date: Nov 2012
Posts: 3
Time spent in forums: 1 h 11 m 24 sec
Reputation Power: 0
|
|
|
Query runs out of Memory
Hi I am running the following query:
SELECT
route_list_sb032206."Route_ID",
route_list_sb032206."StartDate",
route_list_sb032206."EndDate",
route_list_sb032206."Carrier_ID",
route_list_sb032206."SB_Carrier_Name",
route_list_032206."Date",
route_list_032206."Route_ID",
route_list_032206."Carrier_ID",
route_list_032206."Carrier_Name",
route_list_032206."Occupant_Addr",
route_list_032206."Occupant_City",
route_list_032206."State",
route_list_032206."Zip"
FROM
public."route_list_sb032206", public."route_list_032206"
Where route_list_sb032206."Route_ID" != route_list_032206."Route_ID"
and getting the following error:
out of memory for query result
********** Error **********
I know I am running this wrong so let me look to those smarter than I.
What I am trying to accomplish is that the Route_ID columns on both tables contain the same data but one table has 4 more IDs (rows) than the other column and 50 that are different (not in both) when I run an looking for matches - Inner Join (that query runs fine) . I am trying to get a result set of what those different route ID's are.
Any help would be most appreciated.
Sean
|