Solved

insert a column into a table from another table with different names

Posted on 2014-11-04
1
183 Views
Last Modified: 2014-11-04
INSERT INTO isvgroups (ISVApp)
SELECT isvapplication  FROM SLXActApplications
WHERE SLXActApplications.ISVApplication<>isvgroups.ISVApp

this comes back and fails

Msg 4104, Level 16, State 1, Line 3
The multi-part identifier "isvgroups.ISVApp" could not be bound.
0
Comment
Question by:chrismichalczuk
1 Comment
 
LVL 142

Accepted Solution

by:
Guy Hengel [angelIII / a3] earned 500 total points
ID: 40421381
you want to do this:

INSERT INTO isvgroups (ISVApp)
SELECT isvapplication  FROM SLXActApplications
WHERE NOT EXISTS( SELECT null FROM isvgroups WHERE SLXActApplications.ISVApplication = isvgroups.ISVApp )

Open in new window

0

Featured Post

Complete Microsoft Windows PC® & Mac Backup

Backup and recovery solutions to protect all your PCs & Mac– on-premises or in remote locations. Acronis backs up entire PC or Mac with patented reliable disk imaging technology and you will be able to restore workstations to a new, dissimilar hardware in minutes.

Join & Write a Comment

Suggested Solutions

Everyone has problem when going to load data into Data warehouse (EDW). They all need to confirm that data quality is good but they don't no how to proceed. Microsoft has provided new task within SSIS 2008 called "Data Profiler Task". It solve th…
If you have heard of RFC822 date formats, they can be quite a challenge in SQL Server. RFC822 is an Internet standard format for email message headers, including all dates within those headers. The RFC822 protocols are available in detail at:   ht…
Via a live example combined with referencing Books Online, show some of the information that can be extracted from the Catalog Views in SQL Server.
This videos aims to give the viewer a basic demonstration of how a user can query current session information by using the SYS_CONTEXT function

762 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now