|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, January 06, 2009 3:45 AM
Points: 12,
Visits: 15
|
|
Invoice Date activity activity activity location 102 14-Mar-06 A SS80 SS70 L20.POD 102 24-Jul-06 A SS78 L20.POD 102 21-Aug-06 A AS0630 L15.PS 102 25-Aug-06 A SS71 L20.POD 102 01-Sep-06 A SS76 L20.POD 102 21-Nov-06 A SS74 L20.POD 105 25-Aug-06 A SS71 L20.POD 106 01-Sep-06 A SS76 L20.POD 107 21-Nov-06 A SS74 L20.POD
How to take off Invoice 102=AS0630 and keep invoice 105,106 and 107.
Lakh
|
|
|
|
|
SSC-Dedicated
           
Group: General Forum Members
Last Login: Today @ 1:26 PM
Points: 32,906,
Visits: 26,791
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, September 12, 2012 5:17 AM
Points: 329,
Visits: 461
|
|
Do you want one row per invoice?
Madhivanan
Failing to plan is Planning to fail
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, January 06, 2009 3:45 AM
Points: 12,
Visits: 15
|
|
If any invoices matching to code AS0630 that showing me the invoices are paid and take it off my list.
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, September 12, 2012 5:17 AM
Points: 329,
Visits: 461
|
|
Lakhbir.Bhatti (12/30/2008)
If any invoices matching to code AS0630 that showing me the invoices are paid and take it off my list.
select * from table as t where not exists(select * from table where invoiceno=t.invoiceno and activity='AS0630')
Madhivanan
Failing to plan is Planning to fail
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, January 06, 2009 3:45 AM
Points: 12,
Visits: 15
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Wednesday, September 12, 2012 5:17 AM
Points: 329,
Visits: 461
|
|
Lakhbir.Bhatti (12/30/2008) Thanks
Lakh You are welcome :)
Madhivanan
Failing to plan is Planning to fail
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, January 06, 2009 3:45 AM
Points: 12,
Visits: 15
|
|
Hi Madhivanan,
This is my query see below.
Please can you add the missing part for me. i am having erorro message.
SELECT * FROM dbo_pod_surgery WHERE phc_id="22/15729";
Lakh
|
|
|
|
|
SSC-Enthusiastic
      
Group: General Forum Members
Last Login: Yesterday @ 2:11 AM
Points: 113,
Visits: 625
|
|
SELECT * FROM dbo_pod_surgery WHERE phc_id="22/15729";
If you know activity why r u using phc_id... you can directly use the activity in where clause.
|
|
|
|
|
Grasshopper
      
Group: General Forum Members
Last Login: Tuesday, January 06, 2009 3:45 AM
Points: 12,
Visits: 15
|
|
From my report If this code "AS0630" tell me the person had they money back. I am only looking for people who have not receive they money back.
Lakh
|
|
|
|