Forked from BhargaviTelpunuri/delete data from transactions
Created
May 22, 2017 08:44
-
-
Save gvsrini/9cc771ae6f9a9568c50c0a005a170a75 to your computer and use it in GitHub Desktop.
delete data from transactions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
delete from TRANSACTION_DETAILS_P where TR_SEQ_NO in(select TR_SEQ_NO from TRANSACTION_MASTER_P where ard_no='101101') | |
delete from TRANSACTION_MASTER_P where ard_no='101101' | |
delete from FAILED_TRANSACTIONS_TRAILER_P where TR_SEQ_NO in(select TR_SEQ_NO from FAILED_TRANSACTIONS_P where SHOP_NO ='101101') | |
delete from FAILED_TRANSACTIONS_P where SHOP_NO ='101101' | |
delete from STOCK_TRAILER_P where DN_SEQ_NO in(select DN_SEQ_NO from STOCK_HEADER_P where shop_no='101101') | |
delete from STOCK_HEADER_P where shop_no='101101' | |
delete from [dbo].[STOCK_INVENTORY_P] where shop_no='101101' | |
delete from [dbo].[Transaction_allotment_cycle] | |
update MEMBER_ENTITLEMENT set consumed=0 | |
where card_no in('01234567890','01234567891','09876543210') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment