SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Hybrid View

  1. #1
    SitePoint Zealot websalacarta's Avatar
    Join Date
    May 2003
    Location
    Spain
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    query from oracle to mysql

    Hi,

    I have this query working correctly in oracle:
    Code:
    SELECT * FROM a,d,f WHERE
    a.id (+) = d.id_reg AND
    d.tipo (+) = f.id AND
    f.tipo = 1

    But I canīt figure how to do is with mysql (4.1.8)

    any help?

    thanks

  2. #2
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,215
    Mentioned
    58 Post(s)
    Tagged
    3 Thread(s)
    Code:
    select * 
      from f
    left outer
      join d
        on f.id = d.tipo
    left outer
      join a
        on d.id_reg = a.id
     where f.tipo = 1
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  3. #3
    SitePoint Zealot websalacarta's Avatar
    Join Date
    May 2003
    Location
    Spain
    Posts
    165
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thatīs perfect, as usual

    thanks very much


Bookmarks

Posting Permissions

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