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
c4a85e25421e72aa54b226fdd9b3b2cf778567db
SQL
yangzhen7915/gaoqiaoliangjie
/sql/tables.sql
UTF-8
6,342
3.421875
3
[]
no_license
-- 创建文章分类表 CREATE TABLE categories ( id int(11) NOT NULL AUTO_INCREMENT, slug varchar(200) NOT NULL COMMENT '别名,后期项目里面用来搜索用的', name varchar(50) NOT NULL COMMENT '分类名称', classname varchar(50) NOT NULL COMMENT '导航图标', PRIMARY KEY (id) ) ENGINE = MYISAM AUTO_INCREMENT = 1 CHARACTER SET utf8 COLLATE utf8_general...
true
665c6e4c17e01192b9f6783b7d060a334c144240
SQL
noobcodebot/CSE-coursework
/CSE111 - Database Systems/lab-3/test/10.sql
UTF-8
331
3.9375
4
[]
no_license
-- Find the total price o_totalprice of orders made by customers from ASIA in 1997. select sum(o_totalprice) from orders o join customer c on o.o_custkey = c.c_custkey join nation n on c.c_nationkey = n.n_nationkey join region r ON r.r_regionkey = n.n_regionkey where (strftime('%Y', o.o_orderdate) = '1997') and r.r_na...
true
733976dbb7f0f8eacdf6f8067dd0af3cc7b17259
SQL
richiehe/Timetabling-ASP
/create_course_info.sql
UTF-8
324
2.53125
3
[]
no_license
CREATE TABLE timetable.course ( code VARCHAR(10) NOT NULL, name VARCHAR(50) NOT NULL, hour VARCHAR(3) NOT NULL, class VARCHAR(5) NOT NULL, for_specialism VARCHAR(10) NOT NULL, number_students VARCHAR(10) NOT NULL, lectures VARCHAR(30) NOT NULL, CONSTRAINT course_pk PRIMARY KEY(name...
true
2eeb4835a38fa144aa1d95968d4087111629c790
SQL
rimerkat/oraclesql
/funciones/CURSO_ACTUAL.sql
UTF-8
576
3.203125
3
[]
no_license
CREATE OR REPLACE FUNCTION CURSO_ACTUAL RETURN VARCHAR2 AS pragma autonomous_transaction; var_curso varchar2(5); cuantos number; BEGIN if to_char(sysdate,'MM') > '09' then var_curso := to_char(sysdate,'YY')||'/'||to_char(add_months(sysdate,12),'YY'); else var_curso := to_char(add_months(sysdate,12...
true
ba6922c953bf779a83ed9869fcd4a4e658ce5059
SQL
ENTRENAinc/coconut
/forena/sql/alertajoven/Indicator22_FY19Negation_desglosado.sql
UTF-8
2,735
3.890625
4
[]
no_license
--ACCESS=access content Select * from (SELECT distinct version, reg.uuid, reg.nombre, reg.apellido, reg.sexo, reg.dob, reg.barrioComunidad, reg.calleynumero, reg.municipio, reg.provincia, reg.casa, reg.celular, reg.télefono as telefono, DATE_FORMAT(FROM_DAYS(DATED...
true
80dc183a34aeb4db2d18cd157be479d530c770c3
SQL
javimv36/Bases-de-Datos
/Triggers/trigger1.sql
UTF-8
645
3.078125
3
[]
no_license
CREATE OR REPLACE TRIGGER control_detalle_pedidos BEFORE INSERT OR DELETE OR UPDATE ON contiene FOR EACH ROW BEGIN IF DELETING THEN UPDATE pedidos SET "importe total"="importe total" - (:OLD.precioconcomision * :OLD.unidades) WHERE codigo = :OLD.pedido; ELSIF INSERTING THEN UPDATE pedi...
true
d1140e2941ab9e7c36b2de5573cad4a7c59f71a1
SQL
camilocas88/version
/mysql/crud_users.sql
UTF-8
1,331
2.953125
3
[]
no_license
/*users*/ /*Crear user*/ INSERT INTO new_users SET user_id = 0, first_name = 'user', last_name = 'user', card_id = '2343456', mail = 'admin@lalicorera.com', password = MD5('12345'), city = 'Bogota', mails = 1, role = 'Super_user'; INSERT INTO new_users SET user_id = 0, first_name = 'Camilo', last_name = 'Castill...
true
186d0e8dcb85a8195a4aab27018ad973d78a7ab4
SQL
yogski/emoney-platform-simpleton
/migration/000_build.sql
UTF-8
592
3.15625
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS accounts ( id serial NOT NULL PRIMARY KEY, username VARCHAR(32) NOT NULL, balance NUMERIC(12,0) DEFAULT 0 NOT NULL, created_at TIMESTAMP DEFAULT NOW() NOT NULL , updated_at TIMESTAMP DEFAULT NULL ); CREATE TABLE IF NOT EXISTS basic_transactions ( transaction_key BIGINT NOT NULL PRIM...
true
d7cbc0d975462294d0586e5457f9c3c5eb190098
SQL
maheshguddeti/CUSTOM_TOP
/sql/XXRS_SC_BIL_ENG_DB_OBJ.sql
UTF-8
3,923
2.921875
3
[]
no_license
/********************************************************************************************************************** * * * NAME : XXRS_SC_ALTER_BIL_ENG_TBL.sql ...
true
aa6d2b015920c660f70cbe93f32d61c47a9e3a8d
SQL
gabinete-compartilhado-acredito/BQdatasase
/views/congresso.proposicoes.sql
UTF-8
1,062
3.6875
4
[ "MIT" ]
permissive
WITH -- Tabela de proposições: d AS ( SELECT t1.id, PARSE_DATETIME("%Y-%m-%d", SPLIT(dataApresentacao, 'T')[ordinal(1)] ) AS data_apresentacao, t1.siglaTipo AS sigla_tipo, t1.numero, t1.ano, t1.descricaoTipo AS descricao_tipo, t1.ementa, t1.keywords, t1.urlInteiroTeor AS url_in...
true
89735d628150ddc9e6ed2dc071f7b2df84684acd
SQL
OktayGardener/LeetCode
/SQL/_1050.sql
UTF-8
192
3.28125
3
[]
no_license
# Write your MySQL query statement below select cnt.actor_id, cnt.director_id from ( select actor_id, director_id from ActorDirector group by actor_id, director_id having count(*) >= 3 ) cnt
true
f46c3cb0b9da0a14e08de9c483362fb4cf24e9cd
SQL
manuelguarniz/api_oracle_mongodb_handle_exceptions
/database/procedures/FIND_EMPLOYEE_BY_ID.sql
UTF-8
375
3.15625
3
[]
no_license
CREATE OR REPLACE PROCEDURE FIND_EMPLOYEE_BY_ID ( ID_EMPLOYEE IN NUMBER, RESULTSET OUT SYS_REFCURSOR ) IS BEGIN OPEN RESULTSET FOR SELECT ID , E.NOMBRE AS NAME , E.FECHANACI AS BIRTHDATE , E.SALARIO AS SALARY , E.DIASTRABAJADOS AS WORKINGDAY FROM EMPLEADOS E ...
true
f23b99f3e831a9863b84dd67a81410d5cf0b839d
SQL
radtek/Telecommunication
/K7/DataBase/SCRIPTS_FROM_DB/CORP_MOBILE/VIEW/V_ACCOUNT_PHONES_LIST.SQL
UTF-8
1,001
3.53125
4
[]
no_license
CREATE OR REPLACE FORCE VIEW "CORP_MOBILE"."V_ACCOUNT_PHONES_LIST" ("ACCOUNT_NUMBER", "ACCOUNT_ID", "YEAR_MONTH", "PHONE_NUMBER", "PHONE_IS_ACTIVE", "CELL_PLAN_CODE", "NEW_CELL_PLAN_CODE", "NEW_CELL_PLAN_DATE", "LAST_CHECK_DATE_TIME", "ORGANIZATION_ID", "CONSERVATION", "SYSTEM_BLOCK", "DETAIL_SUM", "IS_CONTRACT") AS...
true
aa1034bcae955de890d1bd89d4f3a0b58ce7bf6c
SQL
s16007/DataBase2
/1122/1122.5.sql
UTF-8
101
2.5625
3
[]
no_license
select employee_id, last_name, job_id from employees where job_id like '%REP' order by employee_id /
true
b3ef25f0842b7bc14d20e623484ceb67f8faffb6
SQL
AlanDeveloper/Banco_de_Dados
/AGENDA.SQL
UTF-8
968
3.453125
3
[]
no_license
CREATE DATABASE "Agenda"; CREATE TABLE "Telefone"( "rotulo" varchar(50) NOT NULL, "idtelefone" integer, CONSTRAINT "telefonePK" PRIMARY KEY (idtelefone)); CREATE TABLE "Grupo"( "idgrupo" integer, "nome" varchar (100) NOT NULL, CONSTRAINT "grupoPK" PRIMARY KEY(idgrupo)); CREATE TABLE "Contato"( "nome" varchar(100) N...
true
aa186c638dedce2bcc40d5a7f39fe6efbe9dd151
SQL
rharralson/atomic-arcade-demo
/Database/AADatabase/portal/tables/Ads.sql
UTF-8
455
2.515625
3
[ "BSD-2-Clause" ]
permissive
CREATE TABLE [portal].[Ads] ( [AdId] INT NOT NULL IDENTITY, [Name] VARCHAR(50) NOT NULL, [Priority] INT NOT NULL, [Link] VARCHAR(100) NOT NULL, [StartDate] DATETIME2 NOT NULL, [ExpirationDate] DATETIME2 NOT NULL, [ClientId] INT NOT NULL, [AdCategoryId] INT NOT NULL, ...
true
5af441786188951cbe9cc24ea8f76e1fb53f99e9
SQL
camreedtech/wpx18-node-3-lecture
/db/init.sql
UTF-8
226
2.765625
3
[]
no_license
CREATE TABLE students ( id SERIAL PRIMARY KEY, name TEXT, email VARCHAR(32) ); INSERT INTO students ( name, email ) VALUES ('Nitin', 'wowfan@blizzard.com'), ('Riley', 'rhatch@animal.crossing.gov'), ('Kayla', 'kayla@pokemon.go'); SELECT * FROM students;
true
4a4c2c0a992cebf32dbc78fe607353cbdecaae22
SQL
pascoalb/IntegracaoToYou
/BackofficeBack/sql/MySql/CREATE TABLE PLANOS.sql
UTF-8
694
3.171875
3
[]
no_license
USE `BACKOFFICE`; CREATE TABLE PLANOS ( ID_PLANO INT AUTO_INCREMENT NOT NULL, DESCRICAO VARCHAR(15), VALOR_PLANO DECIMAL(10,2), PERCENTUAL_IND_DIRETA DECIMAL(10,2), NIVEL_IND_INDIRETA INT, NIVEL_BONUS_RESIDUAL INT, PERCENTUAL_BONUS_RENOVACAO DECIMAL(10,2), PERCENTUAL_BONUS_VENDA DECIMAL(10,2), NIVEL_BONUS_UN...
true
91985909bb46ff275ad384ff8fe0f041fb6492f9
SQL
syhvickycu/ff
/xunquweb.sql
UTF-8
34,764
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.10 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Generation Time: Sep 12, 2015 at 11:09 PM -- Server version: 5.5.38 -- PHP Version: 5.6.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `xunquweb` -- -- ----------------------------...
true
99ac87fe17fb27dc55c9716926135ee0e3198464
SQL
PacoGiordani/Banco-de-Dados-2
/Atividade 30-08/NumerosPrimos.sql
UTF-8
347
2.546875
3
[]
no_license
DELIMITER $$ create procedure numPrimo(In num int, out num2 int) begin declare x int; set x = num - 1; comeco:while x > 1 do if (num % x = 0) then set num2 = 0; leave comeco; else set num2 = 1; end if; set x = x - 1; end while; end $$ DELIMITER ; call numPri...
true
97fc43ede25221c47e859551464b8bdfb02b8260
SQL
krizanact/Symfony
/symfony (2).sql
UTF-8
3,945
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 05, 2019 at 03:18 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
a6b131fc35043339a6c8025bcef5a7902ce96002
SQL
ErikArmas/MathClass
/DB.sql
UTF-8
2,310
3.40625
3
[]
no_license
create database MathClass; use MathClass; create table usuarios( idUsuarios int not null AUTO_INCREMENT, matriculaUsuarios varchar(10), nombre varchar(50), apellidoPaterno varchar(50), apellidoMaterno varchar(50), usuario varchar(30), password varchar(50), tipoUsuario varchar(50), fechaRegistro date, foto va...
true
16ad4c4b4dd8cd5db2bd17f7a6ed4fc35e603b32
SQL
mr1hm/shuttle-employee-management
/server/sql/structure/user.sql
UTF-8
2,243
2.953125
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.28-0ubuntu0.18.04.4 - (Ubuntu) -- Server OS: Linux -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------- /*!4...
true
7ef7e4afca916b7831db53e773a5c0369f6dd7e2
SQL
lotfi/fjerp
/src/main/resources/forma.sql
UTF-8
3,243
3.390625
3
[]
no_license
/* date: 06/02/20 version: 0.2 */ create database forma character set latin1; use forma; create table codif ( code varchar(20) not null, categorie varchar(20) default '', label varchar(50) default '', etat varchar(10) default '', ref_parent varchar(20), date_enreg datetime default curre...
true
52222c98c9cf768cf789147234e6f7bced922c0a
SQL
poemp/spring-boot-shiro
/vs-common/out/production/resources/db_migrations/V0.1__init_dict.sql
UTF-8
2,644
3.21875
3
[]
no_license
DROP TABLE IF EXISTS "t_user_info"; create table t_user_info( "id" int8 not null , "username" varchar(50), "name" varchar(50), "password" varchar(200), "salt" varchar(200), "state" varchar(200), primary key ("id") )WITH (OIDS=FALSE); DROP TABLE IF EXISTS "t_sys_permission"; create table t...
true
5c3a45e99c1685deedbc74b5782f750f40334ede
SQL
mengchen129/Piano-server
/database.sql
UTF-8
907
3.28125
3
[]
no_license
CREATE TABLE `piano_music_record` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `music_name` varchar(64) NOT NULL DEFAULT '' COMMENT '名称', `music_feel` varchar(256) DEFAULT NULL COMMENT '感受', `music_create_time` datetime DEFAULT NULL COMMENT '创建时间', `music_tune` int(11) NOT NULL DEFAULT '0' COMMENT '音调', ...
true
ff861bf2d0f4105f979fc2aa1aca1928427923cf
SQL
lee0506kr/java
/Day0501_Database/database1.sql
UTF-8
2,797
3.875
4
[]
no_license
SQL(Structed Query Language) :DBMS를 통해서 데이터 베이스에 데이터를 조회하거나, 수정, 삭제, 변경을 하기위한 언어 sqlplus / as sysdba : 관리자 권한 접속 유저생성 conn 아이디/비밀번호 ; CREATE USER lee5656kr IDENTIFIED by "qwer4512"; 유저권한주기 모든권한주기 GRANT connect,dba,resource to lee5656kr; CREATE TABLE[테이블명]( [컬럼명] [자료형] [옵션..], [컬럼명] [자료형] [...
true
a7feeec4e6319278ee5e7f7fede99c2cc9b97697
SQL
sengeiou/NoteServer-Rest-Api
/sql/notes.sql
UTF-8
4,217
3.703125
4
[]
no_license
DROP DATABASE IF EXISTS notes; CREATE DATABASE IF NOT EXISTS notes; USE notes; CREATE TABLE IF NOT EXISTS user ( `id` BIGINT NOT NULL AUTO_INCREMENT, `firstName` VARCHAR(50) NOT NULL, `lastName` VARCHAR(50) NOT NULL, `patronymic` VARCHAR(50), `login` VARCHAR(50) NOT NULL, `password` VARCHAR(50) BI...
true
f3a00f9d4082cdd3398a50dd633912adccc5d8bf
SQL
cckmit/xinfu
/ccms/WebContent/WEB-INF/action/project/fitness/contract/util/queryptdefdiscount/query.sql
UTF-8
181
2.765625
3
[]
no_license
select reate from cc_ptdef_discount where ptdefcode = ${fld:ptlevelcode} and startcount<=${fld:ptcount} and endcount>=${fld:ptcount} and org_id = ${def:org} order by code limit 1
true
7eafa585fd196821de217ad0e361b5d0cfee1e83
SQL
hoslack/kipande
/kipande.sql
UTF-8
11,874
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 17, 2016 at 11:16 PM -- Server version: 5.5.32 -- PHP Version: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
d4ffbe8bf894f1850d707916a0fcfa05fb0506af
SQL
amorwilliams/appcenter
/db.sql
UTF-8
15,998
2.859375
3
[]
no_license
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE "django_migrations" ("id" integer NOT NULL PRIMARY KEY AUTOINCREMENT, "app" varchar(255) NOT NULL, "name" varchar(255) NOT NULL, "applied" datetime NOT NULL); INSERT INTO "django_migrations" VALUES(1,'contenttypes','0001_initial','2015-12-17 11:45:19.986749'); IN...
true
2714f2f135ba19baa863acbe383714fcee2606cd
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Views/V_OT_PEX_ETAPAS_SUM.sql
UTF-8
1,542
2.515625
3
[]
no_license
CREATE OR REPLACE VIEW OPERACION.V_OT_PEX_ETAPAS_SUM AS SELECT s.codsolot codpre, s.punto idubi, s.codeta codeta, s.orden orden, /*A:Dis, Soles*/PQ_COSTO_OPE.f_sum_actxpuntoxetapa (s.codsolot, s.punto, s.codeta, 1, 0, 1, null) MO_dis_sol, /*P:Dis, Soles*/PQ_COSTO_OPE.f_sum_actxpuntoxetapa (s.codsol...
true
324c43c2c561f7692c38434c41f8d4f3482a8756
SQL
jason-gonzales/c0820-code-solutions
/sql-aggregates/starring-in.sql
UTF-8
430
3.4375
3
[]
no_license
select "name" as "category", count(*) as "apperance" from "categories" join "filmCategory" using ("categoryId") join "castMembers" using ("filmId") join "actors" using ("actorId") where "actorId" = 178 group by "categories"."name"; -- List the categories of movies (and how many) that 'Lisa Monroe' appeared i...
true
d9dc963fa9377e9359167dac7ab7f1ef1207d94e
SQL
Samour/sql-tutorial
/example-app/sql/schema.sql
UTF-8
884
3.71875
4
[]
no_license
CREATE TABLE IF NOT EXISTS User( id char(36) PRIMARY KEY NOT NULL, email varchar(255), first_name varchar(127), last_name varchar(127), sign_up_date datetime ); CREATE TABLE IF NOT EXISTS Poll( id char(36) PRIMARY KEY NOT NULL, owner_user_id char(36) NOT NULL, title varchar(255), FOREIGN KEY (owner_u...
true
d613ae0a48009f6b1cedb5309415a7e80d748543
SQL
yohnniebabe/jasperreports-server-ce
/buildomatic/install_resources/sql/sqlserver/upgrade-sqlserver-6.2.0-6.3.0-pro.sql
UTF-8
1,064
2.9375
3
[]
no_license
-- -- -- 6.2.0 to 6.3.0 -- -- This is a placeholder file for the js-upgrade-samedb.sh/bat script -- -- Create a table for Azure SQL Data Source create table JIAzureSqlDatasource ( id numeric(19,0) not null, keyStore_id numeric(19,0) not null, keyStorePassword nvarchar(100) null, keyS...
true
cedf98de054e606b5db4e8b2c27585f8fc99a501
SQL
AmitrajitDas/SQL-Practice
/Inserting Data/Insert.sql
UTF-8
2,476
4.0625
4
[]
no_license
-- using cat_app CREATE TABLE cats(name VARCHAR(50), age INT); INSERT INTO cats(name, age) VALUES('Blue', 1); INSERT INTO cats(age, name) VALUES(11, 'DRACO'); SELECT * FROM cats; INSERT INTO cats(name, age) VALUES('Peanut', 7), ('Butter', 4), ...
true
c92027c48be47980a4405659f26243589aec7697
SQL
gridl/advent-of-code
/2018/Dec01/script.sql
UTF-8
1,076
4.25
4
[ "MIT" ]
permissive
\set ON_ERROR_STOP true CREATE TABLE dec01 (rownum bigint GENERATED ALWAYS AS IDENTITY, input integer); /* Import the input file. We're using perl to remove the final newline. */ \COPY dec01 (input) FROM PROGRAM 'perl -pe ''chomp if eof'' input.dat' \timing on /* Part One is trivial in SQL */ SELECT sum(input) FROM...
true
5440dca232eedf2aa3e01c11b4801dff401f1668
SQL
nickgreen8/cms
/database/procedures/GetPosts.sql
UTF-8
715
3.6875
4
[]
no_license
-- -------------------------------------------------------------------------------- -- Routine DDL -- Note: comments before and after the routine body will not be stored by the server -- -------------------------------------------------------------------------------- DELIMITER $$ CREATE PROCEDURE `GetPosts` (IN page ...
true
7ea7c54132127b2701941e19d382d92c8cee3b53
SQL
v0sem/SI1
/practica4/ejercicioC/apendice1.sql
UTF-8
392
3.578125
4
[]
no_license
EXPLAIN select customerid from customers where customerid not in (select customerid from orders where status='Paid'); EXPLAIN select customerid from (select customerid from customers union all select customerid from orders where status='Paid') as A group by customerid having count(*) =1; EXPLAIN select customerid ...
true
d2e441614b1b5f2f23b163a5d74e56ffa68c8613
SQL
rieckpil/learning-samples
/jdbc-book/src/main/resources/schema.sql
UTF-8
486
3.625
4
[ "MIT" ]
permissive
create table if not exists users ( id identity not null primary key, first_name varchar(255), last_name varchar(255), registration_date datetime ); alter table users add column IF NOT EXISTS balance int default 100; create table if not exists transfers ( id identity not null primary key, sende...
true
ad0f97e5cd9b6ea5805805584e2f6b41398ce185
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day09/select0752.sql
UTF-8
239
2.53125
3
[]
no_license
SELECT timeStamp, clientid FROM WiFiAPObservation WHERE timestamp>'2017-11-08T07:52:00Z' AND timestamp<'2017-11-09T07:52:00Z' AND SENSOR_ID=ANY(array['3141_clwa_1500','3142_clwa_2219','3141_clwb_1100','3141_clwa_1425','3144_clwa_4219'])
true
c60f3af92526af6591bd41689d3dca9049d9744b
SQL
brentgroves/bpgsql
/MSC/ItemSummary.sql
UTF-8
3,662
3.6875
4
[]
no_license
/* summary query */ select * from jobs where JOBNUMBER like '788%'-- descr like '%141%' select * from items where itemnumber select * from items where ITEMNUMBER like '%166%' -- 16649 16691 16691 ('485','500','1047','2020','2021','2022','2144','2563','2566','2573','2592','3024','3084','3144','3178','3179','3180','3683'...
true
4a3fd67810a37e5267af244f30c0ce71eeace3ec
SQL
williammaich/banco-de-dados-2
/roteiro aula 6.sql
UTF-8
17,679
3.546875
4
[]
no_license
* CRIAÇÃO DE SCHEMA / DEFINIÇÃO*/ DROP SCHEMA IF EXISTS aula04_virus; CREATE SCHEMA aula04_virus; USE aula04_virus; -- ----------------------------------------------------- -- Tabela virus -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS virus ( id INT NOT NULL AUTO_INCR...
true
3e39744a3832211f12a941b165275f9d61c3aaf9
SQL
venanciolm/aurius
/aurius-ddl/src/main/resources/mysql/dic-tables.sql
UTF-8
2,734
3.1875
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS DICDESC_DICD; CREATE TABLE DICDESC_DICD ( DICD_ID CHAR(32) NOT NULL, DICD_DESC text, PRIMARY KEY (DICD_ID) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS OPERATIVAS_OP; CREATE TABLE OPERATIVAS_OP ( OP_GRUPO char(6) NOT NULL, DICD_ID CHAR(32), OP_DESC varchar(25...
true
0534ef35057e545df8377b12858947d04c1cf9c4
SQL
HyunupKang/StudySQLServer
/210514/LEFT_RIGHT OUTER JOIN and UNION.sql
UHC
2,615
3.71875
4
[]
no_license
--ܺ -- SELECT u.userID, u.name, b.prodName , u.addr, CONCAT(u.mobile1, u.mobile2) AS mobile FROM userTbl AS u INNER JOIN buyTbl AS b on u.userID = b.userID ORDER BY u.userID --ܺ SELECT u.userID, u.name , u.addr, CONCAT(u.mobile1, u.mobile2) AS mobile , b.prodName FROM userTbl AS u LEFT OUTER JO...
true
edd5f0bf7cada05b09f60b036fa5647f440b1524
SQL
Bimzee/EdxTSQL
/1/3.sql
UTF-8
882
4.0625
4
[]
no_license
use [AdventureWorksLT] --null NUMBER=0 SELECT NAME ,ISNULL( TRY_CAST(SIZE AS INTEGER),0) AS NUMERICSIZE FROM SALESLT.PRODUCT --NULL STRING=LANK STRING SELECT PRODUCTNUMBER, ISNULL(COLOR,'')+','+ISNULL(SIZE,'') AS PRODUCTDETAILS FROM SALESLT.PRODUCT --MULTI COLOR=NULL SELECT NAME, NULLIF(COLOR,'MULTI') AS SINGLECOLO...
true
918d37955d11a30e79a138327cd4e89c3edfa995
SQL
ChooiChunWei/Condominium-Management-System-Assignment
/javaassignmentdb.sql
UTF-8
7,502
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Sep 29, 2020 at 08:45 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
6fed8afed3eb028e5d06201d8a90482e6f502616
SQL
madhurivaishnav/SALTWEB
/SALT_NewDesign/Database/Procedure/dbo.prcUser_GetUserType.PRC
UTF-8
1,166
3.453125
3
[]
no_license
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[prcUser_GetUserType]') AND type in (N'P', N'PC')) BEGIN EXEC dbo.sp_executesql @statement = N' /* Summary: Get user type Role (UserType) Change A Role change occurs when an administrator''s type ch...
true
04cc08f122ec83a5fbd5ed68954825588d13e4ac
SQL
vdovinanton/Practice-in-T-SQL
/5. Tables joining/dbo.ExampleToUseUnion.sql
UTF-8
721
3.265625
3
[]
no_license
/* UNION */ /* https://metanit.com/sql/sqlserver/7.5.php */ /* THERE IS A TWO TABLES WITH SAME COLUMN SENSE, WE CAN ADD THEIR TO EACH OTHER */ SELECT FirstName, LastName FROM Customers UNION SELECT FirstName, LastName FROM Employees SELECT FirstName + ' ' +LastName AS FullName FROM Customers UNION SELECT FirstNam...
true
6d9f9ffc50f98ccd2b331820bf1a7f7e6d867a55
SQL
vgoel38/PQET
/inputs/really_final_outputs/without_seq/original/7a.sql
UTF-8
5,231
2.71875
3
[]
no_license
QUERY PLAN --------------------------------------------------------------------------------------------------------------------...
true
e6fc44e6b4b94cd2bbc66c922ed23004707d77a0
SQL
rickyork/Hot-Toddy
/hCalendar/SQL/getDate.sql
UTF-8
469
3.34375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
SELECT `hCalendarFileDates`.`hCalendarDate` FROM `hCalendarFiles`, `hCalendarFileDates` WHERE `hCalendarFiles`.`hCalendarFileId` = `hCalendarFileDates`.`hCalendarFileId` AND `hCalendarFiles`.`hCalendarId` = {hCalendarId} AND `hCalendarFiles`.`hCalendarCategoryId...
true
42e83d37c5b75dbfd577057e8b4c20991fb1308c
SQL
UnicornsLover/Szakdolgozat2020
/Zaró dolgozat/LiveInCare Tables/children_health.sql
UTF-8
2,943
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Gép: 127.0.0.1 -- Létrehozás ideje: 2020. Feb 18. 11:26 -- Kiszolgáló verziója: 10.4.6-MariaDB -- PHP verzió: 7.3.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
209c7c12fce002111437a75cd5c5a3591d78f3ca
SQL
Sainterman/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/15-groups.sql
UTF-8
254
3.265625
3
[]
no_license
-- script that lists the number of records with the same score in the table second_table -- should display the score, number of records for this score in descending SELECT score, COUNT(*) as number FROM second_table GROUP BY score ORDER BY number DESC;
true
8c3b4cca27e2aab923e3db88c5659c203df78eb0
SQL
herbertyz/smartmvp
/sqldb/createview.sql
UTF-8
3,392
4.375
4
[]
no_license
-- --------------------------------------------------------------------------------------------------------- -- Note: it is possible to create the requested view without intermediate table (as in following statement) -- However, each query in such view is expensive in execution time (about 2 minutes on my Dev iM...
true
409c864f1aafc9340cb82f248fac4ade6e1ced8f
SQL
Josue44/Projet-finial
/wstorage.sql
UTF-8
2,762
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mar 05 Juin 2018 à 12:46 -- Version du serveur : 10.1.19-MariaDB -- Version de PHP : 7.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
4a49aac0447b75ed6f24c78b01abb6293323dcb8
SQL
raskolnikov/tracker
/com.m2yazilim.tracker/com.m2yazilim.tracker.util/src/main/resources/tracker.sql
UTF-8
81,057
3.515625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Anamakine: localhost -- Üretim Zamanı: 03 Kasım 2013 saat 23:13:47 -- Sunucu sürümü: 5.1.41 -- PHP Sürümü: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
true
836050a6f824ca596b70f69a598c492920bbed8a
SQL
SelesAbraham/srh-sdp-2018-au-pair-placement-system
/AuPairPlacementSystem/src/main/java/edu/srh/aupair/databaseObjects/DBObjects/DB Objects/DB Tables/contract.sql
UTF-8
686
3.15625
3
[]
no_license
CREATE TABLE `contract` ( `CONTRACT_ID` int(10) unsigned NOT NULL AUTO_INCREMENT, `AU_PAIR_ID` int(10) unsigned NOT NULL, `HOST_ID` int(10) unsigned NOT NULL, `SIGNED_CONTRACT_IMAGE` binary(255) DEFAULT NULL, PRIMARY KEY (`CONTRACT_ID`), KEY `AU_PAIR_ID_idx` (`AU_PAIR_ID`), KEY `HOST_ID_idx` (`HOST_ID`), ...
true
35c4746df7d50a9010ec7087c31610cdcb9c3e54
SQL
gamerslouis/db_final_project
/backend/migrate.sql
UTF-8
1,500
3.296875
3
[]
no_license
-- This is an auto grenerate file CREATE TABLE User ( id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT NOT NULL, password TEXT NOT NULL ); CREATE TABLE Friend ( id INTEGER PRIMARY KEY AUTOINCREMENT, a INTEGER NOT NULL, b INTEGER NOT NULL ); CREATE INDEX index_Friend_a_b on Frie...
true
df8aacf546ea23c934e0187cefb390b40bad6054
SQL
859162000/cbms
/platform/order/persist/sql/versions/1.0/sim/upgrade/create_table_20150809.sql
UTF-8
1,465
3.375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `steel_cbms`.`common_category` ( `id` INT NOT NULL AUTO_INCREMENT COMMENT '', `uuid` VARCHAR(45) NOT NULL COMMENT '', `name` VARCHAR(45) NOT NULL COMMENT '', `priority` INT(11) NULL DEFAULT NULL COMMENT '', `is_deleted` BIT(1) NOT NULL COMMENT '', `created` DATETIME NOT NULL DEFAU...
true
4ade29e86bf0d9ee23dbcf79666c4f82128b8139
SQL
jichangji/httpfilter
/document/sql/cont.sql
IBM852
507
2.734375
3
[]
no_license
DROP TABLE IF EXISTS HTTP_CONNECTION; DROP SEQUENCE IF EXISTS HCONNECTION_SEQUENCE; CREATE TABLE IF NOT EXISTS HTTP_CONNECTION ( ID BIGINT NOT NULL PRIMARY KEY, URL VARCHAR2 NOT NULL, REQ_DATA_NASID BIGINT NOT NULL, RES_DATA_NASID BIGINT NOT NULL, SERVER_IP VARCHAR2, COMT_ID BIGINT NOT NULL, GMT_CREATE TIMESTAM...
true
6388a9ae2f51f0dd5d37f9cef283d37534562b85
SQL
qimy1314524/note
/杂记/sql图片/数据库笔记.sql
UTF-8
11,082
4.5
4
[]
no_license
-- 使用cmd方式登录 mysql -uroot -p619619 或者 mysql -uroot -p 回车 然后输入密码 -- 使用cmd方式登录数据库 并且制定编码集 mysql -utey -p123456 --default-CHARACTER-SET=gbk -- 显示数据库 SHOW DATABASES; -- 使用哪个数据库 USE syso; -- 显示表 SHOW TABLES; -- 创建数据库 CREATE DATABASE f17; -- 删除数据库 DROP DATABASE f17; CREATE DATABASE IF NOT EXISTS f17; DROP DATABASE IF EXISTS...
true
8f06147c557da80bfc93386a881298b0dbb74b53
SQL
tdsteph1/Burger
/db/schema.sql
UTF-8
300
2.875
3
[]
no_license
DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers( id INT AUTO_INCREMENT NOT NULL, burger_name VARCHAR(100) NOT NULL, devoured BOOLEAN DEFAULT false, ts TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY(id) );
true
141498b97847811f72ec141acfc73db1f4286a1a
SQL
visha1508/sparks_bank
/sparks_bank.sql
UTF-8
2,711
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 07, 2021 at 11:55 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
5af6260ad930b805bfc302061ddc555643bee893
SQL
mkralik3/jbosstools-integration-stack-tests
/tests/org.jboss.tools.teiid.ui.bot.test/resources/projects/DDLtests/SourcePrimaryKey/SourceModelPrimaryKey.ddl
UTF-8
316
3.015625
3
[]
no_license
CREATE FOREIGN TABLE myTable ( Column1 string(4000), Column2 string(4000) NOT NULL, Column3 string(4000) NOT NULL, CONSTRAINT PrimaryKey PRIMARY KEY(Column3, Column2)OPTIONS(ANNOTATION 'This is PrimaryKey description', NAMEINSOURCE 'PrimaryKeySource') ) OPTIONS(NAMEINSOURCE 'myTableSource', UPDATABLE 'TRUE')
true
3b344dfcc34a41979457477cc0d047fa77f320a2
SQL
parbhez/srms
/database/28.-10-18.sql
UTF-8
9,684
3.3125
3
[ "MIT" ]
permissive
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.31-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 9.5.0.5196 -- ------------------------------------------------...
true
afb835e41f2e6d2b5daaf6cb814d03ee4e8860f9
SQL
Last-Mile-Health/LMD-Databases
/lastmile_cha/view/view_base_position.sql
UTF-8
1,155
3.25
3
[]
no_license
/* This view does not work on Windows MySQL. Because the two views it is buitlt on are themselves built on self-joins, it returns zeron records. It works fine on our production Linux instance of MySQL. Not sure if this is a problem with the specific version of MySQL we are using on Windows or */ use lastmi...
true
7cb87f399d894c45043bf37f9599c65ad5680919
SQL
DoStini/feup-bdad
/triggers/clinica/triggers.sql
UTF-8
2,772
3.765625
4
[]
no_license
DROP TRIGGER IF EXISTS consulta_hora_medico; CREATE TRIGGER consulta_hora_medico BEFORE INSERT ON ConsultasMarcadas FOR EACH ROW WHEN EXISTS (SELECT julianday(new.data), new.horainicio INTERSECT SELECT julianday(data), horainicio FROM ConsultasMarcadas WHERE new.codmedico=codmedico) BEGIN ...
true
df18b8e8511d2c42cb9bc7f5a86602819855d6dc
SQL
hardaker-dev/sfgweb
/SaasFeeGuides/SaasFeeGuides.Database.Deploy/Scripts/24_CreateProc_UpsertContent.sql
UTF-8
517
3.296875
3
[]
no_license
CREATE PROCEDURE Activities.UpsertContent @Id varchar(50), @Value nvarchar(max), @Locale varchar(3), @ContentType varchar(10) AS BEGIN SET NOCOUNT ON; IF EXISTS ( select 1 from App.Content where Id = @Id and Locale = @Locale) BEGIN UPDATE App.Content Set value = @value, ContentType = @ContentType where Id...
true
b8a3a87eb3fa54657e30b8b2b2fe0a18c22c9ac3
SQL
arcorck/DUT-AS
/S1/bd/tpintro/test1.sql
UTF-8
1,871
2.90625
3
[]
no_license
drop table BdHabitantVoiture; create table BdHabitantVoiture( Prenon Varchar2(20), Nom Varchar2(20), Sexe Varchar2(1), Rue Varchar2(20), Num Number(2), Ville Varchar2(10), MarqueV Varchar2(10), NomV Varchar2(10), AnneeV Number(4), CouleurV Varchar2(10), TypeMoteurV Varchar2(10), ImmV Varchar2(10) ); insert into BdHab...
true
e890263d61127fcfa767189b354a9d27fece8da7
SQL
eulertech/backup
/EAA_Dataloader/src/Applications/PGCRERCOT/CreatePGCRERCOTDataTablesTemplate.sql
UTF-8
1,320
2.78125
3
[]
no_license
DROP TABLE IF EXISTS {schemaName}.{tableName}DAM; CREATE TABLE {schemaName}.{tableName}DAM ( DeliveryDate VARCHAR(100) ENCODE LZO, HourEnding VARCHAR(100) ENCODE LZO, BusName VARCHAR(100) ENCODE LZO, LMP VARCHAR(100) ENCODE LZO, DSTFlag ...
true
d71fa0514f4537ef5527f328a682a7f230b1808c
SQL
RandaMoustafa/back-end
/sql task/data.sql
UTF-8
597
3.109375
3
[]
no_license
CREATE DATABASE students; CREATE TABLE student ( id INT AUTO_INCREMENT PRIMARY KEY , First_NAME VARCHAR (255), Last_NAME VARCHAR (255), Email VARCHAR (255) UNIQUE, Mobile_Number VARCHAR (255) UNIQUE, Grade VARCHAR (255) ); INSERT INTO `student` (`id`, `First_NAME`, `Last_NAME...
true
43e6dfc42dc159f9877b70eed62709bbeb48589d
SQL
IgorDerik/Epam-Java
/DataBase/HW2/student_score.sql
UTF-8
1,854
4.1875
4
[]
no_license
CREATE DATABASE students_score; USE students_score; CREATE TABLE faculty ( id INT AUTO_INCREMENT PRIMARY KEY, specialty_name VARCHAR(40) NOT NULL ); CREATE TABLE `group` ( id INT AUTO_INCREMENT PRIMARY KEY, code_name VARCHAR(30) NOT NULL, faculty_id INT NOT NULL, FOREIGN KEY (faculty_id) REFERENCES faculty (id) ); C...
true
41fa117254990456217f57e0831447014fae6f21
SQL
cbastos/devopsdashboard
/api/adapters/repository/scripts/loadSeedEntitiesData.sql
UTF-8
13,391
3.234375
3
[]
no_license
INSERT INTO Organizations ( id, name , description ) VALUES (0,'E-Shop Organization','This org manages company e-shops'), (1,'E-Care Organization','This org manages company e-cares & self-cares'); INSERT INTO Teams ( id, name, description, organizationid ) VALUES (1,'E-shop checkout team','The team responsible for the...
true
8409d6ed88df8715446793273f9efb89aa85ac7b
SQL
JroachAu/sctau-sample-scripts
/schema/4_createRoutines.sql
UTF-8
927
3.5
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- -------------------------------------------------------------------------------- -- CREATE ROUTINES -- -------------------------------------------------------------------------------- USE `sctau`; DELIMITER // DROP FUNCTION IF EXISTS get_FSN // CREATE FUNCTION get_FSN(candidate bigint(20)) RETURNS varchar...
true
376eab28e7d5ebee8203470a933def9b818eae79
SQL
avk013/todo
/db_table/todo_commit.sql
UTF-8
685
2.875
3
[]
no_license
-- Adminer 4.2.5 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `todo_commit`; CREATE TABLE `todo_commit` ( `id` int(11) NOT NULL AUTO_INCREMENT, `todo_id` int(11) NOT NULL, `name` text NOT NULL, `commit` text NOT N...
true
1a4c93f46d361cff1d3d1ecd600caabbd632976c
SQL
iedwcl/5yr_non_exec
/SQL/Final_WCL_retirement_unitwise.sql
UTF-8
2,559
3.5625
4
[]
no_license
SELECT dd.areaname AREA, dd.unitname UNIT, dd.unit UNITCODE, D.DISCP DISCIPLINE, SUBSTR( D.GDESIG, 0, 15 ) GDESIG, dd.dcd DCD, dd.tot TOT, dd.R15_16 R15_16, dd.R16_17 R16_17, dd.R17_18 R17_18, dd.R18_19 R18_19, dd.R19_20 R19_20, dd.R20...
true
8d48f481c9e9df694d397bafdf35d1525105d2c6
SQL
LotusEliza/Game_admin
/migrations/20191014114353_player_norms.sql
UTF-8
462
3.15625
3
[]
no_license
-- +goose Up -- +goose StatementBegin SELECT 'up SQL query'; -- игрок int -- дата Date -- ресурс int -- количество int CREATE TABLE IF NOT EXISTS player_norms ( tg INT, date DATE NOT NULL, resource INT NOT NULL, amount INT NOT NULL, PRIMARY KEY (tg, date, resource) ); -- +goose StatementEnd -- +go...
true
f80f09458bc25a4e9da9adcfa4cd89ed84a5cf72
SQL
Simon-Mignot/projet-oracle-scripts
/data.sql
UTF-8
4,910
2.6875
3
[]
no_license
-- LANGUE INSERT INTO LANGUE(libelle_langue) VALUES('Français'); INSERT INTO LANGUE(libelle_langue) VALUES('Allemand'); -- UTILISATEUR INSERT INTO UTILISATEUR ( nom_utilisateur, prenom_utilisateur, mail_utilisateur, numeroTelephone_utilisateur, sexe_utilisateur, dateNaissance_utilisateur, ...
true
7159cce100e29b662e5455f0f0a154509e56d435
SQL
neil-justice/twitter-status-streamer
/sqlinit.sql
UTF-8
498
3.28125
3
[]
no_license
DROP TABLE IF EXISTS User; CREATE TABLE User ( uid INTEGER PRIMARY KEY, name VARCHAR(100) NOT NULL, followers INTEGER NOT NULL, friends INTEGER NOT NULL ); DROP TABLE IF EXISTS Status; CREATE TABLE Status ( sid INTEGER PRIMARY KEY, text TEXT NOT NULL, timestamp INTEGER NOT NULL, author INTEGER REFERENC...
true
78d162bc63a9de538dc0e463efac2d98af07b3d8
SQL
qipingzhiji/manager
/doc/main.sql
UTF-8
1,932
3.359375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : sqlite Source Server Type : SQLite Source Server Version : 3017000 Source Schema : main Target Server Type : SQLite Target Server Version : 3017000 File Encoding : 65001 Date: 17/07/2019 20:00:30 */ PRAGMA foreign_keys = false; ...
true
236ea3f93212957cbbae55cc05638909b214e1ad
SQL
rahul-rajesh-rao/desktop-spec-generator
/DB/computer_gpu.sql
UTF-8
2,751
2.703125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: computer -- ------------------------------------------------------ -- Server version 8.0.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
true
c1245a717c2feb0f78b3a585cbf401c768a98875
SQL
SQLit/scratch-sqlqueries
/table.sql
UTF-8
2,554
3.84375
4
[ "MIT" ]
permissive
create table country( code char(3) primary key not null, name text not null, continent text not null, region text not null, population integer not null, capital integer ); create table city ( id serial primary key, name text not null, countrycode char(3) not null references country(code), ...
true
3b187e4171af09a6275f188bf11d911fe5e78f87
SQL
KareceA/Auction-mangment-system
/Auction Mangment System/bin/Script/auction.sql
UTF-8
4,736
3.453125
3
[]
no_license
CREATE TABLE Customers ( cusID int NOT NULL AUTO_INCREMENT, cusName varChar(100) UNIQUE, cusPassword varchar(100) NOT NULL, isCusLoggedIn bool , PRIMARY KEY (cusID) ); -- INSERT INTO Customers (cusName,cusPassword) -- VALUES ("test", "2131") ; -- CREATE TABLE aucItems ( -- itemID int NOT ...
true
4d9df4aa12523a89e301104b9957c2af67b40e6c
SQL
VictorRodriguez08/SistemaWeb
/sistemaweb2-2-2019.sql
UTF-8
28,419
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 03-02-2019 a las 02:29:58 -- Versión del servidor: 5.7.23 -- Versión de PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
1a3b11efe14656d18aa9297048631888d4fe40ee
SQL
KevinCarrilloCuevas/ProyectoBD
/Proyecto DB/practica.sql
UTF-8
4,858
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 29, 2020 at 09:04 PM -- Server version: 5.00.15 -- PHP Version: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
true
faf14312917d1f3254bbcd0e062c03ba94949074
SQL
jdarangop/holbertonschool-machine_learning
/pipeline/0x02-databases/10-count_shows_by_genre.sql
UTF-8
252
3.90625
4
[]
no_license
-- Display number of shows by each genre SELECT tv_genres.name AS genre, COUNT(tv_show_genres.show_id) AS number_of_shows FROM tv_genres JOIN tv_show_genres ON tv_genres.id = tv_show_genres.genre_id GROUP BY genre ORDER BY number_of_shows DESC, genre;
true
34029ba69fdbe7dce790c3cd78e49674a96b9c46
SQL
TRosey/Burger
/Burger-HW/db/schema.sql
UTF-8
212
2.703125
3
[]
no_license
CREATE DATABASE burger_db; USE burger_db; CREATE TABLE burgers ( id int NOT NULL AUTO_INCREMENT, burger_name VARCHAR(100) NOT NULL, devoured BOOLEAN NOT NULL, date TIMESTAMP NOT NULL, PRIMARY KEY (id) );
true
03a4e76d4f1675953c5f4678ffc67e4a89a02f5e
SQL
eruhoon/FOPT
/fopt.sql
UTF-8
3,886
3.515625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: 14-08-09 04:40 -- 서버 버전: 5.5.39 -- PHP Version: 5.5.15 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_C...
true
9450b6f29e80d631839564b980bc44c8156aa08c
SQL
saurav28/GymManager
/laravel.sql
UTF-8
4,085
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jul 16, 2019 at 09:00 AM -- Server version: 5.7.21 -- PHP Version: 7.1.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
628dae7d5975ec71eab8e9e6a9ef13d366c2bfd9
SQL
fskang/timescaledb
/test/sql/pg_dump.sql
UTF-8
1,573
3.328125
3
[ "Apache-2.0" ]
permissive
\o /dev/null \ir include/insert_two_partitions.sql \o SELECT count(*) FROM pg_depend WHERE refclassid = 'pg_extension'::regclass AND refobjid = (SELECT oid FROM pg_extension WHERE extname = 'timescaledb'); \c postgres \! pg_dump -h localhost -U postgres -Fc single > dump/single.sql \! dropdb -h localhost -U ...
true
73ae49ba3bf11c0f686a9409f8f5885a457f8b64
SQL
CJBuck/AssetWorksConversion
/Transformation/Equipment/Equipment Type/LoadEquipmentType.sql
UTF-8
515
2.859375
3
[]
no_license
SELECT '2017' [Control], '79:2' [Equipment Type], '80:2' [Description], '80:4' [Year], '80:6' [Manufacturer ID], '80:9' [Model ID], '80:12' [Department ID], '80:15' [Location ID], '80:18' [Equipment Class ID], '80:22' [Active], '80:21' [Comments] UNION ALL SELECT DISTINCT ET.[Control] [Control], ET.[EquipmentTy...
true
2536f86e7017d751d355978546c296636414dbc1
SQL
baozong-gao/bjui_control_template-
/pmp-persist/src/test/resources/后台表.sql
UTF-8
9,029
3.921875
4
[]
no_license
create table SYS_FUNCTION( id number not null primary key, name VARCHAR2(32) not null, parent_id number default 0 not null, grade char(1) default 'A' not null, uri VARCHAR2(255), code VARCHAR2(255) not null, status char(1) default ...
true
79f2a0bd3693a1ae5f277a446b7e3f326733f399
SQL
JakubLem/wholesaler-school-project
/db/bazaprojektphp.sql
UTF-8
9,413
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 11 Kwi 2021, 20:58 -- Wersja serwera: 10.1.37-MariaDB -- Wersja PHP: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
1634c490eb7634fe5d9cadd8f21e5ccd27b0aa8c
SQL
RafaJim/Generation-Practicas
/DB/Practica 1.sql
UTF-8
7,892
3.578125
4
[]
no_license
#Practicas DDL #Crear la base de datos "elmacho" /*create database elmacho; #Crear la base de datos "morrita" create schema morrita; #Crear la base de datod "morro" create database morro;*/ /*#Crear la base de datos "machotemalotecastigador" create schema machotemalotecastigador; #Borrar bases d datos "machotemal...
true
11e26cb0291434f81743bf4877630cf28bd97f10
SQL
YoungHan-Jo/db-study
/sql/Scott_Add.sql
UTF-8
585
3.203125
3
[]
no_license
-- Do it! 책 89page 결과 화면에 보면 2명 SCOTT과 ADAMS가 빠져있는데 -- 우리가 설치한 오라클 XE 버젼이어서 그런것 같고, -- 2명을 추가하는 sql문이다. 전체 스크립트 실행 또는 하나의 문장씩 실행해도 됨 INSERT INTO EMP VALUES (7788, 'SCOTT', 'ANALYST', 7566, TO_DATE('1987-04-19', 'YYYY-MM-DD'), 3000, NULL, 20); INSERT INTO EMP VALUES (7876, 'ADAMS', 'CLERK'...
true
716ce930a1578ed62082bcff6ed710809792aa87
SQL
goo-goo-goo-joob/hse_db_course
/sql/fill_tables.sql
UTF-8
22,013
2.671875
3
[ "MIT" ]
permissive
insert into cinemadb.типзала (название, надбавказала) values ('2D', 0), ('3D', 100), ('IMAX', 200); insert into cinemadb.кинотеатр (название, адрес, базоваяцена) values ('Синема Парк Мега Белая Дача', 'г. Котельники, 1-й покровский проезд, д. 1', 350), ('Синема Парк Бутово Молл', 'пос. Воскресенск...
true
983f757b8bbe5b41187ff6ed0ceb1ae054f3057f
SQL
TeteMacias/PostgreSQL-AlquilerVehicular
/Consultas_PosgretSQL_seguCons.sql
UTF-8
527
3.765625
4
[]
no_license
# PostgreSQL-AlquilerVehicular /*¿Que vehículos son los más rentado por los clientes? */ select VEHICULO.IDMarcapk as VEHICULO, MARCAVEHICULAR.nombreMarca as MARCAVEHICULAR, COUNT (RESERVA.codivehicpk) AS RESERVA from RESERVA inner join VEHICULO on RESERVA.CodiVehicpk= VEHICULO.CodiVehic inner join MARCAVEHICULAR on V...
true
ea2ca748b585870b5b9e6dc30577ca8a049a3d43
SQL
nemoido/HealthCart
/opg.sql
UTF-8
10,582
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 08, 2020 at 09:34 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
19a72e076973d91db70439f242286a5020fb0b9c
SQL
Edwinruiz2/SMIS036520DB1
/Uniones y vista.sql
UTF-8
1,375
4.03125
4
[]
no_license
USE Northwind; SELECT p.ProductName producto, c.CategoryName categoria FROM Products p INNER JOIN Categories c ON p.CategoryID = c.CategoryID; --crear una vista que muestre el nombre del producto, categoria y proveedor --ordemados por el nombre de la categoria CREATE VIEW listadoProductos AS SELECT p.ProductName ...
true
2250560c63635257df492d350722db355d390533
SQL
sihoon/si-project-smartmsg
/blazeds_4.0/src/kt_DDL.sql
UTF-8
12,045
3.28125
3
[]
no_license
CREATE TABLE `SDK_SMS_SEND` ( `MSG_ID` int(11) NOT NULL auto_increment, `USER_ID` varchar(20) NOT NULL COMMENT '아이디', `SCHEDULE_TYPE` int(11) NOT NULL default '0' COMMENT '0:즉시, 1:예약', `SUBJECT` varchar(50) default NULL COMMENT '제목', `SMS_MSG` varchar(200) default NULL COMMENT '메시지', `CALLBACK_URL` v...
true