Results 1 to 4 of 4

Thread: New SQL user

  1. #1
    Join Date
    Oct 2007
    Posts
    2

    Red face New SQL user

    I'm just trying to use left(notes, instr(notes, chr(10))-1)

    Where in the sequel statement should this be used? I am getting an error no matter where I put it. Please help...I'm just learning...

    select *
    from T_site
    where Site_Id=299
    left(notes, instr(notes, chr(10))-1);

    Thank you.

  2. #2
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    SELET left(notes...
    FROM MyTable

    OR

    SELECT notes
    FROM myTable
    WHER Left(notes...

    OR

    SELET notes
    FORM myTable
    WHERE onething = anotherthing
    AND left(notes...

    depends what you're trying to do really!

    Anyhow - here's a great link to get you started : www.w3schools.com/sql/default.asp
    George
    Home | Blog

  3. #3
    Join Date
    Oct 2007
    Posts
    2
    Thank you Georgev...that worked....
    I appreciate your help!

  4. #4
    Join Date
    Jan 2007
    Location
    UK
    Posts
    11,434
    No problemo, glad I could be of assistance.
    Welcome to the forum!
    George
    Home | Blog

Posting Permissions

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