blob_id
stringlengths
40
40
language
stringclasses
1 value
repo_name
stringlengths
5
133
path
stringlengths
3
276
src_encoding
stringclasses
33 values
length_bytes
int64
23
9.61M
score
float64
2.52
5.28
int_score
int64
3
5
detected_licenses
listlengths
0
44
license_type
stringclasses
2 values
text
stringlengths
23
9.43M
download_success
bool
1 class
ea7b8fdbed4facfa3b0841ba6064f341eb7bcc2d
SQL
wlacoste/BD1TP
/Procedimientos/CRUD/Consecionario/cantConsecionarios.sql
UTF-8
263
2.859375
3
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `CantConsecionarios`(IN nombreC VARCHAR(45), OUT resultado INT) BEGIN declare valor int; DECLARE c CURSOR FOR select Count(Nombre) from consecionaria WHERE Nombre = nombreC; OPEN c; FETCH c into resultado; CLOSE c; END
true
746a2244532f7d37d0cda1f89767fafc6e99a151
SQL
vsimkiv/DWBI-EPAM-LABOR
/labor-1/2-select-join/02.sql
UTF-8
98
2.828125
3
[]
no_license
SELECT DISTINCT [maker] FROM [product] pr JOIN [pc] ON pr.model = pc.model WHERE [pc.speed] >= 600
true
a37f857e4ba5cb399cb60597bf92ad74439da479
SQL
PriscillaRR/ingenieriaWeb
/2021-1/InicioSession/BD/Tiquetes.sql
UTF-8
2,757
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 07-06-2021 a las 21:52:08 -- Versión del servidor: 10.4.18-MariaDB -- Versión de PHP: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
107a0b3266334d703612922f8ae189fbc6c51954
SQL
QuenLo/LeetCode-share
/AndyHo/SQL/Q176_2nd_highest_salary.sql
UTF-8
1,066
4.21875
4
[ "MIT" ]
permissive
# Write your MySQL query statement below ## [Problem] not able to return null if no row found # However, this solution will be judged as 'Wrong Answer' if there is no such second highest salary since there might be only one record in this table. # 1. ------------------------------------------------------------ # SELEC...
true
c67c3e6585bfe4b99f54117f4a831b8d61d5f281
SQL
kekebeke/twilio_project
/twilio_project/twilio_sms.sql
UTF-8
1,653
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 08, 2020 at 10:00 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
549d8141bd70bcd382fb64a72fa22d9d41e6e70b
SQL
smnra/TopN
/bak/2017年11月17日112106/wcdma_sql/小区寻呼拥塞率.SQL
GB18030
2,216
3.9375
4
[]
no_license
select * from (SELECT rrc.city, rrc.wcel_rnc_id, rrc.ci, rrc.wbts_name, rrc.rpdate, rank() over( Partition by rrc.city Order by rrc.СѰӵ_X DESC) AS RANKS, rrc.СѰӵ, rrc.СѰӵ_X, rrc.СѰӵ_Y, rrc.FAIL_PAG_NO_RESP_CELL_PCH, rrc.FAIL_PA...
true
6548e6d3b6c2cb8ef9d4df3833fcc3194c4cea4b
SQL
dujun010/water
/mySql.sql
UTF-8
3,179
3.21875
3
[]
no_license
-- ----------------------------------------------- -- 创建teacher数据库 并且创建名为:teacher的表 -- -- ----------------------------------------------- drop database IF EXISTS `teacher`; CREATE DATABASE teacher; SET FOREIGN_KEY_CHECKS=0; DROP TABLE IF EXISTS `teacher`; CREATE TABLE `teacher` ( `ID` varchar(50) NOT ...
true
642270181d66e40432e7ba423267c7407486a483
SQL
greatjy/jianzhioffer
/src/com/baidu/leetcode-sql/rasing_temperature_197.sql
UTF-8
237
3.625
4
[]
no_license
# Write your MySQL query statement below # 寻找比昨天温度更高的天的id select w1.Id from Weather as w1 left join Weather as w2 on DATEDIFF(w1.RecordDate, w2.RecordDate) = 1 where w1.Temperature > w2.Temperature;
true
b0247defbba7365257b570bb60c08924f0511567
SQL
groya52/sqlserver
/_Scripts/sys.dm_db_index_usage_stats.sql
UTF-8
1,667
3.5
4
[]
no_license
/* https://www.safaribooksonline.com/library/view/expert-performance-indexing/9781484211182/9781484211199_Ch03.xhtml#Sec13 */ SELECT OBJECT_SCHEMA_NAME(i.[object_id]) + N'.' + OBJECT_NAME(i.[object_id]) AS [object_name] ,i.[name] AS index_name ,STUFF((SELECT N', ' + c.name FROM sys...
true
ab944c175f6ab25b12d300154b7f175e9aa4d3e6
SQL
foxel/QuickFox2
/install/structure.sql
UTF-8
23,160
3.171875
3
[]
no_license
# # QuickFox Setup SQL template [structure section]. # # Table definition for {DBKEY}blog_entries DROP TABLE IF EXISTS `{DBKEY}blog_entries` ; CREATE TABLE `{DBKEY}blog_entries` ( `id` char(8) COLLATE ascii_general_ci NOT NULL, `author` char(16) NOT NULL, `author_id` int(10) unsigned NOT NULL DEFAULT...
true
63ead508b8598dfda38443646777f3dcd256c6a1
SQL
HeidiW/wdi_project_three
/freeday_app/db/schema.sql
UTF-8
1,086
3.9375
4
[]
no_license
-- easy db reset -- DROP TABLE events; DROP TABLE activities; DROP TABLE windows; DROP TABLE memberships; DROP TABLE people; -- run script using command -- $ psql -d <db_name> -a -f path/to/schema.sql/file -- these lines delete all entries, tables & recreates these tables, -- useful for changing tables, running...
true
248a897095b55af002118c1821ee6c67c2db4c42
SQL
whitejh/KW-SE-project-2021
/deployments/db/schema.sql
UTF-8
3,215
3.859375
4
[]
no_license
CREATE TYPE public.role AS ENUM ('ADMIN', 'CONSUMER', 'SELLER'); CREATE TABLE IF NOT EXISTS public.member ( id text NOT NULL, email text NOT NULL, phone_number text, created_at timestamp with time zone NOT NULL DEFAULT CURRENT_TIMESTAMP, ...
true
7328e1804836ce8ad3efc5a44705bae4241aa860
SQL
ankoanju/Simpact
/sql/004_create_perks_table.sql
UTF-8
448
2.703125
3
[]
no_license
CREATE TABLE `perks` ( `id` int NOT NULL AUTO_INCREMENT, small_business_id int not null references small_businesses(id), `name` varchar(60) NOT NULL, `point_price` int NOT NULL, `starts` date NOT NULL, `ends` date NOT NULL, `combination_with_other_offers` tinyint NOT NULL, `perk_photo` varchar(100) NOT ...
true
c5ac911b1ef802abac93d792f8a42fa6a9c3be77
SQL
przemyslawstudzinski/mots
/src/main/resources/db/changelog/20181221_1418.mysql.sql
UTF-8
649
2.625
3
[ "Apache-2.0" ]
permissive
--liquibase formatted sql --changeset pmuchowski:1545398308048-1 UPDATE `user_permission` SET `name` = 'ROLE_UPLOAD_CHW_OR_INCHARGE_CSV', `display_name` = 'Upload CHW or Incharge CSV' WHERE `id` = '1078f9ec-8b05-4db5-b1d1-78a622773983'; --changeset pmuchowski:1545398308048-2 INSERT INTO `user_permission` (`id`, `name...
true
48c474684e58514319305e5017705ff0569d54c3
SQL
bellmit/origin
/family_order/sql/.svn/pristine/48/48c474684e58514319305e5017705ff0569d54c3.svn-base
UTF-8
190
2.9375
3
[]
no_license
SELECT to_char(a.user_id) user_id FROM ti_a_serv_deduct a,tf_f_user_serv_deduct b WHERE a.user_id =b.user_id AND b.agent_code =:AGENT_ID AND a.deduct_tag='0' AND a.deal_tag='0' AND ROWNUM<2
true
f2a701ac0b0e89656f57aa50fd2fb49a8d443ab6
SQL
MBelniak/projectX
/src/main/webapp/resources/db/migration/V1.0.0__init.sql
UTF-8
1,114
3.8125
4
[]
no_license
CREATE TABLE PARTY( id INT PRIMARY KEY, name VARCHAR2(100), description VARCHAR2(1000), date DATE, time TIME, city VARCHAR2(100), address VARCHAR2(100), priv BOOLEAN, image_id INT, organizer_id INT ); CREATE TABLE IMAGE ( id INT PRIMARY ...
true
f1d6231e51ba4b7b73d328d342fc5a9383d64cd9
SQL
mkiki/willie-miouzik
/sql/update.sql
UTF-8
4,675
3.546875
4
[ "MIT" ]
permissive
-------------------------------------------------------------------------------- -- willie-miouzik - Update database structure -------------------------------------------------------------------------------- DO $$ DECLARE ver varchar; BEGIN EXECUTE 'SELECT value FROM core_options WHERE name = ''miouzik.databaseVer...
true
b212c286e60a4f48c7c19fdd747d503a2996213a
SQL
DataTasteMaker/my_SeQueL
/sqlzoo_solutions/The_JOIN_operation_SQLZOO.sql
UTF-8
7,783
4.25
4
[]
no_license
## The JOIN operation From SQLZOO -- game -- id mdate stadium team1 team2 -- 1001 8 June 2012 National Stadium, Warsaw POL GRE -- 1002 8 June 2012 Stadion Miejski (Wroclaw) RUS CZE -- 1003 12 June 2012 Stadion Miejski (Wroclaw) GRE CZE -- 1004 12 June 2012 National Stadium, Warsaw POL RUS -- ... -- goal -- matchid te...
true
388800e6d3e95e0bff2ebccc6a15d43097bcb3a5
SQL
yxy982694/oracle
/源码/Oracle的演示源码--第13章/13-5.sql
GB18030
477
3.234375
3
[]
no_license
--쳣SQLCODESQLERRMʹ DECLARE v_empno emp.empno%TYPE:= &empno; v_ename emp.ename%TYPE:= '&ename'; v_deptno emp.deptno%TYPE:= &deptno; BEGIN INSERT INTO emp(empno,ename,deptno)VALUES(v_empno,v_ename,v_deptno); IF SQL%FOUND THEN DBMS_OUTPUT.put_line('ݲɹ'); COMMIT; END IF; EXCEPTION WHEN OTHERS THEN ...
true
d7ab51771f3905fb8cca37676c2145dc6d8179e4
SQL
HaykLach/Projects
/ShopDB.sql
UTF-8
3,315
3.140625
3
[]
no_license
/* SQLyog Ultimate v9.20 MySQL - 8.0.18 : Database - shop ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_K...
true
c78536206e5545951918865899144c687c1421fb
SQL
victorPiasc/pibt4.0
/Z_project/Oracle SQL/Procedures/WEB_UPDATEEMPLOYERDBA.sql
UTF-8
395
2.625
3
[]
no_license
Create Or Replace Procedure Web_UpdateEmployerDBA ( Prowid In Varchar2, Pemployerid In Varchar2, pDbaname In Varchar2 ) As varCount number(1,0); Begin Select Count(1) Into Varcount From Employerdba Where Employerid=Pemployerid And Dbaname=Pdbaname; if Varcount=0 then Update Employerdba Set Employerid = P...
true
b8101413b9ef05ccbbfb4d2b0ad383eda2910cd2
SQL
sairam940/collegeAutomationProject
/SQL Queries and Stored Procs_Final/DeploymentScripts/09_uspBookReturn.sql
UTF-8
1,406
3.84375
4
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `uspBookReturn`( IN i_BookCode varchar(100) , IN i_StudentID int , OUT o_BookAvailability int, OUT o_BookID int, OUT o_IsBookCanBeReturned int, OUT o_IsBookAlreadyReturned int ) Begin declare IsBookAlreadyReturned int; declare MaximumAvailability int; set o_Boo...
true
da9c9744c400f2333e71d36c9ad67ef49b984d8a
SQL
joshpodl/ETL-project
/SQL/ETL_schema.sql
UTF-8
2,272
3.5625
4
[]
no_license
DROP TABLE IF EXISTS census, schools, income_tax, property_tax; CREATE TABLE "census" ( "county_name" varchar(20) NOT NULL, "total_households" numeric(15) NOT NULL, "average_household_size" numeric(15) NOT NULL, "total_population" numeric(15) NOT NULL, "computers_and_internet_use_tota...
true
070efa690be3f313dfff42cf65a3c9d3c8147a33
SQL
varela12150/Proyectos
/SQL/Query.sql
UTF-8
3,351
4.28125
4
[]
no_license
SELECT con.contest_id, con.hacker_id, con.name, sum(sub.total_submissions), sum(sub.total_accepted_submissions), sum(vs.total_views), sum(vs.total_unique_views) FROM contests con JOIN colleges col on con.contest_id = col.contest_id JOIN challenges cha on col.college_id = cha.college_id LEFT JOIN (S...
true
88695327cd479d2f46978d9fe548f3dba8738bfd
SQL
lucianostegun/irank
/data/sql/alter/20120502.sql
UTF-8
1,399
3.796875
4
[]
no_license
CREATE SEQUENCE settings_seq; CREATE TABLE settings ( id INTEGER NOT NULL DEFAULT nextval('settings_seq'::regclass) PRIMARY KEY, tag_name VARCHAR(50) UNIQUE, settings_name VARCHAR(30), description VARCHAR(100), default_value VARCHAR(100), created_at TIMESTAMP, updated_at TIMESTAMP ); CREATE...
true
6133a5497ed8d5f573ff3d85b8f706380754e979
SQL
josselaer/recommendations
/RecommenderApplication.sql
UTF-8
1,352
4.625
5
[]
no_license
CREATE DATABASE IF NOT EXISTS Recommender; USE Recommender; CREATE TABLE IF NOT EXISTS User( UserID int NOT NULL AUTO_INCREMENT, UserName varchar(50), PRIMARY KEY (UserID) ); CREATE TABLE IF NOT EXISTS Product( ProductID int NOT NULL AUTO_INCREMENT, ProductName varchar(225), PRIMARY KEY (ProductID...
true
9c70385f0c3403087438130594fac59acbb9754e
SQL
a13269756843/practice0509
/sql/practice_role.sql
UTF-8
385
2.6875
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for 0509_role -- ---------------------------- DROP TABLE IF EXISTS `0509_role`; CREATE TABLE `0509_role` ( `role_id` int(11) NOT NULL auto_increment, `name` varchar(64) NOT NULL, `description` varchar (255) NOT NULL , PRIMARY KEY (`ro...
true
1ac2137ea6708d894150408b0c38d40cd5260017
SQL
radtek/abs3
/sql/mmfo/bars/Table/skrynka_nd.sql
WINDOWS-1251
12,790
2.96875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/SKRYNKA_ND.sql =========*** Run *** == PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
34edf7c5a9509c47d81f0feeaf971bf13d08989b
SQL
espindola-lucas/HardwareSale
/mvc/hardwareSales.sql
UTF-8
3,523
3.015625
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 07, 2020 at 08:24 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
5fa86e532a7f32c8a90397c9e9c42871efbd3dfd
SQL
michaelskou/CustomActiviti
/数据库表结构/customactiviti.sql
UTF-8
39,282
2.921875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mylocal Source Server Version : 50717 Source Host : localhost:3306 Source Database : customactiviti Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2019-05-02 16:38:11 */ SET FOREIGN_KEY_CHECKS=0; ...
true
e8fcae7921c7d9df0c0497879f5193daeb4a5fd3
SQL
alvarogomezmu/dam
/AccesoDatos/SQL/EjercicioSubconsultas/Ejercicio02.sql
UTF-8
192
2.859375
3
[]
no_license
/* Selecciona el nombre de los/el socio/s que se ha inscrito en un deporte con cuota 200 */ select nombre from socios where numero in ( select numerosocio from inscritos where cuotas = 200);
true
3065b9d00f0de3a4774ec07fb0aa8f5b7f7188b0
SQL
J2EE-Secirity/CourseManagementSystem
/src/main/config/ddl_generated.sql
UTF-8
18,145
2.640625
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.1.2 -- Dumped by pg_dump version 9.1.2 -- Started on 2012-06-27 15:52:34 SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_...
true
398c6bddcad5956e1f9af45f899828dbd3846d43
SQL
who-espen/metabase-script-sql
/src/oncho/oem_oia/dashboard/13_cluster_map_positives.sql
UTF-8
767
3.0625
3
[ "Unlicense" ]
permissive
/* * File: 13_cluster_map_positives.sql * File Created: Saturday, 2nd May 2020 1:50:50 pm * Author: Dyesse YUMBA * Last Modified: Saturday, 2nd May 2020 1:53:33 pm * Modified By: Dyesse YUMBA * ----- * (c) 2020, WHO/AFRO/UCN/ESPEN */ /* * This query will will display a pin Map of clusters with positive cases ...
true
3ee1783d7a5210a228ae4e11271d3eec34d4691c
SQL
stefmolin/Watson-API
/queries/sherlock/performance/dedup.sql
UTF-8
345
3.671875
4
[ "MIT" ]
permissive
SELECT day , campaign_id , CASE WHEN SUM(sales_all_post_click) = 0 THEN 0 ELSE SUM(sales_all_post_click) / SUM(sales_all_post_click_non_deduplicated) END AS dedup_ratio FROM schema.table AS stats WHERE campaign_id = {campaign_id} AND day BETWEEN '{start_date}' AND '{end_date}' GROUP BY day , ca...
true
d88b76be80d110711104622b2737ca45063101ac
SQL
st34m3r/erp
/tables/can_bordereau_cheque.sql
UTF-8
1,531
2.84375
3
[]
no_license
-- =================================================================== -- Copyright (C) 2006 Rodolphe Quiedeville <rodolphe@quiedeville.org> -- Copyright (C) 2009 Regis Houssin <regis@dolibarr.fr> -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General ...
true
861b47f2f481c914578ec24e3d3a46700cc09730
SQL
HideMe2018/HideMe
/tables/pictureprivacy_relationship.sql
UTF-8
3,166
2.90625
3
[]
no_license
<<<<<<< HEAD -- MySQL dump 10.13 Distrib 5.7.12, for Win32 (AMD64) -- -- Host: localhost Database: pictureprivacy -- ------------------------------------------------------ -- Server version 5.7.14-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARAC...
true
80015cdb59bf3d1fe67fb8cdb1aee7e3925def49
SQL
P-Anurag/Face-recognition
/face_detection.sql
UTF-8
3,383
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 15, 2020 at 01:28 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
638899093cdb1fc34c12382fd99d9525ac51ca8c
SQL
NITZZZYY/egov
/database.sql
UTF-8
1,952
3.515625
4
[]
no_license
#users table CREATE TABLE `egov`.`users` ( `userid` VARCHAR(70) NOT NULL PRIMARY KEY , `username` VARCHAR(30) NOT NULL UNIQUE, `name` VARCHAR(30) NOT NULL , `password` VARCHAR(300) NOT NULL , `registerationTime` DATE NOT NULL DEFAULT CURRENT_TIMESTAMP ); #keys table CREATE TABLE `egov`.`userKeys` ( `userid` VARCHAR(70...
true
73c0b072dd31b46a481bf0265a8ff75a960aaff8
SQL
movebx/clockshop
/shop.sql
UTF-8
11,196
3.140625
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.2deb2 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Янв 15 2016 г., 12:28 -- Версия сервера: 5.6.27-2 -- Версия PHP: 5.6.16-2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
true
c234579407cd07187def3030c2e7736562acc9c3
SQL
JoannaRatajczak/mysql
/SQL - pracownicy.sql
UTF-8
2,394
3.75
4
[]
no_license
CREATE TABLE pracownik (id INT auto_increment PRIMARY KEY, imie VARCHAR(20) NOT NULL, nazwisko VARCHAR(50) NOT NULL, wyplata DECIMAL(7,2), data_urodzenia DATE NOT NULL, wiek INT NOT NULL, stanowisko VARCHAR(50) ); INSERT INTO pracownik (imie, nazwisko, wyplata, data_urodzenia, wiek, stanowisko) VALUES ('Geralt', 'Wi...
true
00c0df2f2b15328088255393c5516d5267a3cd60
SQL
unee-t/skeema-experiment
/bugzilla/series.sql
UTF-8
1,177
3.5625
4
[]
no_license
CREATE TABLE `series` ( `series_id` mediumint(9) unsigned NOT NULL AUTO_INCREMENT, `creator` mediumint(9) unsigned DEFAULT NULL, `category` mediumint(9) unsigned NOT NULL, `subcategory` mediumint(9) unsigned NOT NULL, `name` varchar(64) COLLATE utf8mb4_unicode_520_ci NOT NULL, `frequency` smallint(6) unsign...
true
11a5616a489c373b868a12810f06aa11b0e3c4f3
SQL
IzraelAA/MesinAbsensi
/127_0_0_1.sql
UTF-8
18,308
3.109375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 31 Jan 2020 pada 06.55 -- Versi server: 10.4.8-MariaDB -- Versi PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
4b45fa9abfa812182a219ad80de6e55452d98774
SQL
muc22/foodProject
/resources.sql
UTF-8
4,748
3.3125
3
[]
no_license
/* SQLyog Ultimate v11.24 (32 bit) MySQL - 5.6.23 : Database - resources ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHEC...
true
41d5ead945f41d5c0660e2a0bb7995cd43bc8397
SQL
somprasongd/dockerize
/postgresql/db-server/sql/init.sql
UTF-8
1,028
3.46875
3
[]
no_license
CREATE TABLE public.auth_user ( id serial NOT NULL, full_name varchar(255) NOT NULL, email varchar(50) NOT NULL, password varchar(100) NOT NULL, is_admin bool NOT NULL DEFAULT false, created_at timestamptz NOT NULL DEFAULT now(), updated_at timestamptz NOT NULL DEFAULT now(), username varchar(50) NOT NULL, is_...
true
5662e523eb8a954768df04797c128094da628511
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISSQL.Database/dbo/Views/vw_exporta_cliente.sql
UTF-8
4,648
3.265625
3
[]
no_license
 CREATE VIEW vw_exporta_cliente --vw_exporta_cliente --------------------------------------------------------- --GBS - Global Business Solution 2003 --Stored Procedure : Microsoft SQL Server 2003 --Autor(es) : Alexandre Del Soldato --Banco de Dados : EGISSQL --Objetivo : Exportação d...
true
65c08583981b50a8f8e2d048ee1027b3ec1a341e
SQL
gialnet/collect_tax
/580_PLANIFICACION_TAREAS.SQL
ISO-8859-2
1,927
3.265625
3
[]
no_license
-- ----------------------------------------------------- -- Euro. Revisado el 5-12-2001. Lucas Fernndez Prez -- No se han realizado cambios. -- ----------------------------------------------------- /*----------------------------------------------------------------*/ /* ENERO - 2.001 AUTOR: LUCAS */ /*----------------...
true
c43938511b7cd9495bbc3d7855bf3fd61323106c
SQL
devmasterperu/SQL2017-Grupo13
/BLOQUE-03/Parte02.sql
ISO-8859-1
2,421
4.0625
4
[]
no_license
--03.06 select t.tipo as TIPO,t.numero as NUMERO,t.codcliente as COD_CLIENTE, c.razon_social as EMPRESA,z.nombre as ZONA from Telefono as t inner join Cliente as c on t.codcliente=c.codcliente inner join Zona as z on c.codzona=z.codzona where t.estado=1 and c.tipo_cliente='E'--c.estado=1 order by c.codcliente asc --0...
true
b14b5f635653b5cb694dc262e60d68fc13330a9b
SQL
AutohomeCorp/frostmourne
/doc/mysql-schema/tables/data_source.sql
UTF-8
792
3.234375
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS data_source; CREATE TABLE IF NOT EXISTS data_source ( id BIGINT AUTO_INCREMENT PRIMARY KEY COMMENT '自增主键', datasource_name VARCHAR(500) NOT NULL COMMENT '数据源名称', datasource_type VARCHAR(500) NOT NULL COMMENT '数据源类型。(Elasticsearch, Influxdb)', service_address VARCHAR(500...
true
c2bd3b8afa3b9855880655874b670b9b19e85426
SQL
Handora/peloton
/script/testing/dml/joins.sql
UTF-8
2,556
3.8125
4
[ "Apache-2.0" ]
permissive
-- create the test tables DROP TABLE IF EXISTS A; DROP TABLE IF EXISTS B; create table A(id INT PRIMARY KEY, data TEXT); create table B(id INT PRIMARY KEY, data TEXT); -- load in the data INSERT INTO A VALUES(0, 'Ming says Hello World 0'); INSERT INTO A VALUES(1, 'Ming says Hello World 1'); INSERT INTO A VALUES(2, 'M...
true
60b267a67af4504a221114a89cbe1067c8ba12f0
SQL
minamikobayashi/backup
/ecsite4/sql/shop.sql
UTF-8
21,490
3.5625
4
[]
no_license
drop database if exists shop; create database shop character set utf8; use shop; create table user_info( id int primary key not null auto_increment comment "ID", user_id varchar(128) unique key not null comment "ユーザーID", password varchar(16) not null comment "パスワード", family_name varchar(32) not null comment "姓", first...
true
9ad7a267d5602c89c64f37c4f086abee1ebc7275
SQL
mavalos90/codewars_katas
/sql/6_kyu/full_text_search.sql
UTF-8
438
3.671875
4
[]
no_license
-- SQL Basics: Simple FULL TEXT SEARCH -- 6 kyu /* For this challenge you need to create a simple SELECT statement. Your task is to create a query and do a FULL TEXT SEARCH. You must search the product table on the field name for the word Awesome and return each row with the given word. Your query MUST contain to_tsv...
true
4e7279ea04f9be6ba40de4de62b57d934e6c3111
SQL
abhichy/Admin-User-Software
/public/laraveldb.sql
UTF-8
15,522
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 09, 2021 at 06:55 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
bd3e959828261e2fe65de6ef87a6ba215b029d78
SQL
amechin/T-SQL
/Exemple_ecole_create.sql
ISO-8859-1
12,215
3.703125
4
[]
no_license
SET dateformat dmy; -- Table : ELEVES CREATE TABLE ELEVES ( NUM_ELEVE int NOT NULL IDENTITY(1,1), NOM VARCHAR(25) NOT NULL, PRENOM VARCHAR(25) NOT NULL, DATE_NAISSANCE DATETIME, POIDS int, ANNEE int, CONSTRAINT PK_ELEVES PRIMARY KEY (NUM_ELEVE) ); -- Table : COURS CREATE TABL...
true
623ece9314d58caa9412e7b91e87562158421c8d
SQL
gregorycrane/GreekLatinVocab
/bin/vocab.sql
UTF-8
559
3.125
3
[]
no_license
create table vocab ( word varchar(30) not null, lemma varchar(30), list_id varchar(10) not null, list_order int not null, gloss varchar(150), index vocab_list_id_order(list_id, list_order) ); create table vocab_list_section ( list_id varchar(10) not null, list_order int not null, section_title varchar(100) ...
true
bf7944bea57c5f81fc10cf8f2abc896e3fb2e810
SQL
efriaman/codeigniter4-restapi-jwt-logs
/db/api_db.sql
UTF-8
2,775
3.203125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 25, 2021 at 03:25 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
67537fea61fc722eeebf16338762b377ee37bd86
SQL
1048596/tracker
/sql/select-manga-by-group-id.sql
UTF-8
209
3.265625
3
[]
no_license
select m.* from mangas m left join chapters c on m.id = c.manga_id left join chapter_scanlated_by csb on c.id = csb.chapter_id left join groups g on csb.group_id = g.id where g.id = 3 group by m.id;
true
f716ac5dbc3e9e4113614c6d71299e2e09e8ba0d
SQL
topcoder-platform/tc-java-components
/components/online_review_phases/test_files/sqls/create/project_audit.sql
UTF-8
2,233
3.984375
4
[]
no_license
database online_review; -- create new lookup table for audit action types create table 'informix'.audit_action_type_lu ( audit_action_type_id INT not null, name VARCHAR(50) not null, description VARCHAR(50) not null, create_user VARCHAR(64) not null, create_date DATETIME YEAR TO FRACTION de...
true
ac6b842dfcb79f99e75684e77c385a5cd1d20189
SQL
lassebue/Black-book
/HandIn1/HandIn1/Script1.sql
UTF-8
723
2.515625
3
[]
no_license
 Insert into Person (PersonID,FirstName,SirName) values (1, 'George','Gay') Insert into Person (PersonID,FirstName,SirName) values (0, 'George','Gay') Insert into Person (PersonID,FirstName,SirName) values (2, 'George','Gay') Insert into Person (PersonID,FirstName,SirName) values (3, 'George','Gay') inser...
true
ec2ff08a8c9e047849b32e84190d9391fdcad190
SQL
adarshSolution/ProjectManagment
/projectmanagment.sql
UTF-8
2,531
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 08, 2019 at 07:17 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
6d12a63c9e91350fbda21adf4b680e727fafde1a
SQL
bayanalmoghrbel/adopet
/adopet.sql
UTF-8
453
2.515625
3
[ "CC-BY-4.0", "CC-BY-3.0" ]
permissive
create database adopetedecachorros; use adopetedecachorros; create table usuario ( codigo int (4), nome varchar (30), endereco varchar(30), idade int (2), cpf varchar (11), email varchar (30), telefonne varchar (12), url_da_imagem varchar (255), primary key (codigo) ); create table pet ( codigo int (4), nome varcha...
true
5b8ce6ef7758a96ec0bf5f8c0380f2dde5218512
SQL
Q10Viking/practice-projects
/3.Spring_MVC+Spring+mybatis/11.多对多查询/10_many2many/db/middle.sql
UTF-8
913
2.90625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50540 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50540 File Encoding : 65001 Date: 2018-09-25 22:02:17 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
a4be953579f3fc7c4244b13c46e1693e5134ac16
SQL
yzen/bigquery-etl
/templates/telemetry_derived/latest_versions/query.sql
UTF-8
502
3.453125
3
[]
no_license
SELECT channel, MAX(CAST(app_version AS INT64)) AS latest_version FROM (SELECT normalized_channel AS channel, SPLIT(application.version, '.')[OFFSET(0)] AS app_version, COUNT(*) FROM `moz-fx-data-shared-prod.telemetry_stable.main_v4` WHERE DATE(submission_timestamp) > DATE_SUB(CURRENT_DA...
true
5a673692d615b545bc80526a0ee33268c9947524
SQL
jtoepfer/foxriversports
/sports-model/src/scripts/sql/foxriversports_data_model.sql
UTF-8
5,977
3.734375
4
[]
no_license
-- This contains the model of the fox river sports website. -- -- Author: Josh Toepfer 8/22/2014 -- Revisions -- 10/02/2014 Added more entities to the list ------------------------------------------------------------ CREATE TABLE FOXRIVERSPORTS.CAMPUS ( CAMPUSID INT NOT NULL GENERATED ALWAYS AS IDENTITY, ...
true
4311977d8014a076f0e0957bb8bd767552caff2d
SQL
SymbolZ/LabelMeAnnotationTool
/mysql/init/init.sql
UTF-8
364
3.125
3
[ "MIT" ]
permissive
CREATE USER 'username'@'%' IDENTIFIED BY 'password'; GRANT All privileges ON *.* TO 'username'@'%'; CREATE DATABASE IF NOT EXISTS LabelMe; use LabelMe; create table user( id INT NOT NULL AUTO_INCREMENT, username VARCHAR(100) NOT NULL, password VARCHAR(40) NOT NULL, PRIMARY KEY ( id ) ); INSERT INTO user...
true
20b9012c652dfcc4d8ba0e5fa53ab2f295d9b279
SQL
nqdai1992/postgres-basic-practice
/postgres-intermediate/week1/demo/1-distinct.sql
UTF-8
952
3.625
4
[]
no_license
-- DISTINCT AND DISTINCT ON DROP TABLE IF EXISTS racing; CREATE TABLE racing ( make VARCHAR, model VARCHAR, year INTEGER, price INTEGER ); INSERT INTO racing (make, model, year, price) VALUES ('Nissan', 'Stanza', 1990, 2000), ('Dodge', 'Neon', 1995, 800), ('Dodge', 'Neon', 1998, 2500), ('Dodge', 'Neon'...
true
a6e4aabe4a74ea2daefcb4eecc07f5e110691f2a
SQL
dbmdz/cudami
/dc-cudami-server/dc-cudami-server-backend-jdbi/src/main/resources/de/digitalcollections/cudami/server/backend/impl/database/migration/V12.01.00__DDL_add_table_agents.sql
UTF-8
250
2.65625
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS agents (LIKE entities INCLUDING ALL, CONSTRAINT agents_pkey PRIMARY KEY (uuid)) INHERITS (entities); ALTER TABLE corporatebodies NO INHERIT entities, INHERIT agents; ALTER TABLE persons NO INHERIT entities, INHERIT agents;
true
9454e1861218e3a36db2d6ecdcc08a8426a4c621
SQL
xeonye/ilearn
/file/tb_manager_script/bushujiaoben/初始脚本.sql
UTF-8
5,685
3.359375
3
[]
no_license
alter table training_bag_class add audit_status varchar2(1);--结班状态 update training_bag_class set audit_status='W' alter table training_bag_class add budget_status varchar2(1); --确定预算 update training_bag_class set budget_status='W' alter table training_bag_class add end_class_time...
true
fb8be56e2e450eb90821a1e77d5645cbf83aed9c
SQL
cuba-labs/public-file-download
/modules/core/db/init/hsql/20.create-db.sql
UTF-8
322
2.640625
3
[]
no_license
-- begin DEMO_PUBLIC_FILE alter table DEMO_PUBLIC_FILE add constraint FK_DEMO_PUBLIC_FILE_FILE foreign key (FILE_ID) references SYS_FILE(ID)^ create unique index IDX_DEMO_PUBLIC_FILE_UNIQ_LINK_ID on DEMO_PUBLIC_FILE (LINK_ID) ^ create index IDX_DEMO_PUBLIC_FILE_FILE on DEMO_PUBLIC_FILE (FILE_ID)^ -- end DEMO_PUBLIC_FIL...
true
aa6da90dea2f5080110358e92bb7f56c68e203ef
SQL
meysamcoding/Employee-Tracker
/Schema.sql
UTF-8
638
3.609375
4
[]
no_license
DROP DATABASE IF EXISTS Employee_TrakerDB; CREATE database Employee_TrakerDB; USE Employee_TrakerDB; CREATE TABLE department ( id INT AUTO_INCREMENT NOT NULL, name_id VARCHAR(30) NULL, PRIMARY KEY (id) ); CREATE TABLE role( id INT AUTO_INCREMENT NOT NULL, title VARCHAR(30) NULL, salary DECIMAL (10, 2) N...
true
c5bdff164c1d7a82046bfb5b1f89cf4e5e568d86
SQL
GordinV/buh62
/pgsql/TM_2018/curpalkoper.sql
UTF-8
3,138
3.015625
3
[]
no_license
-- View: curpalkoper -- DROP VIEW curpalkoper; CREATE OR REPLACE VIEW curpalkoper AS SELECT library.tun1, library.tun2, library.tun3, library.tun4, library.tun5, library.nimetus, asutus.nimetus AS isik, asutus.id AS isikid, ifnull(journalid.number, 0) AS journalid, palk_oper.journal1id, palk_oper.kpv, palk_oper.su...
true
fdac3c4b0dd210118df9a07d7e8ebac213f5e62b
SQL
crobison/tulsaMugshots
/utils/removeDupes.sql
UTF-8
286
3.71875
4
[]
no_license
select bad_rows.* from newdevrecords as bad_rows inner join ( select personId, MIN(inc) as min_id from newdevrecords group by personId having count(*) > 1 ) as good_rows on good_rows.personId = bad_rows.personId and good_rows.min_id <> bad_rows.inc
true
5df4ea3887eb33ad6eebed4609a9bd3e42186d6f
SQL
BrotherSymeon/store-sales-app
/database/createFileProcessTable.sql
UTF-8
513
2.90625
3
[]
no_license
use etsy_sales; DROP TABLE IF EXISTS FileProcess; create TABLE FileProcess ( FileId BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, PRIMARY KEY (FileId), FileName VARCHAR(100) NOT NULL, ProcessStatus ENUM('CREATED', 'STARTED', 'FINISHED', 'ERROR') ); DROP TABLE IF EXISTS FileProcessDetails; create TABLE FileProces...
true
f2d25b58a41d81bd37147fbbe92f87c4bdb3fa0c
SQL
lclarke98/Automated-Price-Negotiator
/db/db.sql
UTF-8
3,249
3.109375
3
[]
no_license
CREATE DATABASE if not exists pn_DB; CREATE TABLE if not exists pn_DB.userDetails( user_id VARCHAR(25) NOT NULL PRIMARY KEY, user_name VARCHAR(64) NOT NULL, user_email VARCHAR(64) NOT NULL, user_picture VARCHAR(1000) NOT NULL ) ENGINE=INNODB; CREATE TABLE if not exists pn_DB.userCookies( user_id VARCHAR(25)...
true
b5b99f392d28dfb4b1b5ac2d0cd310015846a6ae
SQL
jasvazquez/testVelocidad
/sql/vistas.sql
UTF-8
1,909
3.8125
4
[]
no_license
/* [https://goo.gl/vXiUZZ] Manejo de fechas en SQLITE*/ select max(ping) max_ping, avg(ping) ping, min(ping) min_ping, avg(bajada) bajada, avg(subida) subida from anotacion; select * from anotacion order by ping desc; select max(ping) max_ping, avg(ping) ping, min(ping) min_ping, max(bajada) max_bajada, avg(bajad...
true
5ac88eff4e2a918b9caf22f76cbb86737762cb16
SQL
erwindosianipar/golang
/src/api-artist/database.sql
UTF-8
183
2.53125
3
[]
no_license
create database artist; use artist; create table artist ( id int not null auto_increment, nama varchar(10), debut date, category varchar(10), primary key(id) );
true
28bdbd600345ccd2c49203612e554ab965fe5f31
SQL
junly17/cook
/cookingDB/แยกตาราง/imgtable.sql
UTF-8
1,431
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 02, 2012 at 05:10 AM -- Server version: 5.5.25a -- PHP Version: 5.4.4 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
true
ecf33572a6428dc144b3ba560b3cc0cd954e500b
SQL
Wied58NU/Inventory
/inv_tables/create_table_physical_assets.sql
UTF-8
903
3.0625
3
[]
no_license
SELECT d.name d.type f.tag d.manufacturer d.model d.serial_number d.ip_address d.business_service d.function d.standard_category f.campus f.building f.building_name f.room d.owner_department d.owner_contact ...
true
e436c213969a547c1404cdd6e09f7ad66e6e3e82
SQL
kristybell/Business-Intelligence-Dashboard-for-a-Company
/Task 4.sql
UTF-8
887
4.46875
4
[]
no_license
# Create an SQL stored procedure that will allow one to obtain the average male and female salary # per department within a certain salary rang. Let this range be defined by two values the user # can insert when calling the procedure. # Finally, visualize the obtained result-set in Tableau as a double bar chart. USE e...
true
f9754d925e0b1da89e9782826ceb48f650db156d
SQL
rexfleischer/misc-projs
/web_dev/boydsnest/_private/dbscripts/boydsnest_init.sql
UTF-8
4,145
3.390625
3
[]
no_license
USE invalid1_boydsnest; DROP TABLE IF EXISTS scheme; DROP TABLE IF EXISTS userManual; DROP TABLE IF EXISTS pageFollowers; DROP TABLE IF EXISTS pageForums; DROP TABLE IF EXISTS pageRights; DROP TABLE IF EXISTS pages; DROP TABLE IF EXISTS users; CREATE TABLE users ( userID bigint(20) unsigned NOT NULL AUTO...
true
97d006c7357d48427dc85cf66412e42e4557f664
SQL
ahmadhusain0205/rekomendasi
/database/rekomen.sql
UTF-8
30,772
2.609375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 29, 2021 at 04:18 PM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
251d78b7d9de5bd50028a36e31c630eb6047f871
SQL
RayL2590/Laravelfirst
/larasql.sql
UTF-8
16,177
3.078125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : jeu. 04 mars 2021 à 18:13 -- Version du serveur : 10.4.14-MariaDB -- Version de PHP : 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_S...
true
a9417c5897aa0f03d439f11e98de0ec9665b6941
SQL
danielpmachado/BDAD
/Exame Modelo/3a.sql
UTF-8
170
2.8125
3
[]
no_license
.mode columns .headers on .nullvalue NULL SELECT hostname, nome FROM Servidor, Pessoa WHERE Servidor.vulneravel = "sim" AND Pessoa.idPessoa = Servidor.idResponsavel;
true
3613e5eecb9822ddaed182913e4ef503b50e6503
SQL
ToborTheGreat/Repository01
/stg.sam_neid_transmissionmode_params.sql
UTF-8
1,702
2.96875
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = stg, pg_catalog; DROP INDEX stg.sam_neid_transmissionmode_params_i...
true
54e959a0dc616896ace95ca00c3ef01bbb14524b
SQL
DoMy91/TexasDB
/Codice/Creazione-popolamento/POPOLAMENTO.sql
UTF-8
32,431
2.703125
3
[]
no_license
ALTER SESSION SET NLS_LANGUAGE='AMERICAN'; ALTER SESSION SET NLS_DATE_FORMAT='DD-MON-YYYY HH24:MI'; --PERSON INSERT INTO PERSON VALUES('640381234','LEWIS','HARLEM','07-MAY-1991','M',NULL,NULL,'TARRANT'); INSERT INTO PERSON VALUES('433724532','CASEY','SMITH','19-JAN-1995','M',NULL,'EMERSON ROAD','ALEXANDRIA'); ...
true
96652a503aea9f06956bc096021de2a55e265713
SQL
HansolKim-joy/Oracle_workspace
/4_DDL(ALTER,DROP)/8_ALTER_DROP.sql
UHC
3,309
4.15625
4
[]
no_license
-- ALTER : ü -- ÷ ߰, , SELECT * FROM DEPT_COPY; -- ÷ ߰ ALTER TABLE DEPT_COPY ADD (CNAME VARCHAR2(20)); -- ÷ ߰ DEFAULT ALTER TABLE DEPT_COPY ADD (LNAME VARCHAR2(40) DEFAULT 'ѱ'); -- ÷ DESC DEPT_COPY; -- ڷ, ũ, DEFUALT ALTER TABLE DEPT_COPY MODIFY DEPT_ID CHAR(3) MODIFY DEPT_TITLE VARCHAR2(30) MODIFY LOCATION...
true
9f50ddcc0e3f5629f0f7892271261636d2af34cc
SQL
tucuta/MicroCMS
/microcms.sql
UTF-8
16,972
3.1875
3
[ "MIT" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.25) # Database: microcms # Generation Time: 2019-04-28 08:25:32 +0000 # **********************************************...
true
947c85cc3595d9e32ce2a71cd6a062965d6b8b9c
SQL
bdmlai/analytics_engineering_marts
/models/Redshift/fds_nl/view/vw_aggr_nl_yearly_fin_wwe_live_program_ratings.sql
UTF-8
1,901
3.546875
4
[]
no_license
/* ************************************************************************************************************************************************* Date : 07/21/2020 Version : 1.0 TableName : vw_aggr_nl_yearly_fin_wwe_live_program_ratings Schema : fds_nl Contributor : Hima Dasan Descr...
true
371509cf368bc4de3b45331248a2c456d16cb3c0
SQL
jeffersonmandrade/trybe-exercises-1
/modulo_3/bloco_20/dia_2/exercises-bonus02.sql
UTF-8
295
2.53125
3
[]
no_license
USE faculdade; SELECT nome from biblioteca; SELECT COUNT(*) from biblioteca; SELECT * from biblioteca LIMIT 1000 OFFSET 2; SELECT * FROM biblioteca ORDER BY ano_lancamento, nome; SELECT * FROM biblioteca ORDER BY quantidade DESC LIMIT 1; SELECT * FROM biblioteca ORDER BY vendas DESC LIMIT 4;
true
9de0085a99b986a0ea8c16e332b298ede619bb75
SQL
joespelts/my_projects
/hive_conversion/asft_clc2_ckschmgn_wrk.ddl
UTF-8
1,891
2.671875
3
[]
no_license
-- * DDL HEADER: dev.asft_clc2_ckschmgn_wrk *** -- *************************** TABLE HEADER ****************************** -- * -- * NAME : asft_clc2_ckschmgn_wrk.sql -- * -- * PURPOSE: Creates dev.asft_clc2_ckschmgn_wrk table -- * -- * HISTORY: AUTHOR DATE DESCRIPTION -- * ...
true
d499e606acd998084b23cf87da5515de816a1cfe
SQL
Erick-Neves/Exercicios-MySql
/Lista_3/Query_1.sql
UTF-8
1,540
3.78125
4
[]
no_license
create database db_cidade_das_carnes; use db_cidade_das_carnes; create table tb_categoria( id bigint(5) auto_increment, categoria varchar(255), parte varchar(255), porte varchar(255), primary key(id) ); insert into tb_categoria(categoria,parte,porte) values("Primeira","Nobre","Pequeno"); insert into...
true
49593b871dd8ff905d04ef913337cf720f073f6b
SQL
mikestevenson86/SQL-Repository
/Mike S Queries/Archives/00 Archive 2017/02 February 2017/GI Feb Update.sql
UTF-8
13,760
3.375
3
[]
no_license
IF OBJECT_ID('SalesforceReporting..GIUpdateDONOTTOUCH') IS NOT NULL BEGIN DROP TABLE SalesforceReporting..GIUpdateDONOTTOUCH END CREATE TABLE SalesforceReporting..GIUpdateDONOTTOUCH ( Id VarChar(255), [Market_Location_URN__c] VarChar(255), [Company] VarChar(255), [Street] VarChar(255), [Postalcode] VarChar(255), ...
true
a0fb988df33b60f7875789ee67c003e8ca74e1cc
SQL
sath26/british_db_1_nepal
/create issue table/account.sql
UTF-8
370
2.65625
3
[]
no_license
--send issue when unresolved i.e. while separating error data --send issue when resolved i.e. while cleaning error data --from stg_table create table acc_issues( issue_id number not null, row_id number, issue varchar(50), I_status varchar(50), constraint pk_issue_id primary key(issue_id) ) create s...
true
656c66a8e947eda9941c522c50822d506b7508e4
SQL
terezasimoes/project-mysql-vocabulary-booster
/desafio11.sql
UTF-8
1,543
4.25
4
[]
no_license
-- Exibe todas as pessoas clientes que possuem compatriotas, mostrando a quantidade de compatriotas para cada pessoa cliente. -- Ou seja, suponha que houvese apenas quatro clientes: -- Maria, do Brasil. -- João, do Brasil. -- Gabriela, do Brasil. -- Alex, da Irlanda. -- Logo, podemos dizer que Maria, João e Gabri...
true
41d7cbb069108d7ce42cd01427e3d29850709cae
SQL
BrenoNoccioli/Bootcamp_Generation_turma_14
/modulo2/mysql/lista1/atividade2.sql
UTF-8
1,855
3.71875
4
[]
no_license
-- Atividade 2 /*Crie um banco de dados para um e commerce, onde o sistema trabalhará com as informações dos produtos deste ecommerce.*/ create database db_lojaWeb; use db_lojaWeb; /*Crie uma tabela produtos e utilizando a habilidade de abstração e determine 5 atributos relevantes dos produtos para se trabalhar com o...
true
8523e5098185eadfa0c50bcb1d28bb8e7fa121fe
SQL
cbritezm/cbritezm
/purge/delete_orphans.sql
UTF-8
2,931
3.328125
3
[]
no_license
set serveroutput on; declare v_latch integer(10); v_sysstat integer(10); v_parameter integer(10); begin DBMS_OUTPUT.ENABLE (buffer_size => NULL); SELECT count(*) into v_latch from sys.WRH$_LATCH a WHERE NOT EXISTS (SELECT 1 FROM sys.wrm$_snapshot b WHERE b.snap_id = a.snap_id AND dbid=(SELECT dbid FROM v$data...
true
4bb52279acd443726fcab1ee65cd008e72a89d75
SQL
radtek/abs3
/sql/mmfo/bars/View/v_sto_lst.sql
WINDOWS-1251
1,053
3.1875
3
[]
no_license
prompt create VIEW V_STO_LST create or replace force view v_sto_lst as select s.ids, s.rnk, c.nmk, s.name, s.sdat, s.idg, s.kf, s.branch, s.date_close from sto_lst s join customer c on s.rnk = c.rnk and s.kf = c.kf; grant select on v_sto_lst to bars_access_defrole; comment on table v_sto_lst is ' ...
true
3be78f97914c6ca22abd8ea5846ca4954a073e54
SQL
jisunaing/MoDacAdmin
/MoDacAdmin/src/main/webapp/ERM/modac.sql
UHC
21,592
3.390625
3
[]
no_license
/* Drop Tables */ DROP TABLE genfamily CASCADE CONSTRAINTS; DROP TABLE healthanswer CASCADE CONSTRAINTS; DROP TABLE healthquestion CASCADE CONSTRAINTS; DROP TABLE replyqna CASCADE CONSTRAINTS; DROP TABLE qna CASCADE CONSTRAINTS; DROP TABLE reception CASCADE CONSTRAINTS; DROP TABLE reservation CASCADE CONSTRA...
true
30be92221ca5ecfbd985c417fcb6d1cd9f7885ff
SQL
pauescalantec/Askify
/data/DBAskify.sql
UTF-8
6,311
3.40625
3
[]
no_license
Create database baeAskify; Create Table UserTable( uName VARCHAR(30) NOT NULL PRIMARY KEY, uPass VARCHAR(300) NOT NULL, fName VARCHAR(30) NOT NULL, lName VARCHAR(30) NOT NULL, uEmail VARCHAR(40) NOT NULL, uMajor VARCHAR(30) NOT NULL, uGradYear INT(4) NOT NULL, uRating FLOAT(2), uURL...
true
453505c974598210bc2f431385f244ebb5ca32ad
SQL
imad-inp/bricole
/storage/database/geonames/countries/tt.sql
UTF-8
11,185
2.578125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.35, for osx10.9 (x86_64) -- -- Host: localhost Database: laraclassified -- ------------------------------------------------------ -- Server version 5.6.35 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
2083bac8a3e474c262df0e3e03313271679ba2c8
SQL
teyyub/CrackingSql2020
/LeetCode-SQL/--601. Human Traffic of Stadium.sql
UTF-8
504
3.875
4
[]
no_license
--601. Human Traffic of Stadium with cte as ( SELECT id,visit_date,people, row_number() over (order by id) as rn FROM stadium where people >= 100 ), cte2 as ( SELECT id, visit_date, people, id - rn as diff ...
true