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 `ROUTINES` ORDER BY `DEFINER` DESC 
Edit inline ] [ Edit ] [ Explain SQL ] [ Create PHP code ] [ Refresh ]
SPECIFIC_NAME ROUTINE_CATALOG ROUTINE_SCHEMA ROUTINE_NAME ROUTINE_TYPE DATA_TYPE CHARACTER_MAXIMUM_LENGTH CHARACTER_OCTET_LENGTH NUMERIC_PRECISION NUMERIC_SCALE DATETIME_PRECISION CHARACTER_SET_NAME COLLATION_NAME DTD_IDENTIFIER ROUTINE_BODY ROUTINE_DEFINITION EXTERNAL_NAME EXTERNAL_LANGUAGE PARAMETER_STYLE IS_DETERMINISTIC SQL_DATA_ACCESS SQL_PATH SECURITY_TYPE CREATED LAST_ALTERED SQL_MODE ROUTINE_COMMENT DEFINER Descending Ascending 1 CHARACTER_SET_CLIENT COLLATION_CONNECTION DATABASE_COLLATION
calculate_age def cooperative calculate_age PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
SELECT
		TIMESTAMPDIFF(YEAR, p_bday, CURDATE())
...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
check_for_interest def cooperative check_for_interest PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE lv_end_of_table TINYINT DEFAULT 0;...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
check_for_penalty def cooperative check_for_penalty PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE lv_end_of_table TINYINT DEFAULT 0;...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
check_for_processing_fee def cooperative check_for_processing_fee PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE lv_end_of_table TINYINT DEFAULT 0;...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_accrued_interest def cooperative get_accrued_interest PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
SELECT
		COALESCE(SUM(`amount`), 0)
	INTO
		p_a...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_interest_balance def cooperative get_interest_balance PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE amount_to_be_paid, total_payment D...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_interest_balance_by_date def cooperative get_interest_balance_by_date PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE amount_to_be_paid, total_payment D...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_interest_rate def cooperative get_interest_rate PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
SELECT
		`interest_rate`
	INTO
		p_interest_rat...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_interest_receivables def cooperative get_interest_receivables PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE total_interest, total_payment DECI...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
check_loan_status def cooperative check_loan_status PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE principal_flag, interest_flag, pen...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_min_processing_fee def cooperative get_min_processing_fee PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
SELECT
		`min_processing_fee`
	INTO
		p_min_pro...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_penalty_balance def cooperative get_penalty_balance PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE amount_to_be_paid, total_payment D...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_penalty_receivables def cooperative get_penalty_receivables PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE total_penalties, total_payment DEC...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_principal_balance def cooperative get_principal_balance PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE amount_to_be_paid DECIMAL(10, 2);
...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_principal_balance_by_date_time def cooperative get_principal_balance_by_date_time PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE amount_to_be_paid, total_payment D...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_processing_fee def cooperative get_processing_fee PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE lv_interest_rate DECIMAL(3, 2);
	...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_processing_fee_balance def cooperative get_processing_fee_balance PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE amount_to_be_paid, total_payment D...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
get_processing_fee_receivables def cooperative get_processing_fee_receivables PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
BEGIN
	DECLARE total_processing_fees, total_payme...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
precise_timestampdiff_month def cooperative precise_timestampdiff_month PROCEDURE NULL NULL NULL NULL NULL NULL NULL NULL SQL
SET p_date_difference = 
		TIMESTAMPDIFF(MONTH, p...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
total_amount_lent def cooperative total_amount_lent FUNCTION decimal NULL NULL 30 2 NULL NULL NULL decimal(30,2) SQL
RETURN (
		SELECT
			COALESCE(SUM(`principal`), ...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
total_interest_paid def cooperative total_interest_paid FUNCTION decimal NULL NULL 9 2 NULL NULL NULL decimal(9,2) SQL
BEGIN
	DECLARE lv_total_payment DECIMAL (9, 2);
...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
total_payments_by_loan def cooperative total_payments_by_loan FUNCTION decimal NULL NULL 50 2 NULL NULL NULL decimal(50,2) SQL
RETURN (
		total_principal_paid(p_loan_id) + tota...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
total_penalty_paid def cooperative total_penalty_paid FUNCTION decimal NULL NULL 9 2 NULL NULL NULL decimal(9,2) SQL
BEGIN
	DECLARE lv_total_payment DECIMAL(9, 2);

...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
total_principal_paid def cooperative total_principal_paid FUNCTION decimal NULL NULL 10 2 NULL NULL NULL decimal(10,2) SQL
BEGIN
	DECLARE lv_total_payment DECIMAL(10, 2);
...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
total_processing_fee_paid def cooperative total_processing_fee_paid FUNCTION decimal NULL NULL 8 2 NULL NULL NULL decimal(8,2) SQL
BEGIN
	DECLARE lv_total_payment DECIMAL(8, 2);

...
NULL NULL SQL NO CONTAINS SQL NULL DEFINER 2024-12-03 05:51:02 2024-12-03 05:51:02 NO_ZERO_IN_DATE,NO_ZERO_DATE,NO_ENGINE_SUBSTITUTIO... root@localhost utf8mb4 utf8mb4_unicode_ci utf8mb4_general_ci
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