Results 1 to 4 of 4
  1. #1
    sqlnewbie10 is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    May 2014
    Posts
    1

    New to SQL any help is appreciated

    Hello all,



    I have very limited experience with SQL, and I am having trouble executing a query. "Write a SQL statement to display the First and Last Name of students having an a in the second position in their first names"

    My query that I executed is:
    select first_name, last_name
    FROM STUDENT
    WHERE FIRST_NAME LIKE'A%';

    However, I have tried other wildcard conditions, but it continues to execute the same result which is wrong; the result is just two blank records. Any help is appreciated. I have attached a screen shot to show you what table I am using.
    Attached Thumbnails Attached Thumbnails studenttable.png  

  2. #2
    burrina's Avatar
    burrina is offline VIP
    Windows 8 Access 2010 32bit
    Join Date
    Oct 2012
    Location
    Freeport,Texas
    Posts
    1,383
    If you ONLY want to see first_name (s) that have a A in them Then
    Like "a*"
    HTH

  3. #3
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,642
    Again, either the Mid() function or combine the ? And * wildcards.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,633
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 3
    Last Post: 07-29-2013, 06:14 PM
  2. Database Design Assistance would be greatly appreciated
    By Zephyx in forum Database Design
    Replies: 4
    Last Post: 06-27-2013, 12:31 PM
  3. Replies: 2
    Last Post: 04-29-2011, 01:16 PM
  4. Help is much Appreciated
    By Kookai in forum Database Design
    Replies: 1
    Last Post: 08-16-2010, 04:50 AM
  5. Replies: 4
    Last Post: 08-30-2009, 12:31 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums