Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. A sytax question

A sytax question

Scheduled Pinned Locked Moved Database
questiondatabasehelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • E Offline
    E Offline
    Esmo2000
    wrote on last edited by
    #1

    I have two SELECTs and I want to merge their results using an inner join. Then, I want to insert it into a table... I tried INSERT INTO tableName SELECT * FROM ((SELECT blah blah blah ) as numberOne LEFT JOIN (SELECT blah blah blah ) as otherTable on numberOne.index = otherTable.index )) I get a syntax error though, so what am I doing wrong? Thanks a lot, Jim Did I post well? Rate it! Did I post badly? Rate that too!

    C 1 Reply Last reply
    0
    • E Esmo2000

      I have two SELECTs and I want to merge their results using an inner join. Then, I want to insert it into a table... I tried INSERT INTO tableName SELECT * FROM ((SELECT blah blah blah ) as numberOne LEFT JOIN (SELECT blah blah blah ) as otherTable on numberOne.index = otherTable.index )) I get a syntax error though, so what am I doing wrong? Thanks a lot, Jim Did I post well? Rate it! Did I post badly? Rate that too!

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Esmo2000 wrote: I get a syntax error though, so what am I doing wrong? What does the syntax error say? Also, please post the exact code you used because "blah blah blah" is not going to help - the SQL Parser won't accept it.


      My: Blog | Photos | Next SQL Presentation WDevs.com - Open Source Code Hosting, Blogs, FTP, Mail and More

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups