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
9a15adbe45272d12e110b0df1be500b0b97680f6
SQL
EstevesAndre/LBAW1819
/files/db/queries.sql
UTF-8
5,119
4.15625
4
[]
no_license
QUERIES -- friends list SELECT * FROM request, "user" WHERE sender = "user".id AND hasAccepted = TRUE AND clanID IS NULL AND (sender=$userID OR receiver=$userID) LIMIT 15 OFFSET $offset; -- messages with a friend SELECT * FROM message WHERE (sender = $activeID AND receiver =$userID) OR ...
true
0e0165a916441976f0028f0b6d54df8f406b23c6
SQL
msmet/EAA-SQL-Reports
/Enrollment Audit/List of Exits within Date Range.sql
UTF-8
690
3.484375
3
[]
no_license
SELECT s.dcid , sch.name , s.id , s.student_number , s.lastfirst , to_char(s.dob, 'MM/DD/YYYY') , PSER.grade_level , TO_CHAR(PSER.entrydate,'MM/DD/YYYY') , TO_CHAR(PSER.exitdate,'MM/DD/YYYY') , PSER.exitcode , g.name , PSER.exitcomment , S.enroll_status , schB.name FROM ps_enrollment_reg pser INNER JOI...
true
fd6d54e878a78549ce121fa6bbfb0e32699185e9
SQL
michael-weinstein/Prepared-SQL
/Homozygous.sql
UTF-8
1,467
3.796875
4
[]
no_license
-- -------------------------- -- Homozygosity identifier -- -- -------------------------- create table {SUBJECT}_homozygosity as select * from {SUBJECT}_rare_damage where sampleGenotype NOT IN ('S' , 'R', 'Y', 'M', 'K', 'W') #excludes SNVs with two bases called at the locus AND (INSTR(sampleGenotyp...
true
204599c96ede4a97f9f3c5dd3746f4e39b5b24cf
SQL
RaelZero/sectesting
/delivery/initSchoolmate.sql
UTF-8
11,920
3.28125
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!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 utf8 */; CREATE DATABASE IF NOT E...
true
35bf346317e46ce306f16e48bc007f86c1dea382
SQL
Benjozork/AppWeb-TravailPratique1
/bd/localhost.sql
UTF-8
29,850
2.65625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Dec 28, 2020 at 04:49 AM -- Server version: 8.0.18 -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
144a8514f6d6b0b9db77de41b545ecf751ae81f4
SQL
rtmill/N3cOhdsi
/inst/sql/sql_server/extract_manifest.sql
UTF-8
515
2.640625
3
[]
no_license
--MANIFEST TABLE: CHANGE PER YOUR SITE'S SPECS --OUTPUT_FILE: MANIFEST.csv select 'OHDSI' as SITE_ABBREV, 'Jane Doe' as CONTACT_NAME, 'jane_doe@OHDSI.edu' as CONTACT_EMAIL, 'OMOP' as CDM_NAME, '5.3.1' as CDM_VERSION, 'Y' as N3C_PHENOTYPE_YN, '1.3' as N3C_PHENOTYPE_VERSION, CONVERT(VARCHAR(20), ...
true
d9e580429f447b0c3c7abcbf753e19ddaa2eb338
SQL
baptistechev/licence-info-montpellier
/HLIN304_SQL/req3.sql
UTF-8
903
3.640625
4
[]
no_license
select titre from film where nbspectateurs>(select AVG(nbspectateurs) from film); select nom,prenom from realisateur,film where idR=idRealisateur and nbspectateurs>(select AVG(nbspectateurs) from film); select nom,prenom from acteur,jouer,film where idA=idActeur and idF=idFilm and nbspectateurs=(select max(nbspectate...
true
61ff8b78f264cefae36ce5894938d41851331955
SQL
silvianaho/online-shop-database
/Queries/create promo.sql
UTF-8
607
3.59375
4
[]
no_license
DROP TABLE IF EXISTS product_promotion; DROP TABLE IF EXISTS promotion; CREATE TABLE promotion( promotion_id INT IDENTITY(1, 1) NOT NULL PRIMARY KEY, promotion_name VARCHAR(255) NOT NULL, discount_value DECIMAL(10,2) NOT NULL, discount_unit VARCHAR(10) NOT NULL, date_created DATETIME NOT NULL DEFAULT GETDATE(), ...
true
906b2167871ee7359f32bf7c5d29543d029d0583
SQL
C63/modus
/src/main/resources/db/migration/V1_002__create_user.sql
UTF-8
592
3.4375
3
[]
no_license
-- alias: a create table account ( account_id bigserial primary key, username varchar(100) not null, email varchar(254), password_hash varchar(64) not null, created_at timestamp with time zone not null default (current_timestamp), modified_at timestamp with time...
true
c3482b2f5906fdc91ec34747cdf144709f5ad87b
SQL
radtek/abs3
/sql/mmfo/bars/Table/async_webui.sql
WINDOWS-1251
2,919
2.953125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/ASYNC_WEBUI.sql =========*** Run *** = PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
3cc3134c380177ea5f0d6071d0d8f6de55ab4e5b
SQL
djsoul86/TripRepository
/QuerysViajeros.sql
UTF-8
756
3.296875
3
[]
no_license
create table Viajeros ( Id INT IDENTITY (1,1) PRIMARY KEY, Cedula varchar(20), Nombre varchar(200), Direccion varchar(200), Telefono varchar(50) ) create table Paises ( Id INT IDENTITY (1,1) PRIMARY KEY, Nombre varchar(50) ) create TABLE Viajes ( Id INT IDENTITY (1,1) PRIMARY KEY, ...
true
cccb24a2e55ab2ac55c7621dd44d323161c1cb89
SQL
bernardobreder/bandeirabr-mobile
/tomcat/WEB-INF/src/bandeira/servlet/product/ProductSetWithProductDateHashServlet.sql
UTF-8
217
3.046875
3
[]
no_license
select sum(ora_hash(gapr_cd_id)) parent_id, sum(ora_hash(prod_cd_id)) child_id from agregacao_produto where agpr_dt_inicio_valid <= ? and (agpr_dt_fim_valid is null or agpr_dt_fim_valid > ?)
true
82efe33baddb659646aa20c468ce804442d1e268
SQL
hannannexus/master
/dumps/advertisement.sql
UTF-8
1,618
2.640625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.6 -- http://www.phpmyadmin.net -- -- Хост: localhost -- Время создания: Апр 25 2013 г., 21:22 -- Версия сервера: 5.5.25 -- Версия PHP: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
true
d1da1d0e890e2c1dfbd19e7797578fc520088f1d
SQL
WorkFilez/fliflet
/src/sql/regen_statistics.sql
UTF-8
5,685
4.15625
4
[]
no_license
USE fiflet; DROP PROCEDURE IF EXISTS regenStatistics; DELIMITER // CREATE PROCEDURE regenStatistics() BEGIN DECLARE bDone INT; DECLARE _id_supplier INT UNSIGNED; DECLARE _name VARCHAR( 150 ); DECLARE _startDate CHAR( 10 ); DECLARE _critInternalDoc VARCHAR( 255 ); DECLARE curs CURSOR FOR SELECT DISTINCT...
true
59373080ac91329ab363d40f091d46b09e82e9e5
SQL
sebapenna/base-de-datos
/taller-4/taller4-24.sql
UTF-8
357
3.375
3
[]
no_license
-- script: 'taller4-24' -- resumen: Obtener el padron de los alumnos que tienen nota en todas las materias. -- fecha creacion: 09-05-21 -- autor: Sebastian Penna SELECT n.padron FROM notas n GROUP BY n.padron HAVING COUNT(DISTINCT to_char(codigo,'fm00') || '.' || to_char(numero,'fm00')) = (SELECT COUNT(*) FROM materias...
true
98aa5bb1256ad9567c4eb76502bbd325239290a0
SQL
janaobsteter/Genotype_CODES
/SQL/Untitled34.sql
UTF-8
2,587
3.609375
4
[ "curl", "Apache-2.0" ]
permissive
select * from (select ziv.ZIV_ID_SEQ biki_id, ziv.DAT_ROJSTVO bikRojstvo from JANAO.ALL_GEN_IND_27012017 jziv,zivali ziv,rejci_mlekarna where ziv.ziv_id_seq =jziv.ziv_id_seq and RM_SIF_LOKACIJA= CRE_SIFRA_CREDA AND RM_REJEC_ODDAJA_MLEKO = 1 and ziv.SIF_SPOL=1) biki, govedo.zivali ziv where biki.biki_id=ziv.ZIV_OCE_S...
true
bbc6107198d0bf8dc7ffb11754df114ac476dbfa
SQL
eternalfool/ecommerce-rest-api
/sql/004_sellers_table.sql
UTF-8
1,107
3.890625
4
[]
no_license
use heroku_ec028af4a8b795d; create table sellers ( id INT NOT NULL AUTO_INCREMENT, user_id INT NOT NULL, name TEXT NOT NULL, contact_name VARCHAR(255) , contact_number VARCHAR(30) , emai...
true
3174d267f2053303a51f1731d46dfc9e9206748b
SQL
gaohanghang/technology
/src/数据库/mysql/自己写的sql语句/数据调用.sql
UTF-8
7,373
3.53125
4
[]
no_license
CREATE TABLE `data_call` ( `id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT '当前操作人', `apply_org_id` varchar(255) DEFAULT NULL COMMENT '申请(涉及)部门', `apply_time` datetime DEFAULT NULL COMMENT '申请时间', `apply_user_id` bigint(20) DEFAULT NULL COMMENT '申请人', `data_call_name` varchar(255) DEFAULT NULL COMMENT '数据调用...
true
4b1a386bdc13085cf181c4b2fd64794b58ab9269
SQL
sumanthshankar/jops-api
/src/main/resources/META-INF/create.sql
UTF-8
2,125
4.0625
4
[]
no_license
create table authors ( author_id integer not null, author_emailid varchar(255), author_name varchar(255), primary key (author_id) ) engine=MyISAM; create table authors_books ( author_id integer not null, book_id integer not null ) engine=MyISAM; creat...
true
8d6c96c2b0015caa8cf8010b00ca0a3110d921ae
SQL
Drumev00/Databases-Basics-MS-SQL-Server
/Subqueries and Joins/06-Employees Hires After.sql
UTF-8
230
3.828125
4
[]
no_license
SELECT e.FirstName, e.LastName, e.HireDate, d.[Name] AS DeptName FROM Employees e JOIN Departments d ON e.DepartmentID = d.DepartmentID WHERE HireDate > '1999-01-01' AND d.[Name] = 'Sales' OR d.[Name] = 'Finance' ORDER BY HireDate
true
dfb9150c8ef33610c76cffb0f5d13138ee33ad61
SQL
bastscho/diplomprojekt
/osTicket/DB_Dump/osticket_ost_form.sql
UTF-8
3,150
2.71875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: osticket -- ------------------------------------------------------ -- Server version 5.7.15-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */...
true
f150ec0f68b5b8231f287ac02238e0c9b0ae2763
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/indices/CONCEPTOS_CODICONCTA_FK.sql
UTF-8
505
2.8125
3
[]
no_license
-------------------------------------------------------- -- DDL for Index CONCEPTOS_CODICONCTA_FK -------------------------------------------------------- CREATE INDEX "AXIS"."CONCEPTOS_CODICONCTA_FK" ON "AXIS"."CONCEPTOS" ("CCONCTA") PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536...
true
66a80a3d0e4fbaa1db5cf3b7d35aea479a339501
SQL
Kikuichimonji/projet_annabel_V2
/annabel.sql
UTF-8
14,270
3.28125
3
[ "MIT" ]
permissive
-- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------- /...
true
a0f6227fa247bf91c0ff66e35aaeecf2581f58f7
SQL
darold/pgFormatter
/t/pg-test-files/expected/regproc.sql
UTF-8
3,476
3.21875
3
[ "Artistic-2.0" ]
permissive
-- -- regproc -- /* If objects exist, return oids */ CREATE ROLE regress_regrole_test; -- without schemaname SELECT regoper ('||/'); SELECT regoperator ('+(int4,int4)'); SELECT regproc ('now'); SELECT regprocedure ('abs(numeric)'); SELECT regclass('pg_class'); SELECT regtype ('int4'); SEL...
true
9a0cdea58de35f1012434c92410bda67c830df1a
SQL
ada10lgu/dndsek
/setup/wiki.sql
UTF-8
548
3.265625
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; DROP TABLE IF EXISTS `wiki`; CREATE TABLE IF NOT EXISTS `wiki` ( `id` int(10) NOT NULL AUTO_INCREMENT, `created` datetime NOT NULL, `user` int(10) NOT NULL, `access` int(10) NOT NULL, `title` varchar(255...
true
78b01faa13d42bba0312e9a883395c49a8f8d0e9
SQL
GenGee323/Shop
/db/seed.sql
UTF-8
2,469
3.640625
4
[]
no_license
DROP TABLE IF EXISTS product_cart_junction; DROP TABLE IF EXISTS carts; DROP TABLE IF EXISTS products; DROP TABLE IF EXISTS users; CREATE TABLE users ( user_id SERIAL PRIMARY KEY, email VARCHAR(100), password VARCHAR(2000) ); CREATE TABLE products ( product_id SERIAL PRIMARY KEY, product_name VARCHAR(100),...
true
47f7b37e797e443a151b789d4bf6bff9d3df553f
SQL
daniiel/cursos
/Oracle 11g - Introduction to SQL/courselabs/sql1/soln/sol_ap_19.sql
UTF-8
218
3.46875
3
[]
no_license
SELECT e.employee_id, e.last_name, e.department_id, e.salary, AVG(s.salary) FROM employees e JOIN employees s ON e.department_id = s.department_id GROUP BY e.employee_id, e.last_name, e.department_id, e.salary;
true
0f7be988904589c432114b99259dc515664c84a8
SQL
Xavi-S-Sz/XS-nchezEMPLOYEES
/employees_database.sql
UTF-8
7,075
3.359375
3
[]
no_license
-- MariaDB dump 10.18 Distrib 10.5.8-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: EMPLOYEESDBNORMAL -- ------------------------------------------------------ -- Server version 10.5.8-MariaDB-1:10.5.8+maria~focal /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SE...
true
940ed5dc9d6c016ee4366939ae707353f7165f4b
SQL
Vincelee78/my-SQL
/solution.sql
UTF-8
1,734
4.0625
4
[]
no_license
/* q1 */ SELECT phone, city, country from offices; /* q2 */ SELECT * FROM orders WHERE comments LIKE "%fedex%" /* Q4 */ SELECT customerName, contactFirstName, contactLastName FROM customers ORDER BY customerName DESC /* Q5 */ SELECT * FROM employees where jobTitle = "Sales Rep" AND officeCode IN (1,2,3) AND (firstN...
true
9c882d6d7545c2c766e8b34777b5acb1a134029b
SQL
ivan-kopylove/sandbox-sql
/example_distinct.sql
UTF-8
586
3.203125
3
[]
no_license
PAUSE This script will DROP tables, press CTRL+C to break DROP TABLE D; CREATE TABLE D ( D_KEY number, D_VALUE varchar(10 char) ); INSERT INTO D VALUES(0, 'FOO'); INSERT INTO D VALUES(0, 'FOO'); INSERT INTO D VALUES(1, 'FOO'); INSERT INTO D VALUES(2, 'FOO'); INSERT INTO D VALUES(3, 'QWE'); INSERT INTO D VALUES(3, ...
true
eb1cbbb7e6e27c261143751b24f1c9629d03bdd8
SQL
enriquefelix876/avispack
/myapp.sql
UTF-8
6,413
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 09-05-2018 a las 05:37:36 -- Versión del servidor: 10.1.30-MariaDB -- Versión de PHP: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
1890d9524b490587bbc4f1ad62d8b3730d4bf02a
SQL
felix021/woj
/doc/database.sql
UTF-8
8,042
3.390625
3
[]
no_license
CREATE TABLE `codes` ( `code_id` int(11) NOT NULL auto_increment, `share` char(1) default 'Y', `code_content` text, PRIMARY KEY (`code_id`) ) ENGINE=MyISAM; CREATE TABLE `contestpermission` ( `user_id` varchar(20) NOT NULL, `contest_id` int(11) NOT NULL, PRIMARY KEY (`user_id`,`contest_id`), KEY `con...
true
fc76f551811b036232ed4cc08c678702c6ce068f
SQL
prjromy/ChannakyaBase
/ChaBase/fin/Functions/FGetReportInterestLogIndividual.sql
UTF-8
3,243
3.640625
4
[]
no_license
CREATE FUNCTION [fin].[FGetReportInterestLogIndividual] ( @FDATE SMALLDATETIME ,@TDATE SMALLDATETIME ,@IACCNO INT ,@BRNCHID INT ) RETURNS TABLE ---MARKED ENCRYPTION AS RETURN ( SELECT x.TDATE ,x.ACCNO ,x.Aname AS AccountName ,cast(x.Balance AS DECIMAL(18, 2)) AS BALANCE ,cast(x.Rate AS DECIMAL(1...
true
48d3d0355a3160fd1e83f49f042b74bfd8ae1668
SQL
ArmineKh/SQL_solutions
/exercise_5.sql
UTF-8
1,986
4.34375
4
[]
no_license
-- https://en.wikibooks.org/wiki/SQL_Exercises/Pieces_and_providers -- 5.1 Select the name of all the pieces. SELECT Name FROM Pieces; -- 5.2 Select all the providers' data. SELECT * FROM Provides; -- 5.3 Obtain the average price of each piece (show only the piece code and the average price). SELECT avg(Price), piec...
true
b5fb4b93c2f5234daed87cd38690e7e543113b5d
SQL
younggeun0/SSangYoung
/dev/query/date181101_pl/if.sql
UHC
584
3.0625
3
[]
no_license
-- if : ǿ ´ 쿡 ڵ带 ؾ -- ̸ Է¹޾ ̸ ''̶ ̸ -- 'õ ڶ ' . ٸ ̸ ̸ SET serveroutput ON SET verify OFF ACCEPT i_name PROMPT '̸ Է :' DECLARE name VARCHAR2(15) := '&i_name'; BEGIN IF name = '' THEN DBMS_OUTPUT.PUT('õ ڶ '); END IF; IF name = '' THEN DBMS_OUTPUT.PUT(' '); END IF; DBMS_OUTPUT.PUT_LINE(name); END;...
true
4a4fab2f3a5f83ba9882e282236d1ff1a3f3d338
SQL
ibmcuijunluke/nodejsadmin
/nodecrm.sql
UTF-8
4,018
2.953125
3
[ "Apache-2.0" ]
permissive
# Host: 127.0.0.1 (Version: 5.6.21-log) # Date: 2015-06-26 10:03:37 # Generator: MySQL-Front 5.3 (Build 1.27) /*!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 */; /*!401...
true
bc4380f56cee364e68cf15c7e3db49a6694e80d7
SQL
tabuckner/fullstack-todo-angular-nest-postgres-liquibase
/db/postgres-init.sql
UTF-8
441
3.046875
3
[]
no_license
CREATE USER "yourusername" WITH PASSWORD 'yoursecurepassword'; CREATE DATABASE "dev" WITH OWNER "yourusername"; GRANT ALL PRIVILEGES ON DATABASE "dev" TO "yourusername"; \connect "dev"; CREATE SCHEMA app_schema AUTHORIZATION "postgres"; GRANT CREATE, USAGE ON SCHEMA app_schema TO "yourusername"; GRANT USAGE, SELECT ON ...
true
35ec530b33cfb66adb312dfd349f770c21581447
SQL
jkstill/oracle-baselines
/top10-AWR.sql
UTF-8
1,469
4.125
4
[]
no_license
with max_snap_id as ( select /*+ no_merge */ min(snap_id) snap_id from ( select instance_number, max(snap_id) snap_id from dba_hist_snapshot group by instance_number ) ), aas as ( select begin_snap_id, end_snap_id, value, snap_count, dbid, instance_number, rownum my_rownum from ( select begin_snap_id, end...
true
f7770fff0ed1c4279bb52df10a3f44245d9278f9
SQL
gcoronelc/ISIL-EMP-SQL-SERVER-01
/Examen/LuizZapata/Ejercicio 2.sql
UTF-8
840
3.796875
4
[]
no_license
exec SP_REPORTE_MATRICULADOS alter PROCEDURE DBO.SP_REPORTE_MATRICULADOS AS BEGIN Select A.cur_id, A.alu_id, Max(isnull(pag_cuota,0)) pag_cuota, SUM(isnull(pag_importe,0)) pag_importe Into #PagoTotal from MATRICULA A full join PAGO B On A.alu_id = B.alu_id and a.cur_id = B.cur_id group by a.cur_id, a.alu_id S...
true
092aaf9ca085eefb6bd6d1471aa26444e836a7cd
SQL
gstvob/Bd1
/SqlExerc/bd_sql6.sql
UTF-8
1,082
3.796875
4
[]
no_license
Select m.nome, m.CPF from medicos m where exists(select p.CPF from pacientes p where p.CPF = m.CPF); select m.nome, m.CPF, c.data from medicos m, consultas c where m.especialidade = 'ortopedia' and c.codm = m.codm and exists(select p.nome, p.codp from pacientes p where p.codp = c.codp and p.nome = 'Ana'); sele...
true
2dd7d9b8c83e77e32a109f3b89f4d57e18034abe
SQL
Alexceptiion/BibliothequeDeJeux
/userBdd.sql
UTF-8
494
2.8125
3
[]
no_license
#------------------------------------------------------------ # Script MySQL. #------------------------------------------------------------ #------------------------------------------------------------ # Table: utilisateurs #------------------------------------------------------------ CREATE TABLE utilisateur...
true
f767c964915b34958ee089974e7291de05f08bec
SQL
game1991/go
/Mysql指令/insert.sql
GB18030
930
3.59375
4
[]
no_license
insert into my_gbk values(''),(''),(''); create table my_student2( stu_id varchar(10) primary key comment 'ѧID', stu_name varchar(10) not null comment 'ѧ' )charset utf8; insert into my_student2 values ('stu0001',''), ('stu0002',''), ('stu0003',''), ('stu0004',''); --ͻ insert into my_student2 values('stu0004','С') o...
true
09af37602180cc8a7eec149b572ad993f993b729
SQL
kayac-chang/Cyberpunk_Build
/mysql/sql/init.sql
UTF-8
3,001
3.15625
3
[]
no_license
CREATE SCHEMA `logdb` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL PRIVILEGES ON `logdb`.* TO 'serverConnect'@'%'; USE `logdb`; CREATE TEMPORARY TABLE log ( `index` bigint(20) NOT NULL AUTO_INCREMENT, `Account` varchar(128) NOT NULL, `PlayerID...
true
a3f2600807cf42913ef047bb55f16565aa38fbd4
SQL
ntonkev/authtestpro
/Database/Scripts/PostgreSQL/auth/userinrole.sql
UTF-8
567
3.40625
3
[]
no_license
CREATE TABLE auth.userinrole ( userid UUID NOT NULL, roleid UUID NOT NULL, transactionid INT NULL, systemStatusId INT NOT NULL, PRIMARY KEY (userid, roleid) ); ALTER TABLE auth.userinrole ADD CONSTRAINT fk_auth_user_userid FOREIGN KEY (userid) REFERENCES...
true
643daed9d545f2cf48703c136baa5657ed51f570
SQL
opentusk/opentusk
/upgrade/tusk-4_3_3/new_tables.sql
UTF-8
1,244
3.25
3
[]
no_license
ALTER TABLE enum_data DROP COLUMN created_by, DROP COLUMN created_on; CREATE TABLE IF NOT EXISTS `feature_link` ( `feature_link_id` int(10) unsigned NOT NULL auto_increment, `feature_type_enum_id` int(10) unsigned NOT NULL, `feature_id` int(10) unsigned NOT NULL, `url` varchar(255) NOT NULL, `modified_by...
true
86563f6ba3b01295006efbbf85291263673e563a
SQL
prjrfco/Algamoney-Api
/src/main/resources/db/changelog/202003131615_create_table_pessoa.sql
UTF-8
1,983
3.09375
3
[]
no_license
--liquibase formatted sql --changeset bob:1 create table pessoa ( codigo bigserial, nome varchar (30), logradouro varchar(20), numero varchar(5), bairro varchar(20), cep varchar(8), cidade varchar(20), estado varchar(20), ativo bool, primary key (codigo) ); insert into pessoa values (default , 'Francisc...
true
02531ff11aee59c7247d2d7cf6ebc506f04262f7
SQL
Invenietis/CK-DB-TokenStore
/CK.DB.TokenStore/Res/Model.CK.TokenStoreTable.Install.1.0.0.to.2.0.0.sql
UTF-8
743
3.015625
3
[ "MIT" ]
permissive
--[beginscript] alter table CK.tTokenStore drop constraint UK_CK_DF_CK_TokenStore_TokenKey_TokenContext; alter table CK.tTokenStore alter column TokenKey nvarchar(255) collate Latin1_General_100_CI_AI not null; alter table CK.tTokenStore alter column TokenScope varchar(63) collate Latin1_General_100_CI_AI not null; al...
true
ac3bdb750536fad619b53ef39c2dc634961558d8
SQL
mhq1065/sql
/1/3.7.3.sql
UTF-8
206
3.34375
3
[]
no_license
CREATE VIEW `人工智能学生` AS SELECT `S#`, Sname, Grade FROM student JOIN sc USING (`S#`) WHERE `C#` in ( SELECT `C#` from course WHERE Cname = '人工智能' )
true
1b5775c527734326ac4c8213e46810fdb93344ad
SQL
jmgold/SQL-Queries
/Booklists/summer reading kids.sql
UTF-8
1,981
2.984375
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
SELECT * FROM( SELECT --link to Encore, removed in favor of default keyword search on title --'https://find.minlib.net/iii/encore/record/C__R'||id2reckey(b.bib_record_id) AS field_booklist_entry_encore_url, b.best_title as title, REPLACE(SPLIT_PART(SPLIT_PART(b.best_author,' (',1),', ',2),'.','')||' '||SPLIT_PART(b.b...
true
2f6d6f6342e71fba1833ec6d3cf2f7d49f93c34f
SQL
juan1630/masterPHP
/db/sentenciasBasicas.sql
UTF-8
745
3.109375
3
[]
no_license
/* DML lenguaje de manipulacion de datos Este lenguaje nos ayuda a la represetancio de los datos, tanto como la creación de los datos. la eliminacion, la actualizacion */ use blogmaster; select * from usuarios; /* INSERTAR REGISTROS desc usuarios; */ insert into usuarios values (null,'Juan', 'Pat...
true
0b6df311576c43bac69b72034f77c5cbacbfac3a
SQL
Faserfso/SQL_EMIAS
/супп3.sql
UTF-8
2,973
3.671875
4
[]
no_license
SELECT raur.id, raur.login_id, raur.user_role_id, raur.lpu_id, lpu.name AS lpu_name, ur.user_role, a.login, me.last_name, me.first_name, me.second_name, a.status AS account_status, nvl(albs.status,a.status) AS account_lpu_status, lpu.email, lpu.speci...
true
abb5d4fe738462dc73121f9d30fc8b542bb3b8d6
SQL
Bruno02468/notas_fuvest
/privado/init_banco.sql
UTF-8
703
2.859375
3
[ "MIT" ]
permissive
CREATE TABLE "notas" ( "id_nota" INTEGER NOT NULL UNIQUE, "hash" TEXT NOT NULL UNIQUE, "salt" TEXT NOT NULL, "gerais" INTEGER NOT NULL, "fase2" TEXT NOT NULL, "redacao" REAL NOT NULL, "media" REAL NOT NULL, "cod_carreira" INTEGER NOT NULL, "nome_carreira" TEXT NOT NULL, "cod_curso" INTEGER NOT NULL, "nome_cu...
true
123b716f94a95592f9aca45e35404c49490f1de9
SQL
beans2/ORACLE-WORK
/day1029/test_check.sql
UHC
4,079
4.15625
4
[]
no_license
--check, not null, default --check: ÷ ȿ ߰ --not null: ݵ Է¹޾ƾ --default: ÷ Ǿ null Էµ  ⺻. --̸, , ּ, Է ϴ ̺ Ͻÿ -- , ̸ ʼԷ̰, ̴ 20~30 Է°ϰ --Է Ǹ ¥ Էµǵ Ͻÿ/ create table other_constraints( name varchar2(30 byte) constraint c_name not null, age number(2) constraint c_age check(age between 20 and 39), addr varchar...
true
267fcb3e0f030e27749d5fe3fa9733d1c4e829da
SQL
tuckered/WDI_16_HOMEWORK
/Tom/wk05/1-mon/movies/movies.sql
UTF-8
511
2.625
3
[]
no_license
CREATE DATABASE omdblist CREATE TABLE movies( id SERIAL4 PRIMARY KEY, title VARCHAR(200), image_url VARCHAR(500), plot VARCHAR(500), year INTEGER, director VARCHAR(100), actors VARCHAR(500), boxoffice VARCHAR(100), ratings VARCHAR(100) ); INSERT INTO movies (title, image_url, plot, year, director, a...
true
4aa721b10893fb4fb0e79db079427c197ff9e636
SQL
wira29/perpustakaanFix
/perpus.sql
UTF-8
4,291
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 06, 2021 at 03:09 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.33 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
842b30a52f29baabc44d57f8175bb54b806c1440
SQL
Wind-rising/oldJingan
/development.sql
UTF-8
1,832
3.6875
4
[]
no_license
CREATE DATABASE jingan charset = 'utf8'; use jingan; CREATE TABLE users ( id int(11) UNSIGNED auto_increment PRIMARY KEY, openid varchar(100), checkpoint0 varchar(5) default '0', checkpoint1 varchar(5) default '0', checkpoint2 varchar(5) default '0', checkpoint3 varchar(5) default '0', checkpoint4 varch...
true
47c15ab42cc1c4022d797b3aa0f578a4b526183e
SQL
hotehrud/acmicpc
/programmers/Lv.1/강원도에 위치한 생산공장 목록 출력하기.sql
UTF-8
208
2.625
3
[]
no_license
-- https://school.programmers.co.kr/learn/courses/30/lessons/131112 -- 본인 풀이 SELECT FACTORY_ID, FACTORY_NAME, ADDRESS FROM FOOD_FACTORY WHERE ADDRESS LIKE '%강원도%' ORDER BY FACTORY_ID
true
170c65ac5bfc7e04d1fee03d26a474b5bd2c6fc2
SQL
wangyeweikuer/node-techblog
/db/blog.sql
UTF-8
1,102
4.34375
4
[]
no_license
##droptable drop table IF exists blog; ##createtable CREATE TABLE IF not exists blog( id int PRIMARY KEY auto_increment, title varchar(1024) NOT NULL, content text NOT NULL comment 'markdown text', displayContent text NOT NULL comment 'renderered html', author varchar(64) NOT NULL, created dat...
true
fbe0eaa81730f4750dc304c23db5bc07ca160cf7
SQL
Minacava/It_Academy
/Base de datos/Ejercicios en Workbench/Ejercicio Workbench-USFlights.sql
UTF-8
1,802
3.59375
4
[]
no_license
USE USAirlineFlights; -- Quantitat de registres de la taula de vols: SELECT count(*) FROM Flights; -- Retard promig de sortida i arribada segons l’aeroport origen.-- SELECT Origin, avg(ArrDelay) From Flights GROUP BY Origin; SELECT Origin, avg(DepDelay) From Flights GROUP BY Origin; -- Retard promig d’arr...
true
1900d1c7fe37e79b9f5c29124d0cb887d9d2b43c
SQL
eyamga/CODA19-Phenotyper
/py_eyamga/sql/covid_deaths.sql
UTF-8
305
3.640625
4
[]
no_license
SELECT diagnosis_data.patient_site_uid, datetime (diagnosis_data.diagnosis_time) death_time FROM diagnosis_data INNER JOIN patient_data ON diagnosis_data.patient_site_uid = patient_data.patient_site_uid WHERE diagnosis_data.diagnosis_type = 'death' AND patient_data.patient_covid_status = 'positive'
true
44de9b82933a1e6dbc16912f733d0a5fd354645a
SQL
fivetran/dbt_fivetran_log3
/dbt_modules/fivetran_log/models/staging/stg_fivetran_log__active_volume.sql
UTF-8
392
3
3
[ "Apache-2.0" ]
permissive
with active_volume as ( select * from {{ var('active_volume') }} ), fields as ( select id as active_volume_id, connector_id as connector_name, -- Note: this misnomer will be changed by Fivetran soon destination_id, measured_at, monthly_active_rows, schema_name...
true
54edb68ff1039c78e293baee0ba6c90d082a07ff
SQL
ereducacion/practica-docker-compose-php
/init-db/data.sql
UTF-8
367
2.65625
3
[]
no_license
drop table if exists `users`; create table `users` ( id int not null auto_increment, first_name text not null, last_name text not null, email text not null, primary key (id) ); insert into `users` (first_name, last_name, email) values ("Juan","Pérez", "juanperez@gmail.com"), ("Alicia","Rodri...
true
18570965e8c483e83bc365537a53276c789f167e
SQL
GhadgePrachi/Backend-REST-APIs
/SportsApp/Documentation/SQL/create_table_reviews.sql
UTF-8
270
2.9375
3
[]
no_license
create table reviews( review_id int NOT NULL auto_increment, facility_id int, user_id int, timing varchar(50), content varchar(50), PRIMARY KEY (review_id), FOREIGN KEY (facility_id) REFERENCES facilities(facility_id), FOREIGN KEY (user_id) REFERENCES users(user_id) );
true
eff9a4581075938f705cc0f4707b509e1676800b
SQL
DamienFlury/Hera-Chatbot
/environment/sql/data.sql
UTF-8
4,577
3.078125
3
[ "Apache-2.0" ]
permissive
INSERT INTO `binding_type` (`id`, `type`) VALUES (0, 'Music'), (1, 'Announcement'), (2, 'Report'); INSERT INTO `snowflake_type` (`id`, `type`) VALUES (0, 'Guild'), (1, 'Channel'), (2, 'User'); INSERT INTO `owner` (`userFK`) VALUES (178581372284305409), (245597003323670528), (248116143020048384), (442711068737929216);...
true
c913ec2ad1aafb10171052f26b1dd5730ed6d4a9
SQL
Sunayana21/Test
/Multiple Trialstart.sql
UTF-8
349
3.578125
4
[]
no_license
select user_id, ((0x0000FFFF & User_Id)<<16) + ((0xFFFF0000 & User_Id)>>16)as Unhashed_userid, count(distinct(date(eventtimestamp)))as Signup_date from sbg_source.src_qbse_useraudit u join sbg_source.src_qbse_user_1 a on u.user_id=a.id where testuser=0 and eventtype in (2,25) group by 1 having count(distinct...
true
77c0d8341e20d53cdf60a9c8287c6013f4f4e302
SQL
the1031hiroto/aws_cross_srack
/db/sql/001-create-tables.sql
UTF-8
859
3.3125
3
[]
no_license
CREATE USER nativepassuser IDENTIFIED WITH mysql_native_password BY 'yyyyy'; CREATE TABLE IF not exists `crawl_histories` ( `crawl_history_id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT 'クロール履歴id', `crawl_url_id` int(10) unsigned NOT NULL COMMENT 'クロール対象ID', `is_changed` tinyint(3) unsigned NOT NULL DEFAUL...
true
584064c31f53f7b6792eb7f4aa4ac1f22693b1cd
SQL
gailjz/PowerShellScripts
/CheckSQLObjectDependency/Check_Dependencies.sql
UTF-8
966
4.125
4
[]
no_license
-- -- Run this script against each DB in SQL Server -- SELECT distinct OBJECT_NAME(referencing_id) AS referencing_entity_name, o.type_desc AS referencing_desciption, --@@SERVERNAME as referenced_server_name, ISNULL(referenced_database_name, db_name()) AS referenced_database_name, s.name as refer...
true
1d73e19605affbbd7ff08ab6da013a5222dc1388
SQL
woogieReal/WoogieRed
/ORACLE/S00_DML.sql
UHC
12,003
2.796875
3
[]
no_license
--INSERT --⺻ INSERT INTO dept2(DCODE, DNAME, PDEPT, AREA) VALUES(9000,'temp_1',1006,'temp_area') ; --DCODE DNAME PDEPT AREA -------------- ----------------------------- ------------ -------------------------- --0001 President Pohang Main Of...
true
59b20f5830f23737f01022cbc360e2b1d122dcd3
SQL
bertair7/schoolprojects
/cpe365/Lab3/students/STUDENTS-modify.sql
UTF-8
1,469
3.84375
4
[]
no_license
-- Ryan Blair rablair@calpoly.edu -- Give GPA to each student ALTER TABLE list ADD COLUMN (GPA FLOAT); -- Keep database only students grades 5 and 6 DELETE FROM list WHERE Grade < 5; -- Add new classroom 120 w/ teacher GAWAIN AP-MAWR INSERT INTO teachers(LastName, FirstName, Classroom) VALUES ('AP-MAWR', 'G...
true
9eb1effe8440e4207b91dd7153763ae345f01339
SQL
NedaKostic/NK-Spa
/database/nkspa.sql
UTF-8
2,127
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 17, 2021 at 09:10 PM -- Server version: 10.4.18-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
2255da6fd5b54e1ee5c1837d3ebfa8539dbf30d2
SQL
z812812/flaskandvue
/sql12/zy/流转卡在制数量.sql
UTF-8
422
3.359375
3
[]
no_license
--select b.one,xcl.iquantity from vv_bom b inner join currentstock xcl on b.one=xcl.cInvCode --where xcl.iQuantity>0 create view v_sumzz as select sz.InvCode,SUM(wz.balmachiningqty) as zzsl from sfc_processflowdetail wz left join sfc_processflow w on w.PFId=wz.PFId left join mom_orderdet...
true
d19ec1400d6de89ecd802a3d1435606352cefeb7
SQL
marioing18/ORACLEPL-SQL
/P1-3/lab_03_04.sql
UTF-8
129
3.03125
3
[]
no_license
SELECT last_name, ROUND(MONTHS_BETWEEN(CURRENT_DATE, hire_date)) "MONTHS_WORKED" FROM HR.employees ORDER BY MONTHS_WORKED DESC;
true
949ce5f0cec09a4ab53e58501e4acfdfe900b36d
SQL
eshults5/imbi
/ddl/tables/v1/configuration_systems.sql
UTF-8
1,308
3.546875
4
[ "BSD-3-Clause" ]
permissive
SET search_path=v1; CREATE TABLE IF NOT EXISTS configuration_systems ( "name" TEXT NOT NULL PRIMARY KEY, created_at TIMESTAMP WITH TIME ZONE NOT NULL DEFAULT CURRENT_TIMESTAMP, created_by TEXT NOT NULL, last_modified_at TIMESTAMP WITH T...
true
f122012a8433b7fe9f6102935685cc8c062e4551
SQL
CUBRID/cubrid-testcases
/sql/_23_apricot_qa/_03_i18n/tr_TR/_12_partitioning/cases/004.sql
UTF-8
432
3.203125
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; set names utf8; create table list_test(id int, test_time time, test_date date, test_timestamp timestamp, primary key(id, test_date)) PARTITION BY LIST (test_date) ( PARTITION p0 VALUES IN ('2011-05-01 PAZAR','2011-05-02 PAZARTESİ','2011-05-03 SALI') ); select * from db_class whe...
true
f678415d69dee2f0d35f39ebd062ab859dd5e5a1
SQL
BenjaminLanglade/bagnolet_php
/cmsbagnolet.sql
UTF-8
1,351
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Lun 09 Février 2015 à 23:13 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
true
856809ca583177c8b1e7e18abb6a6e0b968825dd
SQL
codeson101001/SQL-Projects
/SQL/SQL Mini Projects/20.) Project Get the top 3 most loyal customers acording to points.sql
UTF-8
165
2.875
3
[]
no_license
-- Get the top 3 most loyal customers, these are people who have more points then anyone else USE sql_store; SELECT * FROM customers ORDER BY points DESC LIMIT 3
true
67d143a152810b2b0dbb03e1e07cf9b5030a2f14
SQL
Niayaa/project
/assgin/P1_04.sql
UTF-8
850
3.9375
4
[]
no_license
/*Question 4)Find the names and address of all subscribers who subscribe to all of the available services. (Note the result for the current data might be empty but your query should work if the TA's add more data to the databse.) */ drop table if exists subWithSer; create table subWithSer as select service_subscribers....
true
69824b5ae31070eba869235fe882bbbbdc715dd1
SQL
tvdiepcs/hcmus-csdl
/BT03/1512029_BT03.sql
WINDOWS-1250
3,576
3.203125
3
[ "Apache-2.0" ]
permissive
/* Cu 1 */ SELECT DISTINCT NHANVIEN.MANV, NHANVIEN.TEN AS TEN_PHI_CONG, NHANVIEN.DCHI, NHANVIEN.DTHOAI FROM NHANVIEN, PHANCONG, LICHBAY WHERE NHANVIEN.LOAINV = 1 AND NHANVIEN.MANV = PHANCONG.MANV AND PHANCONG.MACB = LICHBAY.MACB AND LICHBAY.MALOAI = 'B747' /* Cu 2 */ SELECT CHUYENBAY.MACB, LICHBAY.NGAYDI FROM CHUYENBA...
true
9932f4c7e0b688a234baf6c4ac8f3aec1a174dcd
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day26/select0525.sql
UTF-8
178
2.6875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-25T05:25:00Z' AND timestamp<'2017-11-26T05:25:00Z' AND temperature>=17 AND temperature<=99
true
4a7cc2d3a731dd047b89640c34c31d4a56864772
SQL
lantngfx/yanzhi-admin
/dbstruct/dbstruce.sql
UTF-8
582
3.09375
3
[]
no_license
CREATE TABLE `course_video` ( `video_id` char(32) NOT NULL COMMENT '视频id, 定长32字节的十六进制数值串, 可能为空串, 对应vhall的活动id', `activity_id` int(11) NOT NULL DEFAULT '0' `title` varchar(256) NOT NULL COMMENT '视频标题', `create_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间', `update_time` timestamp NOT NULL D...
true
5b5cc3de4b3bd6b6c4274fe20d3570ecff75a632
SQL
Stalin45/poster_service
/resources/sql/poster_service.sql
UTF-8
1,418
4
4
[]
no_license
CREATE TABLE IF NOT EXISTS event ( event_id SERIAL, name VARCHAR(100) NOT NULL, description VARCHAR(255), place VARCHAR(100) NOT NULL, date TIMESTAMP NOT NULL DEFAULT NOW(), img_ref VARCHAR(255), user_id BIGINT UNSIGNED NOT NULL, constraint pk_event_id primary key (event_id), constraint fk_event_user ...
true
11a6066c45d4943c04969c78900545ec36fdb0fb
SQL
NizarZulmi19/Tugas-Pemrograman-Web
/Tugas Praktikum 13/cases.sql
UTF-8
2,199
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 02, 2020 at 09:53 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
d9f309234649a5cf51dcea3638c097f4289388ce
SQL
apromislow/CBSummer2017
/distinct_widget_ids2.sql
UTF-8
267
3.703125
4
[]
no_license
SELECT COUNT(DISTINCT id), date_trunc('month', x.member_since) FROM (SELECT daily_logins.id , daily_logins.login_date , mems_with_widgets.member_since FROM mems_with_widgets JOIN daily_logins ON mems_with_widgets.id = daily_logins.id) as x group by date_trunc;
true
ce687fe0f8b478c9969d135ce37978518c237187
SQL
liuyunwww/Spring-Boot
/src/main/resources/sql/af.sql
UTF-8
3,477
2.921875
3
[]
no_license
/* SQLyog Community v13.1.6 (64 bit) MySQL - 5.7.32 : Database - af ********************************************************************* */ /*!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_KEY_...
true
454e890126a42900f1db78cb53f862fd10a73c1e
SQL
OlafMd/MedCon1.0
/mm-libs/dbaccess/Level 5/CL5_APOLogistic_Inventory/Atomic/Retrieval/SQL/cls_Get_CountingResults_for_CountingRun.sql
UTF-8
2,567
3.359375
3
[]
no_license
Select log_wrh_inj_inventryjob_countingresults.CountingRun_RefID, log_wrh_inj_inventryjob_countingresults.LOG_WRH_INJ_InventoryJob_CountingResultID, log_producttrackinginstances.CurrentQuantityOnTrackingInstance As TrackingInstance_CurrentQuantity, log_producttrackinginstances.BatchNumber, log_wrh_i...
true
66eb7d925ad11ad65db817e70be7c7271349ab0b
SQL
mundodron/arduino-bot-aurelio
/Querys/~eb3323.sql
UTF-8
4,256
3.53125
4
[]
no_license
drop table Bad_do_contenda; create table Bad_do_contenda as SELECT MAP.EXTERNAL_ID, MAP.ACCOUNT_NO, B.BILL_PERIOD, C.BILL_STATE, d.bill_ref_no, sum((d.amount + d.federal_tax))valor_PF, sum((d.amount + d.federal_tax))valor, sum(...
true
562bd076f397093d0998c09e1482cb4db588e831
SQL
qu4n7/geekbrains_database
/geek_bd_week_2.sql
UTF-8
2,160
2.78125
3
[]
no_license
ALTER TABLE '_countries' CHANGE 'country_id' 'id' INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, ADD COLUMN 'title' VARCHAR(150) INDEX NOT NULL AFTER 'id', DROP 'title_ru', DROP 'title_ua', DROP 'title_be', DROP 'title_en', DROP 'title_es', DROP 'title_pt', DROP 'title_de', DROP 't...
true
8da5758f2ef22f0209b55ac136c63900326eb11f
SQL
evrimulgen/Oracle-DBA-Life
/INFO/Books Codes/Oracle9i PLSQL Programming/ch11/ClassesRoomsInstead.sql
UTF-8
5,574
4.09375
4
[ "MIT" ]
permissive
REM ClassesRoomsInstead.sql REM Chapter 11, Oracle9i PL/SQL Programming by Scott Urman REM This is a complete instead-of trigger. CREATE OR REPLACE TRIGGER ClassesRoomsInstead INSTEAD OF INSERT OR UPDATE OR DELETE ON classes_rooms FOR EACH ROW DECLARE v_roomID rooms.room_id%TYPE; v_UpdatingClasses BOOLEAN := F...
true
76e5bb0dcb0886cb5c178a30c7017df05f80b785
SQL
lavender21/java-jersey-spring-boot-practice
/src/main/resources/db/migration/V2017.04.24.17.40__create_artical_table.sql
UTF-8
349
3.03125
3
[]
no_license
CREATE TABLE `ARTICAL` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `title` varchar(100), `content` text, `publish_time` datetime DEFAULT NULL, `student_id` bigint(20) NOT NULL, CONSTRAINT pk_artical_id PRIMARY KEY (`id`), CONSTRAINT fk_artical_id FOREIGN KEY (`student_id`) REFERENCES STUDENT(`id`) ) ENGINE...
true
01fd1734d77d305959496830a045e74e0fcd7d1c
SQL
MarcosRigal/Bdd
/Extra/extra.sql
UTF-8
4,619
4.09375
4
[]
no_license
/* Los atributos llega y sale del tipo de entidad OfertaPasa indican la fecha de llegada y salida de la escala. Se debe considerar: a) Sale >= llega b) Llega(X) >= sale(y) para y < x siendo (x,y) el orden de la escala de la excurisón (Basicamente que no lleguemos a B antes de haber salido de A) */ CREATE ...
true
fc5f5652820f115663a94cc0e9dd5e031fee5333
SQL
wgnet/globalmap
/code/osm_tests/peak/g_in_name_ru.sql
UTF-8
331
3.328125
3
[ "BSD-2-Clause" ]
permissive
select 'n'||osm_id::text as osm_id, tags->'name:ru' as "name:ru", 'peak''s name starts with "г." - probably should be changed to "гора"? (and copied to name:ru if doesn''t exist)' as reason from planet_osm_point where "natural" = 'peak' and tags?'name:ru' and tags->'name:ru' ilike 'г.%' order by...
true
ed5d8409f5fd258492c6fa1cd7d7c23e8191e9ff
SQL
qaz734913414/tp5admin
/database/tp5admin.sql
UTF-8
14,917
3.21875
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : local Source Server Version : 50547 Source Host : localhost:3306 Source Database : tp5admin Target Server Type : MYSQL Target Server Version : 50547 File Encoding : 65001 Date: 2018-05-30 17:17:04 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
098c2f0982676f95e05030d9f651537a9862a068
SQL
chepiv/RENTSPOT
/src/main/resources/ddl_before.sql
UTF-8
1,615
3.78125
4
[]
no_license
CREATE TABLE LANDLORD ( LANDLORD_ID INT(10) NOT NULL auto_increment, USERID INT(10) NOT NULL, PRIMARY KEY (LANDLORD_ID) ); CREATE TABLE OFFER ( OFFER_ID INT(10) NOT NULL auto_increment, RENTERID INT(10) NOT NULL, LANDLORDID INT(10), MARKED INT(1), `DATE` DATE, PHOTO BLOB, ...
true
66aad7818a5fc1f6bbd61986f5ae28fd40d711c0
SQL
zzwgo/DDL-DML-Base-2019-5-17-7-33-10-495
/dml.sql
UTF-8
279
2.90625
3
[]
no_license
-- 插入记录 INSERT INTO `student` VALUES ('001','张三',18,'男'), ('002','李四',20,'女'); -- 修改记录 UPDATE student set name='张四' where name='张三'; -- 删除记录 delete from student where name='张四'; -- 查询记录 SELECT * from student;
true
84857dc9b3d7dc106589f6ae2da2798f7c4e44e6
SQL
takakikasuga/mamp-pj
/090_DB操作Part2/1000_【INNER JOIN】テーブルの内部結合/end/statement.sql
UTF-8
505
3.921875
4
[]
no_license
/* テーブルの内部結合(INNER JOIN) */ select * from テーブル1 inner join テーブル2 on テーブル1.値が一致する属性 = テーブル2.値が一致する属性; -- 例 select ms.name "店舗名", mp.name "都道府県名" from test_db.mst_shops ms inner join test_db.mst_prefs mp on ms.pref_id = mp.id; -- where を使った結合 select ms.name "店舗名", mp.name "都道府県名" from test_db.mst_shops ms, te...
true
aebc1e0bfcfb21bd814cc89b3d54e4f01e7b32b5
SQL
radtek/abs3
/sql/mmfo/bars/Function/f_cc_raz_komis.sql
WINDOWS-1251
5,096
3.28125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/function/f_cc_raz_komis.sql =========*** Run PROMPT ===================================================================================== CREATE OR REPLACE FUNCTION BA...
true
e7dfe55c52172fcd2c06b6dfd7c85727142cfe10
SQL
SpamLark/Work_SQL
/Banner/Current UMP Programmes and Majors.sql
UTF-8
394
2.9375
3
[]
no_license
SELECT DISTINCT sobcurr_program, smrprle_program_desc, valstatus_1, sorcmjr_majr_code, sorcmjr_desc FROM sobcurr_add JOIN smrprle ON sobcurr_add.sobcurr_program = smrprle_program JOIN sorcmjr ON sorcmjr_curr_rule = sobcurr_curr_rule WHERE 1=1 AND ump_1 = 'Y' AND valstatus_1...
true
d794a5ce3f1191d029f56158f3f21fdb3f9a0c30
SQL
BlondelSeumo/Powerful-Classified-Ads-Web-Application
/storage/database/geonames/countries/gd.sql
UTF-8
5,453
2.515625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.26, for osx10.10 (x86_64) -- -- Host: 127.0.0.1 Database: laraclassified -- ------------------------------------------------------ -- Server version 5.7.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESUL...
true
308249b4cddfae809e2ca7a17fe58b83fe0ebc62
SQL
SaltireSequence/sql-challenge
/EmployeeSQL/EmployeeSQL_Table_Schemata.sql
UTF-8
3,528
4.28125
4
[]
no_license
--Dropping tables, if they already exist. DROP TABLE titles CASCADE DROP TABLE employees CASCADE DROP TABLE salaries CASCADE DROP TABLE dept_manager CASCADE DROP TABLE departments CASCADE DROP TABLE dept_emp CASCADE --Staff Title Table -- Primary Key Contraint added, based on ERD and .CSV observations CREATE TABLE "ti...
true
dc3a2a56bd5fd18e6ca99f5f0ffdfb26c65a9474
SQL
irskep/diplomacy
/stored_procedures/map/suppliers_for_country.sql
UTF-8
307
2.921875
3
[]
no_license
DELIMITER $$ USE diplomacy DROP PROCEDURE IF EXISTS suppliers_for_country $$ CREATE PROCEDURE suppliers_for_country(IN cid INT(11)) BEGIN SELECT supplier.ter_id FROM supplier WHERE supplier.cty_id = cid; END $$ DELIMITER ; --SOURCE /srv/diplomacy/stored_procedures/suppliers_for_country.sql
true