Advertisement

04.28.2008 at 08:20PM PDT, ID: 23360930
[x]
Attachment Details

Inserting record from another table

Asked by bpyeo in SQL Server 2005

Tags: Microsoft, SQL Server, 2005

Currently I have a table named timetable (jobid, day) and having values of:
J001 Wed
J002 Thu
J002 Fri
:
:
J199 Mon.

I also have another table named job (jobid,description) and having values of:
J001 Tiling
:
:
J199 Soldering
J200 New job

I want to insert a PENDING value for all jobid not found in the table timetable but found in the table job. Please advice me on the SQL statement I should construct to achieve this purpose.

TIA.Start Free Trial
 
 
[+][-]04.28.2008 at 08:24PM PDT, ID: 21459434

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 08:25PM PDT, ID: 21459440

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 08:26PM PDT, ID: 21459448

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 08:27PM PDT, ID: 21459452

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: SQL Server 2005
Tags: Microsoft, SQL Server, 2005
Sign Up Now!
Solution Provided By: HuyBD
Participating Experts: 3
Solution Grade: A
 
 
[+][-]04.28.2008 at 08:30PM PDT, ID: 21459466

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 08:33PM PDT, ID: 21459476

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 08:36PM PDT, ID: 21459485

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 08:38PM PDT, ID: 21459494

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.28.2008 at 08:40PM PDT, ID: 21459507

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628