Solved

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

Posted on 2014-11-04
1
193 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:Chris Michalczuk
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 143

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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Why is this different from all of the other step by step guides?  Because I make a living as a DBA and not as a writer and I lived through this experience. Defining the name: When I talk to people they say different names on this subject stuff l…
JSON is being used more and more, besides XML, and you surely wanted to parse the data out into SQL instead of doing it in some Javascript. The below function in SQL Server can do the job for you, returning a quick table with the parsed data.
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
Via a live example, show how to shrink a transaction log file down to a reasonable size.

696 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