Solved

help with query

Posted on 2013-06-07
3
278 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
[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
3 Comments
 
LVL 70

Expert Comment

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

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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
How to handle time out inside the stored procedure 10 28
SQL Syntax 6 43
Need multiple Group By's 8 31
Need a mirrored QA test site 2 19
Ever needed a SQL 2008 Database replicated/mirrored/log shipped on another server but you can't take the downtime inflicted by initial snapshot or disconnect while T-logs are restored or mirror applied? You can use SQL Server Initialize from Backup…
Ever wondered why sometimes your SQL Server is slow or unresponsive with connections spiking up but by the time you go in, all is well? The following article will show you how to install and configure a SQL job that will send you email alerts includ…
Familiarize people with the process of retrieving data from SQL Server using an Access pass-thru query. Microsoft Access is a very powerful client/server development tool. One of the ways that you can retrieve data from a SQL Server is by using a pa…
Via a live example, show how to backup a database, simulate a failure backup the tail of the database transaction log and perform the restore.

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