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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T09:54:22+00:00 2026-05-16T09:54:22+00:00

Cusid Cusgroupid Productid 5 NULL NULL ppid cusgroupid list bulk cost billing 854 NULL

  • 0
Cusid  Cusgroupid  Productid
5      NULL        NULL

ppid   cusgroupid       list    bulk     cost   billing
854    NULL             45.00   42.00    42.00  42.00   
855    2                39.00   36.00    33.00  30.00

I want to compare two table,
expect result is

1, if cusgroupid is 2 only select that row

ppid   cusgroupid       list    bulk     cost   billing
855    2                39.00   36.00    33.00  30.00

2, if cusgroupid is null only select that row

ppid   cusgroupid       list    bulk     cost   billing
854    NULL             45.00   42.00    42.00  42.00   

Please help!

  • 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-05-16T09:54:23+00:00Added an answer on May 16, 2026 at 9:54 am

    Still not quit sure what you need but does this get you any further?

    SELECT * FROM YourTable WHERE cusgroupid = 2
    SELECT * FROM YourTable WHERE cusgroupid IS NULL
    

    or perhaps

    SELECT   * 
    FROM     Table1 t1 
             INNER JOIN Table2 t2 
               ON ISNULL(t2.cusgroupid, -1) = ISNULL(t1.cusgroupid, -1)
    

    or

    SELECT * FROM YourTable WHERE cusgroupid = 2 OR cusgroupid IS NULL
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a bidding table, as follows: SellID INT FOREIGN KEY REFERENCES SellItem(SellID), CusID
I have the following table custid ordid qty datesold 1 A2 12 2008-01-05 2
in my database there are 3 tables CustomerType CusID EventType EventTypeID CustomerEventType CusID EventTypeID
I have 2 tables in my DB, Customers, Contacts. CusID is a Foreign Key
function test(custId){ List<Account> list=accountDelegate.findAccountEntityByGroupId((long)%> custId<%)%>; <script> } Here my question is how to send
Both: CLSID IID Having specified the above, and using: CoCreateInstance() To returning a single
For HKey_Class_Root\CLSID I found the equivalent to be HKey_Current_User\Software\Classes\CLSID but looking in the registry
First of all, please help me out! I can not take this anymore. I
Question: Based on a CLSID , how can I find out what objects (or
function checkAll(custId){ var id; if(document.getElementById(custId).checked == true){ <%for (CustomerGroup custGroup : customerGroupList) {%> if(custId==<%=custGroup.getCustomerGroupId()%>){

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.