Jump to content
Server Maintenance This Week. ×

Weird SQL problems with Filemaker...???


This topic is 6489 days old. Please don't post here. Open a new topic instead.

Recommended Posts

I've got a Filemaker file that stores auction information for eBay. One field I have in there is called Sandbox is has a Yes, No drop down menu where you can select Yes or No and it holds that value.

When I'm creating a recordset in my ASP scripts outside of FM, If I use the following:

SELECT Auction_Number, Auction_ID

FROM Auctions

WHERE Auction_Status = 'Current' AND Sandbox = 'Yes'

that works perfectly. It returns only the auction records where Sandbox has been set to Yes.

Now I'm trying to return only non-sandbox records, so I use the following:

SELECT Auction_Number, Auction_ID

FROM Auctions

WHERE Auction_Status = 'Current' AND Sandbox <> 'Yes'

and I get 0 records returned!? Any information on why this happens would be greatly appreciated. Thanks!

Link to comment
Share on other sites

Are there records with "No" or are they null? If they are null use "... AND Sandbox is null"

If there are records with "No" how about trying "... AND Sandbox != 'Yes'".

Link to comment
Share on other sites

  • 2 weeks later...

This topic is 6489 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.