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
78749d7b1ac7fde3ddd7bee2797f4ef94357c78c
SQL
talesconrado/SpotPer
/sql/queries.sql
UTF-8
2,861
4.40625
4
[ "MIT" ]
permissive
USE spotper --Mostrar albuns com prcompra maior que a média de prcompra. SELECT a.codalbum as 'Álbum', a.prcompra as 'Preço' FROM album a GROUP BY a.codalbum, a.prcompra HAVING a.prcompra > (SELECT AVG(a2.prcompra) FROM album a2) --Listar nome da gravadora com maior número de playlists que possuem pelo menos --uma f...
true
7e9c2fa8fb0a9b7d3b358843655c670166ef3dbc
SQL
helenamaia/bancoDados
/Maquiagem/CriacaoTabelas.sql
UTF-8
1,244
3.203125
3
[]
no_license
CREATE TABLE maq_Fabrica( localizacao VARCHAR(255) NOT NULL, nome VARCHAR(45) NOT NULL, PRIMARY KEY (nome)); CREATE TABLE maq_Setor( codigo INT NOT NULL, numero_funcionarios VARCHAR(45) NOT NULL, Fabrica_nome VARCHAR(45) NOT NULL, PRIMARY KEY (codigo), FOREIGN KEY (Fabrica_nome) REFERENCES maq_Fabrica(nom...
true
16cfdd905427579ccef1f08b82cc44e7b38ecbd2
SQL
radtek/abs3
/sql/mmfo/bars/Table/rez_nls_23.sql
UTF-8
2,750
2.90625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/REZ_NLS_23.sql =========*** Run *** == PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
19cd729d074dca5ee4186332c600ece5dad6accd
SQL
shofi16/Belajar-Pemrograman-Web
/zais_laundry/db_laundry.sql
UTF-8
4,798
3.1875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 20, 2018 at 05:10 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
016788c041a1023cbfd58821576eb90b9375dea1
SQL
vkrepkiy/study
/src/mtuci/12-docker-postgres/02-data-init.sql
UTF-8
2,065
3.78125
4
[]
no_license
-- set schema as default SET search_path TO vkgis; -- generate some object geometries INSERT INTO obj_geometry (length_mm, width_mm, height_mm, note) VALUES (4384, 1927, 1465, 'volkswagen polo'), (8210, 2210, 2550, 'evakuator'), (5540, 2380, 2200, 'Skoraya pomosh'); -- generate some familiar object types INSERT INT...
true
3592796c890adcd16e37481f42d4cb5a14e11a9b
SQL
saboor989/5303-Database-Saboor
/assignment1/create_table.sql
UTF-8
640
2.921875
3
[]
no_license
-- Table structure for table `Users` -- CREATE TABLE IF NOT EXISTS `Users` ( `Gender` enum('Male','Female') NOT NULL DEFAULT 'Male', `Title` varchar(6) NOT NULL, `First` varchar(16) NOT NULL, `Last` varchar(32) NOT NULL, `Street` varchar(48) NOT NULL, `City` varchar(40) NOT NULL, `State` varc...
true
55f1fba145753a3fff8907225e12e0929cb6eab9
SQL
Deimos-ETPS/ETPS
/src/main/java/com/etps/etps/mySql/seeder.sql
UTF-8
1,534
3.1875
3
[]
no_license
# drop database etps_db; # use etps_db; # submissions INSERT INTO submissions (deadline, status) VALUES ('2020-01-01','approved'), ('2020-01-01','approved'), ('2020-01-01','approved'); # providers table (MUST BE GENERATED FIRST) INSERT INTO providers ( prov_id, provider_name,description, submission_id) VALUES (1, 'T...
true
582da4643ede67270aee585d394205f7db44dc5a
SQL
Ediuth/ShoppingCart
/scripts/tablecreates.sql
UTF-8
577
3.453125
3
[]
no_license
SET FOREIGN_KEY_CHECKS = 0; DROP TABLE IF EXISTS SHOP_USER; CREATE TABLE SHOP_USER ( ROW_ID INTEGER NOT NULL AUTO_INCREMENT, USER_NAME VARCHAR(50) NOT NULL, PASS_WORD VARCHAR(50) NOT NULL, IS_DELETED VARCHAR(20) NOT NULL, PRIMARY KEY (ROW_ID) ); DROP TABLE IF EXISTS SHOP_USER_DETAILS; CREATE TABLE SHOP_USER_DETAILS (...
true
4ca98c117d81c29f85a520ba2ff521851035246e
SQL
viniciustavanoferreira/tennis-rest-api
/tennis_app_tables.sql
UTF-8
2,652
4.125
4
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
use tennis_app; -- usuarios CREATE TABLE tennis_user ( id int NOT NULL AUTO_INCREMENT , user_login varchar(45) NOT NULL , user_password varchar(255) NOT NULL , user_display_name varchar(255) NOT NULL , user_lat double NOT NULL , user_long double NOT NULL , PRIMARY KEY ...
true
9b54666a5d123d01bebaa13e17738404c0e74ae9
SQL
rbdjur/BurgerApp-Handlebars
/db/schema.sql
UTF-8
211
2.953125
3
[ "MIT" ]
permissive
### Schema for burgers CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id INT(10) AUTO_INCREMENT NOT NULL, burger_name VARCHAR(45) NOT NULL, devoured BOOLEAN NOT NULL, PRIMARY KEY (id) );
true
0c67d8c35a3bb13d1747290f9db67ed7b591913e
SQL
ministryofjustice/prison-visits-2
/db/views/percentiles_by_prison_and_calendar_dates_v02.sql
UTF-8
727
4.25
4
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
SELECT prisons.name AS prison_name, prisons.id AS prison_id, (v.created_at::TIMESTAMPTZ AT TIME ZONE 'Europe/London')::date AS date, PERCENTILE_DISC(ARRAY[0.95, 0.5]) WITHIN GROUP (ORDER BY ROUN...
true
b67c2fcbc674f650d7c6173e41efdbe9f56b515d
SQL
MikaylaKurland/Pewlett-Hackard-Analysis
/queries.sql
UTF-8
4,127
4
4
[]
no_license
/* SELECT first_name, last_name FROM employees WHERE birth_date BETWEEN '1952-01-01' AND '1955-12-31';*/ /*SELECT first_name, last_name FROM employees WHERE birth_date BETWEEN '1952-01-01' AND '1952-12-31';*/ /*SELECT first_name, last_name FROM employees WHERE birth_date BETWEEN '1953-01-01' AND '1953-12-31';*/ /*SE...
true
c1148d7637396ea3dd29cb2cd4042b2aba9f8c9c
SQL
danbikle/madlib_demos
/svmreg11rpt.sql
UTF-8
878
3.484375
3
[]
no_license
-- -- svmreg11rpt.sql -- -- This script should report the effectiveness of SVM Regression. -- Demo: -- ./psqlmad -f svmreg11rpt.sql -- I should report long-only effectiveness: SELECT SUM(pctlead) AS lo_effectiveness, COUNT(cdate) prediction_count FROM svmregpred ; -- I should report model effectiveness: SELECT SUM(...
true
85f10f57922aafa67fcac0d5d2885658c7673dbd
SQL
aberlanas/node-project-manager
/db/populate-projects.sql
UTF-8
3,839
3.078125
3
[ "Apache-2.0" ]
permissive
use pm_projects; -- admin -> admin -- jagaroc -> ancla -- columns: [{id: 1,title: 'Backlog',cards: [{ id: 1, title: 'Add card', description: 'Add capability to add a card in a column'},]},{id: 2,title: 'Doing',cards: [{id: 2,title: 'Drag-n-drop support',description: 'Move a card between the columns'},]}]"); TRUNCATE...
true
5197e060e2906d2a07b1a49975c7e7fa658575f2
SQL
ajaycs18/DBMS4
/lab4.sql
UTF-8
546
3.46875
3
[]
no_license
use lab1; select name from person where driver_id in ( select driver_id from participated where damage_amount > (select avg(damage_amount) from participated) ); use lab2; insert into ACCOUNTS values (1, 'SBI-MUM', 200); use lab3; select sname from supplier where sid in ( select sid from catalo...
true
871acec3920732f3dfc1405b78d82a977a22f98d
SQL
Gabriel-gabys/App-Spring-Test
/extras/db/tbl_test.sql
UTF-8
2,518
3.5
4
[]
no_license
-- 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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema my...
true
116fd1c8c710ae27b73548d9b71942bb5a601170
SQL
jeo/jeo
/format/geopkg/src/main/resources/io/jeo/geopkg/gpkg_tile_matrix_set.sql
UTF-8
410
2.859375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS gpkg_tile_matrix_set ( table_name TEXT NOT NULL PRIMARY KEY, srs_id INTEGER NOT NULL, min_x DOUBLE NOT NULL, min_y DOUBLE NOT NULL, max_x DOUBLE NOT NULL, max_y DOUBLE NOT NULL, CONSTRAINT fk_gtms_table_name FOREIGN KEY (table_name) REFERENCES gpkg_contents(table_name), ...
true
f82fed9b783b24f8a338a737f10daea25176f245
SQL
NeshoNeshev/Microsoft-SQL
/Exams/Databases MSSQL Server Exam - 28 Jun 2020/06. Select All Pilots.sql
UTF-8
179
3.734375
4
[]
no_license
SELECT C.Id, C.FirstName+' '+ C.LastName AS [full_name] FROM Colonists AS C JOIN TravelCards AS TR ON TR.ColonistId = C.Id WHERE TR.JobDuringJourney = 'pilot' ORDER BY C.Id ASC
true
0234081faf2552927df648ea8bbaf3f61ae36bab
SQL
jeramiec/CSS-497-Capstone
/sql src/views/tallyup_view_show_all_expense_product.sql
UTF-8
747
3.484375
3
[]
no_license
-- -------------------------------------------------------- -- -- Structure for view `show_all_expense_product` -- DROP TABLE IF EXISTS `show_all_expense_product`; CREATE ALGORITHM=UNDEFINED DEFINER=`jeramiec`@`localhost` SQL SECURITY DEFINER VIEW `show_all_expense_product` AS SELECT `e`.`expense_id` AS `expense_id...
true
65b3cfa5d0dced590bd2ec8924ac64d5cc471119
SQL
SQLauto/scripts-sql
/QueryFinasa.sql
UTF-8
451
2.828125
3
[]
no_license
select * from cadcontr where C_dat = '2010-10-05' select 'FINASA VEICULOS' as Empresa , count(*) as "total carga" from cadcontr where c_dat = '2010-10-05' and c_emp = 200 select 'FINABENS' as Empresa ,count(*) as "total carga" from cadcontr where c_dat = '2010-10-05' and c_emp = 210 select 'FINASA JURIDICO' as Empr...
true
3537d096a07c1dbd778e4bd80b52ee6698a1d655
SQL
haripriyamanne/SQLServerSamples
/SQLSamples/Namingconventions.sql
UTF-8
756
3.234375
3
[]
no_license
CREATE TABLE persons ( id INT NOT NULL PRIMARY KEY, name VARCHAR(30) NOT NULL, dateofbirth DATE, phone VARCHAR(15) NOT NULL UNIQUE, country VARCHAR(30) NOT NULL DEFAULT 'India' ); SELECT * FROM persons; DROP TABLE persons INSERT INTO persons (id,name, dateofbirth, phone,country) VALUES (123,'hari...
true
2c8b1c1afa18c4a7140a786b71e730905fcacf54
SQL
ICC2000679/prodevweb
/tests/ScriptcreationBD/biblio_mysql_accents_MariaDB_OK - Copie.sql
UTF-8
4,419
3.578125
4
[]
no_license
 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; CREATE DATABASE IF NOT EXISTS `locationbien` DEFAULT CHARACTER SET utf8; USE `locationbien`; -- -------------------------------------------------------- DROP TABLE IF EXISTS `Biens`; CREATE TABLE IF NOT EXISTS `Biens` ( bien_id INT UNSIGNED AUTO...
true
8ccfcd53f98b77839667b058243099b468b37e59
SQL
MagicNow/Magic_BildSys
/apoio/selects_mazzatech.sql
UTF-8
6,952
2.75
3
[ "MIT" ]
permissive
--------Insumo x NCM x Classe x Definição Fiscal x Aplicação--------------- Select prd.pro_in_codigo , prd.ncm_in_codigo , ncm.ncm_st_descricao , ncm.ncm_st_extenso , prd.pro_ch_deffiscalitem, def.def_st_descricao , pcl.apl_in_codigo , ...
true
1f5528db54369f34a196dc0559f94bf68c604404
SQL
CMPUT391W2014/BigData
/queries.sql
UTF-8
578
3.578125
4
[ "Apache-2.0" ]
permissive
/* REtun the amout of time spent on the phone for a given user */ select seiz_cell_num_l, sum(conn_dur) from group by seiz_cell_num_l order by count(conn_dur) /* See which crcs are being used the most */ select cfc, count(*) from where starttime >= 2013 and starttime < 2014 group by cfc order by count(*) /* find c...
true
c1c0ed998d80dab4bb64a8368b27e08930fc67b2
SQL
fantasycool/happy_query
/src/main/resources/andQueryTemplate.sql
UTF-8
3,703
3.59375
4
[]
no_license
<#if only_right ??> SELECT a.*, b.left_id, b.int_strs, b.varchar_strs, b.double_strs, b.feature_strs from <#if left_operation_str ??> ( SELECT * FROM ${left_table} where ${left_operation_str} ) a <#else> ${left_tab...
true
fdf11c9c5cb7582477f7460c03c609713dabee98
SQL
JhBuckethead/MiSitioWeb
/Prototip_1/bases de datos/administradores.sql
UTF-8
1,875
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 09-01-2015 a las 03:57:00 -- Versión del servidor: 5.6.21 -- Versión de PHP: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
true
6c61ead6f55a0f8235d5a1ae812957d580c7079c
SQL
trandang210/Web-based-questionnaires
/extra database file/create_DB.ddl
UTF-8
4,939
3.25
3
[]
no_license
-- Generated by Oracle SQL Developer Data Modeler 19.2.0.182.1216 -- at: 2019-11-19 19:45:11 PST -- site: DB2/390 8 -- type: DB2/390 8 create database project; use project; CREATE TABLE Description ( Code SMALLINT NOT NULL , Content VARCHAR (2000) , Type SMALL...
true
dbeda0aa9a3ff654d48242664e88356e9743931d
SQL
akkaha/egg
/docs/sql/egg.sql
UTF-8
3,806
3.78125
4
[]
no_license
DROP TABLE IF EXISTS `egg_car_order`; DROP TABLE IF EXISTS `egg_user_order`; DROP TABLE IF EXISTS `egg_order_item`; DROP TABLE IF EXISTS `egg_price`; DROP TABLE IF EXISTS `egg_price_extra`; CREATE TABLE `egg_user_order` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '自增ID', `seller` varchar(64) NOT NULL DEFAULT '...
true
855fbad6bfe5d7944199103548432274a0a61b2c
SQL
kemalkautsar/myokr
/okr.sql
UTF-8
1,828
3.328125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.4.10 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Jan 30, 2017 at 02:33 AM -- Server version: 5.5.42 -- PHP Version: 5.6.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `okrdb` -- -- ------------------------------...
true
1d507f0e4790f07cc7849f3a829c1381bcd63180
SQL
utopiadevelopers/Quizzing-System
/db/utopia_quiz.sql
UTF-8
20,400
3.328125
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 25, 2013 at 09:02 PM -- Server version: 5.5.24-log -- PHP Version: 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 */...
true
9cbd0daf0984d4fb3192049b7a1764c83bb471c3
SQL
dok/databases
/SQL/schema.sql
UTF-8
516
2.8125
3
[]
no_license
DROP DATABASE chat; CREATE DATABASE chat; USE chat; -- CREATE TABLE messages ( -- message VARCHAR(255), -- username VARCHAR(10), -- roomname VARCHAR(255) -- ); -- DROP TABLE messages; -- CREATE TABLE users ( -- /* Describe your table here.*/ -- ); -- CREATE TABLE rooms ( -- /* Describe your table here....
true
26965d5cc07e2f193e4a402e68b2ce9409e22018
SQL
cqframework/clinical_quality_language
/Src/java/elm-fhir/src/test/resources/org/cqframework/cql/elm/requirements/fhir/TestCases/TestCase10b.cql
UTF-8
1,048
3.34375
3
[ "Apache-2.0", "CC-BY-4.0" ]
permissive
library TestCase10b using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' valueset "ESRD Diagnosis": 'http://fakeurl.com/ersd-diagnosis' context Patient /* 10b. Date filter with coalesce type: Observation codeFilter: { path: code, valueSet: 'http://fakeurl.com/ersd-diagnosis' } dateFilter: { path: effecti...
true
a9f554003cd70be470d50ec4feb92abdaf15a5d3
SQL
ketan3000/angularapi
/db/products.sql
UTF-8
2,132
3.015625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.4.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 05, 2018 at 12:48 PM -- Server version: 5.6.25 -- PHP Version: 5.5.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
b9b182be8017f243bc133e80090178a17aa89975
SQL
MUZakharov/TestDBRepo
/postgres/Views/pg_catalog.pg_roles.sql
UTF-8
819
3.109375
3
[]
no_license
SET SCHEMA "pg_catalog"; CREATE VIEW pg_roles AS SELECT pg_authid.rolname, pg_authid.rolsuper, pg_authid.rolinherit, pg_authid.rolcreaterole, pg_authid.rolcreatedb, pg_authid.rolcatupdate, pg_authid.rolcanlogin, pg_authid.rolreplication, pg_authid.rolconnlimit, '*******...
true
26617b08532ac82134ce4b3a8c2e4f06ecc3f087
SQL
romanwin/StratasysERP
/ebs/database/apps/views/xxcs_inst_first_contract_v.sql
UTF-8
1,656
3.546875
4
[]
no_license
CREATE OR REPLACE VIEW XXCS_INST_FIRST_CONTRACT_V AS SELECT -------------------------------------------------------------------- -- name: XXCS_INST_FIRST_CONTRACT_V -- create by: Yoram Zamir -- Revision: 1.0 -- creation date: 02/05/2010 ----------------------------------------------------...
true
2d1d65553084e4c27fd076eb40b87a6daedbb9e2
SQL
hashmaparraylist/LeetCode
/Database/Consecutive Numbers/solution.sql
UTF-8
315
3.65625
4
[]
no_license
# Write your MySQL query statement below select distinct c.Num from( select a.Id as a_Id ,b.Id b_Id , a.Num from Logs a, Logs b where a.Num = b.Num and a.Id = b.Id - 1 ) c, ( select a.Id as a_Id ,b.Id b_Id , a.Num from Logs a, Logs b where a.Num = b.Num and a.Id = b.Id - 1 ) d where c.a_Id = d.b_Id
true
f2f2d161c7c92ed44811399db24e453a7f52da23
SQL
anasteyshank/HomesAreNowAffordable
/sql/city.sql
UTF-8
696
2.734375
3
[]
no_license
/* Group 18 city.sql WEBD3201 October 26, 2019 */ -- DROP'ping tables clear out any existing data DROP TABLE IF EXISTS city; CREATE TABLE city( value SMALLINT PRIMARY KEY, property VARCHAR(30) NOT NULL ); ALTER TABLE city OWNER TO group18_admin; INSERT INTO city (value, property) VALUES (...
true
6ce399457f4ddb71c099e487dcc2a1cbb889dd79
SQL
openbuild-sheffield/food-hygiene-rating
/templates/BusinessTypes.postgres.pre.sql
UTF-8
1,186
3.640625
4
[ "OGL-UK-3.0", "MIT" ]
permissive
create extension if not exists "uuid-ossp"; DROP TABLE IF EXISTS app_public.fhr_business_type CASCADE; create table app_public.fhr_business_type ( uuid uuid primary key, business_type_id integer NOT NULL, business_type_name text not null check (char_length(business_type_name) < 80), created_at ...
true
ae29b2691abc32b52ec33c254616304c1eaa0571
SQL
GeoSjaelland/Ejendoms-og-Miljoedatabasen
/GS_BORGERbak.sql
UTF-8
4,584
2.71875
3
[]
no_license
SELECT JY64300V.PERSONNUMMER_RED AS CPR, JY64300V.KOMMUNENUMMER, JY64300V.FODSEL_DATO AS Fødselsdato, CONVERT(INT, DATEDIFF(d, JY64300V.FODSEL_DATO, GETDATE()) / 365.25) AS Alder, CASE WHEN CONVERT(INT, DATEDIFF(d, JY64300V.FODSEL_DATO, GETDATE()) / 365.25) BETWEEN 0 AND 5 Then '0 - 5 år...
true
ed2b784843f8dab7527884fe27c8a97f8ef8cb51
SQL
BSathvik/cs345
/UMassMCC/queries.sql
UTF-8
560,998
3.203125
3
[]
no_license
SELECT fname, lname FROM Doctor WHERE specialty = 'obstretics'; SELECT D.fname, D.lname FROM Doctor D, Sees S, Patient P WHERE D.did = S.did AND S.pid = P.pid AND P.fname = 'Andrew' AND P.lname = 'Wilson'; SELECT P.fname, P.lname FROM Doctor D, Sees S, Patient P WHERE D.did = S.did AND S.pid = P.pid AND D.fname = 'Anth...
true
588cfed76b7f677e96fc5566276ee4a14213734e
SQL
ahull002/SP_mini_project_tuning_sql
/src/sql_question4.sql
UTF-8
1,100
3.65625
4
[]
no_license
USE springboardopt; -- ------------------------------------- SET @v1 = 1612521; SET @v2 = 1145072; SET @v3 = 1828467; SET @v4 = 'MGT382'; SET @v5 = 'Amber Hill'; SET @v6 = 'MGT'; SET @v7 = 'EE'; SET @v8 = 'MAT'; -- 4. List the names of students who have taken a course taught by professor v5 (name). -- SELECT na...
true
a919e5f155b695d798d6ae989da97c16668c100d
SQL
Rampaul770/Delphi-Secretaria
/DDL_ESCOLA.ddl
WINDOWS-1250
3,940
3.125
3
[]
no_license
-- Gerado por Oracle SQL Developer Data Modeler 4.1.5.907 -- em: 2017-01-05 23:19:05 BRST -- site: Oracle Database 11g -- tipo: Oracle Database 11g DROP TABLE ALUNO CASCADE CONSTRAINTS ; DROP TABLE CURSO CASCADE CONSTRAINTS ; DROP TABLE GRADE CASCADE CONSTRAINTS ; DROP TABLE ...
true
13819b01322b3ae688d061ec9a030ebbfb8bcf0f
SQL
daksh2k/real-estate-dbms
/Triggers/Triggers.sql
UTF-8
2,348
3.984375
4
[ "MIT" ]
permissive
-- Triggers -- Trigger 1 - Delete phone no. records of employee after deleting an employee record. delimiter @ create trigger empdel BEFORE DELETE on employee for each row DELETE FROM empphoneno ep where ep.employeeid=old.employeeid; @ select * from employee; select * from empphoneno; drop trigger empdel; delete ...
true
de809870b6558f4d68926a90fa9f1a930f28e713
SQL
Mamath2000/DigitalApp
/api/dev/Create DB.sql
UTF-8
8,619
3.203125
3
[]
no_license
CREATE SCHEMA `DA` DEFAULT CHARACTER SET utf8 ; -- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: localhost Database: api -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
true
5ec17889884b91808e0c6d8f8e9baa06bd76cbfa
SQL
vzhorin/SQL
/tambon_wealth.sql
UTF-8
3,131
3.21875
3
[]
no_license
-- View: "tambon_wealth" DROP VIEW tambon_wealth; CREATE OR REPLACE VIEW tambon_wealth AS SELECT b.tbid AS tambon_id, CAST('1986' AS CHAR(4)) AS year, CAST(CAST(a.n_pop AS DOUBLE PRECISION) AS INT) AS tambon_population, CAST(CAST(b.n_flush AS DOUBLE PRECISION) AS INT) AS flush_toilets, CAST(CAST(b....
true
0336d5caf434a7df791c411e17c80c749cae7fc1
SQL
GlobalFinPrint/global_finprint
/database/create_v_report_maxn_observations.sql
UTF-8
9,289
4.09375
4
[ "Apache-2.0" ]
permissive
--Create view showing maxn values for all sharks and rays, per set, and only using master observations CREATE OR REPLACE VIEW public.v_report_maxn_observations AS --Step 1: Get Reef and Location level descriptive variables -- Indicate which sets have completed master annotations WITH set_overview AS ( WITH so ...
true
8dc5cf88f837429052553956ccb6f5c042a15842
SQL
ilhamakhsan/PemrogramanKomputer2
/P05-MySQL/dataBaseNya/phb_java_mysql.sql
UTF-8
1,830
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 03 Apr 2020 pada 17.06 -- Versi server: 10.4.8-MariaDB -- Versi PHP: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
45adf825d276664c8d776c9cd343617ceafcbfe6
SQL
jade0304/sql
/queries_products.sql
UTF-8
835
3.3125
3
[]
no_license
-- Comments in SQL Start with dash-dash -- INSERT INTO products (name, price, can_be_returned) VALUES ('chair', '44.00', 'false'); INSERT INTO products (name, price, can_be_returned) VALUES ('stool', '25.99', 'true'); INSERT INTO products (name, price, can_be_returned) VALUES ('table', '124.00', 'false'); SELECT * FROM...
true
e53b4c9dc890c2c5ab5026b9d425a4e1cb3002cc
SQL
KrishnaGehlotR/shopping-cart
/dblogs/shoppingcart.sql
UTF-8
3,253
3.25
3
[ "Apache-2.0" ]
permissive
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.7.27-log - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- -------------------------------------------------------...
true
cb4576276ddb8145fa611ed94ee6f6c4dc81c60a
SQL
zh263808335/wxxcx
/Db/t_shan_ordergoods.sql
UTF-8
830
2.703125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 11 Source Server Version : 50717 Source Host : localhost:3306 Source Database : mysql Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2017-07-24 14:09:43 */ SET FOREIGN_KEY_CHECKS=0; -- ----------...
true
59a7215a4314f85c8b0b90232a19845c339a5afb
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day17/select0155.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-16T01:55:00Z' AND timestamp<'2017-11-17T01:55:00Z' AND temperature>=49 AND temperature<=52
true
c9c06d77e97119789b4ec6ab59918154f2ab557a
SQL
work-ronmichael/mwp-migration
/FUNCTIONS.sql
UTF-8
793
2.734375
3
[]
no_license
create or replace function clob_to_blob (p_clob_in in clob) return blob is v_blob blob; v_offset integer; v_buffer_varchar varchar2(32000); v_buffer_raw raw(32000); v_buffer_size binary_integer := 32000; begin -- if p_clob_in is null then return null; end if; -- DBMS_LOB.CREATETEMPORARY(v_blob, TRUE); v_of...
true
10e992c8b784221cb9a45dd4eda2e4bfbc365659
SQL
Meaglin/Homes
/db.sql
UTF-8
888
2.765625
3
[]
no_license
CREATE TABLE IF NOT EXISTS `homes` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(45) NOT NULL, `world` varchar(50) NOT NULL DEFAULT 'world', `x` double NOT NULL, `y` double NOT NULL, `z` double NOT NULL, `rotX` float NOT NULL, `rotY` float NOT NULL, `group` varchar(64) NOT NULL DEFAU...
true
4abc90eeccac805fece5ef78012cf259f98f6c57
SQL
dekstop/osm-tagging-dynamics
/py-analysis/src/paper/sql/migrate_05_filter_1k.poi_edit_stats.sql
UTF-8
2,689
3.9375
4
[]
no_license
-- poi_edit_stats -- 2014-05-23 13:44:20 -- Requires the world_borders_poi_latest and shared_poi tables. DROP TABLE IF EXISTS filter_1k.poi_edit_stats; CREATE TABLE filter_1k.poi_edit_stats AS SELECT alledits.country_gid, alledits.kind, num_users, coalesce(num_coll_users, 0) as num_coll_users, num_po...
true
813ff939fb7035ad4f538ab8d5eaa4268977693e
SQL
mberry123/edw
/EDWDb/Transform/Functions/fnDimEmployeeVersions.sql
UTF-8
293
3.046875
3
[]
no_license
CREATE FUNCTION [Transform].[fnDimEmployeeVersions] () RETURNS TABLE AS RETURN ( SELECT [EmployeeKey] ,[EmployeeCode] ,[StartDate] ,[EndDate] ,ROW_NUMBER() OVER( PARTITION BY [EmployeeCode] ORDER BY [StartDate] ) AS 'Version' FROM [Model].[DimEmployee] WITH (NOLOCK) );
true
b110a04731bc1628ec39bd040f1c9995c9610fbc
SQL
EvolveTechDev/Web
/database/evolve_bd.sql
UTF-8
10,476
3.125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 20, 2018 at 03:52 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
0e9a47ded06dc334ac10477cec1ffccc1133f321
SQL
rfe5-SDC-lunafreya/RFE5-sdc-lunafreya
/reviews_database_service/reviews_schema.sql
UTF-8
2,324
3.703125
4
[]
no_license
DROP SCHEMA IF EXISTS reviews CASCADE; CREATE SCHEMA reviews; /*denormalize products*/ CREATE TABLE products( id SERIAL PRIMARY KEY, name TEXT, slogan TEXT, description TEXT, category TEXT, default_price INTEGER ); CREATE TABLE reviews( id SERIAL PRIMARY KEY, product_id INTEGER, rating INTEGER, d...
true
db686284369c5661891e62637540eac53ef0db8c
SQL
lopez96lau/DSS-SysAulas-2017
/BDD-TP-DDS2017 nueva.sql
UTF-8
19,944
3.109375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 10.1.28-MariaDB - mariadb.org binary distribution -- SO del servidor: Win32 -- HeidiSQL Versión: 9.4.0.5125 -- -------------------------------------------...
true
0f3c64375b691b62535e82eac23501fe0ec7b903
SQL
fikri16f/UjianOnline
/kuliah.sql
UTF-8
8,167
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 11, 2021 at 07:09 AM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
62e57d2d523875c42f534302e86a4817c14855db
SQL
nassimaoukhelifa/MEDAS-1_20-21
/ThomasPedinotti/script.sql
UTF-8
4,041
3.296875
3
[ "CC0-1.0" ]
permissive
-- MySQL Script generated by MySQL Workbench -- Sun Feb 14 13:52:52 2021 -- 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='ON...
true
b991fbc1eafc13100c9918f8fcc752cddc6a28ef
SQL
alexbabkin/gb-databases
/lesson-7/task-2.sql
UTF-8
343
2.96875
3
[]
no_license
USE les7; SELECT products.id, products.descr, products.price, catalogs.name FROM products JOIN catalogs WHERE products.catalog_id = catalogs.id; --предпочтительно SELECT products.id, products.descr, products.price, catalogs.name FROM products JOIN catalogs ON products.catalog_id = catalo...
true
438d764e67c43d075ed4ea8df81833b87abe961f
SQL
chengju88/crm9
/docs/update20191221.sql
UTF-8
2,063
3.46875
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; ALTER TABLE `72crm_admin_field_sort` ADD COLUMN `type` int(2) NULL DEFAULT NULL COMMENT '字段类型 1 单行文本 2 多行文本 3 单选 4日期 5 数字 6 小数 7 手机 8 文件 9 多选 10 人员 11 附件 12 部门 13 日期时间 14 邮箱 15客户 16 商机 17 联系人 18 地图 19 产品类型 20 合同 21 回款计划' AFTER `name`; CREATE TABLE `72crm_admin_message` ( `message_id` int...
true
fe8dc65d5a1452316c1bafb7623c065993360361
SQL
Remainin/GUI-Library_Management_System
/bookdb.sql
UTF-8
7,506
3.390625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.52, for Win32 (x86) -- -- Host: localhost Database: bookdb -- ------------------------------------------------------ -- Server version 5.5.52 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4010...
true
42700d734c225f50ec22f88af99a8dc11c8ffc3b
SQL
mdutt247/student-sql-plsql
/TMV ORACLE Practical Paper Solution by Nikhil/Paper Sets/May 2015/Set 6/s6q2_a.sql
UTF-8
842
3.21875
3
[]
no_license
/* * a) Write a PL/SQL block to accept two Strings and check whether they are Equal or Not. */ SET SERVEROUTPUT ON; SET VERIFY OFF; DECLARE str1 varchar2(20) := '&str1'; -- Declaring the Variable to store the 1st String and Taking the input also str2 varchar2(20) := '&str2'; -- Declaring the Varia...
true
d87c695c33dbd515a6abf8285a89b5a3e166d9c5
SQL
ahrke/ConcertMap
/db/schema/02_profiles.sql
UTF-8
227
2.671875
3
[]
no_license
DROP TABLE IF EXISTS profiles CASCADE; CREATE TABLE profiles ( user_id INTEGER PRIMARY KEY REFERENCES users(id) NOT NULL, name VARCHAR(255) NOT NULL DEFAULT '', avatar_uri VARCHAR(1024), bio TEXT NOT NULL DEFAULT '' );
true
af442ecc1015cc6a26df70c707dc3f304999c167
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/00857_global_joinsavel_table_alias.sql
UTF-8
1,759
4.03125
4
[ "BSL-1.0", "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS local_table; DROP TABLE IF EXISTS other_table; CREATE TABLE local_table ( id Int32, name String, ts DateTime, oth_id Int32 ) ENGINE = MergeTree() PARTITION BY toMonday(ts) ORDER BY (ts, id); CREATE TABLE other_table ( id Int32, name String, ts DateTime, trd_id Int...
true
5e4838286a7eee5e4f6124203c501fca0aa29d25
SQL
MrSanySnay/DB_2_2
/Лабораторная работа номер 3/SELECT_TABLE_STUDENT(выборка значений).sql
WINDOWS-1251
491
3.015625
3
[]
no_license
USE KOVALEV_UNIVER SELECT * From STUDENT SELECT _,_ From STUDENT; SELECT count(*) [ ]From STUDENT; SELECT TOP 2 _ [4 3 ]From STUDENT Where _ = 4 OR _ = 3 ; SELECT DISTINCT _ [4 3 ]From STUDENT Where _ = 4 OR _ = 3 ;
true
606774463ce1e4fca79ae85e5cb6f2c06535a4dc
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day21/select2239.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-20T22:39:00Z' AND timestamp<'2017-11-21T22:39:00Z' AND temperature>=33 AND temperature<=55
true
191d64d563a8f12b824f9020888d15b01310cc4c
SQL
sahitigupta/DoctorsInformationSystem
/TriggerAndStoredProcedure.sql
UTF-8
1,069
3.765625
4
[]
no_license
------ Trigger ------ DROP TRIGGER IF EXISTS `doctors_count_add` delimiter $$ create trigger doctors_count_add after insert on visits for each row begin update hospital set total_doctors=total_doctors+1 -- set total_doctors=doctorCount(total_doctors) where hosp_id=new.hosp_id; end$$ delimiter ; DROP TRI...
true
aeddc1c664372725ce04d2be3b98daf7f7ca0774
SQL
shekharsp13/Yii2-Educational-website
/vendor/database/bookchor_vendor.sql
UTF-8
3,039
2.8125
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 09, 2018 at 01:10 PM -- Server version: 5.7.21-0ubuntu0.16.04.1 -- PHP Version: 5.6.33-3+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40...
true
4bb83a5e5ce6c1f16436da227b1b9433f0484df7
SQL
Karaya-12/adv-bowling
/src/main/java/training/adv/bowling/impl/xushizhi/resources/scripts/setup.sql
UTF-8
1,801
3.875
4
[]
no_license
drop table if exists Game; drop table if exists Turn; -- Create Table - Game create table Game ( id_game int auto_increment, final_scores int, max_turn int default 10 not null, max_pin int default 10 not null, constraint Game_pk primary key (id_game) ); comment on table Game is 'PK - Game ID (...
true
8831b33f0040e8361327356b303cec784e4dbadb
SQL
marenhamby/burger-eater
/db/schema.sql
UTF-8
534
3.359375
3
[]
no_license
-- if the database exists already, then delete it it -- DROP DATABASE IF EXISTS burger_db; -- create the database -- CREATE DATABASE burger_db; -- use the burger database for the rest of this document -- USE burger_db; -- create the table of burgers -- -- include unique id (as the primary key), the name of the burge...
true
d52ba513ab2f6bb85bb99872daa9dd880ddd4825
SQL
Meteor94/Shop
/sql/yshop.sql
UTF-8
60,173
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2016-12-06 14:31:04 -- 服务器版本: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
true
763c68358fff27871cc176378da06329692eda05
SQL
cognovis/intranet-timesheet2-tasks
/sql/postgresql/upgrade/upgrade-4.0.3.0.3-4.0.3.0.4.sql
UTF-8
3,723
3.234375
3
[]
no_license
-- -- packages/intranet-timesheet2-tasks/sql/postgresql/upgrade/upgrade-4.0.3.0.3-4.0.3.0.4.sql -- -- Copyright (c) 2011, cognovís GmbH, Hamburg, Germany -- This program is free software: you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Software...
true
eb70e47eda9fd57bff6f4d166608cdbc15dc4be0
SQL
romielisse/mySQLAssignments
/UpdateCustomersTable.sql
UTF-8
2,360
4.5
4
[]
no_license
use customers; -- List all the people in the customer's table who's last name is Smith select firstname, lastname from customers where lastname = 'smith' order by firstname; -- List all the customers and their employers and positions that live in Toledo select fullname, city, company, position from customers inner jo...
true
fe2b3fc7c29c87fc88edf5fde2d949ff2179be1d
SQL
yoheia/yoheia
/oracle/tpt_scripts/exadata/comptype.sql
UTF-8
1,645
3.078125
3
[ "Apache-2.0" ]
permissive
------------------------------------------------------------------------------ -- -- Copyright 2017 Tanel Poder ( tanel@tanelpoder.com | http://tanelpoder.com ) -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a c...
true
eec55f71c0da885a85767bed51ab2061fe37626d
SQL
NickKletnoi/SQLMasterCollection
/CoStar/work/09.14.17.sql
UTF-8
1,652
3.9375
4
[]
no_license
/* ---------------------------------------------- --------------Goals for today:---------------- ---------------------------------------------- 1. Write the SQL for the Apartments report; 2. Write the subtotals for the Apartments report; 3. Release the Apartment report at 5pm today; 4. Study the 60-90 questions as pa...
true
756171553d7157c2206a9d9d21ee0fb423994b9f
SQL
riyuka/ProjectTwo
/db/schema.sql
UTF-8
1,627
3.59375
4
[]
no_license
DROP DATABASE IF EXISTS shelter_db; CREATE DATABASE shelter_db; USE shelter_db; CREATE TABLE pets( id INT AUTO_INCREMENT NOT NULL, pet_name VARCHAR(255) NOT NULL, pet_type VARCHAR(255) NOT NULL, breed VARCHAR(255), age INT NOT NULL, sex VARCHAR(255) NOT NULL, pet_weight INT NOT NULL, color VARCHAR(255) NOT N...
true
59cc502232152d09402dc8c1d163d4268dfc57fb
SQL
OnurDemirci/SYS
/SQL/suys.sql
UTF-8
6,615
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: May 22, 2019 at 04:03 PM -- Server version: 5.7.26 -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
cfbcd4a3e70d8c76bfe356c8d2e2c5bdc1a6c22a
SQL
Anat382/SQL_Project
/DataBase2021_dacpac/DataBase2021_dacpac/Sales/Tables/Region.sql
UTF-8
164
2.53125
3
[]
no_license
CREATE TABLE [Sales].[Region] ( [ID] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (100) NOT NULL, PRIMARY KEY CLUSTERED ([ID] ASC) );
true
80c1e6bdce11dc74da4c66adf48cab65193ffb1a
SQL
diverlance/BitsAndBytesProject
/create.sql
UTF-8
3,986
2.9375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.19, for osx10.7 (x86_64) -- -- Host: localhost Database: hw1 -- ------------------------------------------------------ -- Server version 5.6.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40...
true
87993a62dc7b0a7ed04fe4135b2f41ffb0e6242e
SQL
randaqi/grow-service
/src/main/resources/db/migration/V201907191010__create_object.sql
UTF-8
714
3.046875
3
[]
no_license
CREATE TABLE if NOT EXISTS `object` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT 'id' PRIMARY key , `description` varchar(50) NOT NULL DEFAULT '' COMMENT '目标描述', `key_results` varchar(255) NOT NULL DEFAULT '' COMMENT '关键结果', `reason` varchar(127) NOT NULL DEFAULT '' COMMENT '追求目标理由', `status_and_block` va...
true
8fe7f1822ff5fa5076515b4d201de8bd47180d1a
SQL
dcorovic2/nwt-project
/employeeservice/src/test/resources/insert.sql
UTF-8
1,752
2.8125
3
[]
no_license
insert into role(code, display_name, name) values('ADMIN', 'Admin', 'admin'); insert into role(code, display_name, name) values('EMPLOYEE', 'Employee', 'employe'); insert into department(id,code,display_name,emp_allowed_num,name) values(1,'SALES','Sales',5,'sales'); insert into department(code,display_name,emp_allowe...
true
0a79ca7ca869870c8bd5ccaaccf156e39ff3d571
SQL
SusanneCalderon/ZECAAdjustment_SmartBrowser360
/Migration/11_InsertMissingTranslations.sql
UTF-8
13,320
2.578125
3
[]
no_license
--ad_browse_field INSERT INTO ad_element_trl (ad_element_ID, AD_LANGUAGE, AD_Client_ID, AD_Org_ID, IsActive, Created, CreatedBy, Updated, UpdatedBy, Name, IsTranslated, printname) SELECT m.ad_element_ID, l.AD_LANGUAGE, m.AD_Client_ID, m.AD_Org_ID, m.IsActive, m.Created, m.CreatedBy, m.Updated, m.Updated...
true
b54a756f2a0162b97f02bf256658a037d743e85f
SQL
kutrenuke/ingresosgastos
/trunk/I-G/db/script.sql.ddl
UTF-8
447
2.859375
3
[]
no_license
ALTER TABLE `ingresosgastos`.`ingresosgastos` DROP PRIMARY KEY; DROP TABLE `ingresosgastos`.`ingresosgastos`; CREATE TABLE `ingresosgastos`.`ingresosgastos` ( `id` INTEGER UNSIGNED NOT NULL, `fecha` DATETIME, `tipo` VARCHAR(45) DEFAULT '' NOT NULL, `cantidad` VARCHAR(45) DEFAULT '' NOT NULL, `concepto` ...
true
7569b655f85e86ee881df51ee83527fd2a9322a1
SQL
DuyPham99/Final-Project
/db/backup.sql
UTF-8
18,065
3.03125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.25, for Win64 (x86_64) -- -- Host: localhost Database: mobile_shop_online -- ------------------------------------------------------ -- Server version 8.0.25 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
true
c40f5fb311ea86f80e2389bb9533b44412296cdd
SQL
tuykin/09-215_2014
/db/Sadykov_Amir/procedures/proc_finePayment.sql
UTF-8
235
3.109375
3
[]
no_license
CREATE PROCEDURE fine_Payment @protocol INT AS BEGIN SELECT fines.protocol_number, fine_types.offence, fine_types.amount, fines.date FROM fines,fine_types WHERE fines.protocol_number=@protocol AND fines.fines_id=fine_types.id END
true
face7a9a32858be70717ed22c25e63c5ab4e66d1
SQL
Semenovp/Pop-up-quastion
/data (1).sql
UTF-8
9,924
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.6 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Сен 17 2015 г., 16:42 -- Версия сервера: 5.5.41-log -- Версия PHP: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
379ebfb2febbfaf5a7bfc4ea652d71ff9ba04b04
SQL
postgres/postgres
/src/test/regress/sql/tid.sql
UTF-8
2,259
4.03125
4
[ "PostgreSQL" ]
permissive
-- basic tests for the TID data type SELECT '(0,0)'::tid as tid00, '(0,1)'::tid as tid01, '(-1,0)'::tid as tidm10, '(4294967295,65535)'::tid as tidmax; SELECT '(4294967296,1)'::tid; -- error SELECT '(1,65536)'::tid; -- error -- Also try it with non-error-throwing API SELECT pg_input_is_valid('(0)', 'tid');...
true
ae4a1ca3b9c42a35ec74d2247d85133f4a41a1d2
SQL
jwillakers/Bamazon
/Bamazon.sql
UTF-8
1,178
3.0625
3
[]
no_license
DROP DATABASE IF EXISTS bamazonDB; CREATE DATABASE bamazonDB; USE bamazonDB; CREATE TABLE Products ( Item_Id INTEGER (8) AUTO_INCREMENT NOT NULL, Product_Name VARCHAR(200) NOT NULL, Department_Name VARCHAR(45) NOT NULL, Price DECIMAL(6,2) NOT NULL, Stock_Qty INTEGER(10) NOT NULL, PRIMARY KEY ...
true
e3525b914aef1abbb24f2896fc4f09019137755a
SQL
jairosousa/cadeia-iucara
/Iucara/src/java/br/com/ufra/docs/Iuçará_V3.2.sql
UTF-8
8,297
3.421875
3
[]
no_license
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='TRADITIONAL,ALLOW_INVALID_DATES'; DROP SCHEMA IF EXISTS `cadeia_iucara` ; CREATE SCHEMA IF NOT EXISTS `cadeia_iucara` DEFAULT CHARACTER SET utf8 ...
true
6108e8d084d3a6312779014de299418f32f7ddbe
SQL
bai289488/partymanage
/src/main/webapp/WEB-INF/sql/circle.sql
UTF-8
1,193
2.84375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50721 Source Host : localhost:3306 Source Database : party Target Server Type : MYSQL Target Server Version : 50721 File Encoding : 65001 Date: 2018-11-29 17:51:55 */ SET FOREIGN_KEY_CHECKS=0; -...
true
63669dd8575f2039c351b2c0750588a8e2f54a5a
SQL
sinnsalagrim/SQL-server
/Rightel report.sql
UTF-8
1,795
4
4
[]
no_license
select top 10 * from subscription select top 10 * from SubscriptionHistory select top 10 * from payment select * from app ------ repetative user will be included ------ #subscription per day select cast(FromDate as date), a.Name, count(*) from SubscriptionHistory s left join [app] a on s.AppId = a.Id where M...
true
9ac00324723382e647946c684ec24e1e2df6b7b7
SQL
bhavyareddy483/cv-generator-php
/cv1.sql
UTF-8
5,335
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 17, 2020 at 07:04 PM -- 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
5978c2fc8c1cca8c7bb9c7045fdaa1d721b81621
SQL
hww0813/tiansu-api
/src/main/resources/db/migration/V1__init_db.sql
UTF-8
155,075
3.171875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 200mysql Source Server Type : MySQL Source Server Version : 50734 Source Host : 192.168.1.200:3306 Source Schema : itms Target Server Type : MySQL Target Server Version : 50734 File Encoding : 65001 Date: 29/06/2021 15...
true
6ba86efb5ce86eec9429775a896f01cae1eb8088
SQL
vilhjalmur12/Project5
/Prj5_scripts/FDQUERIES_11.sql
UTF-8
188
3.15625
3
[]
no_license
SELECT 'coffees: HID-->CM' AS FD, CASE WHEN COUNT(*)=0 THEN 'Gildir' ELSE 'Gildir ekki' END AS VALIDITY FROM( SELECT HID FROM coffees GROUP BY HID HAVING COUNT(DISTINCT CM) > 1 ) X;
true
43357501a631b50f030597b492320fb975c43a86
SQL
adsy2010/Ticket
/SQL/tickets.sql
UTF-8
786
2.765625
3
[]
no_license
CREATE TABLE `tickets` ( `logId` int(11) NOT NULL AUTO_INCREMENT, `assignedTo` int(11) DEFAULT NULL, `closedTime` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `content` blob, `contentType` varchar(64) DEFAULT NULL, `department` varchar(32) DEFAULT NULL, `location` varchar(64) ...
true
21a2ae988653905e446bde9c9006b3546e43b093
SQL
nss-day-cohort-46/chinook-KaitlinJKelley
/22.sales_per_country.sql
UTF-8
186
3.515625
4
[]
no_license
-- sales_per_country.sql: Provide a query that shows the total sales per country. Select i.BillingCountry, round(Sum(i.Total), 2) as Total_Sales From Invoice i Group By i.BillingCountry
true
4b7f71f90cb34e0a973c169ef806106b79ca6b94
SQL
BGCX262/zuo-community-svn-to-git
/trunk/sqlScript/群体发现/获得两个用户某个层次的相似微博及其时间差.sql
UTF-8
670
3.859375
4
[]
no_license
select s1.status_id as sid1, s2.status_id as sid2, DATEDIFF(HH,s1.created_at,s2.created_at) as time_diff from SinaVerified.dbo.status as s1 inner join SinaVerified.dbo.status_cls as sc1 on s1.status_id=sc1.status_id inner join SinaVerified.dbo.status_cls as sc2 on sc1.h1_label_id=sc2.h1_label_id and sc1.h2_label_id=...
true
94eb60dc0cdfa06386d579657029c451b59502f6
SQL
mydevopsall/git_Demo
/src/main/resources/sql/schema.sql
UTF-8
261
2.640625
3
[]
no_license
Drop table customer if exists; CREATE TABLE customer ( id bigint NOT NULL, birth_date DATE , first_name VARCHAR(14) NOT NULL, last_name VARCHAR(16) , gender VARCHAR(14) , PRIMARY KEY (id) );
true