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

  • Home
  • SEARCH
  • 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 9212585
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T01:33:27+00:00 2026-06-18T01:33:27+00:00

The target field is pk_2013_1qrt and its type is integer. But when i run

  • 0

The target field is pk_2013_1qrt and its type is integer. But when i run the query below, results includes pk_2013_1qrt=1 values too.
Where did i go wrong?
Regards

SELECT *,ims_2012_modifiye.id AS imsID, ims_2012_modifiye.ilac_id AS ilacID, 
         ims_2012_modifiye.ilac_adi_duzgun AS iaDuzgun 
FROM ims_2012_modifiye 
LEFT JOIN ilaclar ON ims_2012_modifiye.ilac_id=ilaclar.id 
WHERE ims_2012_modifiye.ilac_id NOTNULL 
  AND ims_2012_modifiye.asil_listede_mi=1 
  AND ims_2012_modifiye.ilac_id NOT IN
      (SELECT ilac_id FROM piyasa_kontrol 
       WHERE pk_yil IN (2012,2011,2010,1900,1901)) 
OR
  ims_2012_modifiye.oncelik_verilsin_mi=1 
  AND ims_2012_modifiye.pk_2013_1qrt=0 
LIMIT 5
  • 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-18T01:33:28+00:00Added an answer on June 18, 2026 at 1:33 am

    OR has lesser priority than AND. What you want is unclear, but the latest AND ims_2012_modifiye.pk_2013_1qrt=0 is applied only to the rows with ims_2012_modifiye.oncelik_verilsin_mi=1. Maybe this:

    SELECT *,ims_2012_modifiye.id AS imsID, ims_2012_modifiye.ilac_id AS ilacID, 
             ims_2012_modifiye.ilac_adi_duzgun AS iaDuzgun 
    FROM ims_2012_modifiye 
    LEFT JOIN ilaclar ON ims_2012_modifiye.ilac_id=ilaclar.id 
    WHERE (ims_2012_modifiye.ilac_id NOTNULL 
             AND ims_2012_modifiye.asil_listede_mi=1 
             AND ims_2012_modifiye.ilac_id NOT IN
               (SELECT ilac_id FROM piyasa_kontrol 
                WHERE pk_yil IN (2012,2011,2010,1900,1901)) 
           OR
             ims_2012_modifiye.oncelik_verilsin_mi=1)
      AND ims_2012_modifiye.pk_2013_1qrt=0 
    LIMIT 5
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following code for my custom Constraint: @Retention(RetentionPolicy.RUNTIME) @Target({ ElementType.TYPE, ElementType.FIELD, ElementType.METHOD
I have an annotation like this: @Retention(RetentionPolicy.RUNTIME) @Target({ElementType.FIELD, ElementType.METHOD, ElementType.TYPE}) public @interface MyAnnotation {
I want preserve original value of target field and use json_decode to use following
Suppose I have this annotation @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface Name { String value(); }
My target is to create a custom Date field (which should work with Doctrine).
Target failed to run: Remote exception encountered: Faild to get task for pid 3103
setTimeout(target.mousedown, 200) doesn't seem to work. I can do setTimeout(target.mousedown(), 200) , but this
I have an Java-Annotation that return a double value: @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.FIELD) public @interface DoubleValue
I am currently using ASM to intercept all attempts to mutate field values in
I am creating an anonymous type and I have conflicting field names. The following

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.