Drop files here

SQL upload ( 0 ) x -

Page-related settings Click on the bar to scroll to top of page
Press Ctrl+Enter to execute query Press Enter to execute query
ascending
descending
Order:
Debug SQL
Count
Execution order
Time taken
Order by:
Group queries
Ungroup queries
Collapse Expand Show trace Hide trace Count : Time taken :
Bookmarks
Refresh
Add
No bookmarks
Add bookmark
Options
Set default





Collapse Expand Requery Edit Explain Profiling Bookmark Query failed Database : Queried time :
Browse mode
Customize browse mode.
Browse mode
Documentation Use only icons, only text or both. Restore default value
Documentation Use only icons, only text or both. Restore default value
Documentation Whether a user should be displayed a "show all (rows)" button. Restore default value
Documentation Number of rows displayed when browsing a result set. If the result set contains more rows, "Previous" and "Next" links will be shown. Restore default value
Documentation SMART - i.e. descending order for columns of type TIME, DATE, DATETIME and TIMESTAMP, ascending order otherwise. Restore default value
Documentation Highlight row pointed by the mouse cursor. Restore default value
Documentation Highlight selected rows. Restore default value
Documentation Restore default value
Documentation Restore default value
Documentation Repeat the headers every X cells, 0 deactivates this feature. Restore default value
Documentation Maximum number of characters shown in any non-numeric column on browse view. Restore default value
Documentation These are Edit, Copy and Delete links. Restore default value
Documentation Whether to show row links even in the absence of a unique key. Restore default value
Documentation Default sort order for tables with a primary key. Restore default value
Documentation When browsing tables, the sorting of each table is remembered. Restore default value
Documentation For display Options Restore default value
SELECT * FROM `discount_rebate_claims`
[ Edit inline ] [ Edit ] [ Explain SQL ] [ Create PHP code ] [ Refresh ]
Full texts id claim_no claim_sequence_no idempotency_key scheme_id agreement_id ledger_id
ledger_details.id - validated by application
period_from period_to turnover_basis gross_sales_amount sales_return_amount eligible_turnover_amount collection_amount target_amount achievement_percent applicable_discount_rate fixed_discount_amount discount_amount cgst_amount sgst_amount igst_amount cess_amount round_off gross_credit_amount document_type agreement_pre_supply invoice_link_confirmed taxable_value_reduction itc_reversal_required decision_reason status calculation_version row_version source_snapshot_hash snapshot_at credit_note_entry_id
discount_credit_note_entries.id
credit_note_voucher_no branch_id finance_year_id created_by updated_by submitted_by approved_by posted_by rejected_by reversed_by submitted_at approved_at posted_at rejected_at reversed_at rejection_reason reversal_reason delete_status deleted_by deleted_at created_at updated_at discount_basis_mode
Snapshot of scheme discount basis at calculation t…
discount_base_amount
Server-calculated amount on which scheme rate/fixe…
discount_amount_semantics
Meaning of discount_amount for this immutable calc…
taxable_discount_amount
Pre-tax discount represented by tax allocation sna…
allocation_engine
Allocation engine/version used to create the snaps…
Edit Edit Copy Copy Delete Delete
DELETE FROM discount_rebate_claims WHERE `discount_rebate_claims`.`id` = 1
1 NULL 1 dr5:c23bec27-7bfa-4d8c-8bec-f84bb227f341 3 NULL 1058 2026-04-01 2026-08-20 COLLECTION_VALUE 309051.80 0.00 274391.29 274391.29 0.00 0.0000 2.0000 0.00 4650.70 418.55 418.55 0.00 0.00 0.00 5487.80 UNDECIDED NA NA NA Y Draft snapshot created from server-authoritative c... DRAFT 1 1 eaee1a31251e3ef6c98e04ce36d2c27774fe1656462e09a043... 2026-08-20 23:21:01 NULL NULL 1 13 1 1 NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL NULL 0 NULL NULL 2026-08-20 23:21:01 NULL TAXABLE_BASE 232535.02 TAXABLE_DISCOUNT 4650.70 STEP_5_BASIS_GST_SNAPSHOT_V1
Edit Edit Copy Copy Delete Delete
DELETE FROM discount_rebate_claims WHERE `discount_rebate_claims`.`id` = 2
2 DRC000001 1 dr5:1da7c0a0-15c3-4833-9b90-8652543004e8 3 NULL 1058 2026-04-01 2026-08-21 COLLECTION_VALUE 309051.80 0.00 274391.29 274391.29 0.00 0.0000 2.0000 0.00 5487.83 418.60 418.53 0.00 0.00 0.00 5487.83 COMMERCIAL_CREDIT_NOTE NA Y N N Early payment discount without pre-supply agreemen... POSTED 1 5 ee900842114a043c0cab3ffc26cbb6a224641f0e07fa2c8b43... 2026-08-21 00:10:47 26 SMG/0001/26-27 1 13 1 1 1 1 1 NULL NULL 2026-08-21 01:48:32 2026-08-21 01:52:17 2026-08-22 14:46:41 NULL NULL NULL NULL 0 NULL NULL 2026-08-21 00:10:47 2026-08-22 14:46:41 DOCUMENT_VALUE 274391.29 GROSS_CREDIT 4650.70 STEP_5_BASIS_GST_SNAPSHOT_V1
With selected: With selected:
Query results operations Copy to clipboard Copy to clipboard Export Export Display chart Display chart Create view Create view
Bookmark this SQL query Bookmark this SQL query