SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2008 Forums
 Transact-SQL (2008)
 SQL Syntax
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

viperbyte
Posting Yak Master

USA
132 Posts

Posted - 05/13/2013 :  09:13:21  Show Profile  Reply with Quote
Good morning all.

The following query isn't working for me in Crystal Reports. It's the "WHERE Location IN (30,31,32) part that I'm trying to get to work. I get an error saying that "Too few parameters, expected 3". Is there another way to get this effect? If so can you please show me how it's done? I know this is not a CR forum but I'm just looking for SQL Syntax help. Anyone can help me with this? Please.

SELECT
OEINVH.`CUSTOMER`, OEINVH.`BILNAME`, OEINVH.`TERRITORY`, OEINVH.`INVFISCYR`, OEINVH.`INVFISCPER`, OEINVH.`INVNETWTX`
FROM
`OEINVH` OEINVH
WHERE
OEINVH.`LOCATION` IN (`30`,`31`,`32`)
ORDER BY
OEINVH.`TERRITORY` ASC

viperbyte
Posting Yak Master

USA
132 Posts

Posted - 05/13/2013 :  10:53:11  Show Profile  Reply with Quote
Never mind, figured it out. Thanks, anyway :)
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.03 seconds. Powered By: Snitz Forums 2000