Results 1 to 7 of 7

Thread: How to convert this piece of sql code to oledb command?

Hybrid View

  1. #1
    A SQL Server fool GaryMazzone's Avatar
    Join Date
    Aug 2005
    Location
    Dover,NH
    Posts
    7,493

    Re: How to convert this piece of sql code to oledb command?

    Code:
    UPDATE S SET
         S.empnum = ER.Employee_Number
    FROM scard S
    INNER JOIN Employee_Records ER
       ON s.FirstName = ER.First_Name
    BUT What happens when you have 2 people with the same first NAME (John) then you really don't know what you get in the end
    Sometimes the Programmer
    Sometimes the DBA

    Mazz1

  2. #2

    Thread Starter
    Member
    Join Date
    Apr 2019
    Posts
    54

    Re: How to convert this piece of sql code to oledb command?

    Quote Originally Posted by GaryMazzone View Post
    Code:
    UPDATE S SET
         S.empnum = ER.Employee_Number
    FROM scard S
    INNER JOIN Employee_Records ER
       ON s.FirstName = ER.First_Name
    BUT What happens when you have 2 people with the same first NAME (John) then you really don't know what you get in the end
    Thank you Gary for responding my concern. Actually it should be done by finding Fullname and Birthday for the exact. FirstName there is just an example. Any idea? I would highly appreciate your ideas and suggestions.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width