You are on page 1of 2

--master data tables

Select * from Tollplus.REF_INVOICE_WORKFLOW_STAGES


select * from [TOLLPLUS].[REF_INVOICE_WORKFLOW_STAGE_FEES]
select * from [TOLLPLUS].[REF_FEETYPES] where FEETYPEID in (
9
,10
,11
,151
,152
,11)

-- collection tables
SELECT TOP 200 * FROM TER.ViolatorCollectionsOutbound order by 1 desc--
CollectionOutbound
SELECT TOP 200 * FROM TER.ViolatorCollectionsOutboundUpdate order by 1 desc--
collectionupdatedoutbound--
SELECT * FROM TER.CollectionsOutboundUpdatePaymentPlan order by 1 desc
SELECT TOP 2 * FROM TER.ViolatorCollectionsOutboundDemographics
SELECT TOP 2 * FROM TER.ViolatorCollectionsOutboundStatus order by 1 desc
SELECT TOP 50 * FROM TER.ViolatorCollectionsInbound order by 1 desc--where
violatorid=11264997
SELECT TOP 20 * FROM TER.ViolatorCollectionsOutboundUpdate where
violatorid=11264997 order by 1 desc--collectionupdatedoutbound--
SELECT TOP 50 * FROM TER.ViolatorCollectionsInboundDemographics
select top 10* from ter.ViolatorCollectionsInboundErrorTracker order by 1 desc

Select top 100 * from TOLLPLUS.COLLECTIONS_OUTBOUND where customerid=100113972


order by 1 desc
select * from [TOLLPLUS].[COLLECTIONS_INBOUND] where customerid=100113972 order by
1 desc
Select top 100 * from [TOLLPLUS].[COLLECTIONS_OUTBOUND_RECALL]
select * from [TOLLPLUS].[COLLECTIONS_OUTBOUND_UPDATED] (nolock) order by 1 desc --
where customerid in (11816590,11795738,14162744) order by 1desc
select * from tollplus.tpfiletracker where fileid in (37856)

sELECT * FROM TOLLPLUS.CUSTOMER_INVOICE_AGING_HOLD where holdtype like '%account%'


select * from TOLLPLUS.invoice_header with (nolock) where invoiceid
in(11778174,11794510) order by INVOICEID
select * from TOLLPLUS.INVOICE_LINEITEMS with (nolock) where invoiceid
in(11888582,11811369) order by INVOICEID
select * from TOLLPLUS.UNREGISTERED_CUST_INVOICE_SCHEDULES with (nolock)
select * from TOLLPLUS.CUSTOMERFLAGREFERENCELOOKUP

select VIOLATORID,count(*) from TOLLPLUS.TP_VIOLATEDTRIPS where


OUTSTANDINGAMOUNT>0 group by VIOLATORID having COUNT(*)>10
select top 10 * from TOLLPLUS.TP_CUSTOMER_TRIP_CHARGES_TRACKER with (nolock)
select top 10* from TOLLPLUS.TP_VIOLATED_TRIP_RECEIPTS_TRACKER with (nolock)
select top 10 * from TOLLPLUS.DMVRegistrationHoldTxns with (nolock)

--Payment Plan tables


SELECT * fROM [TOLLPLUS].[PaymentPlanViolationCategories]
SELECT TOP 30 * FROM TER.HVSTATUSLOOKUP WITH(NOLOCK) where ParentStatusId=5 --
HvstatuslookupId=16
SELECT * FROM TER.PaymentPlans WITH(NOLOCK) WHERE VIOLATORID = 100114112
SELECT * FROM TER.PAYMENTPLANVIOLATOR WITH(NOLOCK) WHERE PaymentPlanId = 82
SELECT * FROM TER.PaymentPlanTerms WITH(NOLOCK) WHERE PaymentPlanId = 82
SELECT * FROM FINANCE.PaymentsReceiptTracker WITH(NOLOCK) order by 1 desc

--Bankruptcy
SELECT * FROM TOLLPLUS.BankruptcyStatuses
SELECT * FROM TOLLPLUS.BankruptcytYPES
SELECT * FROM TOLLPLUS.TP_BANKRUPTCY_FILING where Customerid=13720243 --WHERE
BankruptcyStatusId=1

select VIOLATORID,count(*) from TOLLPLUS.TP_VIOLATEDTRIPS with (nolock) where


OUTSTANDINGAMOUNT>0 group by VIOLATORID having count(*)>5

--1.Get invoice job running status


select * from TOLLPLUS.INVGENERATIONJOBRUNS with(nolock) order by 1 desc
--2.Get invoice job steps running status
select * from TOLLPLUS.INVGENERATIONSTEPSLOG with(nolock) order by 1 desc
--3.Get record count for completed steps in invoice job
select * from TOLLPLUS.INVGENERATIONTABLEROWCOUNTS with(nolock) order by 1 desc
--4.staging table for eligible schedules
select * from TOLLPLUS.INVOICESTAGINGCUSTOMERDETAILS with(nolock)
--5.staging table for eligible schedules respective transactions
select * from [TOLLPLUS].[INVOICESTAGINGCUSTOMERTRANSACTIONS] with(nolock)
--6.staging table for eligible schedules previous notices details
select * from [TOLLPLUS].[InvoiceStagingCustomerInvoiceDetails] with(nolock)
--7.Master data for different hold scnerios in deleting hold trips step
select *from TOLLPLUS.InvoiceGenerationJobFilters order by 1

--ROV tables
select * from TOLLPLUS.TP_DMV_QUEUE with (nolock)
select top 10 * from TOLLPLUS.TP_DMVQUERY with (nolock)
select * from TOLLPLUS.DMVREQUESTTRACKER with (nolock)
select * from TOLLPLUS.DMVRESPONSE with (nolock)
select * from TOLLPLUS.DMVExceptionQueue with (nolock)
select * from TOLLPLUS.DMVExceptionDetailsTracker with (nolock)
select * from TOLLPLUS.DMVExceptionDetails with (nolock)

You might also like