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

  • SEARCH
  • Home
  • 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 8506661
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T02:39:04+00:00 2026-06-11T02:39:04+00:00

I have 3 tables that I’m trying to query, Clients, Employees and Commissions, roughly

  • 0

I have 3 tables that I’m trying to query, Clients, Employees and Commissions, roughly laid out as below: –

Clients

ID - Code - Name

Employees

ID - Code - Name

Commissions

ID - ClientCode - EmployeeCode - Percent

Now, the commissions table has multiple records per client/employee defining the % commission for employee’s when working for specific clients, but each clients commissions entry will always sum to 100%
For example: –

CL001 - EMP001 -  50.00

CL001 - EMP002 -  50.00

CL002 - EMP001 -  75.00

CL002 - EMP002 -  25.00

CL003 - EMP001 - 100.00

However, not every client from the Clients table has an entry in the Commissions table (those with no default commission set).

What I need to retrieve is a record of every client, detailing the commissions set against it. However, I need the results to include clients that do not have any commission defined, and so far i’ve been unable to get what I need.

So I guess my question is, does this seem plausible?

  • 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-06-11T02:39:06+00:00Added an answer on June 11, 2026 at 2:39 am

    Did you try this?

    SELECT Clients.ID, Clients.Code, Clients.Name, Commission.Percent
    FROM Clients
    LEFT JOIN Commission ON Commission.ClientCode = Clients.Code
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have 3 tables that I have tried to lay out below. I am
We have three tables that we would like to query to find out the
I have several tables that I am trying to get some data out of,
I have some tables that I'm joining in a query with Postgres (9). However,
I have several tables that I am selecting data from. I am trying to
I have 3 tables that look like this: tblVideo: VideoID | Video Name 1
I have two tables that look like this: Table: cases id name status case_no
I have 2 tables that I'm trying to use to perform some calculations. My
I have two tables that I want information from. The name of the first
I have two tables that have a many-many relationship: Player(personID, school) Team(teamID, name) What

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.