Solved

help with query

Posted on 2013-06-07
3
274 Views
Last Modified: 2013-06-07
you experts hi all
please help with!!

INSERT INTO suplementos (numdeord,rev)SELECT  distinct (odc.numdeord, odc.rev) FROM odc LEFT JOIN suplementos ON odc.numdeord=suplementos.numdeord and odc.rev=suplementos.rev WHERE suplementos.numdeord IS NULL and suplementos.rev is null"

tsm
0
Comment
Question by:edo60
3 Comments
 
LVL 69

Expert Comment

by:Éric Moreau
ID: 39229853
what is the issue?
0
 
LVL 40

Accepted Solution

by:
Sharath earned 500 total points
ID: 39229861
Do you mean this?
INSERT INTO suplementos 
            (numdeord,rev) 
SELECT DISTINCT odc.numdeord,odc.rev 
FROM   odc 
       LEFT JOIN suplementos 
              ON odc.numdeord = suplementos.numdeord 
                 AND odc.rev = suplementos.rev 
WHERE  suplementos.numdeord IS NULL 
       AND suplementos.rev IS NULL 

Open in new window

0
 

Author Closing Comment

by:edo60
ID: 39229866
tsm!!!
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

This article explains how to reset the password of the sa account on a Microsoft SQL Server.  The steps in this article work in SQL 2005, 2008, 2008 R2, 2012, 2014 and 2016.
Slowly Changing Dimension Transformation component in data task flow is very useful for us to manage and control how data changes in SSIS.
Via a live example, show how to extract insert data into a SQL Server database table using the Import/Export option and Bulk Insert.
Viewers will learn how the fundamental information of how to create a table.

943 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

1 Experts available now in Live!

Get 1:1 Help Now