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
396eade7c113508e7ae8fb404dccdfcca283e11d
SQL
MFU-SoftEngineer/SalCafe
/Other/salcafe.sql
UTF-8
2,228
3.28125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : Localhost Source Server Version : 80019 Source Host : localhost:3306 Source Database : salcafe Target Server Type : MYSQL Target Server Version : 80019 File Encoding : 65001 Date: 2020-04-18 21:40:51 */ SET FOREIGN_KEY_...
true
d6396b4377f56a1b0846609d22ed12f68407375c
SQL
vernik7793/morkovka
/src/main/resources/db/sql/ORDERLINE_TABLE.sql
UTF-8
277
2.734375
3
[]
no_license
DROP TABLE IF EXISTS ORDERLINE_TABLE; DROP TABLE IF EXISTS CATALOG_TABLE; CREATE TABLE ORDERLINE_TABLE ( ID BIGINT GENERATED BY DEFAULT AS IDENTITY, IDORDER BIGINT NOT NULL, GOODS VARCHAR(255) NOT NULL, COUNT INT NOT NULL, PRICE DOUBLE NOT NULL, PRIMARY KEY(ID) )
true
b35c9b2f852dfefd17f052d0771372b76ebc2bfd
SQL
Devakki/varni
/varni.sql
UTF-8
76,554
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 22, 2021 at 02:35 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 7.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
5b80a7b86a8ebbd52b70b7d6229e527f09a968c0
SQL
giuliapetenazzi/MuseoUniversitarioItalianoMUI
/DB/gpetenaz.sql
UTF-8
5,308
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 06, 2017 at 10:53 AM -- Server version: 10.0.29-MariaDB-0ubuntu0.16.04.1 -- PHP Version: 7.0.13-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 S...
true
c8711b3272a91b125be7d12373270059fb90174b
SQL
moatazelmasry2/allmobile
/sql/gear_type.sql
UTF-8
496
2.734375
3
[]
no_license
CREATE TABLE `autos`.`gear_type` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY , `en` VARCHAR( 50 ) NOT NULL , `ar` VARCHAR( 50 ) NOT NULL, `de` VARCHAR( 50 ) NOT NULL ) ENGINE = INNODB CHARACTER SET utf8 COLLATE utf8_unicode_ci; INSERT INTO `autos`.`gear_type` (`en`, `ar`, `de`) VALUES ('Automatic', 'أوتوماتيك', 'A...
true
cce6fde76bbf7a76b1eb124c9023987918b6fff8
SQL
SEUNAKINTOLA/API-For-Courseware-App
/APIs/cipmdb.sql
UTF-8
3,517
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 21, 2017 at 10:17 AM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
596214422cdd5bd15a765ccef62a217aa85c476a
SQL
alinemosmar/bd-app-idiomas
/consultas.sql
UTF-8
4,607
3.9375
4
[]
no_license
-- 1) Quantidade de lingotes gastos, por usuário, da divisão bronze: select username,sum(preço) as lingotes from usuário natural join compra natural join itens_da_loja where rankingdivisão='bronze' group by username; -- 2) Username,exp total e quantidade de conquistas, de usuários matriculados em mais de um idiom...
true
b1e086bfa3d117d5fbfc6883ca4313a2d0ec5779
SQL
jthehumury/CS166_lab
/CS166_lab6.sql
UTF-8
802
4.28125
4
[]
no_license
SELECT sid, COUNT(pid) FROM catalog GROUP BY sid; SELECT sid, COUNT(pid) FROM catalog GROUP BY sid HAVING COUNT(pid) >= 3; SELECT sname, COUNT(pid) FROM suppliers NATURAL JOIN catalog WHERE sname IN (SELECT sname FROM parts p1, catalog c1, suppliers s1 WHERE p1.pid = c1.pid AND s1.sid = c1.sid EXCEPT SELECT s...
true
1c043b91f4dcbe90199c66d95d3f33f0ed667e37
SQL
bjabinn/RecruitingEveris
/src/Recruiting.Data/Scripts/InsertoAvisoEntrevistadorTetuan.sql
WINDOWS-1252
6,255
2.578125
3
[]
no_license
SET IDENTITY_INSERT CorreoPlantilla ON INSERT INTO CorreoPlantilla(PlantillaId, TextoPlantilla, UsuarioCreacionId, FechaCreacion, Activo, NombrePlantilla, Centro) VALUES (28, '<html> <head> <title>Notificacion</title> </head> <body lang="ES" style="" link="blue" vLink="purple"> <div> <d...
true
933b26d9a6b2307970f600802904e8a2fb90b4e2
SQL
PonyThree/day-by-day
/day1_30/1.30/exercise/day03/vue_serve/db.sql
UTF-8
2,140
2.609375
3
[]
no_license
-- 功能一:创建新闻表 -- 1.表名:xz_news -- 2.几列 4 -- 3.列名 id/title/img_url/ctime/point/content -- 4.类型 -- id INT -- title VARCHAR(255) -- img_url varchar(255) -- ctime DATETIME -- point INT -- content VARCAHR(2000) -- 5.添加20条件 use xz; CREATE TABLE xz_news( id INT PRIMARY KEY AUTO_INCREMENT, title VARCHAR(255),...
true
4900dbeefa7975421677e396ba13508d4d46520c
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day09/select0737.sql
UTF-8
191
2.71875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-08T07:37:00Z' AND timestamp<'2017-11-09T07:37:00Z' AND SENSOR_ID='5bba7f68_90f7_4b6d_8ced_6286f6580daa'
true
ea9ec6682d20a169301d6dbccf4ee80792f22679
SQL
ahtziribrena/Base_de_datos_1
/tienda.sql
UTF-8
620
3.234375
3
[]
no_license
create database tienda; use tienda; create table proveedor(nombre_proveedor varchar (50), telefono varchar (10), primary key(nombre_proveedor)); create table productos(nombreproducto varchar(50),codigo varchar(16),precioventa float, cantidad_existente int,precioproveedor int, proveedorproducto varchar(50), primary key...
true
46d0a631342cc9bf480406fe9f60af82b91ee63d
SQL
zhaogaolong/go_dev
/day13/exercise/web_admin/tables.sql
UTF-8
780
3.34375
3
[ "Apache-2.0" ]
permissive
# app tables create table tbl_app_info( app_id int auto_increment primary key, app_name varchar(1024) not null, app_type varchar(64) not null, create_time TIMESTAMP DEFAULT CURRENT_TIMESTAMP, develop_path varchar(1024) not null ) ENGINE=InnoDB DEFAULT CHARSET=utf8 auto_increment=1; create table ...
true
1c6eb8d3a1a05e712a216614a64bb170d6ac0721
SQL
cnhjh/Java-Project
/oracle/数据库/day04_homework.sql
UTF-8
2,652
4.15625
4
[]
no_license
1:查看与CLARK相同职位的员工 SELECT ename,job FROM emp_hjh WHERE job=(SELECT job FROM emp_hjh WHERE ename='CLARK') 2:查看低于公司平均工资的员工 select ename,sal from emp_hjh where sal<(select avg(sal) from emp_hjh) 3:查看与ALLEN同部门的员工 select ename,deptno from emp_hjh where deptno=(select deptno ...
true
c8ca26db24952ea9719146b7faec546a7ad70595
SQL
rebeccaleach/bamazon
/schema.sql
UTF-8
2,044
3.484375
3
[]
no_license
-- Create a MySQL Database called Bamazon. -- Then create a Table inside of that database called Products. -- The products table should have each of the following columns: -- ItemID (unique id for each product) -- ProductName (Name of product) -- DepartmentName -- Price (cost to customer) -- StockQuantity (how m...
true
d1bf042f1a4a8c16d0d0e762e8f3494fec0e1bc5
SQL
Alismos/HeadsOrTailFlask
/headsortail.sql
UTF-8
2,571
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 26-10-2020 a las 06:26:23 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
88f7f7afeb3e90c8e00cbfc85d9bc6e8d2a90462
SQL
DanielBankov/SoftUni
/C# DB Fundamentals/Databases Basics - MS SQL Server/Exam - 29 Aug 2018/15. Top Order per Employee.sql
UTF-8
707
4.5
4
[ "MIT" ]
permissive
SELECT k.FullName, DATEDIFF(HOUR, s.CheckIn, s.CheckOut) AS WorkHours, k.TotalPrice FROM ( SELECT CONCAT(FirstName, ' ', LastName) AS FullName, SUM(oi.Quantity * i.Price) AS TotalPrice, ROW_NUMBER() OVER(PARTITION BY e.Id ORDER BY SUM(oi.Quantity * i.Price) DESC) AS RowNumber, o.[Datetime] AS dt, e.Id...
true
61a469a81b90c843de344976d409fc309908cf0a
SQL
wallaceg09/GradProject_XML
/scripts/DML/08.sql
UTF-8
233
2.640625
3
[]
no_license
SELECT Title, FirstName, MidInit, LastName, Suffix, TotalTrade, TotalItems FROM Customer_Details UNION SELECT null, null, null, null, 'Grand Total', Sum(TotalTrade) , sum (TotalItems) FROM Customer_Details ORDER BY TotalTrade DESC;
true
3465aad7751273d0f895781e15d55a17712d6b9c
SQL
chanchal13/Capgemini-ADAPT-1
/Case Study Sprint1/Learning Outcome2/1.sql
UTF-8
238
2.734375
3
[]
no_license
alter session set current_schema = bookrental; SET heading OFF /* * Enter your query below. * Please append a semicolon ";" at the end of the query */ select * from book where (rent_per_day * 31) < 500 or (rent_per_day * 30) < 500;
true
206bc735aa9685dd8d472dc5d388437a1902915a
SQL
rahayu88/SIDAK-WEB
/database_sidak.sql
UTF-8
3,007
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 17, 2019 at 06:37 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
db7e3370be63a844704816bc26e75b5df9e2891d
SQL
maroy/TSTA
/p3/kwd.sql
UTF-8
160
2.734375
3
[ "MIT" ]
permissive
CREATE TABLE keywords(idx_id,created,content); CREATE INDEX idx_keywords_idx_id ON keywords(idx_id); CREATE INDEX idx_keywords_created_id ON keywords(created);
true
6d982550a388cc4e5a9533f0d0839aa64dedd1a8
SQL
vytautask/BzSprint
/Models/Queries/bugs_select_query.sql
UTF-8
450
3.65625
4
[]
no_license
SELECT bug_id, short_desc, cf_duration, priority, CAST(cf_scrum_importance AS SIGNED INT), COALESCE(cf_octopusfeature, cf_foxusfeature) as feature, products.name FROM bugs inner join products on products.id = bugs.product_id WHERE product_id IN (31, 28) AND bug_status IN ('ASSIGNED', 'REOPENED', ...
true
848c0bbefb89eda901e308d31d9494f82f65155f
SQL
bodeti/AdvayBhaskar
/product-management-system/target/classes/pms.sql
UTF-8
397
2.625
3
[]
no_license
DROP DATABASE pmsDb; CREATE DATABASE pmsDb; USE pmsDb; CREATE TABLE Products( pid int primary key, pname varchar(20) not null, pcost DECIMAL(10,2), pdescription varchar(100) not null ); INSERT INTO Products VALUES (1,"Face Mask","100.00","N95 Branded Face Mask"), (2,"Sanitizer","300.00","Hand Sanitizer Alcohol ...
true
9ac189bd53177cbd5bc191610444a58387fb5599
SQL
stambi4a/DatabasesBasicsMSSQL
/SQL Server/Functions,Triggers and Transactions/Exercises/SQLQueryAuxiliary.sql
UTF-8
2,919
4.375
4
[]
no_license
--SELECT * FROM UserGameItems --ORDER BY UserGameId ASC,ItemID ASC --SELECT * FROM Items --WHERE MinLevel IN(11,12) --UPDATE UsersGames --SET Cash = 6266 --WHERE ID = 110 --SELECT Username, Game, Character, UserGameId FROM Users --INNER JOIN (SELECT Id AS UserGameId, UserId, GameId, CharacterId FROM UsersGames) as ...
true
94c68fbbebea4f3c01cd736c6ceae9f84152811c
SQL
salvaje1385/movie-rental
/movie_rental_db.sql
UTF-8
15,575
3.1875
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 10.13 -- Dumped by pg_dump version 10.15 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', f...
true
f040ba1d4170484c08513f68541cd1ecebbe0de8
SQL
skysamer/oracle-db
/5_ddl_dml.sql
UHC
5,694
3.765625
4
[]
no_license
--10 : Ÿ ۾ DML : Insert Update delete ==> rollback --11 DDL Table (auto commit) ==> rollback Ұ -- Ʈ ==> CURD : Insert,Update,select ,delete -- SQL : DML,DDL,DTL,DCL,Query (select) -- Book ̺ -- title,author,pubdate,....... select user from dual; drop table book; CREATE TABLE book( bookno NUMBER(5) ,...
true
06beb1b489d5eee0e40c28757204883763257bfc
SQL
bopopescu/project-5
/ExtraBees2/src/sql/selectEnterpriseSites.sql
UTF-8
685
2.78125
3
[]
no_license
SELECT ID, CASE WHEN SUBSTRING(firstSeenSrcIP,1, 6) LIKE '172.10' THEN 'EnterpriseSite1' WHEN SUBSTRING(firstSeenSrcIP,1, 6) LIKE '172.20' THEN 'EnterpriseSite2' WHEN SUBSTRING(firstSeenSrcIP,1, 6) LIKE '172.30' THEN 'EnterpriseSite3' WHEN SUBSTRING(firstSeenSrcIP,1, 3) LIKE '10.' THEN 'INTERNET' ELSE 'Other' EN...
true
b69897a9bcdbdb1e7f0794d8f8103bbb47a42f1f
SQL
paulovieira/cirac1
/database/sql/0060_t_texts.sql
UTF-8
3,092
4.5
4
[ "MIT" ]
permissive
/* NOTE: the id field is serial, but the sequence starts at 1000; this will reserve 1000 rows for the initial data; the logic in the texts_create function is as follows a) if the id has not been given, it will insert the data as usual (getting the id from the sequence) b) if the id has been given, it will check if t...
true
ac30ab5988ffe2075af9f92453bf260327957528
SQL
ellenlim01/DataBase
/ch01_4.sql
UTF-8
406
3.640625
4
[]
no_license
CREATE TABLE indexTBL ( first_name VARCHAR(14), last_name VARCHAR(16), hire_date DATE ); INSERT INTO indextbl (first_name, last_name, hire_date) SELECT first_name, last_name, hire_date FROM employees.employees LIMIT 1000; explain SELECT * FROM indextbl WHERE first_name = 'Mary'; -- type이 all이면 전수조사진행-...
true
3bf244d75f72cf7aee82f09e71cfd0c27b53668d
SQL
fexofenadine/brcm63xx-tch
/source/telephony/kamailio3-mod-db-mysql_3.3.7-9_brcm63xx-tch/usr/share/kamailio/mysql/matrix-create.sql
UTF-8
250
2.546875
3
[]
no_license
INSERT INTO version (table_name, table_version) values ('matrix','1'); CREATE TABLE matrix ( first INT(10) NOT NULL, second SMALLINT(10) NOT NULL, res INT(10) NOT NULL ) ENGINE=MyISAM; CREATE INDEX matrix_idx ON matrix (first, second);
true
3748d01d7d8160092a3709b551f9ef80be42c205
SQL
rackerlabs/bobby
/schema/setup/control_11_create_tables.cql
UTF-8
902
3.265625
3
[ "Apache-2.0" ]
permissive
USE @@KEYSPACE@@; CREATE COLUMNFAMILY groups ( "tenantId" ascii, "groupId" ascii, /* Provided by otter */ "notification" ascii, "notificationPlan" ascii, PRIMARY KEY("tenantId", "groupId") ); CREATE COLUMNFAMILY servers ( "groupId" ascii, "serverId" ascii, /* Provided by nova */ "e...
true
47d0b85006efb227d9ddcf62d844a0e3b8d73689
SQL
odgerey/bootcampX
/4_queries/avg_assistance_request_wait_time.sql
UTF-8
119
2.546875
3
[]
no_license
SELECT AVG(assistance_requests.created_at-assistance_requests.started_at) as average_wait_time FROM assistance_requests
true
0f7dcbd1f3ba01294c6bc7687184a9ae3c6bbda6
SQL
petkoxray/SQL-Course
/Subqueries And Joins/Exercises/07.sql
UTF-8
304
4.03125
4
[]
no_license
SELECT e.employee_id, e.first_name, p.name FROM employees AS e INNER JOIN employees_projects AS ep ON ep.employee_id = e.employee_id INNER JOIN projects as p ON p.project_id = ep.project_id WHERE DATE(p.start_date)>'2002-08-13' AND p.end_date IS NULL ORDER BY e.first_name ASC, p.name ASC LIMIT 5;
true
32cc9426339dcfcd8d7d1067fa7326eb5df7cc14
SQL
dtsaryov/jpql-console-jakarta-demo
/src/main/resources/db/schema.sql
UTF-8
173
2.90625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE IF NOT EXISTS person ( id INT(4) UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(30), last_name VARCHAR(30), INDEX(id) ) engine=InnoDB;
true
ceab6548207d181f48b0b8c27ebcb59a9999ba96
SQL
hitDeveloper/fitness
/Project3/project/WebRoot/WEB-INF/classes/gymmanager.sql
UTF-8
812
2.859375
3
[ "MIT" ]
permissive
CREATE TABLE `tb_users` ( `uID` int(11) NOT NULL, `username` varchar(45) DEFAULT 'null', `password` varchar(45) DEFAULT 'null' COMMENT '鐢ㄦ埛鍩烘湰淇℃伅', `number` varchar(20) DEFAULT 'null', `college` varchar(45) DEFAULT 'null', PRIMARY KEY (`uID`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `tb_admin` ( ...
true
8ccec1add7e01d925ceaa78ba9c457d5f410ee4d
SQL
brat002/ExpertBilling
/sql/upgrade/84.sql
UTF-8
79,494
3.578125
4
[]
no_license
DROP TABLE IF EXISTS auth_group_permissions; DROP TABLE IF EXISTS auth_group; DROP TABLE IF EXISTS auth_permission; DROP TABLE IF EXISTS auth_group_permissions; DROP TABLE IF EXISTS django_content_type CASCADE; DROP TABLE IF EXISTS auth_user_user_permissions; DROP TABLE IF EXISTS auth_user_groups; CREATE ...
true
f950ed858d336f1ac360782f27607bb123df80c4
SQL
jeromanm/kronos
/views/data-provider/funcion.sql
UTF-8
2,147
3.3125
3
[]
no_license
/* * Este programa es software libre; usted puede redistribuirlo y/o modificarlo bajo los terminos * de la licencia "GNU General Public License" publicada por la Fundacion "Free Software Foundation". * Este programa se distribuye con la esperanza de que pueda ser util, pero SIN NINGUNA GARANTIA; * vea la licencia "...
true
268acc08478148c1bf0ea8a1fe38bd043046113a
SQL
MCZbase/DDL
/TRIGGER/TRG_CTNUMERIC_AGE_UNITS_UD.sql
UTF-8
537
3.375
3
[ "Apache-2.0" ]
permissive
CREATE OR REPLACE TRIGGER "TRG_CTNUMERIC_AGE_UNITS_UD" BEFORE UPDATE OR DELETE ON CTNUMERIC_AGE_UNITS FOR EACH ROW BEGIN FOR r IN (SELECT COUNT(*) c FROM attributes WHERE attribute_type='numeric age' AND attribute_units=:OLD.NUMERIC_AGE_UNITS) LOOP IF r...
true
57bd869d1f22c9ba568bd9158310170f1a33ae1b
SQL
steampilot/schoolInfo
/sp_orte_extrahieren.sql
UTF-8
3,439
3.5625
4
[]
no_license
DELIMITER // CREATE PROCEDURE sp_orte_extrahieren BEGIN START TRANSACTION; DROP TABLE IF EXISTS `orte`; CREATE TABLE `orte` ( `id` INT(10) NOT NULL AUTO_INCREMENT, `plz` VARCHAR(6) NOT NULL, `ort` VARCHAR(50) NOT NULL, `region_code` VARCHAR(2) DE...
true
adffc977c980358eac052b96f2bc946fa2a23793
SQL
AngOOO/MySQLexer
/group.sql
UTF-8
509
3.796875
4
[]
no_license
--使用group by --显示每个部门的平均工资和最高工资 select deptno,avg(sal),max(sal) from emp group by deptno; --显示每个部门的每种岗位的平均工资和最低工资 select deptno,job,avg(sal),max(sal) from emp group by deptno,job; --显示平均工资低于2000的部门和它的平均工资 --统计各部门的平均工资 select avg(sal) from emp group by deptno; --使用having对group by的结果进行筛选 select avg(sal) as mysal from emp...
true
14705e47bf7bae335388d5ace82f7b1546d5414c
SQL
JoeLi920/EP
/EP/src/com/oracle/EP/util/weipinghui.sql
UTF-8
4,365
3.625
4
[]
no_license
drop database IF EXISTS Vpi; create database Vpi; use Vpi; -- -- Table structure for table `user` -- DROP TABLE IF EXISTS `user`; CREATE TABLE `user` ( `uid` int(11) PRIMARY KEY auto_increment, `username` varchar(20) , -- 登录名 `password` varchar(40) ,-- 密码 `name` varchar(255) , -- 真实姓名 `gender` int defaul...
true
a09577d9f6d31ae6c53ff81855d298c9d8625c03
SQL
Bhargav09/bhargavgangadhara
/cco_posting_process.sql
UTF-8
1,156
3.09375
3
[]
no_license
--- --- create table CCO_POSTING_PROCESS in SPRIT --- CREATE TABLE CCO_POSTING_PROCESS ( CCO_PROCESS_ID NUMBER NOT NULL, RELEASE_NUMBER_ID NUMBER NOT NULL, IMAGE_NAME VARCHAR2 (64) NOT NULL, FTP_LOG VARCHAR2 (2500) NULL, POSTING_STATUS CHAR(1) ...
true
311ab8965a1fbe2f28bf0cafb964c2e1d710d9a5
SQL
mj31508/AirBnB_clone_v2
/setup_mysql_dev.sql
UTF-8
325
2.59375
3
[ "LicenseRef-scancode-public-domain" ]
permissive
-- Script sets up a MYSQL server -- Sets usage and permissions for database and user CREATE DATABASE IF NOT EXISTS hbnb_dev_db; CREATE USER IF NOT EXISTS 'hbnb_dev'@'localhost' IDENTIFIED BY 'hbnb_dev_pwd'; GRANT SELECT ON performance_schema.* TO 'hbnb_dev'@'localhost'; GRANT ALL ON hbnb_dev_db.* TO 'hbnb_dev'@'localho...
true
9b1cefb7f57366ef61109bca70619b433fa1894f
SQL
CERIO18/bamazon
/schema.sql
UTF-8
1,650
3.375
3
[]
no_license
DROP DATABASE IF EXISTS bamazon_db; CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products ( id INT(11) NOT NULL AUTO_INCREMENT, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(45) DEFAULT NULL, price DECIMAL(10,2) DEFAULT NULL, stock_quantity INT(100) DEFAULT NULL, PRIMARY KEY (id)...
true
a6c911898ddd56fdd57826a96b7326873f289ef9
SQL
ccastroblua/W6-api-sentiment-project
/mysql/test_data.sql
UTF-8
698
2.921875
3
[]
no_license
USE slack; INSERT INTO users (slack_id, first_name, last_name) VALUES (1, "Cristian", "Castro Blua"), (2, "Borja", "Cañada"), (3, "Alvaro", "Garcia"), (4, "Olaya", "Marques"), (5, "Santi", "Moreno"), (6, "Victoria", "Ruiz"); INSERT INTO chats (chat_name) VALUES ("Los locatis"), ("La banda de boedo"), ("Ironhackers")...
true
6bcd02a63ff900c816bddcae8899f57e3f990ae5
SQL
minorhash/3bs
/public/dat/aid/cr1.sql
UTF-8
554
2.921875
3
[]
no_license
create table usr( email text not null, usr text not null, kat text, phn integer not null ); create unique index usr_phn on usr(phn); create table dat( age integer not null, cnt integer not null, ltv integer not null, mnt integer not null, at integer not null ); create unique index usr_phn on usr(phn); create table it...
true
ccd5bf390ca8e1a2d0903532606c1d5c7350b98c
SQL
aeksei/data_marathon
/task_4/4_5.sql
UTF-8
510
3.078125
3
[]
no_license
-- 5) Необходимо найти уникальные имена игроков, у которых менялась страна* -- На тестовом задании делал через join по id двух одинаковых таблиц и -- фильтровал значения, где country не совдадали -- Здесь через GROUP BY и HAVING идея пришла сделать SELECT DISTINCT name FROM users GROUP BY id HAVING COUNT(DISTINCT cou...
true
9ba686713559d8f3db96a9e4fac173cf6a1e4fef
SQL
aflashyrhetoric/payup-api
/scratch/scratch.sql
UTF-8
429
3.21875
3
[]
no_license
select td.*, PurchaserId = utp.UserId, BeneficiaryId = utb.UserId into #main from TransactionDetail td join UserTransaction utp ON utp.TransactionId = td.TransactionId AND utp.UserType = 'PURCHASER' join UserTransaction utb ON utb.TransactionId = td.TransactionId ...
true
ff4616e9b054607fcb3ec7aa18d12c9b2c07587b
SQL
hasmean/algorithm-study
/programmers/Level1/lv1_04_모든_레코드_조회하기/Solution_mysql.sql
UTF-8
172
2.625
3
[]
no_license
SELECT a.ANIMAL_ID, a.ANIMAL_TYPE, a.DATETIME, a.INTAKE_CONDITION, a.NAME, a.SEX_UPON_INTAKE FROM ANIMAL_INS AS a WHERE 1 = 1 ORDER BY a.ANIMAL_ID ASC;
true
f8e780b999180b2f69a37866ddf5bca44b598b8e
SQL
Mortem45/ProyectoDB
/ScriptBase.sql
UTF-8
33,817
2.78125
3
[ "MIT" ]
permissive
/*==============================================================*/ /* DBMS name: SAP SQL Anywhere 16 */ /* Created on: 06/10/2018 19:33:27 */ /*==============================================================*/ if exists(select 1 from sys.sysforeignkey wh...
true
4c2640361ff01e57b3e9e7a5e2e5d5956d104725
SQL
mokolabs/trucker_sample_app
/db/old_blog_posts.sql
UTF-8
2,884
3.046875
3
[ "MIT" ]
permissive
# Sequel Pro dump # Version 2210 # http://code.google.com/p/sequel-pro # # Host: localhost (MySQL 5.1.37) # Database: fake # Generation Time: 2010-07-15 09:40:18 -0500 # ************************************************************ /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHAR...
true
cda670a5f562f5d217431bc360fa1690314410d9
SQL
mihaigit/CMS_Mihai
/DB/cms_db.sql
UTF-8
2,253
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 22, 2014 at 11:57 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
affbd97dc06b56311ed3c87f1150b652dc1a2e96
SQL
nileshpande/mess-api
/dbs/process/nmumess.sql
UTF-8
11,353
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 31, 2017 at 07:44 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
f35289ba1350cf7ff3c0d73091a1911483921164
SQL
FreddyBueno/SoftEPS
/SoftEPS/SQLs/Autorizaciones/Informacion Consolidada/Encabezado/Agrupado x TipoNivel.SQL
UTF-8
949
3.890625
4
[]
no_license
SELECT regionales.nom_regional, TINAUTME.Ds_TipoAutorizacion, AMDETAUT.Nivel, Count(AMDETAUT.Cantidad) AS CuentaDeServicios,Sum(AMDETAUT.Cantidad) AS SumaDeServicios, Sum(AMDETAUT.Valor) AS SumaDeValor FROM UDSETABL,TINAUTME,AMDETAUT,regionales,AMENCAUT WHERE (AMENCAUT.Cd_Regional = AMDETAUT.Cd_Regional AND AMEN...
true
36d5158f52fc8699dc9c73a6e6d87c418657b2aa
SQL
JeffS97/onesg
/db/combined.sql
UTF-8
7,280
3.65625
4
[]
no_license
DROP DATABASE IF EXISTS awsCharity; CREATE DATABASE awsCharity; Use awsCharity; CREATE TABLE awsCharity( charity_id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, charity_name VARCHAR(200) NOT NULL, c_username VARCHAR(200) NOT NULL, c_email Varchar(200) NOT NULL, password Varchar(255) NOT NULL, -- chat_id VARCHAR(200) NOT N...
true
41698eb98767d69e2041d4af3c5f25c1938c22a5
SQL
rafaelrubiorobles/FabeltaInvetaireApp
/FabeltaInventaireApp/Scripts/Script-1.sql
UTF-8
456
3.28125
3
[]
no_license
SELECT fabeltaschema.locationfabelta.code,fabeltaschema.productlocationfabelta.locationquantity FROM fabeltaschema.productfabelta inner join fabeltaschema.productlocationfabelta on (fabeltaschema.productfabelta.id = fabeltaschema.productlocationfabelta.product_id) inner join fabeltaschema.locationfabelta on (fabe...
true
355b0f3107d4bc78130f3d93e5b4d40f12d9caa4
SQL
thuhdo/course-finder
/departments.sql
UTF-8
27,931
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 25, 2020 at 08:02 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
f10426a0b3208561a47f6f4e5ee552e379a7f1e3
SQL
Vedant2311/Whats-your-query
/IPL-Data-Stats/Individual_queries/part-12.sql
UTF-8
1,358
4.125
4
[ "MIT" ]
permissive
SELECT * FROM (SELECT match_id, player_name, team_name, num_wickets, season_year FROM (SELECT ball_by_ball.match_id, player.player_name, team.team_name, COUNT(match.match_id) OVER (PARTITION BY player.player_id, match.match_id) AS num_wickets, season.season_year FROM ball_by_ball, wicket_taken, out_type, player_match, ...
true
b6c8509e6cd3017ee02636e0c70086d9fde12ba0
SQL
brad0520/DataBaseStudy
/SimpleBoard.sql
UTF-8
1,684
3.359375
3
[]
no_license
DROP DATABASE IF EXISTS simpleBoard; CREATE DATABASE simpleBoard; USE simpleBoard; CREATE TABLE `member` ( `id` INT NULL AUTO_INCREMENT COMMENT '번호', `userId` CHAR(30) NOT NULL COMMENT '아이디', `userPw` CHAR(30) NOT NULL COMMENT '비밀번호', `userName` ...
true
a31210ac8232ea718d9458e5dbdc51d82c6c57f0
SQL
mtejas88/esh
/Projects/special_construction/src/caf/special_construction_caf_summary.sql
UTF-8
1,336
3.53125
4
[]
no_license
with apps as ( select application_number, self_provisioning, count(distinct case when census_block_eligible then blockcode end) as eligible_census_blocks, count(distinct case when census_block_funded ...
true
fc7bd7eb5cc216e88356a3889acd28ec27594a64
SQL
intive/ShopMe_Backend
/backend/src/main/resources/db/migration/V0.6__voivodeship_category_remove_uuid.sql
UTF-8
1,464
3.859375
4
[ "Apache-2.0" ]
permissive
alter table OFFER drop constraint FK_OFFER_CATEGORY; alter table OWNER drop constraint FK_OWNER_VOIVODESHIP; alter table USERS drop constraint FK_USERS_VOIVODESHIP; alter table OFFER alter column CATEGORY_ID type VARCHAR(255); alter table CATEGORY alter column ID type VARCHAR(255); update OFFER O set CATEGORY_ID = (se...
true
26a2a83f6832ce3fc54ef4139fb10fa65b26711c
SQL
alfhello/acFantaZ-2018-19-playoff
/platforms/browser/www/res/dbRoutine/sp_upLastInfo.sql
UTF-8
1,600
3.109375
3
[ "Apache-2.0" ]
permissive
CREATE DEFINER=`ascdphk1_admin`@`218.253.202.194` PROCEDURE `sp_upLastInfo`( in inName varchar(200), in inNKey varchar(50), in inApp varchar(50), in inAct varchar(50), in inParam varchar(800), out outLastKey varchar(50) ) BEGIN update ascUser_Log set asc_Active = 0 where (asc_LastLoginName = inName or asc_LastInNameK...
true
e85a636232c883da329738a375f6485acfabb9c4
SQL
onlinekof2001/Oracle_Auto_Scripts
/oracle_scripts/rdk_pool_table_insert.sql
UTF-8
2,666
3.453125
3
[]
no_license
-------------------------------------------------------------------------------- -- AUTHOR: Pierre-Marie Petit -- VALIDATOR: -- SCRIPT: rdk_pool_table_insert.sql -- SYNOPSIS: insert pool table on all ptf -- USAGE: sqlplus -S -L @/xxxxx02_xxxxx2odbXX @rdk_pool_table_insert.sql -- PARAMETERS: -- numtiers :...
true
8db279498da3f0d0ffb02ac4f69cf30aab350ddd
SQL
TJ-Becker/database_exercises
/joins.sql
UTF-8
2,029
4.125
4
[]
no_license
SELECT users.name, email, role_id, roles.name AS role_name FROM users JOIN roles ON users.role_id = roles.id; SELECT CONCAT(first_name, ' ', last_name) AS full_name, departments.dept_name, departments.dept_no FROM employees JOIN dept_emp ON dept_emp.emp_no = employees.emp_no JOIN departments ON departments.dept_no = d...
true
d23df54f2c27fafee573cb3de29896a380eaf26a
SQL
siumingdev/graphql-java-demo
/mysql/schema.sql
UTF-8
573
3.390625
3
[]
no_license
DROP TABLE IF EXISTS todo_item; DROP TABLE IF EXISTS user; CREATE TABLE IF NOT EXISTS user ( PRIMARY KEY (id), id BIGINT NOT NULL AUTO_INCREMENT, username VARCHAR(50) NOT NULL, password VARCHAR(100) NOT NULL, email VARCHAR(100) NOT NULL ); CREATE TABLE IF NOT EXISTS todo_item ( ...
true
bde0539ef91f06719b21bc43548152bc1d23bbf2
SQL
sqlfluff/sqlfluff
/test/fixtures/dialects/bigquery/alter_view_set_options.sql
UTF-8
174
2.6875
3
[ "MIT" ]
permissive
ALTER VIEW mydataset.myview SET OPTIONS ( expiration_timestamp=TIMESTAMP_ADD(CURRENT_TIMESTAMP(), INTERVAL 7 DAY), description="View that expires seven days from now" );
true
f2fce07fdf16ffaa10861c2cfa1002db79de6c1c
SQL
inigo10rodri/MySQL
/Evaluacion 2.1/consultas1/script departamentos.sql
UTF-8
927
3.078125
3
[]
no_license
DROP TABLE IF EXISTS departamentos; CREATE TABLE departamentos ( NºDEPART smallint(6) default NULL, NOMBRE varchar(30) default NULL, LOCALIDAD varchar(30) default NULL ); INSERT INTO departamentos (NºDEPART,NOMBRE,LOCALIDAD) VALUES (10,'Marketing','MADRID'), (20,'Desarrollo','BARCELONA'), (30,'Investigación'...
true
1fc7cdbabadcc0e5e64d65f208a98e4445e6fbf7
SQL
SurekhaMaduhansi/ITPMtest
/newJ/Scripts/Script.sql
UTF-8
320
2.625
3
[]
no_license
CREATE TABLE StudentGroups( AcademicYearSemester varchar(5), Program varchar(6), GroupNumber int, SubGroupNumber int, GroupID varchar(20), SubGroupID varchar(20), ) select * from StudentGroups drop table CREATE TABLE Tags( TagName varchar(5), TagCode varchar(6), RelatedTag varchar(6), )
true
fe7998591f2f3d8a07bcd5351f3cd0b102de8bd1
SQL
ameliaaveritt/Characterizing_Opioid_Overdose_with_the_EHR
/Native_Non_Docked_Opioid_Project/Postgres_SQL/SelfControlled_DPA/Procedures_PostOD.sql
UTF-8
1,219
3.953125
4
[]
no_license
SELECT DISTINCT B.procedure_concept_id FROM ( SELECT @target_cohort_table.subject_id, @target_cohort_table.cohort_start_date, procedure_occurrence.procedure_concept_id, concept.concept_name, @target_cohort_table.cohort_start_date, procedure_occurrence.procedure_date, @target_cohort_table.cohort_start_date - procedur...
true
bb9b323f5d3a5970f33a62a177737e50d06b595f
SQL
factcast/factcast
/factcast-store/src/main/resources/db/changelog/factcast/issue82/uniqueConstraintForIdent.sql
UTF-8
209
2.703125
3
[ "Apache-2.0" ]
permissive
--liquibase uniqueConstraintForIdent sql --changeset usr:issue82 create unique index unique_metaident on fact ((header->'meta'->'unique_identifier')) where (header->'meta'->'unique_identifier') notnull;
true
de65335470e3ec9cbc5f40d5da4ad03122362562
SQL
samescolas/php-piscine
/day05/ex08/ex08.sql
UTF-8
166
3.109375
3
[]
no_license
SELECT u.last_name, u.first_name, DATE_FORMAT(u.birthdate, '%m-%d-%Y') AS birthdate FROM db_sescolas.user_card u WHERE YEAR(u.birthdate) = 1989 ORDER BY u.last_name;
true
2799b13cef2eef36e6398e72ad544b655324a2a0
SQL
flagstones/db_wotlk
/world/worldstring_tables.sql
ISO-8859-1
7,397
2.8125
3
[]
no_license
-- MySQL Dump -- version 5.1.41 -- -- Host: localhost -- Server Version: 6.1 -- -- -------------------------------------------------------- -- -- Tabellenstruktur fr Tabelle `worldstring_tables` -- CREATE TABLE `worldstring_tables` ( `entry` int(11) NOT NULL AUTO_INCREMENT, `text` varchar(255) CHARACTER SET u...
true
203e7bf3de36d1fc92865576de147898561821c1
SQL
bananaCypher/homework_week3_day1
/fringeshows_answers.sql
UTF-8
12,239
3
3
[]
no_license
-- =====[ Set up ]===== DROP TABLE shows; DROP TABLE times; DROP TABLE users; DROP TABLE shows_users; CREATE TABLE "shows" ("id" serial8 primary key, "created_at" date, "name" varchar(255), "price" decimal); INSERT INTO "shows" VALUES (1, '2015-08-23 20:09:41.969902', 'Le Haggis', 12.99); INSERT INTO "shows" VALUES (2...
true
e6923819687be1756b9b24a9c796933542d2d44b
SQL
HKamilya/ITIS_DB
/queries/1_kiyamdinov.sql
UTF-8
1,651
3.875
4
[]
no_license
1. группировать студентов по группам select group_id from students group by group_id; 2.Вывести id из таблицы groups, имеющих учителей с id = 4 select id from groups where teacher_id = 4; 3.вывести 5 студентов, начиная с 10-го select * from students limit 9, 5; 4.Вывести сгрупированный по id список учителей с именем...
true
938b78c2e8a3314870db946c36e54996012dfbc3
SQL
octaviocarpes/TF-LaboratorioBancoDeDados
/modelo_bd/consultas/CadeirasDisponiveis_Aluno.sql
UTF-8
488
3.953125
4
[]
no_license
SELECT cs.nome as curso, d.nome as disciplina, cd.nivel FROM DISCIPLINA d INNER JOIN CURSO_DISCIPLINA cd ON cd.DISCIPLINA_ID = d.id INNER JOIN CURSO cs ON cd.curso_id = cs.id INNER JOIN ALUNO a ON cs.id = a.curso_id WHERE UPPER(a.nome) like 'NAME%' AND d.id NOT IN ( SELECT d.id FROM Disciplina d INNER JOIN Aval...
true
fc9cc02a4d1d5342f7a61399fe311e07bdcd186f
SQL
0000duck/noteSql
/SqlServer/SqlServer基础/8/32/SQLQuery.sql
ISO-8859-7
98
2.640625
3
[]
no_license
USE db_2012 SELECT Age,count(Age) FROM Employee GROUP BY Age HAVING count(Age) >= 2
true
2722fa36a1362173db32ca409b26940dfc7750bf
SQL
yardfarmer/expressMgmt
/as/proj/DataBase/doc/Oracle+PLSQl/Chp03/ROWTYPEDemo.sql
GB18030
1,853
3.390625
3
[]
no_license
DECLARE v_emp emp%ROWTYPE; --emp BEGIN SELECT * --ѯempд뵽v_emp¼ INTO v_emp FROM emp WHERE empno = &empno; --Ϣ DBMS_OUTPUT.put_line (v_emp.empno || CHR (13) || CHR (10) || v_emp.ename); END; DESC emp; DECLARE ...
true
248dc0d356b7cec3134eafd35e224f36f707bd42
SQL
bilgrami/pakguru
/project/pakguru_project/reference_data_app/shell_scripts/drop_all_tables.sql
UTF-8
307
2.59375
3
[]
no_license
-- psql -U postgres /* SELECT concat('DROP TABLE ',table_name, ' CASCADE;') FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME LIKE 'reference_data_%'; */ /* DROP TABLE reference_data_source_type CASCADE; DROP TABLE reference_data_show_info CASCADE; DROP TABLE reference_data_show_episode_info CASCADE; */
true
84dd1d1d89d96e1215e2cf5e8aeca30ec3b541fa
SQL
wifido/spms-code
/code/database/V1.7/3_PROCEDURE_SPMS_TO_CDP_BY_DISPATCH.sql
GB18030
16,217
3.8125
4
[]
no_license
CREATE OR REPLACE PROCEDURE SPMS_TO_CDP_EMP_COUNT IS --************************************************************* -- AUTHOR : JHC -- CREATED : 2015-03-05 -- PURPOSE : ͳδһߡְֹŰ -- -- PARAMETER: -- NAME TYPE DESC -- -- MODIFY HISTORY -- PERSON DAT...
true
5803a64196f62b487e5c641b1a333210ea5c0109
SQL
mccartykim/software_eng_ii_final
/webapp/db_init/schema.sql
UTF-8
1,118
2.625
3
[]
no_license
drop table if exists accounts; create table accounts ( 'user' text not null unique, isAdministrator integer not null, email not null, home_address not null, phone_number not null, social_security not null, passwd text not null, salt text not null, totp_toke...
true
c407b8f81adb7c7ad145ae8fb9b8c0581f52bceb
SQL
lrfelizar/login
/sql/login.sql
UTF-8
2,513
3.234375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versión del servidor: 10.4.14-MariaDB - mariadb.org binary distribution -- SO del servidor: Win64 -- HeidiSQL Versión: 11.0.0.5919 -- -----------------------------------------------...
true
72405e60859f0ed6d7b29c28fb6ae564173976d3
SQL
Banyc/MiniSQL
/src/MiniSQL.Interpreter/Grammar/tests/test-1w.sql
UTF-8
970,614
2.921875
3
[]
no_license
create table person ( height float unique, pid int, name char(32), identity char(128) unique, age int unique, primary key(pid) ); insert into person values (13000.0, 0, "David", "0b742bd6-d73d-456d-88b8-c595a63fb12d", 0); insert into person values (13001.0, 1, "Jerry", "ef12d7ad-e7fe-4484-b045-3fe488275724", 1); ...
true
ad47d0c3cb73aac2063aa268f3d504753cf300b5
SQL
xsTao/costprice
/script/dbcreate/DB2/00001/tb_mabasedoc.sql
GB18030
14,944
3.109375
3
[]
no_license
/* tablename: ϼ۸ */ create table mapub_materialpricebase (cmaterialpriceid char(20) not null /*ϼ۸*/, pk_group varchar(20) null default '~' /**/, pk_org varchar(20) null default '~' /*ҵԪ*/, pk_org_v varchar(20) null default '~' /*ҵԪ汾*/, vpricecode varchar(200) null /*۸*/, vpricename varchar(50) null /*۸*/, ccrrenc...
true
c78a5d6258ad8de7edcd7767e5f88fe764ed594e
SQL
agabru/sportsm8
/DB-dump/sportsm8.sql
UTF-8
24,982
3.328125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 03, 2019 at 05:04 PM -- Server version: 10.3.15-MariaDB -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
4fd74237ba6e9974341d0aafa0a35644ab461e4d
SQL
Xine75/IntroSQL
/SQLQuery5.sql
UTF-8
1,804
4.625
5
[]
no_license
 --10. Write a SELECT query that provides the song titles, album title, and artist name for all of the data you just entered in. Use the LEFT JOIN keyword sequence to connect the tables, and the WHERE keyword to filter the results to the album and artist you added. SELECT s.Title as SongTitle, al.Title as AlbumTitle,...
true
e98ad3081c3e3706fc36a3720ebd5d7c28a5a316
SQL
ogobrecht/sample-data-sets-for-oracle
/dvd_rental_store/triggers/drs_city_biu.sql
UTF-8
169
2.53125
3
[ "BSD-3-Clause", "MIT" ]
permissive
prompt - trigger drs_city_biu create or replace trigger drs_city_biu before insert or update on drs_city for each row begin :new.last_update := current_date; end; /
true
df2182fdd5559eed5179820aa687b07f6339b9a3
SQL
loganwolf619/Snakes-and-Ladder-Database-Coding
/Snakes and Ladder/Procedure 21. Order Game in terms of list of Players.sql
UTF-8
576
3.484375
3
[ "MIT" ]
permissive
USE SnakesAndLadder; drop procedure if exists OrderListOfGames; DELIMITER // SET autocommit = 0; CREATE PROCEDURE OrderListOfGames() BEGIN -- DECLARE exit handler for sqlexception -- BEGIN -- ROLLBACK; -- -- -- SHOW ERRORS LIMIT 1 ; -- CALL DIAGNOSTIC('OrderListOfGames'); -- END; -- ...
true
a2b52abcb111d20ef46b13478820512b68cc6d77
SQL
xxxxeec/owener
/stdrd_scpt/DIM_STFF-职工-萧山中医院.sql
UTF-8
2,076
2.9375
3
[]
no_license
/* *version :2.01 *script name :DIM_STFF(职工信息) *creaet date :2021-06-18 *author name :linchen *update date :2021-06-29 *update name :linchen */ SELECT t1.ygdm AS stff_cd, --职工代码 t1.ygxm AS stff_nm, --职工姓名 t1.csny AS bth_dt, --出生日期 t1.ygzw AS stff_cgy_cd, --职工类别代码 (SELECT ...
true
6e1b36223335bf783dd94a1c466cbd2dd343d181
SQL
AnX24/ppagocem
/BD/BD.sql
UTF-8
4,192
3.28125
3
[]
no_license
CREATE TABLE ADMIN ( IDADMIN INTEGER UNSIGNED NOT NULL AUTO_INCREMENT, IDPERSONA INTEGER UNSIGNED NOT NULL, IDUSUARIO VARCHAR(25) NOT NULL, CORREOADMIN VARCHAR(55) NULL, PRIMARY KEY(IDADMIN), INDEX ADMIN_FKIndex1(IDUSUARIO), INDEX ADMIN_FKIndex2(IDPERSONA) ); CREATE TABLE BANCO ( IDBANCO INT...
true
f8756ff8fe52364fecd2811e5468fae85bba4abe
SQL
kumcs/advanced-purchasing
/purchauths/database/tables/purchauthsrelease.sql
UTF-8
1,037
3.046875
3
[]
no_license
SELECT xt.create_table('purchauthsrelease', 'purchauths', false); SELECT xt.add_column('purchauthsrelease', 'purchauthsrel_id', 'serial', 'NOT NULL', 'purchauths', null); SELECT xt.add_column('purchauthsrelease', 'purchauthsrel_pohead_id', 'integer', 'NOT NULL', 'purchauths', null); SELECT xt.add_column('purchauth...
true
aa5983f2e8a5e4204c86fbab44f759592a552153
SQL
tomschall/casfee2020-react-spa-ts
/hasura/migrations/1603827342985_casfee2020-react-spa-ts/up.sql
UTF-8
8,970
3.765625
4
[]
no_license
CREATE TABLE public.channel ( id integer NOT NULL, name text NOT NULL, owner_id text, is_private boolean DEFAULT false NOT NULL, channel_type text NOT NULL ); CREATE SEQUENCE public.channel_id_seq AS integer START WITH 1 INCREMENT BY 1 NO MINVALUE NO MAXVALUE CACHE 1; ALTER S...
true
2bbaa1d56256c652132a1a9c1648db8d8c458afc
SQL
ReportsAdmin/MissLKSA
/models/Missl_KSA/Views/fGAAge.sql
UTF-8
219
3.0625
3
[]
no_license
select * from (select * except(row_number) from( select *,row_number() over ( partition by StartDate, D_ga_userAgeBracket order by _daton_batch_runtime desc) row_number from {{var('ga_age')}} ) where row_number=1)
true
3f4a24b009381ef7a18de1ec9294f53068a56f89
SQL
lutece-secteur-public/espacepublic-plugin-dansmarue
/src/sql/plugins/signalement/upgrade/update_db_signalement-6.0.18-6.1.0.sql
UTF-8
2,382
3.46875
3
[]
no_license
-- Tâche notification push DROP TABLE IF EXISTS signalement_workflow_notification_push_config; CREATE TABLE signalement_workflow_notification_push_config( id_task integer NOT NULL, mobile_subject varchar(255), mobile_message text, is_diffusion_declarant int4 NULL, is_diffusion_suiveur int4 NULL, CONSTRAINT signal...
true
bac1338fcae04a1eac51d960e8ac65aadc00b703
SQL
eberhje/OXAR
/apex/create_workspace.sql
UTF-8
898
3.109375
3
[ "MIT" ]
permissive
-- Should be run as SYS -- Example: sqlplus sys/oracle@localhost:1521/xe as sysdba @create_workspace martin my_schema -- -- Create APEX Workspace -- -- Takes in 2 parameters: -- 1: Workspace Name -- 2: Workspace Schema whenever sqlerror exit sql.sqlcode -- Parameters define workspace_name = '&1' define workspace_sch...
true
d953d542a14414c42f1ec9ef5b20d48b761220d8
SQL
tangjian1891/example
/koa-server/summer.sql
UTF-8
8,452
3.171875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 腾讯云的sql Source Server Type : MySQL Source Server Version : 80018 Source Host : 106.54.139.232:3306 Source Schema : summer Target Server Type : MySQL Target Server Version : 80018 File Encoding : 65001 Date: 15/03/2020 ...
true
c9b294389b8f31c3b0ad26fd0e2304282b9ba546
SQL
ireapps/census
/tools/sql/ire_export/ire_PCT19H.sql
UTF-8
1,073
2.890625
3
[ "MIT" ]
permissive
-- PCT19H. NONRELATIVES BY HOUSEHOLD TYPE (HISPANIC OR LATINO) -- designed to work with the IRE Census bulk data exports -- see http://census.ire.org/data/bulkdata.html CREATE TABLE ire_pct19h ( geoid VARCHAR(11) NOT NULL, sumlev VARCHAR(3) NOT NULL, state VARCHAR(2) NOT NULL, county VARCHAR(3), cbsa VARCHAR(5...
true
54b2ccfa4106281bc4cec0db19bbaeedeab6116f
SQL
alfhello/acFantaZ-2018-19-playoff
/platforms/browser/www/res/dbRoutine/2019-04-04/sp_GetUTHeadInfo_2018_s2.sql
UTF-8
2,384
3.234375
3
[ "Apache-2.0" ]
permissive
CREATE DEFINER=`ascdphk1_admin`@`218.253.202.194` PROCEDURE `sp_GetUTHeadInfo_2018_s2`(in inTeamKey varchar(50), in inGrpKey varchar(50)) BEGIN call sp_GetOpenDate_DTS(@IN_gmDate); set @IN_gmDate = date_add(@IN_gmDate, interval -1 day); select b.ascFanta_Group, b.ascFanta_GroupKey, a.ascFanta_TeamName, a.ascFanta_Tea...
true
891b698f570c69c7c598eefd518284047d6434fb
SQL
zackyburhani/uas_fm
/Database/1512502707_UAS_SI.sql
UTF-8
51,568
2.671875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 22, 2018 at 10:03 AM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
deeeb283dd616ea16b4f8c78de695e51b5c4af0e
SQL
mohammedLemzaouda/DBA-CSV2TAB
/DBA CSV TO SQL_DB/DROP_ALL_TABLES.sql
UTF-8
500
2.984375
3
[]
no_license
-- pour supprimier toutes les tables crée CREATE OR REPLACE PROCEDURE drop_All_tables AS nomber_of_table_created number:=1; query VARCHAR2(2000) :=''; BEGIN nomber_of_table_created:=nbr_columns; for i in 1 .. nomber_of_table_created + 1 loop query := 'drop table DR_CSVFILE_COL'||i; EXECUTE IMMEDIATE que...
true
97aa8b0badd2c8502eef229b2e923ba6ba62cf42
SQL
umuthan/movie-database
/import/tables.sql
UTF-8
2,069
3.09375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.18, for osx10.15 (x86_64) -- -- Host: localhost Database: moviedatabase -- ------------------------------------------------------ -- Server version 8.0.18 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true