SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 Analysis Server and Reporting Services (2005)
 Reporting on Null Values
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

david_m
Starting Member

4 Posts

Posted - 09/27/2012 :  09:14:27  Show Profile  Reply with Quote
Hi All,

My sales manager has requested a report, which in theory I can understand, but the practicalities of it are not working correctly.

I need to create a report that gives me a list of customers who havent bought a particular product code.

Is it possible to report on something where the other half of the data doesn't exist!!

webfred
Flowing Fount of Yak Knowledge

Germany
8765 Posts

Posted - 09/27/2012 :  09:32:33  Show Profile  Visit webfred's Homepage  Reply with Quote
Yes.
We need to know the involved tables (tablestructure and data types) and some sample data.


Too old to Rock'n'Roll too young to die.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 09/27/2012 :  10:47:05  Show Profile  Reply with Quote
yep..its possible
using LEFT JOIN ,NOT EXISTS etc you can retrive data that doesnt exist on other table
but for suggesting query we need table details with some sample data

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

webfred
Flowing Fount of Yak Knowledge

Germany
8765 Posts

Posted - 09/27/2012 :  10:50:01  Show Profile  Visit webfred's Homepage  Reply with Quote
quote:
Originally posted by visakh16

yep..its possible
using LEFT JOIN ,NOT EXISTS etc you can retrive data that doesnt exist on other table
but for suggesting query we need table details with some sample data

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/




you don't say...


Too old to Rock'n'Roll too young to die.
Go to Top of Page

visakh16
Very Important crosS Applying yaK Herder

India
52317 Posts

Posted - 09/27/2012 :  11:12:08  Show Profile  Reply with Quote
quote:
Originally posted by webfred

quote:
Originally posted by visakh16

yep..its possible
using LEFT JOIN ,NOT EXISTS etc you can retrive data that doesnt exist on other table
but for suggesting query we need table details with some sample data

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/




you don't say...


Too old to Rock'n'Roll too young to die.


sorry didnt get you?
dont say what?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/

Go to Top of Page

webfred
Flowing Fount of Yak Knowledge

Germany
8765 Posts

Posted - 09/27/2012 :  14:53:28  Show Profile  Visit webfred's Homepage  Reply with Quote
quote:
Originally posted by visakh16

quote:
Originally posted by webfred

quote:
Originally posted by visakh16

yep..its possible
using LEFT JOIN ,NOT EXISTS etc you can retrive data that doesnt exist on other table
but for suggesting query we need table details with some sample data

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/




you don't say...


Too old to Rock'n'Roll too young to die.


sorry didnt get you?
dont say what?

------------------------------------------------------------------------------------------------------
SQL Server MVP
http://visakhm.blogspot.com/




priceless

I'm just kidding


Too old to Rock'n'Roll too young to die.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.08 seconds. Powered By: Snitz Forums 2000