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 6708299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T07:44:33+00:00 2026-05-26T07:44:33+00:00

I have two tables The First one contains information about staff who take courses

  • 0

I have two tables
The First one contains information about staff who take courses
the first table which is named  Staff

The second table information about all courses available and it must taking by staff
second table which named Course

I want quereu SQL to find the remaining course for every staff

for example :-

Rami intro. Java

Rami into. to Orcad

Rami PIC

Rami intro. to C++

Rayan Intro. Flash

Rayan Intro to c++

Rayan PIC

Rayan Intro. to Photoshop

Rayan Into. to Orcad

.

.

.

.
.
.
.
.
and so on for all staff

  • 1 1 Answer
  • 6 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-26T07:44:33+00:00Added an answer on May 26, 2026 at 7:44 am

    With these 3 tables …

    Courses:

    CourseName
    intro. Flash
    intro. Java
    intro. to Photoshop
    into. To Orcad
    intro. to c++
    PIC
    

    Staff:

    sname
    Khalid
    Rami
    Rayan
    

    StaffCourses:

    sname   Trainingcourse
    Khalid  into. To Orcad
    Rami    intro. Flash
    Rami    intro. to Photoshop
    Rayan   intro. Java
    

    … this query …

    SELECT
        xjoin.sname,
        xjoin.CourseName
    FROM
        [
            SELECT Courses.CourseName, Staff.sname FROM Courses, Staff
        ]. AS xjoin
        LEFT JOIN StaffCourses
        ON
                (xjoin.CourseName = StaffCourses.Trainingcourse)
            AND (xjoin.sname = StaffCourses.sname)
    WHERE
        (((StaffCourses.Trainingcourse) Is Null))
    ORDER BY
        xjoin.sname,
        xjoin.CourseName;
    

    … produces this result set:

    sname  CourseName
    Khalid intro. Flash
    Khalid intro. Java
    Khalid intro. to c++
    Khalid intro. to Photoshop
    Khalid PIC
    Rami   into. To Orcad
    Rami   intro. Java
    Rami   intro. to c++
    Rami   PIC
    Rayan  into. To Orcad
    Rayan  intro. Flash
    Rayan  intro. to c++
    Rayan  intro. to Photoshop
    Rayan  PIC
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two tables. The first one contains all the item informations and the
I have two table views, when user clicks one cell of the first, second
I have two tables in a PostgreSQL database. The first table contains an ID
I have two tables made in access. One table (Owner) contains: ownerID , name
I have two tables. One contains information on hotels, added to my website by
I have two tables. One contains information on hotels, added to my website by
I have two tables First one is categories and second one is products .
I have two tables : dilemme and like . The first one contains articles
i have two data tables with the same structure the first one has one
I have a tree table with two columns on a page. The first one

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.