Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 28687

Dataset to excludes related items

$
0
0

We have a dataset/table of customer APPOINTMENTS.   Users can tag a future appointment as "cancelled" and then either create (or not create) another future appointments for a customer (so customers have can have a number of appointment rows).  I want my dataset to only show 'cancelled' appointments that do not have any related future appointments.

I can use ....   SELECT <columns> FROM  APPOINTMENTS WHERE  APPOINTMENT_STATUS ='cancelled'   ..... but this does NOT exclude customers who have future appointments.

Can this be done in 'query designer'?.... I'm not sure how.  Any advice would be helpful.  Thanks.


    Viewing all articles
    Browse latest Browse all 28687

    Trending Articles



    <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>