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
f01034673e4d31708e7a648f7275a334a0d8d810
SQL
chacal1231/SERION-Licencias
/db/licencia.sql
UTF-8
1,610
2.671875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.5.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 07-08-2016 a las 09:32:47 -- Versión del servidor: 5.7.10-log -- Versión de PHP: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
true
db4ad1e855f6997d1030cff796913a7d3604889d
SQL
SamuelRush/hunter
/express-back-end/db/schema/02_postings.sql
UTF-8
427
2.890625
3
[]
no_license
DROP TABLE IF EXISTS postings CASCADE; CREATE TABLE postings ( id SERIAL PRIMARY KEY NOT NULL, user_id INTEGER REFERENCES users(id) ON DELETE CASCADE, trait_one VARCHAR(255) UNIQUE NOT NULL, trait_two VARCHAR(255) UNIQUE NOT NULL, trait_three VARCHAR(255) UNIQUE NOT NULL, job_title VARCHAR(255) UNIQUE NOT N...
true
b0e37b2a1bf16776d0645f239015d4ece0b03fbc
SQL
JuanDaniel/DBOJ
/src/DBOJ/ProblemBundle/DataFixtures/ORM/P7/descargas.sql
UTF-8
13,787
3.5
4
[ "MIT" ]
permissive
SET check_function_bodies = false; SET search_path = public, pg_catalog; CREATE TABLE public.megas ( idmegas integer DEFAULT nextval(('"public"."megas_idmegas_seq"'::text)::regclass) NOT NULL, cantidad integer ) WITHOUT OIDS; CREATE TABLE public.dpto ( iddpto integer DEFAULT nextval(('"public"."d...
true
a98ff8b338e382508f5d85c923c104489d1b2897
SQL
yeta666/sbl2
/sbl2.sql
UTF-8
6,289
3.09375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50544 Source Host : localhost:3306 Source Database : sbl2 Target Server Type : MYSQL Target Server Version : 50544 File Encoding : 65001 Date: 2018-06-06 12:44:51 */ SET FOREIGN_KEY_CHECKS=0; -- ----...
true
f739f15fadf1e02b471fb1aee25120b02b3b03b9
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day27/select0238.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-26T02:38:00Z' AND timestamp<'2017-11-27T02:38:00Z' AND temperature>=32 AND temperature<=37
true
91ad424e5d6d9b44e5c119794cd094d5a981c9d9
SQL
allwaysoft/fun
/Databases/DBA/SQLServer/generalDBA.sql
UTF-8
263
2.875
3
[]
no_license
--Connections and users --Maximum connections allowed by SQL Server select * from sys.configurations where name ='user connections' -Current open connections count to a SQL Server select * from sys.dm_os_performance_counters where counter_name ='User Connections'
true
3190c2c327b6290472ab192f2ae3ef70cbc8fbc1
SQL
Scribers/database
/jobtypes.sql
UTF-8
907
2.515625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u1 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Sam 05 Mars 2016 à 17:57 -- Version du serveur : 5.5.47-0+deb8u1 -- Version de PHP : 5.6.17-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
ca53cd85f10f0f9c52553a40e48a7257eecee460
SQL
qinpeng/housemart-web
/housemart-web/script/routinelog_table.sql
UTF-8
418
2.625
3
[]
no_license
CREATE DATABASE `routinelog` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ##user access log CREATE TABLE `user_access_log` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `BizTag` varchar(64) DEFAULT NULL, `UserID` int(11) DEFAULT NULL, `URL` varchar(512) DEFAULT NULL, `AccessText` text, `AddTime` d...
true
d3b833f1832f90285ab9abf098a1c08c5360ddc7
SQL
aishah21/missing-
/info.sql
UTF-8
2,066
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 03, 2018 at 01:44 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
d539989fc612c06464a5653f31d2fc894935ad16
SQL
jmfaleiro/mysql_scripts
/storedproc/adversary/insert016.sql
UTF-8
2,045
3.140625
3
[]
no_license
use fdr; drop procedure if exists insert016; delimiter | CREATE PROCEDURE insert016(in_hot_k INT, in_hot_v INT, in_k1 INT, in_kk1 INT, in_v1 INT, in_k2 INT, in_kk2 INT, in_v2 INT, in_k3 INT, in_kk3 INT, in_v3 INT, ...
true
b9a63b4391cea45e833f1cf433764cf450b9015e
SQL
hanwix2/Review-and-Mileage-Service
/src/main/resources/schema.sql
UTF-8
1,587
3.859375
4
[]
no_license
CREATE TABLE place ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NULL, PRIMARY KEY (id) ); CREATE TABLE review ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `place_id` INT UNSIGNED NOT NULL, `user_id` INT UNSIGNED NOT NULL, `con...
true
1518b3b7e97489f83b81777927fa4824dba5c46c
SQL
Dev-KhalidAi/vehicle-rent-management
/database/rent_management.sql
UTF-8
7,002
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 12, 2021 at 11:50 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
b7679788a303bc5135aa53cb40ba492b38ab60d6
SQL
dhurtadorosales/Cycling-Race
/carrera.sql
UTF-8
3,802
3.5
4
[]
no_license
create database carrera encoding 'utf8'; \c carrera; create table equipo( nombre_equipo varchar(30) primary key, nacionalidad varchar(30) ); create table etapa( numero_etapa serial primary key, poblacion_salida varchar(50) unique, poblac...
true
8d09225ca279f812c9e3e42dfe228fe896baf391
SQL
willemwy/realmDigital
/database/seeds/phonebook.sql
UTF-8
1,591
3.5
4
[ "MIT" ]
permissive
-- MySQL Script generated by MySQL Workbench -- 11/15/15 19:17:32 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'; -- ----------------------------------------------...
true
04b1856be8fea31e6c3f86522bda18b572bc94b0
SQL
danhynlee/movie-database-application
/sql/4400create_tables.sql
UTF-8
3,812
3.921875
4
[]
no_license
drop database team55; create database team55; use team55; CREATE TABLE Company ( comName VARCHAR(50) NOT NULL UNIQUE, PRIMARY KEY (comName) ); CREATE TABLE Movie ( movName VARCHAR(50) NOT NULL UNIQUE, movReleaseDate DATE NOT NULL UNIQUE, duration INT NOT NULL, PRIMARY KEY (movName, movReleaseDate) ); CREATE TABL...
true
34c0ebb34c07380419b1d3aece436ce17157c71f
SQL
kripesh-f1/Bachaat
/src/main/resources/db-install/data.sql
UTF-8
1,527
3.046875
3
[]
no_license
/* TO INSERT RECORD IN TBL_USER */ INSERT INTO tbl_users(first_name,middle_name,last_name,password,mobile_number,email_address,address,activation_code) VALUES ('admin','admin','admin','admin','1234567890','admin@admin.com','admin',12345); /* TO INSERT RECORD OF ADMIN IN TBL_ROLE */ INSERT INTO tbl_roles(name) VALUES ...
true
98a3c278dd1f7f4c17e369c5cb2de4e490e71fc9
SQL
RahulDeeti/dbms
/Assignment-week-2/ICA_createtable.sql
UTF-8
2,771
3.671875
4
[]
no_license
CREATE TABLE Customer ( custNo CHAR(8) NOT NULL, custName VARCHAR(30) NOT NULL, address VARCHAR(50) NOT NULL, internal CHAR(1) NOT NULL, city VARCHAR(30) NOT NULL, zip VARCHAR(10) NOT NULL, state VARCHAR(2) NOT NULL, contact VARCHAR(50) NOT NULL, phone VARCHAR(30) NOT NULL,...
true
6cf30e1f7f3ff9e4143d0ef47deab6d65dade48e
SQL
paula-jfe/trybe_projects
/projeto_bloco_21/sd-07-mysql-vocabulary-booster/desafio7.sql
UTF-8
275
3.78125
4
[]
no_license
SELECT UCASE(CONCAT(e.FIRST_NAME, " ", e.LAST_NAME)) AS "Nome completo", `START_DATE` AS "Data de início", e.SALARY AS "Salário" FROM hr.job_history AS jh INNER JOIN hr.employees AS e ON jh.EMPLOYEE_ID = e.EMPLOYEE_ID WHERE MONTH(jh.START_DATE) IN (1, 2, 3) ORDER BY 1, 2;
true
31d5a83df5873311e3030da385d48616f3611f62
SQL
SBriscoe2/Acebook
/src/main/resources/db/migration/V1.6__Description.sql
UTF-8
970
3.453125
3
[]
no_license
DROP TABLE IF EXISTS users CASCADE; CREATE TABLE users( user_id serial PRIMARY KEY, username VARCHAR(50) UNIQUE NOT NULL, password VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, name VARCHAR(50) NOT NULL, enabled SMALLINT NOT NULL ); DROP TABLE IF EXISTS authorities; CREATE TABLE authorities( auth_user_id INTEGER N...
true
23f60960deeb42580d5b959ef57b8d457230c44b
SQL
evrimulgen/Oracle-DBA-Life
/INFO/Books Codes/Oracle Database 10g PLSQL/Code/Chapter16/CreateUser.sql
UTF-8
7,651
3.75
4
[ "MIT" ]
permissive
/* * CreateUser.sql * Chapter 16, Oracle10g PL/SQL Programming * by Ron Hardman, Mike McLaughlin, Scott Urman * * This script creates the lob_user for chapter 16 * You must run this script as SYS or * SYSTEM as SYSDBA. The script can be rerun. * * lob_user is created using the USERS and TEMP tablespace. ...
true
864248f21bb4b299e46f743630b62bcd4cb1a992
SQL
gicadmin/allo
/PHENIX/Tables/DUAL_WEEKS.sql
UTF-8
195
2.578125
3
[]
no_license
CREATE TABLE phenix.dual_weeks ( duw_week NUMBER(2) NOT NULL, CONSTRAINT duw_pk PRIMARY KEY (duw_week) ); COMMENT ON TABLE phenix.dual_weeks IS 'Pour CAPS à éliminer éventullement - tony';
true
7bf6c2df9264ce151a3d540bd23aa3c1989a1be0
SQL
Chandulakamaji/Credit-Management-System
/transfer_credit.sql
UTF-8
578
2.609375
3
[]
no_license
CREATE TABLE user_id( name VARCHAR(20) NOT NULL, id INT(10) NOT NULL, email VARCHAR(20) NOT NULL, credit INT(20) NOT NULL ) INSERT INTO user_id VALUES ('CHAISHU', 1, 'clakamaji@gmail.com', 5000), ('Charan', 2, 'charan@gmail.com', 5000), ('karan', 3, 'clakamaji@gmail.com', 2500), ('kitty', ...
true
820205df8ee7ae4f04ae08dcbf5a1c8aea91a756
SQL
agrijalva/apiTest
/backups/db_test.sql
UTF-8
1,878
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 28-03-2018 a las 17:50:14 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
9f67ae663186b39ab43029be610d498ac2dd7053
SQL
danila-kuryakin/gipdd
/Lab4/sql/select1a.sql
UTF-8
180
3.65625
4
[]
no_license
SELECT car.people_id AS people, count(car.people_id) AS count_guilty FROM guilty JOIN dtp ON guilty.guilty = dtp.guilty JOIN car ON guilty.guilty_id = car.id GROUP BY car.people_id
true
002f87b86074e71c7c18d3811d2c4bd776df93d2
SQL
raj-saxena/FancyFilterService
/src/main/resources/db/migration/V001__Create_tables_app_user_and_city.sql
UTF-8
660
3.296875
3
[]
no_license
drop table if exists city CASCADE; create table city ( id uuid not null, city_name text not null, coordinates point not null, primary key(id) ); drop table if exists app_user; create table app_user ( id uuid not null, display_name tex...
true
1f2780e6f16afb1d195b5d0d3694549316dade78
SQL
Lucas-FA/PCII-Atividade14092018
/cadastro.sql
UTF-8
4,136
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 31-Ago-2018 às 19:39 -- Versão do servidor: 5.7.17 -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
67e20535425a53dc5e5038d6a51e4dae50766a82
SQL
Folufab/codeacademySQL
/population_queries_2.sql
UTF-8
1,750
4.0625
4
[]
no_license
-- How many entries in the database are from Africa? SELECT COUNT(*) FROM population_years JOIN countries ON population_years.country_id = countries.id WHERE countries.continent = 'Africa'; -- ANSWER: 616 -- What was the total population of Oceania in 2005? SELECT ROUND(SUM(population_years.population), 2) FROM ...
true
10c20a86d050adf28638ebf3c43fa0f6c6207782
SQL
cncf/devstats
/util_sql/monthly_data.sql
UTF-8
2,852
3.890625
4
[ "Apache-2.0" ]
permissive
with start_date as ( select '{{start_date}}' as string, '{{start_date}}'::date as date, '{{start_date}}'::timestamp as timestamp, date_trunc('month', '{{start_date}}'::date) as month_date ), dates as ( select (select month_date from start_date) + (interval '1' month * generate_series(0,month_count::int)...
true
3e3a3b15bb17ff8965a9820fae8947b0a9c0eae5
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day13/select0942.sql
UTF-8
260
3.03125
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='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['5072','6074','2008','1407','2004','6215','3069','2214','2211','2061'])
true
957764a0703ba40b356ae0dd7f93b730124f6946
SQL
simondvt/SQL-class
/Lab1/8.sql
UTF-8
227
3.53125
4
[]
no_license
SELECT DISTINCT D.DELIVERERID FROM DELIVERERS D, COMPANIES C, COMPANYDEL CD WHERE CD.DELIVERERID = D.DELIVERERID AND CD.COMPANYID = C.COMPANYID AND YEAR_OF_BIRTH > 1962 AND MANDATE = 'first' ORDER BY D.DELIVERERID DESC;
true
7cd4f1fbb6f72cef310dc2dbfd35966aa381da86
SQL
ouwl2284556462/en_exam
/sql/initDB.sql
UTF-8
7,192
3.515625
4
[]
no_license
-- 创建数据库 create database en_exam; --切换数据库 use en_exam; --改变数据库编码 alter database en_exam character set utf8; --创建账号表 create table account ( id int not null auto_increment, account_name varchar(64) not null, password varchar(64) not null, create_time datetime not null, primary key (id) ); ...
true
90810ffeaff46cad65666926557dfab3a60a1398
SQL
kagoshin/tutorial
/sql/practicalIntro/ch7/003.sql
UTF-8
1,639
4.125
4
[]
no_license
--リスト7.7 会社テーブルの定義 create table companies ( co_cd char(3) not null, district char(3) not null, constraint pk_companies primary key (co_cd) ); insert into companies values ('001', 'A'); INSERT INTO Companies VALUES('002', 'B'); INSERT INTO Companies VALUES('003', 'C'); INSERT INTO Companies VALUES('004', 'D'); -...
true
f090ff695aca67c5dee7f3bbf85ae10ca27bbd58
SQL
zootakuxy/stable-version
/GGVIARIO [2017-02-01][GGViario 1.1.0 stable]/GGViario/db/.idea/dataSources/ca843d00-bb07-4f9d-bae2-924cc1c6859c/_staging_/schema/SEGUROS/routine/PRC_REG_MOVIMENTATION_PAYMENT.sql
UTF-8
1,636
2.671875
3
[ "Apache-2.0" ]
permissive
create OR REPLACE PROCEDURE PRC_REG_MOVIMENTATION_PAYMENT ( idUser NUMBER, idAccount NUMBER, idTypeMoviment NUMBER, amountValue FLOAT, dateMoviment DATE, dbCod CHARACTER VARYING, operationType CHARACTER VARYING, codVall CHARACTER VARYING ) IS idAccount NUMBER := idAccontPayment; BEGIN -- D...
true
a44d99f86c4a9bdf93b6a5649528c8396396230d
SQL
labinot/clipper
/clipper-cli/src/test/resources/lubm-ex-20/query/v_q4.sql
UTF-8
1,215
3.078125
3
[]
no_license
CREATE OR REPLACE VIEW v_q4 AS ( SELECT v_memberOf_2.att2 AS att1 , v_memberOf_1.att2 AS att2 FROM v_Professor v_Professor_1, v_Professor v_Professor_2, v_Subj3Department v_Subj3Department_1, v_Subj4Department v_Subj4Department_1, v_publicationAuthor v_publicationAuthor_1, v_publicationAuthor v_publicationAuthor_2,...
true
f5327f925239873d57c32689aa7d416ecd39acd4
SQL
batego/db_fintra
/fintra/public/Tables/solicitud_cuentas.sql
UTF-8
1,369
3.203125
3
[]
no_license
-- Table: solicitud_cuentas -- DROP TABLE solicitud_cuentas; CREATE TABLE solicitud_cuentas ( reg_status character varying(1) NOT NULL DEFAULT ''::character varying, dstrct character varying(6) NOT NULL DEFAULT ''::character varying, numero_solicitud integer NOT NULL DEFAULT 0, consecutivo integer NOT NULL DE...
true
4b6522fdfc16a38569514e5f240f7a6b9b96027a
SQL
kuzminT/linux-server-journal
/67_CreatingUpdateableViews.sql
UTF-8
835
3.125
3
[]
no_license
CREATE VIEW north_america_customers AS SELECT * FROM customers WHERE country in ('USA','Canada','Mexico'); INSERT INTO north_america_customers (customerid,companyname,contactname,contacttitle,address,city,region,postalcode,country,phone,fax) VALUES ('CFDCM','Catfish Dot Com','Will Bunker','President','Old Country Road...
true
31f08eb534726922e2ecd4065647fce7a471317f
SQL
strotman-ryan/WebsiteFromScratch
/DataBase/ExperimentScript.sql
UTF-8
284
3.15625
3
[]
no_license
SELECT * FROM Website.Messages; select Message.* from Messages inner join User on User.id = Messages.userId where Messages.userId = 1; #this is used to add messages insert into Messages (message, userId) values("this is matthew", (select id from User where userName = 'matthew'));
true
b24e15f6f15faf84159738d57b66904f5a5bf418
SQL
bryanjoao12/DESARROOLLOWEB_7_BRYANMUENTES
/DesarrolloWeb_BryanMuentes/VERSION PHP/agenda.sql
UTF-8
3,018
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 17-06-2019 a las 18:54:22 -- Versión del servidor: 10.1.37-MariaDB -- Versión de PHP: 5.6.39 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
true
cafc99b46080f1f9958013ad679cc77f832a1f80
SQL
shyamnannu/SQL-Server
/Tables Last accessed.sql
UTF-8
1,288
4.09375
4
[]
no_license
SELECT DB_NAME(ius.[database_id]) AS [Database], OBJECT_NAME(ius.[object_id]) AS [TableName], MAX(ius.[last_user_lookup]) AS [last_user_lookup], MAX(ius.[last_user_scan]) AS [last_user_scan], MAX(ius.[last_user_seek]) AS [last_user_seek] FROM sys.dm_db_index_usage_stats AS ius WHERE ius.[database_id] = DB_ID() -...
true
439e334eb190ebd81c1a430be0300610b6054d87
SQL
wallride/trip
/www/log_db_structure.sql
UTF-8
3,715
3.5625
4
[]
no_license
CREATE SEQUENCE "user_id"; CREATE TABLE "user" ( "id" BIGINT NOT NULL default nextval('user_id'), "date_create" TIMESTAMP WITHOUT TIME ZONE NOT NULL, "date_modify" TIMESTAMP WITHOUT TIME ZONE NULL, "name" CHARACTER VARYING(255) NOT NULL, "first_name" CHARACTER VARYING(255) NOT NULL, "middle_name...
true
1e109496e71a086aeb21b37b23b7841650448e4c
SQL
meldig/SQL
/schema/structure commune/creation_ta_famille_libelles.sql
UTF-8
1,815
3.8125
4
[]
no_license
/* La table TA_FAMILLE_LIBELLE sert à faire la liaison entre les tables ta_libelle_long et ta_famille. */ -- 1. Création de la table CREATE TABLE G_GEO.TA_FAMILLE_LIBELLE( objectid NUMBER(38,0) GENERATED BY DEFAULT AS IDENTITY, fid_famille NUMBER(38,0), fid_libelle_long NUMBER(38,0) ); -- 2. Création des commentair...
true
498ed5f9f202b2264b0ee25ef1a77b6c5cf93d1e
SQL
PascuDenis/Online-shop
/src/main/resources/db/migration/V1_1__insertdata.sql
UTF-8
2,939
3.21875
3
[]
no_license
INSERT INTO Customer(CustomerId, FirstName, LastName, Username, Password, EmailAddress) VALUES (1, 'FirstName01', 'LastName01', 'Username01', 'Password01', 'black.knight171@yahoo.com'), (2, 'FirstName02', 'LastName02', 'Username02', 'Password02', 'black.knight171@yahoo.com'), (3, 'FirstName03', 'LastName03', 'Username0...
true
7e01710485ab31095e71d15efe26d6fe5e5c0990
SQL
pbl64k/gb
/install/schema.sql
UTF-8
812
3.046875
3
[ "Apache-2.0", "BSD-2-Clause" ]
permissive
CREATE DATABASE gb; USE gb; CREATE TABLE users ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, login VARCHAR(255) DEFAULT '' NOT NULL, password VARCHAR(255) DEFAULT '' NOT NULL, realname VARCHAR(255) DEFAULT '' NOT NULL, email VARCHAR(255) DEFAULT '' NOT NULL, url VARCHAR...
true
32663bb016c1637e03cac8db9cb77b0131c057b7
SQL
ArminasTomasevicius/MySQL_ND1
/arminas_tomasevicius_nfq.sql
UTF-8
2,731
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2016 m. Kov 27 d. 23:10 -- Server version: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
a3ee35644940d30ac27871cfef11747f6c63a68b
SQL
ninjayoto/CANUS_Amazon_Scraper
/src/SQLQueries/create_US_Product_Table.sql
UTF-8
266
2.640625
3
[]
no_license
/* NEED TO SORT OUT HOW TO STORE PRICE BETWEEN FIXED AND RANGE */ CREATE TABLE IF NOT EXISTS US_Product( primary_key INTEGER PRIMARY KEY, name TEXT NOT NULL, brand TEXT NOT NULL, link TEXT NOT NULL, price REAL, num_of_ratings REAL, rating REAL );
true
c9279f8d4c7c7d03b6c0e5640e7622b181bacc50
SQL
anggadarkprince/js-jquery-sandbox
/src/ajax/country/sandbox.sql
UTF-8
2,081
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 06, 2014 at 04:35 PM -- Server version: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
ece5d1b5c43e1ce4d4a71dcebd4c22e21a4602a2
SQL
MikelTozza/PL-SQL
/examenPratique/SUPPRESSION.SQL
UTF-8
719
3.140625
3
[]
no_license
--mettre a jour le numcat ACCEPT lamarque PROMPT "Entrer la marque:" DECLARE CURSOR cur_auto3 IS SELECT * FROM MT_AUTO; Var_curseur cur_auto3%ROWTYPE; BEGIN open cur_auto3; delete from MT_AUTO where marque='&lamarque'; DBMS_OUTPUT.PUT_LINE('Deletion of '|| '&lamarque' ||' completed'); commit; ...
true
334180b486c6a9e564887738549ee9192d52fd6f
SQL
escapewow/Patch
/_Patches/Patches for Trinity 3.3.5/individual_rates/character_loot_rate.sql
UTF-8
265
2.578125
3
[]
no_license
DROP TABLE IF EXISTS `character_loot_rate`; CREATE TABLE `character_loot_rate` ( `guid` int(10) unsigned NOT NULL, `loot_rate` int(10) unsigned NOT NULL DEFAULT '1', PRIMARY KEY (`guid`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COMMENT='Player Loot Rate System';
true
f24ee782e1826cf9f7cc66914856595f3552367d
SQL
hookeyplayer/exercise.io
/SQL数据库/Leetcode整理_视图.sql
UTF-8
425
3.71875
4
[]
no_license
-- 创建视图 CREATE VIEW ProductSum(product_type, cnt_product) AS SELECT product_type, COUNT(*) FROM Product GROUP BY product_type; -- 使用视图,以视图为基础创建视图 CREATE VIEW ProductSumJim(product_type, cnt_product) AS SELECT product_type, cnt_product FROM ProductSum WHERE product_type="办公用品"; SELECT product_type, cnt_product...
true
e5e817820e3062cebac444c4888d7bd75fd8b52d
SQL
patluu66/Clan
/schema/night_birds_db.sql
UTF-8
2,517
3.921875
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS night_birds_db; /* create the database */ CREATE DATABASE night_birds_db; USE night_birds_db; /* Create the people Table */ CREATE TABLE people ( id INT NOT NULL AUTO_INCREMENT, PRIMARY KEY (id), first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, street_address VARCHAR(25...
true
91360d1896990778af2792034dc286af709b9e10
SQL
gsrivera/CoralReefEarlyAlert
/SQL_Base.sql
UTF-8
17,483
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.10 -- http://www.phpmyadmin.net -- -- Servidor: localhost:3306 -- Tiempo de generación: 05-07-2016 a las 21:30:08 -- Versión del servidor: 5.5.42 -- Versión de PHP: 7.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Base de datos: `Reef` -- -- --------...
true
d25a605e614fdb037735313a2249a34aa4c6346a
SQL
chocolateIronman/ProjectMT-API
/utils/SQL/Scripts/getProjectsForTutor.sql
UTF-8
373
3.078125
3
[]
no_license
with get_tutor as ( select * from "Tutor" where "Tutor".id = $1 ), get_ref as ( select "Tutor".id, "ProjectToTutorMapping".project from get_tutor "Tutor" join "ProjectToTutorMapping" on "Tutor".id = "ProjectToTutorMapping".tutor ), get_project as ( select "Project".* from get_ref "Tutor" join "Project" on "Tutor...
true
96a7b40ede10d4d71bdd1d55c1bee1cfee09126d
SQL
ganeshbabuNN/Databases
/RDMS/Oracle Database/Multiple_AggregateFunctions_Pivot.sql
UTF-8
210
3.21875
3
[]
no_license
select * from ( select dept,time,region,profit from sales) pivot ( avg(profit) as avg_amt, sum(profit) as sum_amt for (time,region) in ( (1996,'east') as east_1996, (1996,'west') as west_1996 ) ) order by 2 /
true
9315428d94bec531b87b0346e33a0d73b567f314
SQL
eleanorRumsey/CSI2132Project
/allFunctionality.sql
UTF-8
9,340
4.375
4
[]
no_license
--SQL queries as used throughout application. Words in <brackets> represent user input.-- --LOGIN-- SELECT guest_id FROM guest WHERE email='<email>'; SELECT host_id FROM host WHERE email='<email>'; --SIGN UP-- SELECT address_type_id FROM address_type WHERE address_type = 'Personal residence'; INSERT INTO address(pos...
true
61c789b3f34555152b4781f0eb1ed35571ebedba
SQL
Barriermatt7/Group-Project-2
/db/seeds.sql
UTF-8
676
3.140625
3
[]
no_license
/* INSERT INTO runr (date, miles_day, miles_gallon, miles_per_day, total_miles_day, total_miles_week, total_miles_month) VALUES ("0000-00-00", "100.25", "35.11", "70.1", "300", "2000"); INSERT INTO runr (miles_gallon) VALUES ('10.7'); INSERT INTO runr (miles_per_day) VALUES ('30'); SELECT CURRENT_TIMESTAMP; SELECT avg(...
true
a33927b4676418773278d079ad72df3865c8e895
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day18/select2044.sql
UTF-8
191
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-17T20:44:00Z' AND timestamp<'2017-11-18T20:44:00Z' AND SENSOR_ID='00cd4162_74f7_4c17_8691_3758bbdfb525'
true
26f5f2c2561f387ca9f4c82d3f52d6c623faff69
SQL
AndyOrz/mto10-server
/init.sql
UTF-8
1,149
3.171875
3
[]
no_license
use hw_mto10; drop table if exists student; create table student ( stu_no char(7) primary key not null, stu_name char(8) not null, stu_password char(32) not null, stu_common_password char(32) not null, stu_enable char(1) default "1" ); --stu_common_password明文为"123" insert into student values("1234...
true
cfb78f1ad4ea514362c97fb990cf2daffd385fe3
SQL
nss-day-cohort-48/chinook-alambrow
/total_invoices_2009.sql
UTF-8
78
2.546875
3
[]
no_license
SELECT COUNT(InvoiceId) FROM Invoice WHERE Invoice.InvoiceDate LIKE '%2009%';
true
a1caaa7355d9aa112e0655b7c2bab65b9ab68f82
SQL
jgialis/CSE111
/Labs/Lab 6/josue-gialis-1-instructions/test/15.sql
UTF-8
224
2.546875
3
[]
no_license
/* 15. Compute the change in the economic exchange for every country between 1994 and 1996. There should be two columns in the output for every country: 1995 and 1996. Hint: use CASE to select the values in the result. */
true
3e7711a202bd6a214957e186ff04d581d839d15d
SQL
maxabelardo/comandos
/SQL Server - Scripts SQL do dia a dia/Analise - Index mal utilizados 2.sql
UTF-8
653
4.09375
4
[]
no_license
--- Index Read/Write stats (all tables in current DB) SELECT OBJECT_NAME(s.[object_id]) AS [ObjectName] , i.name AS [IndexName] , i.index_id , user_seeks + user_scans + user_lookups AS [Reads] , user_updates AS [Writes] , i.type_desc AS [IndexType] , i.fill_factor AS [FillFactor] F...
true
33ba294c5f6bbbab1925de317f96ff9aafe1a2f0
SQL
xlreconlx/examen
/bd.sql
UTF-8
5,200
3.078125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: prueba -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
true
5d71ecb9adab91cef7596695dce11b5e77f77aaf
SQL
kjindal0802/To-Do-App
/jyccovov_yp.sql
UTF-8
1,676
2.671875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.18 -- https://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Mar 15, 2018 at 02:39 PM -- Server version: 5.6.29-76.2-log -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
true
7d06cf261abbdff662711a8429901089e5ae4e2a
SQL
navikt/testnorge
/apps/dolly-backend/src/main/resources/db/migration/V1.0.1__CreateTablesOrganisasjon.sql
UTF-8
1,143
3.3125
3
[ "MIT" ]
permissive
----------------- -- T A B L E S -- ----------------- create table organisasjon_bestilling ( id integer not null primary key, miljoer varchar(200) not null, antall integer not null, sist_oppdatert date not null, ferdig boolean, feil...
true
6be8f8e29d7953241c0c555ddf08bfd5e21af5a5
SQL
erikamarchi/casa-do-codigo-demo
/casa-do-codigo/migration/02-cria-tabela-autor.sql
UTF-8
170
2.546875
3
[]
no_license
create table autores ( id BIGINT NOT NULL AUTO_INCREMENT, nome VARCHAR(100) NOT NULL, resumo TEXT NOT NULL, primary key (id), UNIQUE(nome) );
true
531cccfdc3cd07d8214d94ae6fcea1d70f4a1898
SQL
capsian/Lille1
/L3_2016_2017/S5/BDD/Cours/cours8.sql
UTF-8
1,305
4
4
[]
no_license
--- ----vendeur n'offrant aucun article vert ---1: avec SOME select f.fnom from fournisseurs f where not ('vert'=SOME (select acoul from articles join catalogue c using (aid) where c.fid=f.fid)); ---2: avec in select f.fnom from fournisseurs f where 'vert' NOT IN (select acoul from articles join catalogue usin...
true
e16f1648378245922177d0203b1f2d56b2c78e57
SQL
adamgayuh29/tugasfinally
/lara_penjualan.sql
UTF-8
7,802
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 30 Bulan Mei 2018 pada 12.22 -- Versi server: 10.1.30-MariaDB -- Versi PHP: 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
9fb2104f64244bce79ead78480278e26e6a6d1c7
SQL
RamadhantiSukma/telabelang
/telabelang.sql
UTF-8
3,766
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 06, 2016 at 05:59 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
3c04122f0c52a7b02221e58a3ee888a6815c0618
SQL
Cinemata-GSU/Project-Documents
/Sprint#5/theater.sql
UTF-8
2,585
3.484375
3
[]
no_license
DROP DATABASE IF EXISTS `theater`; CREATE DATABASE `theater`; USE `theater`; CREATE TABLE CUSTOMER ( Customer_id int(16) AUTO_INCREMENT NOT NULL, Fname varchar(25), Lname varchar(25), Pnumber char(10), DOB date, Email varchar(50) NOT NULL, Username varchar(25) NOT NULL, Password varchar(50) NOT NULL...
true
28677662fd7112907f88c10903570f8a5e5b193f
SQL
eugenfazekas/Spring-Security
/Spring_Security_Practice_02_UserDetailsImplementation/src/main/resources/schema.sql
UTF-8
313
3.09375
3
[]
no_license
CREATE TABLE IF NOT EXISTS users ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(45) NOT NULL, password VARCHAR(45) NOT NULL, enabled INT NOT NULL ); CREATE TABLE IF NOT EXISTS authorities ( id INT ,FOREIGN KEY(id) REFERENCES USERS, username VARCHAR(45) NOT NULL, authority VARCHAR(45) NOT NULL );
true
4b35c425f45eddbba2a23a8548fe0d012ac8b154
SQL
WWBN/AVideo
/updatedb/updateDb.v1.3.sql
UTF-8
1,210
3.46875
3
[ "Apache-2.0", "JSON" ]
permissive
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'; ALTER TABLE `users` CHARACTER SET = utf8 , COLLATE = utf8_general_ci ; ALTER TABLE `videos` CHARACTER SET...
true
ff39efa08ffcccd47a5bc7e2a48f741e2484505d
SQL
empyrosx/proversys
/db/src/main/resources/db/migration/postgres/V4__ClientProject.sql
UTF-8
201
2.828125
3
[]
no_license
CREATE TABLE client_project ( id INTEGER PRIMARY KEY DEFAULT nextval('global_seq'), client_id INTEGER NOT NULL REFERENCES client(id), project_id INTEGER NOT NULL REFERENCES project(id) );
true
8958970244ee9dd6ff48feaaf5e4718320bdce80
SQL
s18010/Database1
/1213/1213.5.sql
UTF-8
90
2.578125
3
[]
no_license
select count (employee_id) from employees where department_id = 20 or department_id = 50;
true
6131fde242795688c562439981b8703f69a46c73
SQL
Galya-Ivanova/netit-backend-hr
/DB-netit-backend-hr/hr_hr_comments.sql
UTF-8
2,119
3
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `hr` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `hr`; -- MariaDB dump 10.17 Distrib 10.4.11-MariaDB, for Win64 (AMD64) -- -- Host: 127.0.0.1 Database: hr -- ------------------------------------------------------ -- Server version 10.4.11-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CL...
true
05962ef4fcd346a3a3a3ea542a9c6fbe0697c0d7
SQL
jwma/macao-daily-spider
/db.sql
UTF-8
761
3.140625
3
[]
no_license
-- -- Table structure for table `news` -- DROP TABLE IF EXISTS `news`; CREATE TABLE `news` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(255) DEFAULT NULL, `publishtime` varchar(255) DEFAULT NULL, `content` mediumtext, `layout` varchar(255) DEFAULT NULL, `layout_name` varchar(255) DEFAULT NULL, ...
true
8a62c73c511ec014413a5df6ff49c12616e43528
SQL
ShelbyHughes/database-exercises
/group_by_exercises.sql
UTF-8
728
3.625
4
[]
no_license
USE employees; SELECT DISTINCT title FROM titles; SELECT DISTINCT last_name FROM employees WHERE last_name LIKE 'E%E' GROUP BY last_name; SELECT DISTINCT first_name, last_name FROM employees WHERE last_name LIKE 'E%E' GROUP BY first_name, last_name; SELECT DISTINCT first_name, last_name FROM employees WHERE last_name L...
true
c3413d240e0afce192f231b01bc470f3a0bdd57f
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Constraints/KLS_BILL_POS_TYPE_NonFK.sql
UTF-8
325
3.1875
3
[]
no_license
-- -- Non Foreign Key Constraints for Table KLS_BILL_POS_TYPE -- ALTER TABLE MASTER.KLS_BILL_POS_TYPE ADD ( CHECK ("NAME" IS NOT NULL) DISABLE NOVALIDATE); ALTER TABLE MASTER.KLS_BILL_POS_TYPE ADD ( CONSTRAINT PK_KLS_PAYMENTS_DEST PRIMARY KEY (ID) USING INDEX MASTER.PK_KLS_PAYMENTS_DEST ENABLE VALIDAT...
true
8e9d11e5134722f65edb690d4a82d850d59a32e4
SQL
Md-khaled/LearnPlus
/learn .sql
UTF-8
26,687
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 30, 2019 at 08:28 PM -- Server version: 5.7.26 -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
8144ea14c8e6b66945140cc9c4ba720f58d9250d
SQL
bkiers/sqlite-parser
/src/test/resources/tkt3929.test_1.sql
UTF-8
459
2.96875
3
[ "MIT" ]
permissive
-- tkt3929.test -- -- execsql { -- PRAGMA page_size = 1024; -- CREATE TABLE t1(a, b); -- CREATE INDEX i1 ON t1(a, b); -- CREATE TRIGGER t1_t1 AFTER INSERT ON t1 BEGIN -- UPDATE t1 SET b = 'value: ' || a WHERE t1.rowid = new.rowid; -- END; -- } PRAGMA page_size = 1024; CREATE TABLE t1(a, b); C...
true
4ce2def123d500c1711d7514341e68ab554bb665
SQL
doArcanjo/koha-docker
/files/kohapt/sqlpt/030-authorised_values v2.sql
UTF-8
6,417
2.6875
3
[ "MIT" ]
permissive
/*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; insert into `authorised_values` (`id`, `category`, `authorised_value`, `lib`, `lib_opac`, `imageurl`) values -- (1,'SUGGEST','BSELL','Bestseller',NULL,NULL), (2,'SUGGEST'...
true
9bf984e5a8da4b8975b41b028088a142b9ee9ac0
SQL
dani820-ltr/prueba
/Biblioteca.sql
UTF-8
1,446
3.71875
4
[]
no_license
CREATE DATABASE Biblioteca; USE Biblioteca; CREATE TABLE socios( dni varchar(9), telefono varchar(9), nombre varchar(30), apellidos varchar(30), codigo_socio int primary key); CREATE TABLE libros( titulo varchar(100), editorial varchar(60), año year, año_edicion year, isbn int primary key, estado varchar(30), editori...
true
8207bf2b33e5664cc365e929c3d8697e62514413
SQL
rudi-bruchez/tsql-scripts
/database-administration/ddl-generation/change-database-owner.sql
UTF-8
573
3.34375
3
[ "MIT" ]
permissive
----------------------------------------------------------------- -- generate code to change database owner to sa on all database -- where it is not yet the case. -- -- rudi@babaluga.com, go ahead license ----------------------------------------------------------------- SET NOCOUNT ON; SET TRANSACTION ISOLATION LEVEL ...
true
8d86032eac228411ef28b612c6ddd1483c92c8f2
SQL
viorelcontu/oca-sql
/src/main/resources/db/02. DDL Constraints/003_Constraint_Disable.sql
UTF-8
5,089
4.53125
5
[]
no_license
SELECT table_name, constraint_name, constraint_type, status, deferrable, deferred, validated FROM user_constraints WHERE table_name = 'STUDENTS'; DROP TABLE students; DROP TABLE groups CASCADE CONSTRAINTS ; CREATE TABLE students ( id NUMBER(6) CONSTRAINT pk_students PRIMARY KEY, login VARCHAR...
true
cf3d056015a54de76a345ef156f5eb2c9154dc13
SQL
FredericoMFalcao/MLClassifier
/01_tables/03_Inputs.sql
UTF-8
445
3.4375
3
[]
no_license
CREATE TABLE Inputs ( id INT PRIMARY KEY AUTO_INCREMENT, DomainId INT, Name VARCHAR(255) NOT NULL, -- e.g. "Drink", "Computer", "Hamburger" Length INT DEFAULT 1, LengthOfDifferentCategories INT DEFAULT 0, WillBeDeleted BOOLEAN NOT NULL DEFAULT FALSE, -- Foreign keys: FOREIGN KEY (DomainId) REFERENCES Domains(...
true
255710cd545617993bdebdcafeb36cf0e61ce1e3
SQL
jevansugue/Disbursement
/tracking system old/database/disbursement_db.sql
UTF-8
6,501
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 01, 2014 at 02:59 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
cc9bdc9884122b1976656f5a9de37dcfb1176f39
SQL
a-pompom/twitter_clone_practice
/sql/favorite/favorite_post.sql
UTF-8
391
3.375
3
[]
no_license
select p.*, u.user_name, u.user_nickname, case when login_fa.favorite_post_id is null then false else true end as login_fav_flg from tm_post p inner join ts_favorite fa on fa.favorite_user_id = 11 and p.post_id = fa.favorite_post_id inner join tm_user u on p.post_user_id = u.user_id left join ts_favorite login_f...
true
571617c06ab476489fb0ced9e3007a1042490d4d
SQL
pmirand6/soliris
/base_datos/bajada_pablo/soliris/paciente.sql
UTF-8
8,318
3.421875
3
[]
no_license
-- -------------------------------------------------------- -- Host: localhost -- Versión del servidor: 5.7.24 - MySQL Community Server (GPL) -- SO del servidor: Win64 -- HeidiSQL Versión: 11.0.0.5965 -- -------------------------------------------------------- /...
true
af53496c37335c8c4e468c5b74b7fb81563b54cb
SQL
Past-Paper-Based-Learning-Platform/Past-paper-based-learning-platform
/systemppdb.sql
UTF-8
19,239
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 28, 2020 at 07:16 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
f8264a5cde7fd61cb50491461ecb585953e4e58a
SQL
ableabhinav/dwdmlabs
/1. ROLLUP, CUBE/G04_Assignment-1.sql
UTF-8
3,969
4.21875
4
[]
no_license
Activity 1: (1): create table DIM_item ( id_item int primary key, itemName char(20), color char(10), price real ); create table DIM_time ( id_time int primary key, realDate char(8), yearMonth char(8) ); create table DIM_place ( id_place int primary key, shopName...
true
213b697b461bffc9e37dfa4d4b0f3c5092076d84
SQL
tingley/globalsight
/main6/tools/install/data/ERs/7.1.5.1/GlobalSight_7.1.5.1.1.sql
UTF-8
909
2.78125
3
[]
no_license
-- #537 Rates: percentage values instead of absolute amounts ALTER TABLE RATE ADD COLUMN EXACT_CONTEXT_RATE_PER float NOT NULL DEFAULT 0; ALTER TABLE RATE ADD COLUMN IN_CONTEXT_MATCH_RATE_PER float NOT NULL DEFAULT 0; ALTER TABLE RATE ADD COLUMN FUZZY_HI_RATE_PER float NOT NULL DEFAULT 0; ALTER TABLE RATE ADD COLUMN FU...
true
368193fa31dbd99a12825c95c6e598acdd5ce9fa
SQL
jegyeong/Oracle
/20191216/20191226 (2).sql
UHC
3,927
4.1875
4
[]
no_license
2019-12-26 (2) 2) Լ 1) Լ - ABS, SIGN, POWER, SQRT, (1) ABS(n) - n 밪 ȯ (2) SIGN(n) - n ȣ ̸ -1, ̸ 1, 0̸ 0 ȯ --n ũ , ȣ Ǵ, (3)POWER(e, y) - e y(e y ŵ ) ȯ (4) SQRT - n ȯ --ڹٴ ڿ켱, Ŭ ڿ켱 select ('12') + 12 from dual; --ڹ...
true
026943acf779324f1570f47678b4acba7cc5c957
SQL
olegmak02/triplite-api
/configuration/db.sql
UTF-8
2,670
3.890625
4
[ "MIT" ]
permissive
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE categories ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL UNIQUE ); CREATE TABLE organizations ( id INTEGER PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL UNIQUE, address TEXT NOT NULL, owner TEXT NOT NULL, document TEXT NOT NULL UNIQUE...
true
69a11213f89e32b6f044c912a6e633e16a4488e2
SQL
tyronne90/librarySystem
/librarysystem.sql
UTF-8
1,037
3.5
4
[]
no_license
CREATE DATABASE IF NOT EXISTS librarysystem; USE librarysystem; DROP TABLE books; CREATE TABLE IF NOT EXISTS books( id INT AUTO_INCREMENT PRIMARY KEY, bookId VARCHAR(10), bookName VARCHAR(20), bookDescription VARCHAR(40), mainclass VARCHAR(20), subclass VARCHAR(20), isbn VARCHAR(20), author VA...
true
88d005df8b42249cd18400109b3508ffb1194743
SQL
villanuevacarlos14/TeamA
/AppKeep.Data/Scripts/0001-appkeep.sql
UTF-8
5,936
3.5625
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 80016 Source Host : localhost:3306 Source Schema : appkeep Target Server Type : MySQL Target Server Version : 80016 File Encoding : 65001 Date: 28/12/2020 23:1...
true
d5d1727666e381203eabe523b0cad76fb2022a59
SQL
GlebBondarchuk/SED
/sed/sql/updates/create_notification.sql
UTF-8
486
3.375
3
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS sed_notification; CREATE TABLE IF NOT EXISTS sed_notification ( id BIGINT NOT NULL AUTO_INCREMENT, from_id BIGINT, to_id BIGINT, message VARCHAR(500) NOT NULL, send_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id), FOREIGN KEY (from_id) R...
true
b8ad2a994528bd8d88b645d2866de7ddac459b88
SQL
cash2one/wifi_ap
/sql.sql
UTF-8
34,641
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2014-08-25 14:10:03 -- 服务器版本: 5.0.91-community-nt -- PHP 版本: 5.2.13 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
3514896318a332ac804238490cc7ad39181588d1
SQL
ArieleSilva/cmpt308silva
/Lab 4/SubQueries.sql
UTF-8
1,951
3.5625
4
[]
no_license
/* Ariele Silva Database Management Prof. Labouseur 25 September 2017 Lab 4 */ /* 1 */ select city from Agents where aid in (select aid from Orders where cid = 'c006'); /* 2 */ select pid from Orders where cid in (select cid from Customers where city = 'Beijing') order by p...
true
c17fc1f2254c43bfe8b0701bed2924232cdf7a0a
SQL
GunnarSoreng/adventure-base
/4Working with data in tables.sql
UTF-8
587
3.359375
3
[]
no_license
-- Working with data in tables -- -- CRUD -- -- Create Insert -- Read Select -- Update Update -- Delete Delete -- Demo is missing from course? -- Introducing Views and Procedures drop view vw_NameInfo; select * from vw_NameInfo; CREATE VIEW vw_NameIn...
true
034f1bc407268faf0e17427489816dee0b43a12a
SQL
radtek/Telecommunication
/GSM/DataBase/SCRIPTS_FROM_DB/LONTANA/JOB/J_TEMP_PLSQL_BLOCK.SQL
UTF-8
1,416
2.6875
3
[]
no_license
BEGIN dbms_scheduler.create_job('"J_TEMP_PLSQL_BLOCK"', job_type=>'PLSQL_BLOCK', job_action=> 'declare res varchar2(100); begin -- STOP_JOB_PCKG.CHECK_WORK_JOB; /* for rec in (select * from temp17) loop DELETE FROM call_11_2014 td WHERE --td.CALL_COST <> 0 and td.dbf_id = 4339 ...
true
3cbb682d73d8bfd19512742188582a69b174732f
SQL
yu-yangyy/SQLZooPractice
/MoreJoin.sql
UTF-8
3,388
4.4375
4
[]
no_license
/* https://zh.sqlzoo.net/wiki/More_JOIN_operations */ /*movie: id, title, yr, director, budget, gross*/ /*actor: id, name*/ /*casting: movieid, actorid, ord*/ /*1. List the films where the yr is 1962 [Show id, title] */ SELECT id, title FROM movie WHERE yr = 1962 /*2. Give year of 'Citizen Kane'. */ SELECT...
true
4d21632adf263e7a69474a1a3bdeb8a28204693f
SQL
nss-day-cohort-19/chinook-joeybiotti
/SQL_Calls/top_agent.sql
UTF-8
162
3.0625
3
[]
no_license
-- Which sales agent made the most in sales over all? SELECT e.FirstName || " " || e.LastName "Agent Name", MAX(i.Total) "Top Sales" FROM Employee e, Invoice i
true