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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 2, 20262026-06-02T19:12:02+00:00 2026-06-02T19:12:02+00:00

I am using SQL Server The data that I have is: table1: R_Time ID

  • 0

I am using SQL Server

The data that I have is:

table1:

R_Time      ID   Q1
2012-02-26  14   8
2012-02-27  14   7
2012-02-27  15   8
2012-02-27  16   9
2012-02-27  11   10
2012-02-28  11   6
2012-02-28  14   10
2012-02-28  15   9

and

table2:

ID  Supervisor
11  2
14  2
15  3
16  3

What i am trying to due is only show R_Time and Q1 Entries from table1 where table2 Supervisor is 3

I know I will somehow have to do a join but im not quite sure how to.

Thanks.

  • 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-02T19:12:03+00:00Added an answer on June 2, 2026 at 7:12 pm

    Description

    You can use a inner join to get this done.

    T-SQL INNER JOIN operator can be used in any FROM clause to combine records from two tables.

    Sample

    Select tbl1.R_Time, tbl1.Q1 from table1 tbl1
    inner join table2 tbl2 on tbl2.Id = tbl1.Id
    where tbl2.Supervisor = 3
    

    More Information

    • T-SQL – Inner Join
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to copy data from my MYSQL table to SQL Server using
i have using aqua data studio to run my query from sql server 2005.
I'm using SQL Server 2008 R2. I have a source table of data (I_Vendor)
I have two tables( Table1 and Table2 ) in a SQL Server database and
I am using SQL-Server 2005. I have a dev and prod database that have
I am using SQL SERVER 2005. I have a table table1(ID,col1,col2,col3,col4); Now I have
I'm using sql server 2005/2008 and I have a table that it's PK (rec_index)
DB: SQL Server 2005 We have a table that has data in this manner:
I have a bulk insert that works on SQL Server 2000 that I'm trying
I am using SQL Server 2008 and I need to select all data from

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.