Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8310351
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T19:25:48+00:00 2026-06-08T19:25:48+00:00

This is the query for a gaming application to get a list of targets

  • 0

This is the query for a gaming application to get a list of targets for the enemy that excludes locations that the enemy can’t see. This is a simplified version of my query to target my specific question.

SELECT * FROM `game_moblist` WHERE  (posx!=0 AND posy!=0) AND (posx!=1100 AND posy!=220) 

posx is the x coordinate posy is the y coordinate

I’m writing a loop to exclude any tiles that cannot be seen
The issue I see is that its treated as if the parenthesis aren’t there. All posx=1100 are excluded and not the ordered pair (1100,220) what is the proper syntax for what I’m trying to do? The only solution I thought of is to combine the two numbers into a unique single number but I’d rather learn something new.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T19:25:51+00:00Added an answer on June 8, 2026 at 7:25 pm

    I think you mean:

    WHERE NOT (posx=0 AND posy=0) 
      AND NOT (posx=1100 AND posy=220)
    

    which can be rewritten also as:

    WHERE (posx, posy) NOT IN ((0, 0), (1100, 200)) 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This query returns me the list of room #077 that is occupied on specific
This query gives me syntax error in when-between line. how can i solve them?
This query that I have is returning therapists whose 'therapistTable.activated' is equal to false
This query creates a mysql view that captures bad email address formats in one
This query is taking long time when endDate is null (i think that its
This query takes very much time in my application. Database contains about 2 million
This query appears to work well: -- Every supplier that produces some red or
This Query is giving me an error of #1054 - Unknown column 'totalamount' in
this query SELECT * FROM tblContracts LEFT JOIN tblPartys ON tblContracts.id = tblPartys.Contract_id INNER
This query is somewhat related to this earlier one on sorting where, it was

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.