Register Blogs FAQ Members List Social Groups Calendar Search Today's Posts Mark Forums Read

Go Back   DeveloperBarn Forums > Databases > SQL Development

Sponsored Links

Discuss "query error" in the SQL Development forum.

SQL Development - Structured Query Language (SQL) is the talk of databases. Discuss topics such as joins, triggers and other advanced SQL topics.


Reply
 
LinkBack Thread Tools Display Modes
  #1  
Old June 24th, 2008, 11:51 AM
Barn Frequenter
 
Join Date: Mar 2008
Posts: 197
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 1
todd2006 is an unknown quantity at this point
Default query error

Hi,

I have this query and its gives me an error saying expected end of statement


where F Name and L Name are the names of the fields

the error is at " "

Code:
SELECT [F Name] & " " & [L Name] & [S Name] AS FullName from Students
Reply With Quote
Sponsored Links
  #2  
Old June 24th, 2008, 12:05 PM
Rebelle's Avatar
Barn Enthusiast
 
Join Date: Mar 2008
Posts: 256
Thanks: 48
Thanked 1 Time in 1 Post
Rep Power: 1
Rebelle is on a distinguished road
Default

try something like this:

Code:
SELECT [F Name] + ' ' + [L Name] + ' ' + [S Name] as FullName FROM Students

Comments on this post
mehere agrees:
jmurrayhead agrees:
Wolffy agrees: Yup, same as I posted 'over there'

Last edited by mehere; June 24th, 2008 at 12:15 PM.
Reply With Quote
Reply

  DeveloperBarn Forums > Databases > SQL Development

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
XML Node Error noFriends Visual Basic Programming 4 June 3rd, 2008 08:57 AM
Wizard1 error The command 'MoveComplete' is not valid peebman2000 .Net Development 10 April 28th, 2008 02:52 PM
[Error] Microsoft JET Database Engine error '80004005' Operation must use an updatea theChris ASP Development 2 March 16th, 2008 10:18 AM


All times are GMT -4. The time now is 07:38 PM.



Content Relevant URLs by vBSEO 3.2.0