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 8885833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T21:24:30+00:00 2026-06-14T21:24:30+00:00

SELECT _cotM.Customer_ID, _cotM.Material_ID FROM dbo.COT_Monthly AS cot INNER JOIN dbo.vw_Dim_Material AS matr ON cot.Material_ID

  • 0
SELECT _cotM.Customer_ID, _cotM.Material_ID
FROM dbo.COT_Monthly AS cot 
INNER JOIN
dbo.vw_Dim_Material AS matr ON cot.Material_ID = matr.Material_ID  
GROUP BY _cotM.Customer_ID, _cotM.Material_ID

I have sql code and have result 25855 rows

but when i add where matr.Brand <> '%VIT%' upper group by the result still 25855 rows.

but when i delete wildcard where matr.Brand <> 'VIT' the result became 25089.

i wandering why the result like this ?

is i am wrong using wildcard or else?

Thanks for answering.

  • 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-14T21:24:32+00:00Added an answer on June 14, 2026 at 9:24 pm

    Wildcards only work with LIKE clauses, so change the condition:

    WHERE matr.Brand NOT LIKE '%VIT%'
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

select p.Id, sum(inc.Quantity) from Products p join Incomes inc group by p.Id order by
SELECT * FROM Questions INNER JOIN QuestionKeyword INNER JOIN Keywords ON Questions.ID=QuestionKeyword.QuestionID AND QuestionKeyword.KeywordID=Keywords.ID
SELECT o.id, o.Name, o.StageName, o.[Type], o.Account__c, o.SalesPerson__c, o2.AccountId__c,o2.Sales_Person__c, o2.InvoiceDate__c FROM customers.dbo.sales as o INNER
SELECT d.sbjnum, d.name, d.scan_no, c.scanner FROM data AS d INNER JOIN check AS c
SELECT * From `users` AS `User` LEFT JOIN `selections` AS `Selections` ON (`Selections`.`user_id` =
SELECT *, SUM( cardtype.price - cardtype.cost ) AS profit FROM user LEFT OUTER JOIN
SELECT gameratingstblx245v.gameid,avg( gameratingstblx245v.rating ) as avgrating, count(gameratingstblx245v.rating) as count,gamedata.name ,gamedata.gameinfo FROM gameratingstblx245v LEFT JOIN
SELECT * FROM a JOIN (SELECT * FROM b WHERE b.aId = a.Id) AS
SELECT * FROM tableFoo LEFT JOIN tableBar ON tableFoo.commonColumn = tableBar.commonColumn WHERE tableBar.commonColumn IS
SELECT ColA, MAX(CONVERT(varchar(15),ColB) + ' ' + CONVERT(varchar(15),ColC)) FROM dbo.TableX GROUPBY ColA

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.