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
82c11970d71facacaa9cad70e3a343d7381acb9f
SQL
NoahRutledge/Code-Checker
/postgres/tests/tables/studentRecordTest.sql
UTF-8
508
2.9375
3
[]
no_license
-- Plan count should match the number of tests. If it does -- not then pg_prove will fail the test SELECT plan(3); -- Run the tests. -- Columns SELECT columns_are('student_record', ARRAY[ 'classid', 'userid']); SELECT col_type_is('student_record', 'classid', 'integer', 'classid column type is -- integer' ); SELECT co...
true
aff230017f7aa0de8fb8f8b61868b0d6791a377c
SQL
kajar9/SQL
/dbst2014.sql
UTF-8
2,981
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 05, 2014 at 02:46 PM -- 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
b6248501342d6ac46c5fac6cad188923ff91d79d
SQL
nicolecnacar/db2
/Finals/json-hr/Cedeno_Nacar_Jobs.sql
UTF-8
100
2.546875
3
[]
no_license
select json_agg(row_to_json(t)) AS jobs from ( select * from "Cedeno_MidtermExam".jobs ) t
true
c8050770c7e9ebea917bfc90fcc178ab69f99bd9
SQL
nextyu/spring-transaction-demo
/sql/user.sql
UTF-8
661
2.71875
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50550 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50550 File Encoding : 65001 Date: 2017-11-29 16:44:27 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
338c10fdf3b95ffc79dc18b378e2d0df332edf33
SQL
Kodjo-Hugues/Partiel_Semstre2
/gestion_rh (sript).sql
UTF-8
3,187
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : mar. 09 juil. 2019 à 16:38 -- Version du serveur : 10.3.16-MariaDB -- Version de PHP : 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
true
a85f00d2da8d9923dfbac5a970a5b0dc2d06a3e6
SQL
FabuletF/Projet-3wa---Dragon-Hunt
/Projet_3wa_FloFab/accounts.sql
UTF-8
3,127
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : sam. 21 sep. 2019 à 17:17 -- Version du serveur : 5.7.26 -- Version de PHP : 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
6d97ca302e7d384e21705140a0662d521ee145ae
SQL
yongjinyu/ICT3104-1
/ict3104.sql
UTF-8
7,074
3.078125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 30, 2016 at 05:51 AM -- Server version: 5.6.20 -- 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 */...
true
9a59d4be6d06c11d79b5812ad31f30b4539b44a0
SQL
SeRGei93/aeroidea.settings
/install/db/install.sql
UTF-8
820
2.875
3
[ "MIT" ]
permissive
SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for `d_ah_configuration` -- ---------------------------- DROP TABLE IF EXISTS d_ah_configuration; CREATE TABLE `d_ah_configuration` ( ID INT PRIMARY KEY NOT NULL AUTO_INCREMENT, PARENT_ID INT, TITLE ...
true
2e7df5d16ab30f9dd4a5abb95bf163db06a3cc0f
SQL
victorhugoliziani/laboratorio
/banco.sql
UTF-8
9,996
3.171875
3
[]
no_license
-- -------------------------------------------------------- -- Servidor: 127.0.0.1 -- Versão do servidor: 5.7.29-0ubuntu0.16.04.1 - (Ubuntu) -- OS do Servidor: Linux -- HeidiSQL Versão: 9.2.0.4947 -- -------------------------------------------------------- /*!40...
true
bed83fd0c84bb1adce9d25058655b4a1e9f79518
SQL
KonstantinSimeonov/sqlfmm-psql
/psql/entertainment-agency/structure.sql
UTF-8
8,063
3.671875
4
[]
no_license
DROP DATABASE IF EXISTS entertainment_agency_example; CREATE DATABASE entertainment_agency_example; \c entertainment_agency_example; CREATE TABLE agents ( agent_id int NOT NULL, agt_first_name varchar(25) NULL, agt_last_name varchar(25) NULL, agt_street_address varchar(50) NULL, ...
true
8e17cedcbef07ddc6d78bf9c9f4af509dfa0212b
SQL
ispyb/ISPyB
/ispyb-ejb/db/scripts/passed/2017/2017_05_02_Merge_with_DLS_create.sql
UTF-8
43,120
3.109375
3
[]
no_license
insert into SchemaStatus (scriptName, schemaStatus) values ('2017_05_02_Merge_with_DLS_create.sql','ONGOING'); /** Documentation needed DLS **/ DROP TABLE IF EXISTS `Aperture`; CREATE TABLE `Aperture` ( `apertureId` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `sizeX` float DEFAULT NULL, PRIMARY KEY (`apertureId`) ...
true
055603148faa71d655171248fbb1597cce2bfe27
SQL
achawla2012/CSCI_5221_androidApp
/BackEnd/Scripts/All scripts/Insert_User.sql
UTF-8
321
2.953125
3
[]
no_license
DROP PROCEDURE IF EXISTS Insert_User; CREATE PROCEDURE Insert_User (IN iEmail VARCHAR(250), IN iPassword VARCHAR(250), IN iPhone VARCHAR(250)) BEGIN INSERT INTO login_table(Email, Password_Field, Contact_Number) VALUES(iEmail, iPassword, iPhone); SELECT MAX(event_user_id) AS user_id from login_table; EN...
true
07d457c2523a9eeeaec900379edb4e49ebcfd87a
SQL
klepaski/PWS-7-sem
/PWS_6/DB.sql
ISO-8859-6
510
3.375
3
[]
no_license
create database WSCJA; create table Student ( Id int identity(1,1) primary key, [Name] nvarchar(max) ) create table Note ( Id int identity(1,1) primary key, Subj nvarchar(max), Note int null, StudentId int not null foreign key references Student(Id) ) insert into Student values ('Julia'), ('Natasha'), ('Ann...
true
8d3eb2f1c4eb89c9d3c3d8fcea2b1259e08b2e08
SQL
foamflower2/Activiti
/modules/activiti-engine/src/main/resources/org/activiti/db/upgrade/activiti.mssql.upgradestep.510.to.511.engine.sql
UTF-8
1,198
3.03125
3
[ "Apache-2.0" ]
permissive
alter table ACT_RE_PROCDEF alter column KEY_ nvarchar(255) not null; alter table ACT_RE_PROCDEF alter column VERSION_ int not null; alter table ACT_RE_DEPLOYMENT add CATEGORY_ nvarchar(255); alter table ACT_RE_PROCDEF add DESCRIPTION_ nvarchar(4000); alter table ACT_RU_TASK add SUSP...
true
fbde6a7cc04ef4185db1a3abda6e30fb2346f466
SQL
bellmit/SVNrepo
/DBScripts/Release_20180119_Lockedfor_GSM/Account_Opening_User_Interface/21_sp_invdb_sp_emulate_step1_process_account.sql
UTF-8
1,150
3.609375
4
[]
no_license
USE `testing`; DROP procedure IF EXISTS `sp_emulate_step1_process_account`; DELIMITER $$ USE `testing`$$ CREATE PROCEDURE `sp_emulate_step1_process_account`( IN p_acctnum BIGINT, IN p_logonid BIGINT(20) ) BEGIN DECLARE tFound1 INTEGER; DECLARE tFound2 INTEGER; DECLARE tStatus VARCHAR(2);...
true
262bdaed6c3d34031b9ac59ce4b31b86fd7cea03
SQL
anggahadeprayoga/katalog_buku_perpustakaan
/katalog_buku.sql
UTF-8
3,093
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 11 Agu 2021 pada 09.49 -- Versi server: 10.4.19-MariaDB -- Versi PHP: 8.0.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
2140cfa74f4a136402e79c017e8784e285f19bfe
SQL
zhouzhibiao2718/laozhou
/src/main/resources/springmvc.sql
UTF-8
1,293
2.9375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50612 Source Host : localhost:3306 Source Database : springmvc Target Server Type : MYSQL Target Server Version : 50612 File Encoding : 65001 Date: 2014-04-03 22:07:00 */ SET FOREIGN_KEY_CHECKS=0; -...
true
c7d09e4558934efc1dcb884c37457fe5682ed22b
SQL
kimkc/tmax-msa-module-project
/Backend/tmax-module-ddl.sql
UTF-8
4,079
3.390625
3
[]
no_license
-- -------------------------------------------------------- -- 호스트: 10.10.20.95 -- 서버 버전: 10.6.4-MariaDB-1:10.6.4+maria~focal - mariadb.org binary distribution -- 서버 OS: debian-linux-gnu -- HeidiSQL 버전: 11.3.0.6295 -- --------------...
true
c6855a08ccfdbc75154a08b4b013fe7ebd9e0ae8
SQL
ErinBailey/school
/src/main/resources/db/migration/V4__add_teacher_foreign_key_to_klasses_table.sql
UTF-8
147
2.875
3
[]
no_license
ALTER TABLE klasses ADD teacher_id INT NOT NULL; ALTER TABLE klasses ADD CONSTRAINid);T fk_teacher_id FOREIGN KEY (teacher_id) REFERENCES teachers(
true
c314fa63908a8536776bd4c62bbe3bf7c801f811
SQL
fernandopach/18-11-14
/src/main/java/com/mycompany/maven/mvc/Usuario.sql
UTF-8
313
2.65625
3
[]
no_license
CREATE TABLE USUARIO( ID_USUARIO INTEGER, NOMBRE VARCHAR(120), EDAD VARCHAR(120), SALDO FLOAT, CONSTRAINT ID_USUARIO PRIMARY KEY (ID_USUARIO), CONSTRAINT ID_DIRECCION USUARIO FOREIGN KEY(ID_DIRECCION)REFERENCES DIRECCION(ID_DIRECCION) );
true
07d333d6d0484f906042b82b72dad52ff19e69ae
SQL
zaldivards/TPI2
/MantenimientoMiddleWare-ear/src/docker/tpi10am.sql
UTF-8
19,613
3.4375
3
[]
no_license
-- Database generated with pgModeler (PostgreSQL Database Modeler). -- pgModeler version: 0.8.1 -- PostgreSQL version: 9.4 -- Project Site: pgmodeler.com.br -- Model Author: --- -- Database creation must be done outside an multicommand file. -- These commands were put in this file only for convenience. -- -- object:...
true
37003e95894ceab17a645990552783dffc16e720
SQL
sesp13/Bases-De-Datos-2-2021-1
/trabajo 4/inserts/punto1/caso1.sql
UTF-8
902
3.625
4
[]
no_license
--10.000 clientes --20.000 facturas --50.000 detalles --- Crear clientes BEGIN FOR i IN 1..10000 LOOP INSERT INTO cliente VALUES ( i, DBMS_RANDOM.STRING('L',TRUNC(DBMS_RANDOM.VALUE(1,101))), TRUNC(DBMS_RANDOM.value(1,100000000000000000000)) ); END LOOP; commit; END; / --Crear facturas BEGIN FOR i...
true
fbe1cadca6eb6cbfa4645b262419cd31363c09dd
SQL
dtran2108/far_cry
/sql/wp39.sql
UTF-8
122
3.078125
3
[]
no_license
SELECT match_id, COUNT(victim_name) as sucide_count FROM match_frag WHERE victim_name IS NULL ORDER BY sucide_count
true
be2e7a03a457a8f78cbbfe3e1413fb6fbb4c5950
SQL
Nancuharsha/busreservation
/bus reserv/150001019 150001003/tables/payment.sql
UTF-8
2,095
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 25, 2016 at 05:37 PM -- Server version: 10.1.10-MariaDB -- PHP Version: 7.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
2d2493a70b2b81eb540d2faa030499ef6db1d1b9
SQL
nkstamilan/SQL-Programming
/beginner/create database.sql
UTF-8
797
3.0625
3
[]
no_license
create database class; '''create a name for the database''' create table student(student_name varchar(100) not null, '''create table header in a row''' roll_no varchar(100) not null, '''not null or null is for necessory or not necessory''' age int...
true
f45a2125ca0565e57cbd00c23dbfa595be1d751f
SQL
daily4u/scraping
/linkedin/scraper-tast-linked/lkds/companies.sql
UTF-8
1,757
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 19, 2017 at 11:07 AM -- Server version: 5.7.11-0ubuntu6 -- PHP Version: 7.0.4-7ubuntu2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
97d26cff8e6f833e8541e373a8608b5a8f852dc2
SQL
davsk/eve
/sql/publicViews.sql
UTF-8
3,419
3.609375
4
[]
no_license
-- publicViews.sql -- View: "productionCost" -- DROP VIEW "productionCost"; CREATE OR REPLACE VIEW productioncost AS SELECT invtypematerials.typeid, sum(eve_inv_types."5pct_price_sell" * invtypematerials.quantity) AS CostSell, sum(eve_inv_types."5pct_price_buy" * invtypematerials.quantity) AS CostBuy F...
true
1e48e48dd8f079f0db7f096ba653ca24a0af29c1
SQL
ezerio/ip-info
/docs/ipinfo.sql
UTF-8
1,951
4.09375
4
[]
no_license
CREATE SEQUENCE public.country_info_id_seq INCREMENT 1 START 1 MINVALUE 1 CACHE 1; CREATE SEQUENCE public.currency_id_seq INCREMENT 1 START 1 MINVALUE 1 CACHE 1; CREATE SEQUENCE public.forex_id_seq INCREMENT 1 START 1 MINVALUE 1 CACHE 1; CREATE SEQUENCE public.stats_i...
true
59b543a9ab6428ad1333ae51f2d0f126e7a1a7b0
SQL
nuriasantossanchez/modelatge-BBDD
/practicafinal_phpMyAdmin.sql
UTF-8
6,855
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 29-06-2020 a las 12:38:38 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
9923e7396a4d0e778af8dcd8ae13a901392e2a64
SQL
Marynok/Martyuk_Labs
/SQL/lb_3/task1_4.sql
UTF-8
951
4.1875
4
[]
no_license
SELECT * FROM Products WHERE UnitPrice > (SELECT AVG(UnitPrice) FROM Products) SELECT MAX(p.UnitPrice), c.CategoryName FROM Products as p, Categories as c WHERE p.CategoryID = c.CategoryID GROUP BY c.CategoryName ORDER BY MAX(p.UnitPrice) DESC SELECT e.FirstName, e.LastName, t.TerritoryDescription,r.RegionDescr...
true
b91ef64c04b54caf6c2613d0bb17a73e36f548fd
SQL
1099469599/bulls-stock
/hateoas-demo/hateoas-order/src/main/resources/schema.sql
UTF-8
276
2.546875
3
[]
no_license
drop table t_order if exists; create table t_order ( id bigint auto_increment, create_time timestamp, update_time timestamp, name varchar(255), user varchar(255), stock_name varchar(255), price double, volume double, primary key (id) );
true
1c8605cfc4529e5404846398724096e41bf23717
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day10/select1730.sql
UTF-8
262
2.96875
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['2059','2066','2234','5054','6056','1431','3204','2091','5091','3011'])
true
d8772a56a0147244e84ab61fc09296d7c5c4f58d
SQL
Felix-xilef/Banco-de-Dados
/Exercícios/Exercícios de Subconsultas/exercicios.sql
UTF-8
903
3.984375
4
[ "MIT" ]
permissive
use escola; /* 1) Qual o nome e o curso do aluno com maior média? */ select nomealuno, curso from aluno where ((nota1+nota2)/2)=(select max((nota1+nota2)/2) from aluno); /* 2) Quais alunos fazem o mesmo curso que o aluno de matricula 8? */ select * from aluno where curso=(select curso from aluno where matricula=8) an...
true
10c2997d6fcaface0a22396e447722ebf29a1f94
SQL
SE2018G18/SE2018-G18-Project
/SE2018春-G18-积分大作战数据库.sql
UTF-8
3,705
2.578125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: se2018g18 -- ------------------------------------------------------ -- Server version 5.6.15 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
true
b8dfad3b3a06055e835bc4e2af13f314986de816
SQL
chathurkavishmantha/Web-Portal-for-Sampath-Bank
/src/main/resources/ChathurkaSQL.sql
UTF-8
1,248
2.78125
3
[]
no_license
CREATE DATABASE `customer` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */; CREATE TABLE `addloan` ( `loanid` int(11) NOT NULL AUTO_INCREMENT, `loantype` varchar(45) NOT NULL, `loanrate` varchar(45) NOT NULL, PRIMARY KEY (`loanid`) ) ENGINE=InnoDB AUTO_INCREMENT=66 DEFAULT CHARSET=utf8mb4 ...
true
ae4693893598ff61ca473c8500321ba5c07c2db9
SQL
jiannan083/mydubbo
/doc/mydubbo.sql
UTF-8
401
2.8125
3
[]
no_license
#身份验证信息 CREATE TABLE `user` ( `id` bigint(19) NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL COMMENT '姓名', `pid` varchar(18) NOT NULL COMMENT '身份证', `create_time` datetime NOT NULL COMMENT '创建日期', `update_time` datetime NOT NULL COMMENT '更新日期', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=ut...
true
cca2a32dbe68186ccdf2da6e7207cbb27a4d124d
SQL
chncy/Huefma
/SQL/database.sql
UTF-8
2,473
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: mysqlsvr74.world4you.com -- Erstellungszeit: 16. Mrz 2020 um 13:47 -- Server-Version: 5.7.27-log -- PHP-Version: 7.2.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
true
ca4991f06c30746154cd06cc82a42bf1e1ec6700
SQL
boristchague/flask_sql_html
/model.sql
UTF-8
1,360
3.46875
3
[]
no_license
create database colisvip; use colisvip; CREATE TABLE USER(idUser CHAR(45) NOT NULL, firstName VARCHAR(45) NOT NULL, lastName VARCHAR(45) NOT NULL, Email VARCHAR(55) NOT NULL, hashPassWord VARCHAR(256) NOT NULL, userDescription VARCHAR(256), primary key(idUser)); CREATE TABLE ADRESS(idAdress VARCHAR (45) ...
true
fd9c469b57dff26fb57f97d9cd7d9e1a5f6217f8
SQL
dvornikov/dubai
/3.sql
UTF-8
413
2.953125
3
[]
no_license
DROP TABLE IF EXISTS `categories`; CREATE TABLE `categories` ( `id` int(11) NOT NULL AUTO_INCREMENT, `parent_id` int(11) NOT NULL DEFAULT '0', `name` varchar(255) NOT NULL DEFAULT '', PRIMARY KEY (`id`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; insert into `categories` (`parent_id`, `name`) values (0, 'sect...
true
95dad75d973337720460f795ca47f7b11a948cc6
SQL
tylermoore19/connectcu
/mysql/InsertDatabase.sql
UTF-8
705
3.390625
3
[]
no_license
drop table users; drop table questions; drop table answers; create table users (id integer primary key auto_increment, email char(40), username char(20)); create table questions (id integer primary key auto_increment, message char(255), subject char(16), score integer, user char(20) references users(username)); create...
true
ec2b65d8e7d5b3a7cacb984da7b7f152abef7931
SQL
awschef-code/Docker-setup
/images/import/ddl/upgrade/upgrade-os-utils.sql
UTF-8
1,136
3.9375
4
[]
no_license
-- Used to add new OSes to the OS Taxonomy -- if os name already exists in taxonomy, we won't add it -- just return the id for future use as parent_id -- if os doesn't exist, we add it at max_id +1 -- we return the id used for future use as parent_id DELIMITER $$ DROP PROCEDURE IF EXISTS `Add_OS_to_VMOS` $$ CREATE PRO...
true
3b1e838079d73c38884a0997a0a2671abb8e57d0
SQL
Maribmdj/chaoDesempleoProyII
/SCRIPTS/TABLAS/CATALOGO JOB_POSITION.sql
UTF-8
837
3.234375
3
[]
no_license
CREATE TABLE `CHAODESEMPLEO`.`job_position` ( `ID_JOB_POSITION` int(11) NOT NULL AUTO_INCREMENT COMMENT 'UNIQUE IDENTIFIER OF THE TABLE', `NAME` varchar(70) DEFAULT NULL COMMENT 'ATTRIBUTE WITH THE NAME OF THE JOB_POSITION', `STATE` int(11) DEFAULT NULL COMMENT 'STATE OF THE JOB POSITION', `DATE_CREATION` da...
true
abbe75264625ea5352dcbfb50462f522a4da50b7
SQL
Gaya3-SQL/SQL_Exercise
/QANDA/QandA3_SQL_NULLVALUES.sql
UTF-8
318
3.296875
3
[]
no_license
--This query is used to sort the NULL values from the column of the table-- Select SalesPersonID from Sales.SalesOrderHeader Where SalesPersonID IS NULL; --This query is used to find the values which are not null in the column of the table-- Select AmountReceived from Person.Money Where AmountReceived IS NOT NULL;
true
d94416047c9876756e9c617aa73e1636b0b8e88e
SQL
samuelvillegas/planificador-de-horarios
/diagramas/uml/constructor_horarios.sql
UTF-8
5,296
3.671875
4
[]
no_license
DROP DATABASE IF EXISTS constructor_horarios; CREATE DATABASE constructor_horarios; USE constructor_horarios; CREATE TABLE escuela ( id_escuela INT PRIMARY KEY AUTO_INCREMENT, nombre VARCHAR(45) NOT NULL, direccion LONGTEXT NOT NULL, imagen LONGTEXT, rif VARCHAR(45) NOT NULL, telefono VARCHAR(25) N...
true
a1f4fe0dd404e566269e4385870ce98a1ba345a9
SQL
silentbalanceyh/vertx-zero
/vertx-pin/zero-wf/src/main/resources/plugin/sql/wf/W_TODO.sql
UTF-8
6,585
3.53125
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
-- liquibase formatted sql -- changeset Lang:w-todo-1 -- 待办单:W_TODO DROP TABLE IF EXISTS W_TODO; CREATE TABLE IF NOT EXISTS W_TODO ( `KEY` VARCHAR(36) COMMENT '「key」- 待办主键', `SERIAL` VARCHAR(128) COMMENT '「serial」- 待办编号,使用 X_NUMBER 生成', `NAME` VARCHAR(255) COMMENT '「name」...
true
44cbd40c87dbe63ac47c9e1b812ac45f5ede7984
SQL
janardhancr1/MOM_Projects
/SE403/application/modules/Forum/settings/my.sql
WINDOWS-1250
16,894
3.125
3
[ "Apache-2.0" ]
permissive
/** * SocialEngine * * @category Application_Core * @package Forum * @copyright Copyright 2006-2010 Webligo Developments * @license http://www.socialengine.net/license/ * @version $Id: my.sql 7244 2010-09-01 01:49:53Z john $ * @author John */ -- -----------------------------------...
true
8713a81b71b801598bcc4c6dc7ef3c1cda706024
SQL
NazilaPranti/Housing-Complex-Managment-System
/Site/mainexcglbl.sql
UTF-8
560
2.84375
3
[]
no_license
SET SERVEROUTPUT ON; DECLARE FLTN BOOKING.FlatNO%TYPE :='&FLATNO'; BLDN BOOKING.BuildingNO%TYPE :=&BUILDINGNO; md MEMBER.MemberID%TYPE := &enter_memberid; sell CHAR(4) := '&SELL'; x INT; rslt int; exc exception; BEGIN rslt := packageglbl.bookfunc(FLTN,BLDN,rslt,x); if(rslt='1') then packageglb...
true
4bf5783629dc18a5fa5a9c0cae60b674f1a783c3
SQL
Dan8816/Lost_n_the_woods
/Trails.sql
UTF-8
1,369
2.9375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Tue Jul 10 08:16:32 2018 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TR...
true
956eefda5633ece4bbcd20b369c42ea8626b3f66
SQL
turan1302/ci4session
/ci4session.sql
UTF-8
2,423
3.1875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 03 Ağu 2020, 20:24:08 -- Sunucu sürümü: 10.4.13-MariaDB -- PHP Sürümü: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
728fd47693e629c0cfa656949b79160843600f9c
SQL
hastyk52/ReviewsAPI
/App/Database/setup/schema.sql
UTF-8
3,005
4.125
4
[]
no_license
-- //////////////////////////////////////////////////// -- ///////////////// CREAT TABLES //////////////// -- //////////////////////////////////////////////////// DROP DATABASE IF EXISTS reviews; CREATE DATABASE reviews; \c reviews CREATE TABLE reviews ( id BIGSERIAL NOT NULL PRIMARY KEY, product_id INT NO...
true
967f29ce0853f5561447179a426d3b308b1d4f1c
SQL
Kahmeo/KampIntro
/SQLQuery2.sql
UTF-8
1,314
3.75
4
[]
no_license
--Select --ANSII Select ContactName Adi,CompanyName Sirketadi,City Sehir from Customers Select * From Customers where City = 'Berlin' --case insensitive seLeCt * fRom Products where CategoryID=1 or CategoryID=3 select * from Products where CategoryID=1 and UnitPrice>=10 select * from Products order by UnitPrice s...
true
2cb24c966305a8e3d9f79a3e4e7af1face528225
SQL
jangau/online_library
/add_donate_table.sql
UTF-8
470
3.109375
3
[]
no_license
CREATE TABLE `library_donate` ( `id_donate` INT(11) NOT NULL AUTO_INCREMENT, `title` VARCHAR(100) NOT NULL DEFAULT '0', `author` VARCHAR(100) NOT NULL DEFAULT '0', `genre` VARCHAR(100) NOT NULL DEFAULT '0', `ISBN` VARCHAR(13) NOT NULL DEFAULT '0', `user_id` INT(11) NOT NULL DEFAULT '0', PRIMARY KEY (`id_donate`)...
true
8d2542ef9f4ee56ed635be75f184b5c8b0793733
SQL
harmlamers/Actemium.L3IC.OrderManager
/Actemium.L3IC.OrderManager.Database/UM/Stored Procedures/UserAccessControlLists_Delete.sql
UTF-8
330
2.546875
3
[]
no_license
 /* Deletes a UserAccessControlList from the database */ CREATE PROCEDURE [UM].[UserAccessControlLists_Delete] ( @AccessControlListId int, @UserId int ) AS DELETE FROM [UM].[UserAccessControlLists] WHERE ( [AccessControlListId] = @AccessControlListId AND [UserId] = @...
true
cdd2286bc67d7cb4fc11e25c98e5a03af1931ed3
SQL
RISHAV1upes/CodeMaster
/db/flag.sql
UTF-8
1,630
2.71875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 23, 2017 at 03:46 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
ba5c6f44419e3e9c0350a1e5fad563a90cc58fcd
SQL
vnazar/bigdata-201720
/bigdata-hw01/Psql Queries/Query#02.sql
UTF-8
443
3.34375
3
[]
no_license
SELECT "place.country" AS country, count(*) AS Total FROM dump01 WHERE "place.country" NOTNULL AND "coordinates.coordinates.x" > -10.195312 AND "coordinates.coordinates.x" < 31.113281 AND "coordinates.coordinates.y" > 36.031332 AND "coordinates.coordinates.y" < 62.021528 GROUP BY "place.country" ORDER BY Total DESC...
true
968e8a48ea9d71578114bc3d6416e603e1d28a4f
SQL
lrutivi/HeadFirstSQL-1
/src/main/resources/SQL script/Head_05/AlterTable_hooptie_car_table.sql
UTF-8
314
2.8125
3
[]
no_license
ALTER TABLE hooptie RENAME ТО car_table, ALTER TABLE car_table ADD COLUMN carJd INT NOT NULL AUTO_INCREMENT FIRST, ADD PRIMARY KEY (car_id), ADD COLUMN VIN VARCHAR(16) SECOND, CHANGE COLUMN mo_model VARCHAR(20), MODIFY COLUMN color ALTER model, MODIFY COLUMN year SIXTH, CHANGE COLUMN howmuch_price DECIMAL(7,2);
true
29c672c43d96f248179e012398f717fcf25a73cc
SQL
evil-morfar/Matador_3
/Matador_3/SQL/DML_Matador.sql
UTF-8
1,138
2.75
3
[]
no_license
-- Create fictive game no.1 call CreateGame("Medium Game Test", 1, @id); -- With 3 players, at various positions and states insert into players values(1,@id, "Player one", 14000, 0, "blue", 2); insert into jail values(1,@id, 0,0,false); insert into players values(2,@id, "Player two", 24000, 0, "white", 25); insert in...
true
71690d7b850fcbfdde00e83d40b0158cd18f38f5
SQL
mcavoye/sql-scratch-capstone-turn-in
/McAvoy Final Project/code.sql
UTF-8
4,423
4.65625
5
[]
no_license
-- Question 1 SELECT * FROM survey LIMIT 10; -- Question 2 SELECT question, count(user_id) FROM survey GROUP BY question; -- Question 3 SELECT question, ((count(user_id)/500.)* 100) as response_rate FROM survey GROUP BY question; -- Question 4 SELECT * FROM quiz limit 5; SELECT * FROM ho...
true
183e795ca492ff729c968ad4fba2ee44e81baa6e
SQL
i7allia/DZ4
/SQLQuery.sql
UTF-8
575
2.984375
3
[]
no_license
/****** Script for SelectTopNRows command from SSMS ******/ SELECT TOP (1000) [InvoiceLineID] ,[InvoiceID] ,[StockItemID] ,[Description] ,[PackageTypeID] ,[Quantity] ,[UnitPrice] ,[TaxRate] ,[TaxAmount] ,[LineProfit] ,[ExtendedPrice] ,[LastEditedBy] ...
true
dc7c4aee21e63b009476c9167484e1ab2c4a67bc
SQL
Kvark96/vigilant-umbrella
/src/main/java/business/persistence/dbInit.sql
UTF-8
4,261
3.84375
4
[]
no_license
/* You might want to rename the database to your own needs. If so, please substitute `startcode` with whatever your project is called. */ -- ----------------------------------------------------- -- Schema mydb -- ----------------------------------------------------- -- ----------------------------------------...
true
40349953c05d2d3896be03fa9337edf776258537
SQL
teobryer/tp3JS
/exercice-2/airline.sql
UTF-8
11,863
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.6 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost -- Généré le : mar. 05 juin 2018 à 11:17 -- Version du serveur : 5.7.20 -- Version de PHP : 7.1.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
f4d353c34158857a9a2f82ab7a17014c06d087ac
SQL
dikynugraha1111/Rweb_7_Praktikum
/postrweb.sql
UTF-8
2,640
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 05, 2021 at 03:10 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
b4b1f5413c85a28e51972cb730927bca39409c39
SQL
benorule/burger-app
/db/schema.sql
UTF-8
290
3.015625
3
[ "MIT" ]
permissive
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(30), devoured BOOLEAN DEFAULT false, PRIMARY KEY (id) ); UPDATE burgers SET devoured=true WHERE id = 1; SELECT * FROM burgers;
true
dc947efa7c5d501df756d166f53b5b5b7312da7d
SQL
radtek/OracleScripts
/SQL/kernel/shift_report.sql
WINDOWS-1252
3,269
2.5625
3
[]
no_license
select a.*, a.rowid from SHIFT_REPORT a where DOC_NUMBER like '%11' and doc_id like '43500000%' select a.*, a.rowid from SHIFT_REPORT_MIS a where DOC_id in (select doc_id from SHIFT_REPORT a where DOC_NUMBER like '%11' and doc_id like '43500000%') select a.*, a.rowid from doc_line a where doc_id in (select doc_id fr...
true
6b245ce3091e8f0951df9b9a4c6af20cebf62faa
SQL
alexsosnin/VoiceCommunicationTask
/src/main/resources/org/vc/task/vct01/db/model/manager/GET_MANAGER_CLIENT_LIST.sql
UTF-8
169
3.078125
3
[]
no_license
SELECT c.id, c.code, c.name, c.legal_address, c.manager_id FROM vct_client c WHERE c.removal_date IS NULL AND c.manager_id = :manager_id ORDER BY c.id
true
8c440e4b2def63be957acf485747e848c77fefa8
SQL
Alphinha/ordem
/SQL/banco/clientes.sql
UTF-8
2,264
2.984375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 28-Mar-2020 às 22:06 -- Versão do servidor: 10.1.34-MariaDB -- PHP Version: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
1afb1aa3c64788441b80682001529c2c0ada5513
SQL
najeex/stolzen
/courses/coursera/Introduction to Data Science/assigment2/i_keywords.sql
UTF-8
389
3.953125
4
[ "WTFPL" ]
permissive
drop view if exists query; create view query as SELECT 'q' as docid, 'washington' as term, 1 as count UNION SELECT 'q' as docid, 'taxes' as term, 1 as count UNION SELECT 'q' as docid, 'treasury' as term, 1 as count; select max(count) from ( select a.docid, b.docid, sum(a.count * b.count) as count from frequen...
true
9d246dce7236995fa6c5f953e769112f1d7ce6e0
SQL
r99r99r99/shdb
/db/proc/strings_to_array_map.sql
UTF-8
967
3.25
3
[]
no_license
##call strings_to_array_map('cc#2,cqj#2,fdcj#2,laji#2,lang#2,oil#2,oilpu#2,pfw#2,qtemp#0,rjy#2,scw#2,see#2,sm#5,tmd#2,weather#2,wind#2,wtemp#33,zao#2',',','#') drop PROCEDURE if exists strings_to_array_map; create PROCEDURE strings_to_array_map(s_str varchar(128), s_split varchar(3),s_sub varchar(3)) begin dr...
true
b69130d1c2a9ffcf6ef20ff2eb12a162ce3575d8
SQL
Robin-Hughes-91/First_Project_Spending_Tracker
/db/spending_tracker.sql
UTF-8
498
3.109375
3
[]
no_license
DROP TABLE transactions; DROP TABLE merchants; DROP TABLE tags; CREATE TABLE tags ( id SERIAL8 primary key, tag_name VARCHAR(255), tag_logo VARCHAR(255), tag_budget INT8 ); CREATE TABLE merchants ( id SERIAL8 primary key, merchant_name VARCHAR(255), merchant_logo VARCHAR(255) ); CREATE TABLE transacti...
true
9ddc809bbf82ae955372275caeb256407e216cf0
SQL
svetlyoek/Exams
/DB/SQL Server/Demo Exam/NonDirectoryFiles.sql
UTF-8
233
3.78125
4
[]
no_license
SELECT f2.Id, f2.[Name], concat(f2.[Size], 'KB') AS [Size] FROM Files AS f RIGHT JOIN Files AS f2 ON f.ParentId = f2.Id WHERE f.ParentId IS NULL ORDER BY f2.Id ASC, f2.[Name] ASC, [Size] DESC;
true
c4d9d0e97f5259983af1e317d0bbe89f9d5a0ef3
SQL
scientist3/Group-0-Basic-Website-Design-for-6th-Sem-2021
/SQLCommands.sql
UTF-8
1,876
3.984375
4
[]
no_license
-- Reference Link : https://www.javatpoint.com/dbms-sql-command -- DLL COmmands -- Create table -- Syntax: CREATE TABLE TABLE_NAME (COLUMN_NAME DATATYPES[,....]); -- Example: CREATE TABLE employee_tbl (Name VARCHAR(20), Email VARCHAR(100), DOB DATE); -- Delete Table -- Syntax: ...
true
e7a1f23580eac0627e294cef095c8d7bde62f02f
SQL
therealrmac/c19-csharp-SQL
/musicHistory.sql
UTF-8
3,303
4.65625
5
[]
no_license
--Query all of the entries in the Genre table select * from Genre; select * from Artist; select * from Album; select * from Song; --Using the INSERT statement, add one of your favorite artists to the Artist table. insert into Artist values(null,"The Rolling Stones", 1963) insert into Artist(ArtistName, YearEstablish...
true
6be3a3fea4c531e311e71b0580b9e39011ef0b63
SQL
seesharper/heatkeeper
/src/HeatKeeper.Server.Database/Measurements/InsertMeasurement.sql
UTF-8
220
2.65625
3
[]
no_license
INSERT INTO Measurements (SensorId, MeasurementType, RetentionPolicy, Value, Created) SELECT Id, @MeasurementType, @RetentionPolicy, @Value, @Created FROM Sensors s WHERE s.ExternalId = @SensorId
true
721e825152598f52917527ef5c44ff0181703c4c
SQL
medixdelnorte/saludex
/db/saludex.sql
UTF-8
34,239
3.109375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-01-2017 a las 16:47:52 -- Versión del servidor: 5.7.14 -- Versión de PHP: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHAR...
true
1704656d361a237cd2933ce3677adfb3d7b03b81
SQL
kseggelke918/sql-library-lab-online-web-pt-081219
/lib/insert.sql
UTF-8
984
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
INSERT INTO series (title, author_id, subgenre_id) VALUES ("title1", 2, 1), ("title2", 1, 2); INSERT INTO subgenres (name) VALUES ("fantasy"), ("horror"); INSERT INTO authors (name) VALUES ("author1"), ("author2"); INSERT INTO books (title, year, series_id) VALUES ("title1", 1947, 1), ("title2", 1970, 1), ("titl...
true
11805dc5bf9d60ea73fbbfb72cceaba205d574bf
SQL
NadunNilanga/BookShop
/book_store.sql
UTF-8
9,052
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 20, 2020 at 06:36 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
8fcb9508e30df1c1bbcd3a2e9196ac020dbeb859
SQL
masierra399/Proyecto_Postobon
/BD/BDPROYECTO_TORRES_JUAN_SIERRA_MIGUEL.sql
UTF-8
6,340
2.953125
3
[ "MIT" ]
permissive
create database BDProyecto; use BDProyecto; create table Usuario( IdUsuario int primary key auto_increment, TipoUsuario varchar (15) not null, NombreUsuario varchar (15) not null, Nickname varchar (15) not null, Contraseña varchar (20) not null, DocumentoCliente varchar(20) not null, TelefonoCliente varchar (15) not...
true
875c4207997442f8328802a312e243e0434cf0d5
SQL
KarlGe/RentalRoomManager
/db/sm.sql
UTF-8
4,022
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 28, 2018 at 02:41 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
5f688b94900fd4be46b9343e5f6fb69ab4a636b0
SQL
victorbucutea/spring-football-players-mgr
/src/main/resources/import.sql
UTF-8
717
2.6875
3
[]
no_license
insert into Team (id,name) values(1,'Barcelona'); insert into Team (id,name) values(2,'Real Madrid'); insert into Team (id,name) values(3,'Manchester'); insert into Player (id, team_id, name, num, position,image) values(1,1,'Lionel Messi', 10, 'Forward','messi.jpg'); insert into Player (id, team_id, name, num, positi...
true
4cda66eaa658b8d91968482c51c192973ebe127a
SQL
lbstore/MIF_Informatics_Semester4
/SQL/sqlExamples/createView.sql
UTF-8
530
3.421875
3
[]
no_license
-- Studentai ir ju amziai CREATE VIEW StudentasAmzius AS SELECT A.lsp, A.vardas, A.pavarde, EXTRACT(YEAR FROM age(A.gimimas)) AS Amzius FROM Studentas AS A; -- Bendrabuciu lenteles sutrumpinimas CREATE VIEW Bendrabuciai AS SELECT A.Nr, A.adresas, A.telefonoNr FROM Bendrabutis AS A; -- Bendarbucia...
true
dfd927b38490449844c9258d3f53cced747aeddc
SQL
aboyington/cs50x2021
/week7/lab7/songs/6.sql
UTF-8
180
3.140625
3
[]
no_license
-- Write a SQL query that lists the names of songs that are by Post Malone. SELECT songs.name FROM songs JOIN artists ON songs.artist_id = artists.id WHERE artists.name = "Post Malone";
true
4c08c666f9604d8b1b4e0b38dc564504e5c47cf7
SQL
j7ng/CLFY_SA
/SA/Views/TABLE_SFA_USER_V.sql
UTF-8
1,984
3.5
4
[]
no_license
CREATE OR REPLACE FORCE VIEW sa.table_sfa_user_v (objid,empl_objid,con_objid,user_name,s_user_name,empl_first_name,s_empl_first_name,empl_last_name,s_empl_last_name,empl_phone,con_first_name,s_con_first_name,con_last_name,s_con_last_name,con_phone) AS select table_user.objid, table_employee.objid, table_contact.objid...
true
1141b0d442956d61103d2b721354fec3b5bf14cc
SQL
sibelonur/AdresDefteri
/adresdefteri.sql
UTF-8
2,187
2.75
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.5 -- Dumped by pg_dump version 9.6.5 -- Started on 2017-10-12 09:08:07 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_func...
true
b323f837f11a86593c0e9413caa7c140bb2c2911
SQL
LEEANQIAN/leetcode-practice-SQL
/# 1511. Customer Order Frequency (EASY).sql
UTF-8
667
4.6875
5
[]
no_license
# 1511. Customer Order Frequency (EASY) WITH CTE AS ( SELECT order_id, Orders.customer_id, name, Orders.product_id, price, order_date, quantity, SUM(CASE WHEN order_date BETWEEN '2020-06-01' AND '2020-06-30' THEN price * quantity ELSE 0 END) OVER (PARTITION BY customer_id) AS june, SUM(CASE WHEN order_...
true
faf90711ca8a83a44b74bd8f7ea4017f4b9d1606
SQL
SaikiranReddyAnugu/Database_Assignments
/SQLAssignment2/SQLAssignment2.sql
UTF-8
1,492
3.484375
3
[]
no_license
1.select count(*) as Documentaries_with_Deleted_scenes from film f inner join film_category fc on f.film_id=fc.film_id and f.special_features like '%deleted Scenes%' inner join category c on c.category_id=fc.category_id and c.name="Documentary"; 2.select count(distinct f.film_id) as Count_of_sci_fi_movies from rent...
true
e02b5b15aa03f761a42edf0e18282712822f6f39
SQL
TungJeny/FC_test
/application/migrations/20181010080821_create_table_purchase_order_item_staged.sql
UTF-8
447
3.1875
3
[]
no_license
CREATE TABLE `phppos_purchase_order_item_staged` ( `id` int(11) NOT NULL AUTO_INCREMENT, `item_id` int(11) NOT NULL, `quantity` int(11) DEFAULT NULL, `month_staged` varchar(11) DEFAULT NULL, `purchase_order_id` int(11) DEFAULT NULL, PRIMARY KEY (`id`) ); ALTER TABLE phppos_purchase_order_items ADD CONSTRAI...
true
75c0dde1739ea32426aa30d4f2b35f74431a0bba
SQL
omaiyea/bookmarks-server
/src/bookmarks.sql
UTF-8
973
2.671875
3
[]
no_license
drop table if exists bookmarks; create table bookmarks( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY, title text not null, book text not null ); --insert test data insert into bookmarks ( title, book ) values ('Bookmark 8', 'Book 2'); insert into bookmarks ( title, book ) values ('...
true
1fe2131e426564d900834b4d6e0d4f77c5e7ab37
SQL
marostegui/operations-software
/dbtools/events_dbstore_analytics.sql
UTF-8
3,879
3.921875
4
[]
no_license
-- Events for dbstore1001 set @cache_sql_log_bin := @@session.sql_log_bin; set @@session.sql_log_bin = 1; set @cache_event_scheduler := @@global.event_scheduler; set @@global.event_scheduler = 0; create database if not exists ops; use ops; -- Remember, table is replicated! -- https://wikitech.wikimedia.org/wiki/Ma...
true
e498a4b8cd5c61f7754061ba7b323cc6b06c1c86
SQL
hello-sources/Coding-Training
/LeetCode/1327列出指定时间段内所有的下单产品.sql
UTF-8
255
3.890625
4
[]
no_license
# Write your MySQL query statement below select p.product_name, sum(o.unit) unit from Products p left join Orders o on p.product_id = o.product_id where o.order_date BETWEEN '2020-02-01' AND '2020-02-29' group by p.product_name having sum(o.unit) >= 100;
true
2eaf826ab59a0bcae1562907adbdf50a5c395a1f
SQL
satsu32/backup
/joker/sql/joker.sql
UTF-8
4,466
2.6875
3
[]
no_license
set names utf8; set foreign_key_checks=0; drop database if exists joker; create database if not exists joker; use joker; drop table if exists login_user_transaction; create table login_user_transaction( id int not null primary key auto_increment, login_id varchar(16) unique, login_pass varchar(16), user_name varchar...
true
ba8c0c8ae837940184dbc4a00d41cecb93fcfe15
SQL
MIT-LCP/mimic-omop
/etl/StandardizedClinicalDataTables/OBSERVATION_PERIOD/etl.sql
UTF-8
1,045
3.390625
3
[ "MIT" ]
permissive
-- load observation_period from previously loaded visit_occurrence table -- SHALL be run after visit_occurrence etl WITH "insert_observation_period" as ( SELECT nextval('mimic_id_seq') as observation_period_id , person_id , visit_start_date as observation_period_start_date , visit_start_datetime as observation_perio...
true
a5ed439531f7a727eba1a28b72bbe9d07da94837
SQL
eskirk/CSC365Lab2
/INN-setup.sql
UTF-8
664
3.34375
3
[]
no_license
use CSC365Lab2; drop table if exists reservations; drop table if exists rooms; create table rooms ( roomId varchar(3) NOT NULL, roomName varchar(30) NOT NULL, beds int NOT NULL, bedType varchar(10) NOT NULL, maxOccupancy int NOT NULL, basePrice float NOT NULL, decor varchar(15) NOT NULL, CONSTR...
true
57a394cfb27808ad2d923042789b2afd5d559c23
SQL
pangot/terminale-nsi-cours
/16_Requetes_SQL/Exercices/jeu_essai.sql
UTF-8
755
3.015625
3
[]
no_license
-- les clients insert into CLIENT(refCli,nomCli, prenomCli,adresseCli) values (1,'BANAZIAI','Jules','Grenoble'), (2,'DONGEPLI','Armelle','Limoges'), (3,'BOBAINO','Julie','Nimes'), (4,'BOUTIDICHT','Maxime','Grenoble'); -- les produits insert into PRODUIT(refProd,nomProd,puProd) values (1, 'Sucre',1.2), (2, 'Cer...
true
ac9e394472ab9f067e0aadcb78e52b7ff031c44b
SQL
reggie3/blitz-quiz-app
/db/migrations/20210801180700_switch_to_uuid/migration.sql
UTF-8
5,518
3.25
3
[]
no_license
/* Warnings: - The primary key for the `Answer` table will be changed. If it partially fails, the table could be left without primary key constraint. - You are about to drop the column `userId` on the `Answer` table. All the data in the column will be lost. - The primary key for the `Game` table will be change...
true
13aaeef674f55077c81ed870de496c4ff7617ad6
SQL
Anhngoc-IT/-VTI.Aca-Rocket-14
/Testing_System_Assignment_2.sql
UTF-8
10,060
3.90625
4
[]
no_license
CREATE SCHEMA IF NOT EXISTS management_db_2; Use management_db_2; -- Table 1:Department CREATE TABLE IF NOT EXISTS Department ( Department_id INT PRIMARY KEY, Department_name VARCHAR(50) NOT NULL ); -- Table 2: Position CREATE TABLE IF NOT EXISTS Position ( Position_id INT PRI...
true
f790deee5a2384022c8bbbe990d27e4f80b3047e
SQL
isudana/carbon-identity
/features/identity-core/org.wso2.carbon.identity.core.server.feature/resources/dbscripts/h2.sql
UTF-8
8,515
3.390625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS IDN_BASE_TABLE ( PRODUCT_NAME VARCHAR (20), PRIMARY KEY (PRODUCT_NAME) ); INSERT INTO IDN_BASE_TABLE values ('WSO2 Identity Server'); CREATE TABLE IF NOT EXISTS IDN_OAUTH_CONSUMER_APPS ( CONSUMER_KEY VARCHAR (512), CONSUMER_SECRET VARCHAR (512...
true
f7f6e1f55dba1a64e5c318a7aa700683009c3a8f
SQL
davidac9/pokemon-social
/db/select_favorite.sql
UTF-8
171
2.828125
3
[]
no_license
SELECT f.trainer_id, m.pokemon_id, m.pokemon_image, m.nick_name, m.type_1 from favorite_pokemon f JOIN my_pokemon m ON f.pokemon_id = m.pokemon_id WHERE f.trainer_id = $1;
true
4b23a56c2f2e8f012baeaf6cbf10a3f896893a7f
SQL
tanqingyong/sjpt
/include/db/db_update_script_20120413.sql
GB18030
529
3.34375
3
[]
no_license
# ޸usersʶû״ֶ̬ alter table users add column online tinyint(1) default 0 comment '0- 1-'; # ˵־¼ create table menu_log( id int(11) not null auto_increment comment '־¼ID', user_id int(11) not null comment 'ûid', ip varchar(50) comment 'ûip', menu_id int(11) not null comment '˵id', action_time int(11) comment 'ʱ', p...
true
04eae051fe7cdc6ba58d572060b6332d3c33ed33
SQL
BohdanKorinnyi/admin-panel
/src/main/resources/sql/detailed_source_statistic.sql
UTF-8
3,612
3.734375
4
[]
no_license
SELECT truncate(details.spent, 2) AS 'spent', truncate(details.revenue, 2) AS 'revenue', details.buyerId, details.buyer, details.date, details.type FROM (SELECT sum(expenses.sum) AS 'spent', 0 AS 'revenue', buyers.id AS 'buyerId', buyers.nam...
true
30bdc64710094d63e5af9096631d54442bde5dc6
SQL
yanxiao0201/CS143
/project1B/704534585/violate.sql
UTF-8
935
2.734375
3
[]
no_license
INSERT INTO Movie VALUES(2, "Dadizhen", 2014, "PG-13","China"); #a movie already has id 2 INSERT INTO Movie VALUES(20000, "Dadizhen", 2018, "PG-13","China"); #future movie INSERT INTO Actor VALUES(1, "Yan","Xiao","Male",2000-01-01,2000-01-01); #an actor already has id 1 INSERT INTO Director VALUES(16, "Yan","Xiao",2...
true