How to create SQL expression fields in Crystal Reports ?

Posted on 2003-03-19
Medium Priority
Last Modified: 2007-12-19

I have had a problem with creating SQL expression fields in CR.

I have always catched the error "Syntax error found in the statement" when trying to edit any SQL statement in the SQL Expression Editor(Crystal Reports), even it was a very simple one and copied/parsed from the Crystal SQL Designer which had executed it well, for example:
  Employee.`First Name`
 `Employee` Employee

I wonder if the error actually resulted from the syntax or other reasons ?

I am expecting the answer from all of you who is interested in.

Thanks in advance !


Question by:VietTrung
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
LVL 101

Accepted Solution

mlmcc earned 200 total points
ID: 8174389

 Employee.`First Name`
`Employee` Employee

Do you get an error in that statement?

I don't see anything obviously wrong.

What database are you running against?

MS SQL Server would require it as

 Employee.[First Name]
[Employee] Employee



Assisted Solution

mbrown212 earned 200 total points
ID: 8176903
Crystal doesn't recognize normal SQL very well. It's really, really picky.


You can do union queries and substrings and use functions, but it's almost painful.

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
In this video, Percona Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

801 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question