Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5837847
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T11:24:18+00:00 2026-05-22T11:24:18+00:00

I have two tables. One is called prem and contains all ids that exist

  • 0

I have two tables. One is called prem and contains all ids that exist in a system, and JimsQueryByColl which has most of those ids with various information attached. I am trying to create a single query that will include all of the ids from prem, and all of the records from the JimsQueryByColl where JimsQueryByColl.Collector = “Frederick Road”. The current query I have is as follows but only gives the latter part of the information (without the ids from the prem that don’t appear in a list of ids with Frederick Road in the collector collumn):

SELECT Prem.meter_miu_id,
JimsQueryByColl.*, Prem.longitude,
Prem.latitude
FROM Prem LEFT JOIN
JimsQueryByColl ON Prem.meter_miu_id =
JimsQueryByColl.[MIU ID]
WHERE
(((JimsQueryByColl.Collector)=”Frederick
Road”))

Normally the Left Join would have achieved what i desire but the where statement is making it where the ids that would have blank information for all but the *Prem.meter_miu_id* field are not included. I have tried to add an “or JimsQueryByColl.Collector IS NULL” to the WHERE statement but that didn’t get the correct result.

The current two query method I have for getting the right information are titled FredrickRoad and Query3:

FredrickRoad-

SELECT JimsQueryByColl.* FROM
JimsQueryByColl WHERE
(((JimsQueryByColl.Collector)=”Frederick
Road”))

Followed by Query3 –

SELECT Prem.meter_miu_id,
JimsQueryByColl.*, Prem.longitude,
Prem.latitude FROM Prem LEFT JOIN
JimsQueryByColl ON Prem.meter_miu_id =
JimsQueryByColl.[MIU ID] WHERE
(((JimsQueryByColl.Collector)=”Frederick
Road”));

But I would like to do this in one step if possible. I hope I have written this clearly and if someone needs clarification just ask.

Current Solution

SELECT Prem.meter_miu_id,
JimsQueryByColl.*, Prem.longitude,
Prem.latitude
Into FrederickRoad
FROM Prem LEFT JOIN
JimsQueryByColl ON (Prem.meter_miu_id
= JimsQueryByColl.[MIU ID]
AND JimsQueryByColl.Collector=”Frederick
Road”)

This gets around the odd bug/error I’m getting with the query since it puts it into a table and doesn’t deal with the query directly again. I would however love to know what is causing the problems I’m having.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T11:24:18+00:00Added an answer on May 22, 2026 at 11:24 am

    Try:

    SELECT Prem.meter_miu_id, JimsQueryByColl.*, Prem.longitude, Prem.latitude
    FROM Prem LEFT JOIN JimsQueryByColl 
    ON (Prem.meter_miu_id = JimsQueryByColl.[MIU ID] 
    AND JimsQueryByColl.Collector="Frederick Road")
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables, one contains a list of items which is called watch_list
I have two tables, one that contains volunteers, and one that contains venues. Volunteers
I have two tables, one called countries and one called country. Countries has both
I have two tables: one called Projects, and another called Documents (projects has many
I have two tables one called permissions and one called roles which are related
I have two tables, one called Events and one called Documents. Each table has
I have two tables. One of them called conversations has the following data. ConversationID
I have two tables, one called cart and one called items. Now I want
So i'm having this problem. I have two tables (Oracle), one is called Destination
I have two tables one has a three column composite key. The other needs

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.