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
f07c353a7c550e20631be98f01fc489d5aefd106
SQL
eurogard/eurogard_mainflux
/docker/cloudDB.sql
UTF-8
2,658
3.90625
4
[ "Apache-2.0" ]
permissive
-- Adminer 4.7.1 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; CREATE DATABASE `digitaix`; CREATE DATABASE `nats`; CREATE DATABASE `cloudDB`; USE `cloudDB`; DELIMITER ;; DROP PROCEDURE IF EXISTS `only_changed_states`;; CREATE PROCEDURE `only_changed_states`(IN `uuid_in` char(40), IN `val_in` int, IN `typ_in...
true
87b9d1b849cae635e1ac44a5c17a982831b0c607
SQL
JereMitch/Week-4-Assessment
/databases/sql-skills.sql
UTF-8
3,057
4.0625
4
[]
no_license
-- Problem 1 insert into artist ( name ) values ( 'NF' ), ( 'Witt Lowry' ), ( 'Logic' ); -- Problem 2 select * from artist order by name limit(5); -- Problem 3 select first_name, last_name, city from employee where city = 'Calgary'; -- Problem 4 select employee_id from employee where first_name = 'Nancy' and las...
true
6f61f835b30a08b6b1fc1d9e9fd83afd2d706dda
SQL
zoomczc/MySQL
/query/Join query.sql
UTF-8
2,440
4.40625
4
[]
no_license
## 连接查询(多表查询) 内连接: 等值连接 非等值连接 自连接 外连接 左外连接 右外连接 全外连接 交叉连接; use girls; use myemployees; ------ 等值连接 -- 查询女对应男名 SELECT name, boyname FROM beauty, boys WHERE beauty.boyfriend_id = boys.id; -- 查询员工名对应的部门名 SELECT last_name, department_name FROM employees, departments WHERE employees.department_id ...
true
153eb008b5241002d67fdd7a2b880163d8d03903
SQL
mohamed224/spring-rest-template-example
/src/main/resources/schema.sql
UTF-8
885
3.484375
3
[]
no_license
//drop tables if she exist DROP TABLE IF EXISTS product; DROP TABLE IF EXISTS payment; DROP TABLE IF EXISTS purchase_order; //create product table CREATE TABLE product (id LONG AUTO_INCREMENT PRIMARY KEY , name VARCHAR(25) NOT NULL , qty_stock INT NOT NULL , ...
true
0f2337d73c40d63a8e034ef8e6be15c5a3debb9d
SQL
darold/pgFormatter
/t/test-files/expected/ex58.sql
UTF-8
3,471
3.8125
4
[ "Artistic-2.0" ]
permissive
CREATE TABLE public.test ( value double precision , ts1 timestamp(4) with time zone , ts2 timestamp with time zone , ts1 timestamp(4) without time zone , ts2 timestamp without time zone , t1 time(4) with time zone , t2 time with time zone , t1 time(4) without time zone , t2 time without time zone , d1 interva...
true
4e0d2d3eba5659fa8bc144d2752917ba65439e4b
SQL
kamil-imielowski/easyfood
/sql/easyfood20171209-16-42.sql
UTF-8
11,391
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 09 Gru 2017, 16:41 -- Wersja serwera: 10.1.21-MariaDB -- Wersja PHP: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
e5f48a761dff8ae7f48bb10c83fbd115c89329a5
SQL
Kabbo-Positive/Doctor-appointment
/jmedisys.sql
UTF-8
14,502
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 02, 2021 at 05:58 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
c7f28b9a54417df8fb967e09d5bec9247866cc03
SQL
fralulu/questionnaire_back
/env-manage/customer-api/src/sql/init-sys-database.sql
UTF-8
6,654
3.546875
4
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2017/9/12 17:08:56 */ /*==============================================================*/ drop table if exists sys_menu; drop table if exis...
true
e529643c5c889c865e60d9170e0a9608dec03707
SQL
Bhalalaronak/15_days_internship_at_Akash_Technolab
/Task7/practice/task7/student/st_db/studentdb.sql
UTF-8
2,105
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 02, 2021 at 12:52 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
e3a598c43ad6f3cabc72591256ae958d64b683eb
SQL
worgelabolg/notepad
/oracle/研究实验/Expert_Oracle test_data/book/ch06/demo05.sql
UTF-8
290
2.671875
3
[]
no_license
set echo on drop table c; drop table p; create table p ( x int primary key ); create table c ( x references p ); insert into p values ( 1 ); insert into p values ( 2 ); commit; insert into c values ( 2 ); set echo off prompt in another session issue: prompt delete from p where x = 1;;
true
065c5586d789f2d28948f92838eab694e7d9c7cc
SQL
ftlabs/perf-widget
/database/e_value_history.sql
UTF-8
585
3.203125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `value_history` ( `property_id` int(11) unsigned NOT NULL, `page_id` int(11) unsigned NOT NULL, `date` int(20) NOT NULL, `value` int(100), `link` varchar(1000), KEY `property_value_history` (`property_id`), KEY `page_value_history` (`page_id`), CONSTRAINT `page_value_history` ...
true
cde45e107a9727fa00595b2eef3c32df5e172f43
SQL
shore1414/cs313-php
/db/mDB.sql
UTF-8
613
3.609375
4
[]
no_license
create table card (id int ,title varchar(256) ,body varchar(256) ,author varchar(256)); create unique index on card (id); create table user_s (id int ,first varchar(256) ,last varchar(256)); create unique index on user_s (id); create table user_s_cards (id int , card_id int , user_s_id int); alter table user_car...
true
b877e6f158694769b382131db9ab0b498952f4ac
SQL
dlkiyindou/libraryproject-services
/db-schema.hibernate5.ddl
UTF-8
3,051
3.40625
3
[]
no_license
drop table if exists address drop table if exists address_user drop table if exists bank_account drop table if exists basket drop table if exists book drop table if exists hibernate_sequence drop table if exists lending drop table if exists order drop table if exists price drop table if exists stock drop table if exist...
true
df4952973a86a979077c3364b2440403ceb5a09a
SQL
srivasta/CnCcalc
/server/stage34_21.sql
UTF-8
42,673
3.515625
4
[]
no_license
-- 000 (Today) CREATE TEMPORARY TABLE TEMP_TODAY AS SELECT ID, case when Today < 1124082000000 then 1124082000000 else Today end FROM runs ; -- 001 (CREATE_TempResults) CREATE TEMPORARY TABLE "Stage34_1072311638_TRslt" ( NAME varchar(255) default NULL, Transpo...
true
5811f415144501364affcd2fe32825188545d0a7
SQL
LulaV14/Example
/cl_db.sql
UTF-8
837
3.4375
3
[]
no_license
--Sql Script for the creation of a web application --List App --Create database cl_db CREATE DATABASE `cl_db` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; --Create table User Information CREATE TABLE cl_db.users ( UserID INT PRIMARY KEY AUTO_INCREMENT, Username VARCHAR(150) NOT NULL, Password VARCHAR(150)...
true
1708968741a01706b3425966e5543b32b5294c9b
SQL
Junior72957/Portal-dos-Livros---Entrega
/LivrosBackEnd/livros.sql
UTF-8
1,800
2.734375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64) -- -- Host: localhost Database: diario -- ------------------------------------------------------ -- Server version 5.7.27-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
true
44e69672131cf73c254ce5d3cbd4429c8a71cef9
SQL
xipki/xipki
/assemblies/xipki-mgmt-cli/src/main/unfiltered/xipki/sql/keypool-init.mysql.sql
UTF-8
1,057
3.296875
3
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS DBSCHEMA; DROP TABLE IF EXISTS KEYSPEC; DROP TABLE IF EXISTS KEYPOOL; -- changeset xipki:1 CREATE TABLE DBSCHEMA ( NAME VARCHAR(45) NOT NULL, VALUE2 VARCHAR(100) NOT NULL, CONSTRAINT PK_DBSCHEMA PRIMARY KEY (NAME) ) COMMENT='database schema information'; INSERT INTO DBSCHEMA (NAME, VA...
true
d9d01cee2d96cebd6836243e4295e690ce1a0aae
SQL
go2suresh1979/MyRepo
/Personal/Solaris/main/mgmt_sv/oracle/plsql/old/tomp_HistCmaPostInsert.sql
UTF-8
2,790
3.453125
3
[]
no_license
/* **---------------------------------------------------------------------------# ** ** Component: $Id: //ovo8/main/mgmt_sv/oracle/plsql/old/tomp_HistCmaPostInsert.sql#1 $ ** Author: swhetsto ** Copyright: Totality Corporation, 2004. All Rights Reserved. ** **--------------------------------------------------...
true
43f32a0aad8430ddb575d890be9e9b67fed2175b
SQL
ywang89/leetcode
/solutions/607_sales_person.sql
UTF-8
297
4
4
[]
no_license
/* ** Question: https://leetcode.com/problems/sales-person/ */ -- method 1 SELECT s.name FROM salesperson s WHERE s.sales_id NOT IN ( SELECT DISTINCT o.sales_id FROM orders o LEFT OUTER JOIN company c ON o.com_id = c.com_id WHERE c.name = 'RED' ) ;
true
64bb0bd62e2899b78d6d2d8b807b85123a0240a1
SQL
LarsBusk/CrystalReports
/Irma/TargetedModel/Verification/GetValuesToSpike.sql
UTF-8
318
3
3
[]
no_license
select * from tblMfCdSample sa inner join tblMfCdSubSample su on su.SampleID = sa.SampleID Inner join tblMfCdPredictedValue pv on pv.SubSampleID = su.SubSampleID where sa.SampleID Between 230 and 242 and pv.ParameterLogicalID = 21 order by sa.SampleID desc select * from tblMfCdParameter where Obsolete = 0
true
965138f03bc859d118cc7036203618ac862d9b93
SQL
dcm4che-dockerfiles/postgres-dcm4chee
/sql/update-5.6-psql.sql
UTF-8
1,682
3.421875
3
[]
no_license
alter table patient add num_studies int4; update patient set num_studies = ( select count(*) from study where study.patient_fk=patient.pk and study.rejection_state in (0,1)); alter table patient alter num_studies set not null; create index UK_296rccryifu6d8byisl2f4dvq on patient (num_studies); alter table location a...
true
51190ce7b315c4cf9844170648d2d9b9cd002bf3
SQL
dokel13/admission-campaign-spring
/db/DML.sql
UTF-8
8,320
2.609375
3
[]
no_license
INSERT INTO `roles` VALUES (1,'ADMIN'); INSERT INTO `roles` VALUES (2,'STUDENT'); INSERT INTO `subjects` VALUES (1,'math'); INSERT INTO `subjects` VALUES (2,'physics'); INSERT INTO `subjects` VALUES (3,'ukr'); INSERT INTO `subjects` VALUES (4,'eng'); INSERT INTO `subjects` VALUES (5,'history'); INSERT INTO `specialti...
true
49c75ae1e8f503a49e357a759015b8f1d1ccb1f8
SQL
intelij/TaxiMeter
/database/taximeter (20160517).sql
UTF-8
9,905
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 17, 2016 at 05:22 AM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.5.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
7a7e343051ba3e4aacf83ae0669e8ee276b9866a
SQL
robbyHuelsi/mueslimachine
/app/MMMySQL/MMMySQLCommander/commands/recipe_createTable.sql
UTF-8
450
2.828125
3
[]
no_license
CREATE TABLE `{table}` ( recipe_uid BIGINT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, recipe_name VARCHAR(100) NOT NULL, recipe_creator BIGINT UNSIGNED NOT NULL, recipe_draft BOOL DEFAULT true, recipe_description TEXT, recipe_icon VARCHAR(50), recipe_bgcolor1 V...
true
aef22c97fb20ea515526bedb01e855eb5d188f49
SQL
pythonmich/GofiberAPI
/database/migrations/000003_user_role.up.sql
UTF-8
495
3.6875
4
[]
no_license
-- create type roles to avoid incorrect input -- we only need an admin role only -- Role 'member' is if user exists in database -- futures roles if needed will be added to this enum CREATE TYPE user_role AS ENUM ( 'admin' ); CREATE TABLE IF NOT EXISTS user_roles( user_id UUID NOT NULL REFERENCES users, ...
true
37a71d95cd7175a503618eb0c067051d82c5e72e
SQL
ankitsaxena90/jQuery
/test/queryNo3.sql
UTF-8
1,059
2.890625
3
[]
no_license
mysql> select distinct t.content, t.user_id from tweets t, users u where t.user_id IN (select following_id from relationships where user_id = 1 ) or t.user_id =1 ; +-------------------------------------------------+---------+ | content | user_id | +-------------------------------...
true
23052ebe5437e497f4b9c6002e3baf3516f55ba4
SQL
velocity-9/v9_database
/create_tables.sql
UTF-8
2,587
3.859375
4
[ "MIT" ]
permissive
CREATE EXTENSION IF NOT EXISTS "pgcrypto"; DROP TABLE IF EXISTS users CASCADE; DROP TABLE IF EXISTS components CASCADE; DROP TABLE IF EXISTS deploying CASCADE; DROP TABLE IF EXISTS workers CASCADE; DROP TABLE IF EXISTS stats CASCADE; DROP TABLE IF EXISTS logs CASCADE; DROP TYPE IF EXISTS STATUS_COLOR; CREATE TYPE STA...
true
18ee2333aa446e2ff631d82f636c4b1776bc9b34
SQL
andervyd/SQL-course
/SQL course/10 DML commands/10_DML_commands.sql
UTF-8
12,462
3.796875
4
[]
no_license
-- DML COMMANDS -- (data manipulation language) -- Constrain - rules for INSERT -- INSERT (values) (33 st) -- INSERT (subquery) (104 st) -- INSERT ALL (multy tables) (135 st) -- Errors when using DML (183 st) --...
true
bf722636c8e5760b7fdf5a7c5bc2d9110bf3d832
SQL
chaesiong/rtp-database
/production/DL_BLACKLIST/tables/identities$his.sql
UTF-8
7,938
3.015625
3
[]
no_license
CREATE TABLE "DL_BLACKLIST"."IDENTITIES$HIS" ( "KEY_VALUE" VARCHAR2(32 CHAR) NOT NULL ENABLE, "UNIQUE_VALUE" VARCHAR2(32 CHAR), "SALUTATION" VARCHAR2(32 CHAR), "SURNAME" VARCHAR2(100 CHAR), "MIDDLE_NAME" VARCHAR2(100 CHAR), "GIVEN_NAME" VARCHAR2(100 CHAR), "SURNAME_THAI" VARCHAR2(100 CHAR), "M...
true
9a5296de41f08f216bab90787cd5d44411e8e572
SQL
williamwbush/week_4_day_2
/amazon_mock_alters.sql
UTF-8
1,080
4.0625
4
[]
no_license
-- Changing database structure (when needed) -- The following commands/clauses are also a part of the DDL statements family -- The statements we use to change the database are: -- ALTER, UPDATE/SET, DELETE/WHERE, ADD(used with an ALTER statement), DROP -- ALTER statement for the order_ table ALTER TABLE order_ ALTER C...
true
5297db0ac404534e0bb10aa9aacdab778d9876bb
SQL
ttc007/CarePhPTraining
/database/first_care_v1.2.sql
UTF-8
13,903
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th9 13, 2019 lúc 09:27 AM -- Phiên bản máy phục vụ: 10.3.16-MariaDB -- Phiên bản PHP: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
789ec8c8078fc04314616a032597f0ffb601b899
SQL
guilhermeG23/Aulas_SQL
/dump_aula_5_exercicios.sql
UTF-8
1,958
2.953125
3
[]
no_license
create database LimeCar; use LimeCar; create table Fabricante ( Codigo int(3) primary key auto_increment, Marca char (20) not null ); INSERT Fabricante VALUES (0, "Volkswagen"), (0, "Fiat"), (0, "Chevrolet"), (0, "Ford"), (0, "Audi"), (0, "Hyundai"); create table Veiculo ( RENAVAN int(8) primary key, Nome varchar (...
true
074464ed3a8dcea0f732b00feba9be345821878c
SQL
wenx999/ytex
/workspace/data/mysql/snomedct/create_tables_full.sql
UTF-8
1,751
3.34375
3
[]
no_license
-- table definitions taken from SNOMED CT Technical Implementation Guide July 2011, section 7.2.1.3.2. -- modified active flag to use bit instead of tinyint -- modified effectiveTime to use date instead of datetime drop table if exists sct2f_concept; drop table if exists sct2f_description; drop table if exists sct...
true
d1c7a627ea82fcad76112190688c60fd94b35171
SQL
angusbean/enviro-check
/platform/migrations/000001_create_init_tables.up.sql
UTF-8
850
3.4375
3
[ "MIT" ]
permissive
-- Add UUID extension CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; -- Set timezone -- For more information, please visit: -- https://en.wikipedia.org/wiki/List_of_tz_database_time_zones SET TIMEZONE="Australia/Canberra"; -- Create users table CREATE TABLE users ( id UUID DEFAULT uuid_generate_v4 () PRIMARY KEY, ...
true
a84882418092a81605de1e9c20a52859f50dbd5d
SQL
jinpeng/mysql-maxwell-kafka-flink
/web/database/schema.sql
UTF-8
942
3.328125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `contacts` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `contacts`; CREATE USER 'contacts'@'localhost' IDENTIFIED BY 'password'; CREATE USER 'contacts'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON * . * TO 'contacts'@'%'; GRANT ALL PRIVILEGES ON * . * TO 'contacts'@'localhost'; ...
true
1a2f76593c52c536eab8e74a209c87d398403612
SQL
phuoctrank51a6/blog
/blog.sql
UTF-8
9,607
3.078125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th5 13, 2020 lúc 09:40 AM -- Phiên bản máy phục vụ: 10.4.11-MariaDB -- Phiên bản PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
e76e40c259c36edfa4f5a1262c43182589754788
SQL
abababb/scripts
/2019/multi_column_vs_index_merge.sql
UTF-8
2,158
3.296875
3
[]
no_license
SELECT * FROM stock_change WHERE material_id = 12 AND warehouse_id = 2 /* WAREHOUSE ONLY */ explain '1','SIMPLE','stock_change',NULL,'ref','IDX_8A712CB65080ECDE','IDX_8A712CB65080ECDE','5','const','1691399','10.00','Using where' result 15:52:48 select * from stock_change where material_id = 12 and wareh...
true
8c3be2b144f32bddcce99f2ebfb29a9850597455
SQL
Isoggi/NETCore_WebAPI
/WebAPI.NETCoreTest/SQLScript/Create testDB Database.sql
UTF-8
351
2.65625
3
[ "MIT" ]
permissive
-- Database: testDB -- DROP DATABASE "testDB"; CREATE DATABASE "testDB" WITH OWNER = "testDB_Access" ENCODING = 'UTF8' LC_COLLATE = 'Indonesian_Indonesia.1252' LC_CTYPE = 'Indonesian_Indonesia.1252' TABLESPACE = pg_default CONNECTION LIMIT = -1; COMMENT ON DATABASE "testDB" IS 'A dat...
true
3a7a78c29c15a28fb1113d1e7c828bf13d7d0353
SQL
vishalvkhoday/Bse_Extractor
/src/Bse_AnnualQuery.sql
UTF-8
957
3.234375
3
[]
no_license
select * from tbl_AnnualBse_Results select distinct script_name from tbl_AnnualBse_Results select * from tbl_AnnualScriptList where ToExecute='Yes' select * from tbl_ScriptList where Script_Name ='SSWL' select * from tbl_Bse_Results where Script_name = 'A2ZINFRA' select * from tbl_Bse_Results br right outer joi...
true
ea7848975fbbc88cb465f5ac2b69079c6adcaf04
SQL
maryletteroa/azure-databricks-spark
/formula1/demo/8.sql_functions_demo.sql
UTF-8
1,166
3.921875
4
[]
no_license
-- Databricks notebook source USE f1_processed; -- COMMAND ---------- SELECT *, CONCAT(driver_ref, '-', code) AS new_driver_ref FROM drivers -- COMMAND ---------- SELECT *, SPLIT(name, ' ')[0] forename, SPLIT(name, ' ')[1] surname FROM drivers -- COMMAND ---------- SELECT *, current_timestamp FROM drivers ...
true
811ad2a3d83f34d01f380deee23619f8481e99bc
SQL
spencer-m/Medical_Clinic_DBMS
/SQL Source/Stored Procedures/sp_employee_sel.sql
UTF-8
16,750
3.765625
4
[]
no_license
use HealthcareClinic; drop procedure if exists sp_employee_sel; delimiter \\ create procedure sp_employee_sel( in p_Employee_id int ,in p_Employee_type varchar(30) ,in p_First_name varchar(50) ,in p_Last_name varchar(50) ,in p_Active_flag varchar(1) ,in p_Doctor_...
true
011cd9cbb1553af05c2e2306fd1d647ed15a8ba2
SQL
Gianmarco965/Sistema-WEB-MUSICA-PHP-MYSQL
/bdvideo.sql
UTF-8
8,443
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-12-2017 a las 20:22:58 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
3fbd777c9fae3ccd6281ebf38338c5bae255ae0a
SQL
artionh/quiz-maker
/quiz-maker/WebContent/resources/sql/quizmaker.sql
UTF-8
7,975
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 19, 2016 at 12:28 PM -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
1cf2ab02fc02175724f4050d1b4c1aaa000160db
SQL
Pedro-B-Alves/senai_sprint1_bd
/exercicios/1.4-exercicio-optus/optus_03_DQL.sql
WINDOWS-1250
683
3.765625
4
[]
no_license
USE Optus; SELECT Nome AS [Usurios Administradores] FROM Usuarios WHERE Permissao LIKE 'Administrador'; SELECT Titulo FROM Albuns WHERE DataLancamento > 2000; SELECT idUsuario [ID Do Usurio], Nome, Permissao [Permisso] FROM Usuarios WHERE (Email = 's.santos@email.com') AND (Senha = '123456'); SELECT idUsuario [ID D...
true
f35ce0e705b7bb1a7482c79aea29d612a0caba56
SQL
vinhle1001/smn
/SMNApi/src/main/java/com/vinhle/smn/api/model/statement/district_get_by_province_id.sql
UTF-8
170
3.03125
3
[]
no_license
CREATE PROCEDURE `district_get_by_province_id`(IN _provinceId INT) BEGIN SELECT * FROM smn_district WHERE province_id = _provinceId AND is_active > 0; END
true
27a69a7eaf2ca22977a2946f3f879f1999b3cb8a
SQL
sy-james-jeong/algonquin-database
/jeon0042-assignment2/extrafiles/statements.sql
UTF-8
1,372
4.1875
4
[]
no_license
-- Simple statement Using SELECT and WHERE; What gender do users prefer to play as warrior? SELECT Char_Gender, Char_Job FROM Character_T WHERE Character_T.Char_Job LIKE 'WAR' -- Simple statement Using SELECT and WHERE; Time of activity with each level of user SELECT Level_Value, Level_Da...
true
bd9cf9c66c9cd910d64a89abb6b87a7b86870f24
SQL
Locottus/clima
/python/update_script.sql
UTF-8
645
3.578125
4
[ "MIT" ]
permissive
select from historico_estaciones limit 10 alter table historico_estaciones add column fecha date INSERT INTO customers (name, email) VALUES('Microsoft','hotline@microsoft.com') ON CONFLICT (name) DO NOTHING; SELECT TO_DATE('2017/02/30', 'YYYY/MM/DD'); update historico_estaciones set fecha =TO_DATE(to_char(year...
true
802687d1291b3100acb524c4dd39dcfc509a060a
SQL
SMishanya/braille
/src/BrailleTranslatorDB/Translation/Tables/TranslationLanguage.sql
UTF-8
380
3.125
3
[]
no_license
CREATE TABLE [tra].[TranslationLanguage] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY, [LanguageId] INT NOT NULL, [TranslationId] INT NOT NULL, CONSTRAINT [FK_TranslationLanguage_Language] FOREIGN KEY ([LanguageId]) REFERENCES [cmn].[Language]([Id]), CONSTRAINT [FK_TranslationLanguage_Translation] FOREIGN KEY ...
true
421e32ae9e4fde316799081c9f28c6c0c829bb87
SQL
sandro-pasquali/IRC-Chat
/sql/chat.sql
UTF-8
3,705
3.59375
4
[ "MIT" ]
permissive
/***************************************** * * * `temp_accounts` * * * *****************************************/ DROP TABLE IF EXISTS `temp_accounts`; CREATE TABLE temp_accounts ( user_id int(12) NOT NULL auto_inc...
true
8d73efa7c3fda1610e64cdf3eed307cb099b628d
SQL
yzh1234/course
/src/main/resources/sql/course.sql
UTF-8
1,498
3.25
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 172.27.140.204 Source Server Type : MySQL Source Server Version : 100322 Source Host : 172.27.140.204:3306 Source Schema : course Target Server Type : MySQL Target Server Version : 100322 File Encoding : 65001 Date: 26...
true
479b78c240fd1e58f94001dc6f737cdef5ca1b9f
SQL
VictordaSilvaf/TrabalhoPOO
/CodigoMySQL-DG.sql
UTF-8
418
2.6875
3
[]
no_license
drop database dbdarkglory; CREATE DATABASE dbDarkGlory; use dbDarkGlory; CREATE TABLE player ( id int auto_increment not null, nome varchar(30) not null, mana int, wins int, vez int, primary key (id) ); CREATE TABLE lutadores ( id int auto_increment not null, nome varchar(30) not null, dano...
true
7cec0556335726ac1a41fed2e5f36d64b2369c8c
SQL
transcom/mymove
/migrations/app/schema/20210412213134_add_entitlments_columns.up.sql
UTF-8
1,522
3.203125
3
[ "MIT", "LicenseRef-scancode-public-domain" ]
permissive
-- add two new columns to entitlements table ALTER TABLE entitlements ADD COLUMN required_medical_equipment_weight int4 DEFAULT 0 NOT NULL; COMMENT ON COLUMN entitlements.required_medical_equipment_weight IS 'The RME (required medical equipment) weight in pounds. A Service member or a dependent who is entit...
true
ee5b44dbb241aacb0f5af9dd2e4b5b8efd6da579
SQL
richardBennett/RaccoonJail
/RaccoonJail/Database/Tables/Info_ArrestLocation.sql
UTF-8
175
2.796875
3
[]
no_license
CREATE TABLE [Info].[ArrestLocation] ( [Id] INT NOT NULL, [Location] NVARCHAR(100) NOT NULL, CONSTRAINT [PK_Info_ArrestLocation] PRIMARY KEY CLUSTERED ([Id] ASC), )
true
4e1f45edd9d10c0c19b03c60dc2105859c5cec5e
SQL
bruce-dunwiddie/tsql-depends
/TSQL_Depends/TSQL_Depends/Scripts/GetDatabases.sql
UTF-8
790
3.671875
4
[ "Apache-2.0" ]
permissive
SELECT d.[name] AS [database_name], d.collation_name, -- https://docs.microsoft.com/en-us/sql/t-sql/functions/collation-functions-collationproperty-transact-sql?view=sql-server-ver15 CAST(COLLATIONPROPERTY(d.collation_name, 'CodePage') AS int) AS collation_code_page, CAST(COLLATIONPROPERTY(d.collation_name, 'Comp...
true
27cfa4840048e06de4c2914f2da21cb792c2abe1
SQL
mapuerta/test_pylint_chnages
/qry_update_invoice_paid.sql
UTF-8
1,971
3.40625
3
[]
no_license
/* [BP-MM] Reverso masivo de facturas de clientes en estado "pagadas" 08/06/2018 */ --294;"Cuentas por Cobrar a Clientes" --select * from account_account where company_id = 3 and name ilike '%cobrar%' --48 /* select * from account_invoice ai inner join account_move am on ai.move_id = am.id inner join account_move_lin...
true
c1dd04ad014c6e135902e1bb98f270981e23156a
SQL
GabrielBFelix/ExerciciosSQL
/Tarefa 03 - SQL DCL e Indices/exercicio5.sql
UTF-8
488
3.15625
3
[]
no_license
/* Crie um usuário chamado empresa_gerente para o banco de dados EmpresaDB. Este usuário deve ter privilégios apenas de fazer consultas em todas as tabelas. Ele pode inserir e atualizar as tabelas Equipe, Membro, Atividade e AtividadeProjeto. */ --PostgreSQL --CREATE USER empresa_gerente WITH ENCRYPTED PASSWORD 'se...
true
f99d66c94ec8379d4ffc1c825ec9d298b34571f5
SQL
smarty-kiki/smarty_portal
/command/migration/2019_02_21_16_47_31_system.sql
UTF-8
526
2.84375
3
[ "MIT" ]
permissive
# up CREATE TABLE `system` ( `id` bigint(20) NOT NULL, `version` int(11) NOT NULL, `create_time` datetime DEFAULT NULL, `update_time` datetime DEFAULT NULL, `delete_time` datetime DEFAULT NULL, `name` varchar(45) NOT NULL, `api_authorized_token` varchar(45) NOT NULL, `api_authorized_ip` ...
true
28e15c314bf6f36840d1d51386ad3a52f13b31be
SQL
aclai4067/Chinook
/brazil_customers_invoices.sql
UTF-8
393
3.90625
4
[]
no_license
-- Provide a query showing the Invoices of customers who are from Brazil. -- The resultant table should show the customer's full name, Invoice ID, Date of the invoice and billing country. select FirstName + ' ' + LastName as FullName, InvoiceId, Invoice.InvoiceDate, Invoice.BillingCountry from Invoice join Customer ...
true
3d655b26c0210913d1077353718a10c43a9fe002
SQL
walternascimentobarroso/invertDED
/sql/TB_PERIODO_NOTA.sql
UTF-8
931
2.890625
3
[]
no_license
/** Renomeia a tabela **/ RENAME TABLE periodo_nota TO TB_PERIODO_NOTA; /** Renomeia as coluna **/ ALTER TABLE TB_PERIODO_NOTA RENAME COLUMN periodo_nota_id TO PERIODO_NOTA_CD; ALTER TABLE TB_PERIODO_NOTA RENAME COLUMN descricao TO PERIODO_NOTA_DESCR; ALTER TABLE TB_PERIODO_NOTA RENAME COLUMN data_ini TO PERIODO_NOTA_...
true
38f4233efd8956373a4a0d1a2c1678b672d7d58c
SQL
Justdwiwt/python_basic
/dataMsg/douban.sql
UTF-8
599
2.671875
3
[]
no_license
-- douban_comment CREATE TABLE `douban_comment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `movieRank` varchar(20) DEFAULT NULL, `movieName` varchar(50) DEFAULT NULL, `movieForName` varchar(50) DEFAULT NULL, `movieAlias` varchar(100) DEFAULT NULL, `directorName` varchar(50) DEFAULT NULL, `showYear` varchar(5...
true
9f54304349e68fc77f9bd6878c600b642fa4e599
SQL
cloudcm/shoppinglist
/src/main/webapp/dbscript/shoppinglist-23-04-2015.sql
UTF-8
7,241
3.28125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.17, for Win64 (x86) -- -- Host: localhost Database: shoppinglist -- ------------------------------------------------------ -- Server version 5.5.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
true
03e5557037bf4747390e1ea364001e47ecc8b580
SQL
navaneethbv/Web-Oil-Transaction-Management
/Oil Database Scripts.sql
UTF-8
10,972
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 28, 2014 at 08:20 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
e166ffa23ecf588c0ed0fff8010fda6bf7795226
SQL
dmwm/CMSMonitoring
/sqoop/queries/CMS-JM-DataPop-new-query.sql
UTF-8
1,821
3.484375
3
[ "MIT" ]
permissive
select job_file."JobId", job_file."FileName", job_file."IsParent" as "IsParentFile", job_file."ProtocolUsed", job_file."SuccessFlag", job_file."FileType", job_file."LumiRanges", job_file."StrippedFiles", job_block."BlockId", job_block."StrippedBlocks", data_block."BlockName", input_collection."InputColle...
true
b64779870c9c10bf9c051cc8715d96bd91df2114
SQL
Student-in-job/dbsystem
/dumps/done5/task_5_patient.sql
UTF-8
5,414
3.1875
3
[]
no_license
CREATE TABLE patient ( id int(11) NOT NULL, `name` varchar(128) NOT NULL, surname varchar(128) NOT NULL, patronymic varchar(128) NOT NULL, birthday date NOT NULL, sex enum('w','m') NOT NULL, PRIMARY KEY (id) ); INSERT INTO patient VALUES (1,'аркадий','толбанов','карлович ','1994-10-30','m'); INSERT INTO...
true
5ed7f89a9403f8b11610b217fda94745e8e3ed1c
SQL
Mdmetelus/SQLvil
/WGU-SQL-Practice/MYSQL for More Practice/review8.sql
UTF-8
5,121
3.921875
4
[]
no_license
-- RUNNING TRANSACTIONs; -- START TRASACTIONS; ----------------------- autocommit=1; -- automatically commited USE test; SELECT * FROM books; UPDATE books SET name = 'The Valley' WHERE name = 4; START TRASACTION; UPDATE books SET name = 'The Valley around us all' WHERE name = 4; INSERT INTO books (name) VALUES ('More...
true
eee4938e73f42e8e368ccccc60e16d6f94ab35dc
SQL
libanga2010/Burger
/db/schema.sql
UTF-8
254
2.9375
3
[]
no_license
CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers( burger_id INTEGER (3) auto_increment not null, burger_name VARCHAR (100) not null, devoured BOOLEAN not null, date_created TIMESTAMP DEFAULT CURRENT_TIMESTAMP, primary key (burger_id) );
true
2e2d3aed4afde9cc488658ce4b01c595b7d6da2c
SQL
jbuchbinder/deployer
/sql/config.sql
UTF-8
5,694
2.984375
3
[ "Apache-2.0" ]
permissive
-- MySQL dump 10.11 -- -- Host: localhost Database: deployer -- ------------------------------------------------------ -- Server version 5.0.45 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION...
true
1f67b7aa05f3e1e8dfa2703c8421c1609fb61da2
SQL
cckmit/xinfu
/ccms/WebContent/WEB-INF/action/project/fitness/union/epr/search/query-class.sql
UTF-8
568
3.796875
4
[]
no_license
SELECT a.classdate AS c_idate, -- 日期 SUM(a.personcount) AS class_num -- 团操上课人数 FROM cc_classlist a WHERE to_char(a.classdate, 'yyyy-MM') = ${fld:month} AND a.status != 0 and (case when ${fld:org_id} is null then a.org_id in (SELECT g.org_id FROM hr_org g WHERE g.org_id = ${def:org} UNION SELECT g.org_id FRO...
true
721b737924dfc27862f668abf34761fd8bbded56
SQL
NeSh74/MS-SQL-September-2021
/02. CRUD/02. CRUD-Exercises/Solutions/9. Find Names of All Employees by Salary in Range.sql
UTF-8
372
3.78125
4
[ "MIT" ]
permissive
--Write a SQL query to find the first name, last name and job title of all employees whose salary is in the range [20000, 30000]. --I VARIANT --SELECT -- FirstName, -- LastName, -- JobTitle -- FROM Employees -- WHERE Salary >= 20000 AND Salary <= 30000 --II VARIANT SELECT FirstName, LastName, JobTitle F...
true
fad386cb2952c033cf3ad0d0db6c0877a8f8b943
SQL
WilliamZhangWD/YuKuAndroidSys
/Server/sql/user.sql
UTF-8
456
2.515625
3
[]
no_license
drop table if exists user_basic_info; create table user_basic_info ( user_id varchar(50) not null, avatar varchar(200), nickname varchar(50), sex varchar(10), register_time timestamp, lastest_logon_time timestamp, language_id ...
true
8dc2bedad8cf57109e0acf756e4306845c5f11d0
SQL
lizziestenhaug/sql-challenge
/EmployeeSQL/EmployeeSQL.sql
UTF-8
1,307
4.28125
4
[]
no_license
--Data Engineering --Create departments table Create table departments( dept_no varchar(10), dept_name varchar (64) not null, primary key (dept_no) ); select * from departments --Create employee table Create table employees( emp_no int not null, employee_title_id varchar (20) not null, birth_date date not null, ...
true
988c477d0c1cbc027f1afb049f9caeb1a1bf2237
SQL
ksillah/dealership
/tables.sql
UTF-8
1,243
3.046875
3
[]
no_license
CREATE TABLE customer( customer_id SERIAL PRIMARY KEY, first_name VARCHAR(100), last_name VARCHAR(100) ); CREATE TABLE salesperson( salesperson_id SERIAL PRIMARY KEY, first_name VARCHAR(100), last_name VARCHAR(100) ); CREATE TABLE car( car_id SERIAL PRIMARY KEY, customer_id SERIAL, salesperson_id SERIAL, make...
true
18ae1a3dee98e8847ca3ff6b2c018c8cd4e0df74
SQL
lazysheep666/CS6650_Assignment
/server/create.sql
UTF-8
308
2.71875
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS LiftAPP; USE LiftAPP; DROP TABLE IF EXISTS LiftRides; CREATE TABLE LiftRides ( ResortID varchar(255), DayID int, Vertical int, SkierID varchar(255), time int, LiftID varchar(255), constraint pk_LiftRides primary key (ResortID, DayID, SkierID, LiftID) );
true
4e071283101dffce941c37a7564a0e286a33b8c6
SQL
sannimichaelse/Parcel-Delivery
/server/models/queries.sql
UTF-8
779
3.171875
3
[ "MIT" ]
permissive
-- CREATE USERS TABLE CREATE TABLE users ( id SERIAL PRIMARY KEY, firstname VARCHAR (50) NOT NULL, lastname VARCHAR (50) NOT NULL, othername VARCHAR (50) NOT NULL, email VARCHAR (50) UNIQUE NOT NULL, username VARCHAR (50) NOT NULL, password VARCHAR (50) NOT NULL, registered_at VARCHAR ...
true
daa81c7235ee248e79204a22a6f5a13e39eb349f
SQL
sthossan/sql-query
/tablesample.sql
UTF-8
919
4.0625
4
[]
no_license
The tablesample returns a random number every time as the seed used to generate the random number varies marginally everytime, eventhough we say tablesample(10 percent) it will reutrn +1000 or -1000 rows approximatly, example : 1. select * from results TABLESAMPLE SYSTEM(100 ROWS) 2. select * from results TABLESAMPL...
true
7dbb373dc41d57c354e7093e500ae235639b897d
SQL
deepaksinghvi/gmap
/common/src/main/resources/db/migration/h2/V1__create_schema.sql
UTF-8
792
3.078125
3
[]
no_license
CREATE TABLE user ( id BIGINT NOT NULL, userid VARCHAR(32) NOT NULL PRIMARY KEY, tenant_id VARCHAR(20), name VARCHAR(32), email VARCHAR(10), time_created TIMESTAMP, time_updated TIMESTAMP, version INT ); create sequence user_id_seq start with 1 increment by 1; CREATE TABLE tenant ( id BIGINT NOT NULL, tenant_id VAR...
true
5525f98b51fe550a41ead34bea6590125297932d
SQL
evgenypopov2/taxicontrol
/modules/core/db/init/hsql/20.create-db.sql
UTF-8
702
2.875
3
[]
no_license
-- begin TAXICONTROL_TAXI create unique index IDX_TAXICONTROL_TAXI_UNIQ_DRIVER_PHONE on TAXICONTROL_TAXI (DRIVER_PHONE)^ -- end TAXICONTROL_TAXI -- begin TAXICONTROL_AUTO_MODEL alter table TAXICONTROL_AUTO_MODEL add constraint FK_TAXICONTROL_AUTO_MODEL_ON_VENDOR foreign key (VENDOR_ID) references TAXICONTROL_AUTO_VENDO...
true
16f7a3c808251123563708e92af23608d9c2719a
SQL
P79N6A/fast
/install/efast365/common/sys_task_main.sql
UTF-8
3,282
3.0625
3
[]
no_license
DROP TABLE IF EXISTS `sys_task_main`; CREATE TABLE `sys_task_main` ( `id` int(11) NOT NULL AUTO_INCREMENT, `customer_code` varchar(128) DEFAULT '', `code` varchar(100) DEFAULT NULL COMMENT '任务编码', `task_sn` varchar(100) DEFAULT NULL COMMENT '任务编码', `request` varchar(255) DEFAULT '' COMMENT '运行参数', ...
true
4fd594dffcdbf8d26fc1303518b0cd701bcaaefc
SQL
edleyhoyler/ImprimePonto
/ProjetoDatabase/ImprimePonto.sql
UTF-8
2,489
3.578125
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS [Pessoas]; DROP TABLE IF EXISTS [Funcoes]; DROP TABLE IF EXISTS [Empresas]; CREATE TABLE IF NOT EXISTS [Empresas] ( CODIGO INTEGER PRIMARY KEY ASC ON CONFLICT ROLLBACK AUTOINCREMENT UNIQUE ON CONFLICT ROLLBACK NOT NULL ON CONFLICT R...
true
2edfb90dd07f0ab60eefc31089d58e63b4168929
SQL
isi92/htmltemplate
/sql/htmltemplateDB.sql
UTF-8
2,048
3.109375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.6.16 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 8.3.0.4774 -- -------------------------------------------------------- /*...
true
995f8d0115a703fb22a94a08bc0abd73c14ebedc
SQL
nimitjohri/nagp-microservices-advanced
/BestBuyDB.sql
UTF-8
449
3.078125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS bestbuydb; USE bestbuydb; CREATE TABLE users ( user_id INTEGER AUTO_INCREMENT NOT NULL, NAME VARCHAR(100) NOT NULL, email_address VARCHAR(150) NOT NULL, address VARCHAR(100) NOT NULL, PRIMARY KEY(user_id) ); INSERT INTO users VALUES (1,"nimit johri", "nimit@gmail.com", "xyz, chhattarpur,...
true
a18d65927bc0e8825d2f8dadb303aadd426f2433
SQL
htmlacademy-nodejs/153671-typoteka-3
/db/schema.sql
UTF-8
2,160
3.921875
4
[]
no_license
CREATE SCHEMA IF NOT EXISTS public; DROP TABLE IF EXISTS public.avatars; DROP TABLE IF EXISTS public.authors; DROP TABLE IF EXISTS public.articles; DROP TABLE IF EXISTS public.categories; DROP TABLE IF EXISTS public.comments; DROP TABLE IF EXISTS public.articles_categories; CREATE TABLE public.avatars ( id S...
true
45c6c2befb379efcc2a5620e6d0acaa2b18f033d
SQL
liokingim/cakephp3
/db/restaurant.sql
UTF-8
7,899
3.671875
4
[]
no_license
CREATE DATABASE IF NOT EXISTS `restaurant` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `restaurant`; CREATE TABLE IF NOT EXISTS `articles` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '소개글 번호', `user_id` int(11) NOT NULL COMMENT '작성자id', `title` varchar(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL ...
true
72c96f1f6ca17857e7b21b70abbe279152bb8f5b
SQL
davidloko/sistema_de_login_AIPR2019v1
/127_0_0_1.sql
UTF-8
2,562
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 12-Set-2019 às 16:37 -- Versão do servidor: 10.3.16-MariaDB -- versão do PHP: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
3f4125c88f291757f8dedc0dc254fe58fc04f506
SQL
Social-Projects/Resource-Registration-System
/src/main/resources/Security_users.sql
UTF-8
12,265
3.09375
3
[]
no_license
-- -- ������ ������������ Devart dbForge Studio for MySQL, ������ 6.3.358.0 -- �������� �������� ��������: http://www.devart.com/ru/dbforge/mysql/studio -- ���� �������: 04.01.2016 23:55:21 -- ������ �������: 5.5.41 -- ������ �������: 4.1 -- -- -- �������� ��� ���� ������ registrator_db -- DROP DATABASE IF EXISTS reg...
true
6f72c0270071bc7d32b2cb9aaec14300edadeb37
SQL
etudes-inc/etudes-syllabus
/alterTrack.sql
UTF-8
484
2.9375
3
[ "Apache-2.0", "ECL-1.0" ]
permissive
alter table sakai_syllabus_track_view ADD COLUMN ACCEPTED_ON datetime default NULL; alter table sakai_syllabus_track_view ADD COLUMN FIRST_VISIT datetime default NULL; alter table sakai_syllabus_track_view ADD COLUMN LAST_VISIT datetime default NULL; update sakai_syllabus_track_view set ACCEPTED_ON = VIEWED_ON whe...
true
6caf0a6093f866dc2f31b57a6446ed8b4448b12f
SQL
AndreMyszko/MSSQLquerry
/Querry/Prova1-SP.sql
ISO-8859-1
1,004
3.328125
3
[]
no_license
--Aluno: Andr Luiz Branco Belem Myszko --RA: 2019102420 --1) Crie e execute um stored procedure que receba por parmetro o nmero do projeto e retorne a quantidade de empregados nesse projeto. --**---------------------------------------------------------------------------------------------------**----**-------------...
true
6120b0661aff3bf403ed9987c1232ae5ae1eb4b0
SQL
Brandone123/pharma
/database/genpharma.sql
UTF-8
49,553
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mer. 16 sep. 2020 à 16:54 -- Version du serveur : 10.1.36-MariaDB -- Version de PHP : 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4010...
true
933189dcb09e5715313041e3847a3875e11ac397
SQL
Aleksiysh/stepic_trenager_SQL
/!reset_genre.sql
UTF-8
290
2.578125
3
[]
no_license
DROP TABLE IF EXISTS `genre`; CREATE TABLE genre ( genre_id INT PRIMARY KEY AUTO_INCREMENT, name_genre VARCHAR(50) )ENGINE='InnoDB' AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; insert into genre (name_genre) value ('Роман'), ('Поэзия'), ('Приключения');
true
4949a919d52d14037b74e728a94e174503cb9d21
SQL
umkis/caHUB-CDR
/software/cdrgrailsapp/cahubdataservices/sql/update all specimen ids for a case.sql
UTF-8
218
2.578125
3
[]
no_license
select count(*) from dr_specimen where specimen_id like 'GTEX-000478%' update dr_specimen set specimen_id = replace(dr_specimen.specimen_id, 'GTEX-000478','GTEX-000479') where specimen_id like 'GTEX-000478%' commit;
true
2600d70ffc299ad3b7edf57cfd5314babb4a62fe
SQL
DpadamsX/DpadamsX
/functions/dba/view_get_column_descriptions.sql
UTF-8
829
2.921875
3
[]
no_license
/* This version is gnarly looking, the Cool Kids say it's "faster" than a more straightforward search on information_schema.columns. I've already written the information_schema one, so I saved it out as a disabled script. */ CREATE OR REPLACE FUNCTION dba.view_get_column_descriptions (view_name_in text) RETURNS TABLE...
true
d3571138b4ae72cb68c6ecb9b5a469973e107b95
SQL
kk186058/DBA
/SQL/DB_schema_rev_engineer_allrights.sql
UTF-8
263
2.796875
3
[]
no_license
SEL * FROM dbc.allrights WHERE username <> databasename AND (databasename in ('${scope}') or databasename in ('${users}') or databasename in ('dbc', 'sys_calendar') ) and ( username in ('${scope}') or databasename in ('${users}')) and databasename <> username ;
true
ebcbded0ad413ed70b5e7fd05fcbb6d48b4315cc
SQL
inferno16/LetsWatch
/database/sql/clean_empty_rooms.sql
UTF-8
700
3.765625
4
[ "MIT" ]
permissive
CREATE EVENT `clean_empty_rooms` ON SCHEDULE EVERY 1 DAY STARTS (TIMESTAMP(CURRENT_DATE) + INTERVAL 2 HOUR) ON COMPLETION PRESERVE DO BEGIN # Delete rooms inactive from 2 days or more DELETE FROM rooms WHERE DATEDIFF(CURDATE(), updated_at) > 1; # Delete entries form the pivot table that are not part of an existi...
true
9c705bb76e5291b0466ebcdf33f30a9f03a6b919
SQL
kvenLin/miaoshaDemo
/src/main/resources/db.sql
UTF-8
3,304
3.328125
3
[]
no_license
CREATE TABLE `miaosha_user` ( `id` BIGINT(20) NOT NULL COMMENT '用户Id,手机号码', `nickname` VARCHAR(255) NOT NULL, `password` VARCHAR(32) DEFAULT NULL COMMENT 'MD5(MD5(pass明文+固定salt)+salt)', `salt` VARCHAR(10) DEFAULT NULL, `head` VARCHAR(128) DEFAULT NULL COMMENT '头像,云储存的ID', `register_date` datetime DEFAULT NULL COMMENT ...
true
1702830aa597ff5d0ce319f439894d8cb41dcb9b
SQL
scchess/LabKey
/server/customModules/icemr/resources/assay/Tracking/queries/select_all_calcs.sql
UTF-8
1,754
3.21875
3
[]
no_license
/* * Copyright (c) 2013 LabKey Corporation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicab...
true
552cdb2325a9d4f763b412c7ac0363b566a36833
SQL
sunyongjie1984/db
/opp5/set_score.sql
UTF-8
573
2.796875
3
[]
no_license
CREATE OR REPLACE TRIGGER set_score BEFORE INSERT ON frame FOR EACH ROW WHEN ( new.score IS NULL ) BEGIN IF :NEW.strike = 'Y' THEN :NEW.score := 10; ELSIF :NEW.spare = 'Y' THEN :NEW.score := 5; END IF; END; / /*====================================================================== ...
true
5adcbc34cb5fb54c0a3d5f3c2fe9e77806d67afa
SQL
cag1456089397/spring-boot-api-project-seed
/src/test/resources/work.sql
UTF-8
1,205
2.890625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : Localhost Source Server Version : 50713 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50713 File Encoding : 65001 Date: 2017-06-23 14:25:27 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
d578540b3db7b4c14e811a65e67184ea1619c359
SQL
philiptn001/COMP9321_Procrastinators
/Server/cars.sql
UTF-8
360
2.96875
3
[]
no_license
CREATE TABLE Users ( user_id INTEGER PRIMARY KEY AUTOINCREMENT, username text, password text ); CREATE TABLE Admins ( admin_id int primary key, username text ); CREATE TABLE apiusage( //backup system for api usage if monittoring board doesn't work ApiName text primary_key, user_id int, Time Datetime, foreign key(user_...
true
3025fbfae6280af938bd4a5e240187a5c602ee5e
SQL
piotrszyma/studies-databases
/lista 1/query7.sql
UTF-8
157
2.890625
3
[]
no_license
select employees.LastName, orders.OrderID from employees, orders where orders.EmployeeID = employees.EmployeeID and orders.OrderDate < '1998-01-23 00:00:00';
true
f8d6d3cb857915a80dbe13935bde6278308de45e
SQL
taku-xhift/labo
/Sql/sqledi2_Sample/Sample/Ch05/5_2/List5_10_Oracle.sql
UTF-8
234
3.109375
3
[ "MIT" ]
permissive
SELECT shohin_bunrui, cnt_shohin FROM (SELECT * FROM (SELECT shohin_bunrui, COUNT(*) AS cnt_shohin FROM Shohin GROUP BY shohin_bunrui) ShohinSum WHERE cnt_shohin = 4) ShohinSum2;
true