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
29c0d4a8d30dfea79a136d8a7d020fee6eb30386
SQL
shizezhu/security
/security/sql/security-table.sql
UTF-8
4,851
3.546875
4
[]
no_license
/* SQLyog Ultimate v11.25 (64 bit) MySQL - 5.5.41 : Database - security ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECK...
true
8d03c3ae7d685b40dfe24944c6fb6dd321f159f3
SQL
jdmiragliotta/SamuelLJacksonMySQL
/movies.sql
UTF-8
2,948
3.203125
3
[]
no_license
nbp-51-125:homework Jeremy$ cd SamuelLJacksonMySQL/ nbp-51-125:SamuelLJacksonMySQL Jeremy$ mysql Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 2 Server version: 5.6.27 MySQL Community Server (GPL) Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. Orac...
true
00e50c92f60c86fcc7310012acda0ce064497176
SQL
mnallas/employee_management_system
/seed.sql
UTF-8
1,813
4.25
4
[]
no_license
DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; CREATE TABLE employee ( id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, role_id INT NOT NULL, manager_id INT, PRIMARY KEY (id) ); CREATE TABLE roles ( id INT NOT NU...
true
8f3088410fd47d37dc7ea99fee8ecc941c1ddebd
SQL
Dooor/scala-sample
/conf/evolutions/default/1.sql
UTF-8
338
3.265625
3
[ "Apache-2.0" ]
permissive
# Prefectures schema # --- !Ups CREATE TABLE IF NOT EXISTS prefectures ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, PRIMARY KEY (id), UNIQUE INDEX index_on_name (name) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_general_ci; # --- !Downs DROP TABLE IF E...
true
e9d09084f4dd8eee378cca8c087a168efc60a476
SQL
repeatfloat/webname
/mysql/t_addres.sql
UTF-8
1,235
2.6875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : my Source Server Version : 50714 Source Host : 127.0.0.1:3306 Source Database : mysql Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2018-06-28 20:19:37 */ SET FOREIGN_KEY_CHECKS=0; -- ----------...
true
b84dcfc545e103b57bc4dbe0257e651e03913ecb
SQL
snigdh23/DMQL_Projects_Project2
/q6.sql
UTF-8
499
3.75
4
[]
no_license
SELECT e1.emp_no AS e1, e2.emp_no AS e2 FROM (SELECT e.emp_no FROM employees e join dept_emp demp ON e.emp_no = demp.emp_no WHERE e.birth_date LIKE "1955%" AND demp.dept_no = "d001" AND demp.to_date > '2020-04-15' ORDER BY e.emp_no) e2 join (SELECT e.emp_no FROM employees e join dept_emp demp ON e.emp_no = demp.em...
true
536000738df6b67500cef74c4a81e4684ae7ad37
SQL
VladSmr/Simple-Project
/src/main/resources/schema.sql
UTF-8
384
3.1875
3
[]
no_license
CREATE TABLE IF NOT EXISTS Product ( id INTEGER COMMENT 'Уникальный идентификатор' PRIMARY KEY AUTO_INCREMENT, name VARCHAR(15) NOT NULL COMMENT 'Название', description VARCHAR(255) NOT NULL COMMENT 'Описание', price INTEGER NOT NULL COMMENT 'Цена', ); CREATE INDEX UX_produc...
true
f3c924807ed2a15f38e764fc2bb6a7ab044a396a
SQL
junghyun4425/myleetcode
/sql/Combine_Two_Tables.sql
UTF-8
974
4.3125
4
[]
no_license
-- Problem Link: https://leetcode.com/problems/combine-two-tables/ /* 문제 요약: FirstName, LastName, City, State 정보가 출력되는 SQL 작성. ask: Person Table +-------------+---------+ | Column Name | Type | +-------------+---------+ | PersonId | int | | FirstName | varchar | | LastName | varchar | +-------------+---...
true
d982f2587f756c4032944f9259fed08ec25d82ea
SQL
BGCX067/ezcommunity2-svn-to-git
/contribution/versions/ezpublish2/branches/eZPublish_2_0_pre_2-trade_custom/projects/php/ezstats/sql/ezstats.sql
UTF-8
1,651
2.9375
3
[]
no_license
# # Table structure for table 'eZStats_BrowserType' # DROP TABLE IF EXISTS eZStats_BrowserType; CREATE TABLE eZStats_BrowserType ( ID int(11) DEFAULT '0' NOT NULL auto_increment, BrowserType char(250) DEFAULT '' NOT NULL, PRIMARY KEY (ID) ); # # Dumping data for table 'eZStats_BrowserType' # # # Table structu...
true
eec926e944473a522a8316a2c653aee638a4fcf6
SQL
sems441/Netology_Homework_SQL_L4
/SELECT_SQL_L4.sql
UTF-8
394
3.25
3
[]
no_license
SELECT name, year_of_release FROM album WHERE year_of_release = 2018; SELECT title, song_duration FROM track ORDER BY song_duration DESC LIMIT 1; SELECT title FROM track WHERE song_duration > '00:03:50'; SELECT name FROM collection WHERE year_of_release BETWEEN 2018 AND 2020; SELECT name FROM singer WHERE ...
true
958372b8904c389292341881c91f434ee133758f
SQL
yangwii/CLCrawler
/dbsql/cl_db.sql
UTF-8
796
2.84375
3
[]
no_license
create database `cl_db`; use cl_db; drop table if exists `techdiscuss`; CREATE TABLE `techdiscuss` ( `id` int(10) unsigned NOT NULL PRIMARY KEY AUTO_INCREMENT, `title` varchar(1000) NOT NULL, `url` varchar(1000) NOT NULL, `hashCode` varchar(20) NOT NULL, `isFetched` tinyint(1) NOT NULL DEFAULT '...
true
e3770d1c7929669d5c1d670c972582b61c2af507
SQL
EmmaOKeeffe/MySQL
/Lab3Q2.sql
UTF-8
129
3.21875
3
[]
no_license
select o.orderDate, o.status, p.amount from orders o, payments p where o.customerNumber = p.customerNumber order by p.amount desc
true
f294d6c5ac3ec31cf599074984d9b02a30213be2
SQL
ed9711/SQL-A2
/q3.sql
UTF-8
1,653
3.953125
4
[]
no_license
-- Participate SET SEARCH_PATH TO parlgov; drop table if exists q3 cascade; -- You must not change this table definition. create table q3( countryName varchar(50), year int, participationRatio real ); -- You may find it convenient to do this for each of the views -- that define...
true
30df13302b7cc4594199a6f77738a2827203cc9c
SQL
Abhinav-V-Jithin/cs50w2019-project1
/create.sql
UTF-8
572
2.703125
3
[]
no_license
CREATE TABLE users( id SERIAL PRIMARY KEY, username VARCHAR NOT NULL, password VARCHAR NOT NULL ); CREATE TABLE books( id SERIAL PRIMARY KEY, isbn VARCHAR NOT NULL, title VARCHAR NOT NULL, author VARCHAR NOT NULL, year INTEGER NOT NULL ); CREATE TABLE rating( id SERIAL PRIMARY KEY, isb...
true
8f0f68c6480d1869833171566860feb77850665b
SQL
william-llima/testepraticodsin
/bd.sql
UTF-8
3,045
3.578125
4
[]
no_license
drop database salaodsin; create database if not exists salaodsin; use salaodsin; create table clientes( id int not null auto_increment, nome varchar(100) not null, email varchar(100) not null, telefone varchar(100) not null, cpf varchar(30) not null, senha varchar(100) not null, primary key(id) ); create table serv...
true
08c6b48d95fced9dcb811d50bd2acbcd1b7a0192
SQL
JuliaTao/sql_practice
/sql_zoo/join/join11.sql
UTF-8
166
3.25
3
[]
no_license
SELECT matchid ,mdate ,COUNT(player) AS goals FROM game JOIN goal ON matchid = id WHERE (team1 = 'POL' OR team2 = 'POL') GROUP BY matchid ,mdate;
true
5a09463b35755005c45a12e8b7b9cabeeed07922
SQL
tiszczesz/szkolaZdalne
/zadania/php/zad2/sql/drop view view_zam;.sql
UTF-8
186
2.734375
3
[]
no_license
drop view view_zam; create view view_zam as SELECT tab1.nazwa,tab1.cena,`zamówienia`.`ilosc`,`zamówienia`.`id` FROM tab1 INNER JOIN `zamówienia` on tab1.id = `zamówienia`.`towarId`;
true
0d0d27cf755c6093c82cb5e35bf080cad9bc2b3c
SQL
stefanuskj/edo-ecommerce
/proyek.sql
UTF-8
6,851
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 25, 2015 at 06:23 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
e31cf61d8c224681db907daebfbab2bdb82eb22a
SQL
liwen666/lw_code
/tempcode/src/main/java/commons/execscript/sql/bgt/common/common_191_.sql
GB18030
1,362
3.0625
3
[]
no_license
declare --BGT_T_BUSINESSCHECKDEF FLOWDIRECTION AGENCYIDPASS ֶ v_n1 number(8):=0; v_n2 number(8):=0; begin --ҵ˶ֶ --FLOWTYPE ϱ,·, select count(0) into v_n1 from user_tab_columns tab where tab.TABLE_NAME='P#BGT_T_BUSINESSCHECKDEF' and tab.COLUMN_NAME='FLOWDIRECTION'; if v_n1=0 then execute immediate 'ALTER TAB...
true
78dd376e7138aafeac398c8f41610d3403cefb37
SQL
nurosmanbegovic/ITFreak
/sprint 3/7 PROCEDURE.sql
UTF-8
1,318
3.53125
4
[]
no_license
CREATE OR REPLACE PROCEDURE brisi (da date) IS cursor fakt is select id_fakture from faktura where da>datum for update; red fakt%rowtype; BEGIN open fakt; loop fetch fakt into red; exit when fakt%notfound; for stavka in (select id_stavke from stavka_fakture where id_fakture=red.id_fa...
true
7259add6835866e22cb0c843fc2a52e866ca3c7a
SQL
CaptainLian/Project-Revolution
/app/queries/getStudentsOfOrganization.sql
UTF-8
220
3.109375
3
[]
no_license
SELECT A.IDNUMBER, A.FIRSTNAME, A.LASTNAME FROM ACCOUNT A JOIN ORGANIZATIONOFFICER OO ON A.IDNUMBER=OO.IDNUMBER JOIN ORGANIZATIONROLE ORL ON ORL.ID=OO.ROLE WHERE ORL.ORGANIZATION=${organization};
true
e0b6f4a106408716bb9211ff0eede813c358535b
SQL
cudothanh-Nhan/BTL2_DB_HK202
/E-BookStore/E-BookStore/Script/main.sql
UTF-8
5,711
3.46875
3
[]
no_license
create database db; use db; create table CUSTOMERS ( Firstname varchar(20) NOT NULL, Last_name varchar(20) NOT NULL, Customer_ID int NOT NULL, Cus_Username varchar(16) NOT NULL, Email varchar(25), Street varchar(25) NOT NULL, City varchar(25) NOT NULL, Telephone_number char(10) NOT NULL...
true
a60f890d19b877107cae4dca535561e3aded5106
SQL
cristianmello/IfSantana
/Base de Datos II/exercicios-1/41.sql
UTF-8
177
3.03125
3
[]
no_license
SELECT * FROM country INNER JOIN countrylanguage ON countrylanguage.CountryCode = country.Code WHERE countrylanguage.Language = 'Spanish' AND countrylanguage.IsOfficial = 'T';
true
f16a9fc0c334c8fccd207c420f92cdcae613b055
SQL
shacyc/BanGiaoNCSw
/GiaoDuc/Database/Scripts/Report/BM_TKNHAPHANHKIEMHK1_THPT.sql
UTF-8
9,147
3.625
4
[]
no_license
SELECT es.schoolid,es.schoolname, md.districtname ,NVL(TONGSOLOPKHOI10.slschoolclass,0) TSLOPKHOI10 ,NVL(tongsolopdanhapk10.slschoolclass,0)TSlopdanhapk10 ,NVL(round((tongsolopdanhapk10.slschoolclass)*100/(TONGSOLOPKHOI10.slschoolclass),2),0) TLK10 ,NVL(TONGSOLOPKHOI11.slschoolclass,0) TSLOPKHOI11 ,NVL(...
true
1c82b1d79ebb2cd035466350a5e0bcbd5fd0ff48
SQL
ketkideshpande/Event-managment-sql
/DEMO_SCRIPT.sql
UTF-8
7,815
3.015625
3
[]
no_license
--ADD A HOTEL IN FAIRBANKS,ALASKA EXEC ADD_A_NEW_HOTEL('H0 ','1238145312','MOOSE CREEK','FAIRBANKS','AK','99705'); --FIND HOTEL ID EXEC FIND_HOTEL_ID('MOOSE CREEK','FAIRBANKS','AK','99705'); --ADD 2 SMALL,MEDIUM AND LARGE ROOMS TO THE ABOVE HOTEL EXEC ADD_EVENT_ROOM(10000,'SMALL HALL'); EXEC ADD_EVENT_ROOM(10000,...
true
af8325a9f38a1412259ae8ad92073046a0776ba6
SQL
lingco520/spring-boot-security
/menu_demo.sql
UTF-8
4,727
3.28125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50714 Source Host : localhost:3306 Source Database : menu_demo Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2017-05-24 16:12:35 */ SET FOREIGN_KEY_CHECKS=0; -- ------...
true
0a54dc481295ce7cabc1bac2b2d4376d286ab0b2
SQL
schonherz-java-ee-2016-q4/education
/08_SQL/example/01InsertIntoEmployee.sql
UTF-8
717
3.203125
3
[]
no_license
-- Insert kacsa into Employee table (id will be the genareted by definition of sequence) INSERT INTO public."Employee"( name, age, jobtitle) VALUES ('Kacsa', 5, 'supervisor'); -- insert Pityu int Employee table (age will be default: 18) INSERT INTO public."Employee"( id, name, jobtitle) ...
true
18c1b3b1f37e12f0cc66f2391e3253264dd4872d
SQL
ICTatRTI/coconut
/forena/sql/alertajoven/ProgramsOverview.sql
UTF-8
3,519
3.5
4
[ "Apache-2.0" ]
permissive
-- ACCESS=access content SELECT SUM(case when sub.Sexo = 'M' then 1 else 0 end) as 'Male', SUM(case when sub.Sexo = 'F' then 1 else 0 end) as 'Female', SUM(case when sub.Sexo = 'M' then 0 when sub.Sexo = 'F' then 0 else 1 end) as 'UnknownGender', SUM(case when sub.Sexo = 'M' then 1 else 0 end) + SUM(case when sub.Sex...
true
d9e21aaef24a334c8405f0af72f9130a90d04cb3
SQL
apurvarake/EmployeeManagerApp
/src/main/resources/sql/employee.sql
UTF-8
300
2.546875
3
[]
no_license
CREATE TABLE ADMIN.EMPLOYEE( ID NUMBER(19,0) NOT NULL ENABLE, FIRST_NAME VARCHAR(50) NOT NULL, LAST_NAME VARCHAR(50) NOT NULL, ADDRESS VARCHAR(500) NOT NULL, DOB DATE NOT NULL, MOBILE VARCHAR(10) NOT NULL UNIQUE, CITY VARCHAR(50) NOT NULL, PRIMARY KEY (ID) );
true
464d4b2bd661d809b642cb3e8edb14f600cb9e0f
SQL
artulloss/te-c-base
/module-2/01_Introduction_to_Databases/lecture-final/lecture-queries.sql
UTF-8
2,220
4.4375
4
[]
no_license
-- SELECT ... FROM --SELECT list of columns --FROM name of table --WHERE some way to filter the rows -- Selecting the names for all countries SELECT name FROM country; -- Selecting the name and population of all countries SELECT name, population FROM country; -- Selecting all columns from the city table SELECT * ...
true
2b6ec5634eb5516b9e601155ac19682b1fcff675
SQL
NikitoG/TelerikAcademyHomeworks
/Database/DatabaseModelling/03.MySQLUnivesity/univesity20151007.sql
UTF-8
12,127
3.359375
3
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `univesity` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `univesity`; -- MySQL dump 10.13 Distrib 5.6.24, for Win64 (x86_64) -- -- Host: localhost Database: univesity -- ------------------------------------------------------ -- Server version 5.6.27-log /*!40101 SET @OLD_CHARACTER_SET...
true
2e1973d2e2ca757ed0fe2f24dbf544aac3e2e296
SQL
fkfkfk9/HYUNDAI
/2017/oracle/10_30/cursor_명시적.sql
UTF-8
1,996
3.96875
4
[]
no_license
---------------------------------- 명시적 커서 ----------------------------------- DECLARE --vi_dep_code department.dep_code%TYPE := 10100; vs_st_name classes.st_name%TYPE; --1단계 커서선언 --커서 선언 매개변수는 필요하면 쓰고 없다면 안써도 된다. CURSOR cor_dep_st(cp_dep_code classes.dep_code%type) IS--절대로 셀렉트문만 사용가능 하다. SELECT st_name ...
true
d6d572d7ef393a3a21119a7e45b97aa97108173c
SQL
SudharsanLoganathan/Restaurant-assessment
/PROCEDURES/PR_PAY_BILL.sql
UTF-8
808
3.6875
4
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS `PR_PAY_BILL`$$ CREATE PROCEDURE `PR_PAY_BILL`(IN ORDER_NO INT,IN SEAT_ID VARCHAR(20)) BEGIN DECLARE STATUS VARCHAR(20); SET STATUS=(SELECT ORDER_STATUS FROM order_details WHERE ORDER_ID=ORDER_NO); IF (STATUS='Orde...
true
b441169cc4949e05bcbe3e164765c319c13d96b0
SQL
jmcgrath207/FeatureRequestJavaSpring4Mvc
/provisioning/mysqlconfig/Old3_mysql_config.sql
UTF-8
22,846
3.921875
4
[]
no_license
### Edit Root account for access from any IP address ### #RENAME USER 'root'@'localhost' TO 'root'@'%'; ## GRANT ALTER ROUTINE, CREATE ROUTINE, EXECUTE, REFERENCES ON *.* TO 'root'@'%'; ## Create Tables ##### CREATE DATABASE web; CREATE TABLE web.Role ( RoleId INT UNSIGNED NOT NULL, Role VARCHAR(255) NOT NU...
true
2024a9d2019f1b73548f447382ef2f7759f07b64
SQL
freegroup/Open-jACOB
/apps/jacob.caretaker/schema/AT-Jobs/ttsuser/startimsys.sql
ISO-8859-3
8,671
3.484375
3
[]
no_license
/* ********************************************************** * TTSUSER_ADMIN.... create and destroy! *--------------------------------------------------------- * * Nach 'loginnamen' in Tabelle 'employee' suchen und * Datenbankuser erstellen bzw. loeschen. * * 2001, gregor.zurowski@lunetta.de * im Aut...
true
5462047a3b5fb5830276747e210ce9ae0f9ed305
SQL
benas1986/Buy-an-elephant
/db/order_elephant.sql
UTF-8
13,129
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 17, 2017 at 06:08 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
0be59d88d049a2c6b7a3f70120ce67e58980f4c0
SQL
radtek/Oracle-4
/SQL/Administração/!Script Leandro/Tamanho_objeto.sql
UTF-8
913
3.21875
3
[]
no_license
Prompt ############################################################# Prompt # # Prompt # Lista o tamanho do objeto # Prompt # # Prompt #####################################...
true
c829d3e7636f560022c6a8f2a31a7d4b0aa73fa7
SQL
abdelamzal/mediatheque_BDD
/ProjetBDD_SQL/objet_film.sql
UTF-8
782
3.59375
4
[]
no_license
CREATE TABLE `media`.`objet_film` ( `idobjet_film` INT(11) NOT NULL AUTO_INCREMENT, `fk_idobjet` INT(11) NOT NULL, `fk_idfilm` INT(11) NOT NULL, PRIMARY KEY (`idobjet_film`), UNIQUE INDEX `UNIQUE` (`fk_idobjet` ASC, `fk_idfilm` ASC), INDEX `fk_idfilm_idx` (`fk_idfilm` ASC), INDEX `fk_idobjet_contenu_film_...
true
0579d290818cd3f1c212f3abf85929ea3039ab84
SQL
CarlaCarvaLima/Aulas-Generation
/Back-end/Exercicios MySQL 27_10/Exercicio02.sql
UTF-8
2,835
3.734375
4
[]
no_license
-- criar banco de dados create database db_ecommerce; use db_ecommerce; -- criar tabela de categoria create table tb_categoria( categoria_id bigint auto_increment, categoria varchar(25) not null, primary key(categoria_id) ); -- criar tabela de produtos create table tb_produto( produto_id bigint auto_increment, ...
true
bf5e3045839e9ac4b59af9826818915ddbc73085
SQL
salmenz/holbertonschool-machine_learning
/pipeline/0x02-databases/10-count_shows_by_genre.sql
UTF-8
319
4
4
[]
no_license
-- lists all genres from hbtn_0d_tvshows and displays the number of shows linked to each SELECT tv_genres.name AS genre, COUNT(tv_show_genres.genre_id) AS number_of_shows FROM tv_show_genres JOIN tv_genres ON tv_show_genres.genre_id = tv_genres.id GROUP by tv_genres.name ORDER BY number_of_shows DESC;
true
b19214ad7779223458be57bd79725a0da382e67c
SQL
xunge/Kendo-UI-read-delete-create-update
/sql.sql
UTF-8
847
2.90625
3
[]
no_license
CREATE SCHEMA `emp` ; -- -- Table structure for table `kendo` -- DROP TABLE IF EXISTS `kendo`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `kendo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, `age` int(11) D...
true
e059e4c96dc323c551a9f2ccdbe51179091958d6
SQL
sya224/Today-I-Learned
/sub4-master/spring/src/main/resources/sql/20200129 test query.sql
UTF-8
6,990
3.625
4
[]
no_license
# 테스트 계정 생성 insert into mem_info(mem_id, mem_pw, mem_email, mem_nick, mem_reg_date) values ('admin', 'admin', 'admin@admin.com', 'admin', now()), ('test', 'test', 'test@test.com', 'test', now()), ('ssafy','ssafy','ssafy@ssafy.com','ssafy',now()), ('aaa','aaa','aaa@aaa.com','aaa',now()); select * from mem_info; # 계...
true
7fd2d5d95d5f813516b6d287b5f82e2d65e0364e
SQL
NadiaTahiri/INF3180_Laboratoire_E2015
/Lab/Lab1_enonce/Creation-VentesPleinDeFoin.sql
UTF-8
1,792
3.078125
3
[]
no_license
spool /home/votre_code_MS/INF3180/Creation-VentesPleinDeFoin-resultat.txt set echo on CREATE TABLE Client (noClient INTEGER NOT NULL, nomClient VARCHAR(20) NOT NULL, noTelephone VARCHAR(15) NOT NULL, Constraint pk_noClient PRIMARY KEY (noClient) ) / CREATE TABLE Article (noArticle INTEGER NOT NULL, des...
true
e82aa4252bd22f00d030fd3fb2f16d60278b92da
SQL
Sonic-Design/photo-carousel
/database/postgres/schema_testing.sql
UTF-8
652
3.484375
3
[]
no_license
DROP TABLE IF EXISTS test_table_1; DROP TABLE IF EXISTS tt1; DROP TABLE IF EXISTS tt2; CREATE TABLE tt1 ( id serial PRIMARY KEY, string_col varchar(50), number_col int, boollike_col boolean ); INSERT INTO tt1 ( string_col, number_col, boollike_col ) VALUES ( 'a big hole in the ground', 5, FALSE ),...
true
d8d3f3042386f17d64683467c0f7c408d14034cc
SQL
Fanatic-off/rock-hard-crm
/CRM.DB/StoredProcedures/Lead/Lead_UpdateRole.sql
UTF-8
135
2.71875
3
[]
no_license
CREATE PROCEDURE dbo.Lead_UpdateRole @Id INT, @Role INT AS BEGIN UPDATE dbo.[Lead] SET Role = @Role WHERE Id = @Id END
true
befd40e25b159d7cdb2ebbfd5d090c60545b7e07
SQL
yingjin-us/code
/xCRS/xCRS.Data/dbo/Views/vw_PossibleHoursWorked_2004.sql
UTF-8
371
3.453125
3
[]
no_license
CREATE VIEW dbo.vw_PossibleHoursWorked_2004 AS SELECT TOP 100 PERCENT EMPL_ID, SUM(ACT_HRS) AS Sum_Act_Hrs FROM dbo.DELTEK_LAB_HS WHERE (FY_CD = '2003') AND (PD_NO > 7) OR (FY_CD = '2004') AND (PD_NO < 8) GROUP BY EMPL_ID HAVING (EMPL_ID IS NOT NULL) OR ...
true
1790f88eba58661d252e69f7558fcf17ad6224a5
SQL
lanitadmin/lanit
/Scripts/up5/2012-02-27_procedure_extension_id_for_cardelement_!!!!.sql
UTF-8
24,707
3.46875
3
[]
no_license
---прогоняется если не был прогнан скрипт от 2012-01-23 -!!!! SET TERM ^ ; create or alter procedure EXTENSIONIDFORCARDELEMENT as declare variable P_SQL varchar(255); declare variable TABLE_NAME varchar(255); declare variable CONSTR_NAME varchar(255); begin for SELECT I.RDB$INDEX_NAME as CONSTR_NAME, I.RDB$RELATIO...
true
be73baa3ee086280aa3070475821a9e27158ea25
SQL
Nikolamv95/SoftUni-Software-Engineering
/CSharp-DB/DatabaseBasics/4.BuiltInFunctions/Functions/MathFunctions.sql
WINDOWS-1252
886
3.90625
4
[]
no_license
--START --Like in C# if you subtract 2 integeres the result will be int. If we want to avoid that use: --(1.0 * (Table name WITH integers)) */ (Table name with integers) --You can use CAST() also SELECT ID, 1.0 * (A*H)/2.0 AS AREA FROM Triangles2 --END --START --ABS absolute value -> ABS(Value) --END --START --SQRT ...
true
173b126acaf36ce3dbe4ec968cf395348a6c9946
SQL
pengyangtuo/lcbo-master
/database/dev-setup.cql
UTF-8
461
3.109375
3
[]
no_license
DROP TABLE IF exists lcbo_master.users; DROP TABLE IF exists lcbo_master.usercredentials; DROP KEYSPACE IF exists lcbo_master; CREATE KEYSPACE lcbo_master WITH replication = {'class':'SimpleStrategy', 'replication_factor':'1'}; CREATE TABLE lcbo_master.users ( id uuid, firstname text, lastname text, email text, creat...
true
a35ab1ccda0c1cafa031cbe00852a9ece318ca94
SQL
codesoftware/77DATA_BASE
/comments/in_tpedi_com.sql
UTF-8
630
2.640625
3
[]
no_license
COMMENT ON TABLE in_tpedi IS 'Tabla encargada de almacenar los datos de los pedidos'; COMMENT ON COLUMN in_tpedi.pedi_pedi IS 'llave primaria de la tabla '; COMMENT ON COLUMN in_tpedi.pedi_sede IS 'llave foranea de la tabla em_tsede '; COMMENT ON COLUMN in_tpedi.pedi_usu IS 'llave foranea de la tabla us...
true
56ad9de5182040ee6632bc3762b8ca0371d81ee7
SQL
Esri/developer-support
/arcsde-sql/oracle/sql-diagnostics/trace-logon-trigger.sql
UTF-8
1,591
3.34375
3
[ "Apache-2.0" ]
permissive
/*********************************************************************** trace-logon-trigger.sql -- Oracle DBMS Trace ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Purpose: This script serves as a method for capturing the 10046 trace events that a user performs by starting a trace when t...
true
7bf979ff203df5838bb0dc61873478afb5bcdbbf
SQL
nicodemus-opon/sacco-plus
/sacco_plus.sql
UTF-8
11,407
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3307 -- Generation Time: Nov 28, 2018 at 01:23 PM -- Server version: 5.7.23 -- PHP Version: 7.1.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
296c7b39042114a23296e0e722b4fdd768b6d024
SQL
sandhawke/ldreg
/recreate.sql
UTF-8
1,519
3.71875
4
[]
no_license
-- -- USE WITH EXTREME CAUTION. WILL DELETE EVERYTHING IN THE DATABASE -- TABLES THAT WE USE. -- -- use like this: mysql ldreg < recreate.sql -- -- DROP TABLE IF EXISTS `scan`; CREATE TABLE `scan` ( `id` int(11) NOT NULL AUTO_INCREMENT, `source_id` int(11) NOT NULL, `time_begun` int(11) NOT NULL, `time...
true
ab9995d58e4b7ed444d886e96705e9722253374e
SQL
bellmit/mft-order
/order-web/src/main/resources/liquibase/init/init_mall_order.sql
UTF-8
7,911
3.28125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 101.132.165.187 Source Server Version : 50723 Source Host : 101.132.165.187:3306 Source Database : m_mall_user Target Server Type : MYSQL Target Server Version : 50723 File Encoding : 65001 Date: 2018-09-21 14:49:59 */ USE `m_mall_ord...
true
333cdbfca51aed7436f66be97864af68e608584a
SQL
MaskiMisu/LaravelFramework
/db/20170329/1.sql
UTF-8
8,807
3
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : LOCALHOST Source Server Version : 50714 Source Host : localhost:3306 Source Database : laravel_dev Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2017-03-29 18:38:38 */ SET FOREIGN_KEY_CHECKS=0; ...
true
28c10b8fe6608b56b96255f6de5e6ad0d0c00910
SQL
Charles1104/articles-products-and-express
/db/database.sql
UTF-8
1,355
3.125
3
[]
no_license
DROP table IF EXISTS articles CASCADE; CREATE TABLE IF NOT EXISTS articles ( title VARCHAR(200) UNIQUE NOT NULL PRIMARY KEY, body text UNIQUE NOT NULL, author VARCHAR(25) NOT NULL ); DROP table IF EXISTS products; CREATE TABLE IF NOT EXISTS products ( id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL, pr...
true
56138497c68533488d710738fdc919a6c3a1f0fe
SQL
lyudoGO/SoftUni
/DataBase/4-SQL-Introduction/Problem14_18_SQLQuery.sql
UTF-8
946
4.34375
4
[]
no_license
--Problem 14.Write a SQL query to find the names of all employees whose salary is 25000, 14000, 12500 or 23600. SELECT FirstName, LastName, Salary FROM Employees WHERE Salary IN (25000, 14000, 12500, 23600) --Problem 15.Write a SQL query to find all employees that do not have manager. SELECT FirstName, LastName FROM E...
true
6200ea21beb2e7f7ed372bfcfb213843e2164552
SQL
Mule52/wh_java
/src/main/resources/tests.sql
UTF-8
546
3.984375
4
[]
no_license
-- (1) Write MySQL query to find IPs that made more than a certain number of requests for a given time period. -- Ex: Write SQL to find IPs that made more than 100 requests starting from 2017-01-01.13:00:00 to 2017-01-01.14:00:00. select ip, count(*) as requests from http_logs where created_on between '201...
true
8930e8f5c6ad4f701d21e7ceb05374f0343dafc0
SQL
AmaanHUB/IntroSQL
/Day_3/WHEN-Arithmetic.sql
UTF-8
715
3.515625
4
[]
no_license
/* * WHEN-Arithmetic.sql * Copyright (C) 2020 Amaan Hashmi-Ubhi <AHashmi-Ubhi@spartaglobal.com> * * Distributed under terms of the MIT license. */ SELECT TOP 2 OrderID ,UnitPrice, Quantity, Discount, CONVERT(DECIMAL(10,2),(UnitPrice * Quantity) * (1 -Discount)) AS "Net-Total" FROM [Order Details] ORDER BY [Net-T...
true
746630d1fda12a65c5af986416216390c5ddb4e4
SQL
LudwigAngel/GYM
/gym.sql
UTF-8
15,115
3.4375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 15-01-2017 a las 13:50:05 -- Versión del servidor: 10.1.9-MariaDB -- Versión de PHP: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=...
true
8063a72d19e2785a422bd0b3fe9bdee376ea4966
SQL
venkatesankannan/Parking-Lot-Assistor
/wharf.sql
UTF-8
4,123
2.53125
3
[]
no_license
CREATE TABLE SFPark_nodes_FishermansWharf ( node_id INT, lat NUMERIC(8, 6), long NUMERIC(9, 6), node_name VARCHAR(32) CHARACTER SET utf8 ); INSERT INTO SFPark_nodes_FishermansWharf VALUES (7001,37.806249,-122.423884,'Beach and Polk'); INSERT INTO SFPark_nodes_FishermansWharf VALUES (7002,37.805304,-122....
true
0b98277d27c895db0f3b42108a974d640734c99b
SQL
lastbutnotlea/walinfo
/wahlparser/src/res/sql-statements/wahlkreis-mapping.sql
UTF-8
171
2.859375
3
[]
no_license
-- for testing only SELECT wk2.nummer FROM wahlkreise wk1, wahlkreise wk2 WHERE wk1.wahljahr = 2013 AND wk2.wahljahr <> 2013 AND wk1.nummer = 194 AND wk1.name = wk2.name;
true
eefdd98e6c025edb19fb0c96ee5afc51f91c7a5a
SQL
gkirgizov/coil
/4 semester/db/tasks/populateFigures.sql
UTF-8
472
2.6875
3
[]
no_license
DO $do$ DECLARE ftypes char(6)[] := array['king', 'queen', 'rook','rook', 'bishop','bishop', 'knight','knight', 'pawn','pawn','pawn','pawn','pawn','pawn','pawn','pawn']; fcolors char(6)[] := array['white', 'black']; fid integer; BEGIN FOR c in 1 .. 2 LOOP FOR f in 1 .. 16 LOOP fid := (c - 1) * 16 + f; I...
true
9f6fa8fd94ad5a4281a886d2e58f2d13fbca8418
SQL
geoteo/dt_k8s_license
/mysql/modify.sql
UTF-8
696
3.265625
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; CREATE TABLE `tbl_hostmemdata` ( `host_id` varchar(22) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL, `timestamp` bigint NOT NULL, `memory` float NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4_unicode_ci; CREATE T...
true
bfa9099c38d51f4dc3d721ca2a3165b6a9a4f199
SQL
VitorBatisti/banco-de-dados-SQL
/tabela.sql
UTF-8
4,417
3.3125
3
[]
no_license
create table filiais ( id integer primary key, cnpj varchar2(18) unique not null, proprietario varchar2(32) not null, email varchar2(50) not null, telefone varchar2(14) not null, estado varchar2(32) not null, ...
true
82d56b9755ede65ad36f2ff368ded3475baf2ff3
SQL
blackbeltandre/qibla_swarm
/server/db/migrations/20200910162133-create_table_transaction_histories.sql
UTF-8
349
2.625
3
[]
no_license
-- +migrate Up CREATE TABLE IF NOT EXISTS "transaction_histories" ( "id" char(36) PRIMARY KEY NOT NULL DEFAULT (uuid_generate_v4()), "trx_id" varchar(50), "status" varchar(30), "response" text, "created_at" timestamp, "updated_at" timestamp ); -- +migrate Down DROP TABLE IF EX...
true
9a422b5d475f98d8cdf51301576d8bd7f1c786ae
SQL
carlanlinux/DWES
/DWES04_DesarrolloWebApsEnPHP/DWES04_CONT_R03b_Crear_tabla_usuarios.sql
UTF-8
286
2.546875
3
[]
no_license
-- Seleccionamos la base de datos USE dwes; -- Creamos la tabla CREATE TABLE usuarios ( usuario VARCHAR(20) NOT NULL PRIMARY KEY, contrasena VARCHAR(32) NOT NULL ) ENGINE = INNODB; -- Creamos el usuario dwes INSERT INTO usuarios (usuario, contrasena) VALUES ('dwes', 'e8dc8ccd5e5f9e3a54f07350ce8a2d3d');
true
8e4bd26e800ab0896efb158e3e583f3234a1f86c
SQL
Zenrac/POP-Corn
/BDD/base_bdpopcorn.sql
UTF-8
4,195
3.5
4
[ "MIT" ]
permissive
CREATE TABLE `test` ( `test` varchar(32) NOT NULL, ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `album` ( `numAlbum` varchar(32) NOT NULL, `nomAlbum` varchar(150) DEFAULT NULL, `anneeAlbum` datetime DEFAULT NULL, `imageAlbum` varchar(255) DEFAULT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABL...
true
4716938d94d05b69966367a662932c376de918cc
SQL
rolandoquiroz/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/100-not_my_genres.sql
UTF-8
751
4.0625
4
[]
no_license
-- Script that uses the hbtn_0d_tvshows database to list all genres not linked to the show Dexter -- Import the database dump from hbtn_0d_tvshows to your MySQL server -- The tv_shows table contains only one record where title = Dexter (but the id can be different) -- Each record should display: tv_genres.name -- Re...
true
98f7121854a3dbbfbddf1527e3a1060f17602f30
SQL
lozinska/DBS301
/Assignment2.sql
UTF-8
1,257
3.625
4
[]
no_license
CREATE TABLE clientinfo( clientId NUMBER(6) PRIMARY KEY, firstName CHAR(30) NOT NULL, lastName CHAR(30) NOT NULL, phoneNumber NUMBER(10) NOT NULL, email CHAR(15) NOT NULL, typeOfClient CHAR(6) NOT NULL, ownershipId NUMBER(4), CONSTRAINT fk_ownershipid FOREIGN KEY (ownership_id) REFERENCES client_ownership(cli...
true
7aa1c235461102e884bb26821e6a3a840ef6d9fd
SQL
KotlinSpringBoot/demo_spring_mvc
/app.sql
UTF-8
280
2.84375
3
[ "Apache-2.0" ]
permissive
CREATE SCHEMA `reakt` DEFAULT CHARACTER SET utf8 ; show tables; SELECT * FROM user; SELECT * FROM role; SELECT * FROM user_roles; SELECT * FROM category; SELECT concat(a.username, '|' , a.password, '|', a.id) from user a; desc user; desc role; desc user_roles; desc category;
true
699d5d91cc39fa457bec0ebbc1a4ef4b2c706a44
SQL
Lecseruz/ServerForAndroidApp
/target/classes/schema.sql
UTF-8
819
3.671875
4
[]
no_license
DROP TABLE IF EXISTS users CASCADE; DROP TABLE IF EXISTS social_users CASCADE ; DROP TABLE if EXISTS tasks CASCADE; DROP EXTENSION IF EXISTS citext; CREATE EXTENSION IF NOT EXISTS citext; CREATE TABLE IF NOT EXISTS users ( id SERIAL PRIMARY KEY, email CITEXT UNIQUE, login CITEXT UNIQUE, password...
true
99c611f8b700794b4d6328cad8f7e269ac676d55
SQL
GameFanager/marble
/doc/database/marble-0.3.sql
UTF-8
14,006
3.03125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.26, for osx10.9 (x86_64) -- -- Host: localhost Database: marble -- ------------------------------------------------------ -- Server version 5.6.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
true
717cc35500ba702c46d23cee4af360e754dad660
SQL
johndimm/SurfingMint
/db/sp.sql
UTF-8
3,715
4.09375
4
[]
no_license
# # Define the period of time for all analysis. # It is called a "quarter" here, but current is set to month. # drop function if exists year_quarter; delimiter // create function year_quarter(theDate DATE) returns varchar(255) begin # Month return DATE_FORMAT(theDate, '%Y-%m'); # Year return year(theDate); ...
true
7c3df3eaae65c608df15eb254b299fdeb06d5161
SQL
amiruna91/StudyProject
/DataBase/03-SELECT문 단일행 함수.sql
UHC
11,411
4.3125
4
[]
no_license
-- Լ Լ ϱ -- ̵, ̸ ȸϱ(̸ 빮ڷ ǥ) select employee_id , upper(first_name) , lower(first_name) , length(first_name) , concat(first_name, last_name) , lpad(first_name, 10, '#') , rpad(first_name, 10, '@') , first_name|| ' ' ||last_name from employees; -- ڸ select substr('201231', 3, 2) from dua...
true
7e9b94efe9edca26ae6539b8612433b6ef1d9d6a
SQL
laila910/Login_System
/loginsystem.sql
UTF-8
1,580
2.984375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 14, 2021 at 12:54 AM -- Server version: 10.4.19-MariaDB -- PHP Version: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
6eb78687a36ecefef204a02c6e16ece33a22e56b
SQL
StrangerNing/webvisit
/webvisit-os/sql/webvisit.sql
UTF-8
70,496
3.359375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : google Source Server Type : MySQL Source Server Version : 50726 Source Host : www.znzn.me:3306 Source Schema : webvisit Target Server Type : MySQL Target Server Version : 50726 File Encoding : 65001 Date: 06/06/2019 21...
true
778708671e879dc8b841a05de3983001d943b763
SQL
arpitk1501/ak-spark
/src/main/resources/scripts/cc.cql
UTF-8
1,677
3.640625
4
[]
no_license
CREATE KEYSPACE cc_engine WITH replication = {'class': 'SimpleStrategy', 'replication_factor': 1}; use cc_engine; create table cc_engine.legal_entity ( le_id text, le_name text, le_type text, //CP/CR created_by text, created_ts timestamp, PRIMARY KEY ( le_id ) ); create table cc_en...
true
ce4498f6aaeee31c7a7a62a37919e362078f085b
SQL
labmain/MySnippets
/MySQL/权限管理.sql
UTF-8
1,432
3.59375
4
[]
no_license
说明: 对于数据库及内部其他权限: 数据库名.* 数据库中的所有 数据库名.表 指定数据库中的某张表 数据库名.存储过程 指定数据库中的存储过程 *.* 所有数据库 对于用户和IP的权限: 用户名@IP地址 用户只能在改IP下才能访问 用户名@192.168.1.% 用户只能在改IP段下才能访问(通配符%表示任意) 用户名@% 用户可以再任意IP下访问(默认IP地址为%) 权限问题 1. 查看权限 show grants for '用户'@'IP地...
true
7698d68f22c361bdda7e85fb7377fb7eb3ffbdfd
SQL
ozgedincer/PatikaDev
/SQL.sql
UTF-8
11,152
4.28125
4
[]
no_license
-- ÖDEV 1 --film tablosunda bulunan title ve description sütunlarındaki verileri sıralayınız. SELECT title, description FROM film ; --film tablosunda bulunan tüm sütunlardaki verileri film uzunluğu (length) 60 dan büyük VE 75 ten küçük olma koşullarıyla sıralayınız. SELECT * FROM film WHERE length > 60 AND length < 75...
true
306d86d726dcca3cc5626328557f34ff59db7959
SQL
ricky03knowhere/people_report
/database/db_pengaduan_masyarakat.sql
UTF-8
5,234
3.015625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.5.3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 21, 2020 at 03:02 PM -- Server version: 5.1.62 -- PHP Version: 5.4.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
f0a349df9323007fe5d7b28273c044d9bcc1ab89
SQL
mhassan-hub/BootcampX
/4_queries/2_assistance_request_data.sql
UTF-8
361
3.6875
4
[]
no_license
SELECT teachers.name as teacher, students.name as student, assignments.name as assignment, ( assistance_requests.completed_at - assistance_requests.started_at) as duration FROM assistance_requests JOIN assignments ON assignments.id = assignment_id JOIN teachers ON teachers.id = teacher_id JOIN students ON stude...
true
f4bdc7711936193e8ac06ef92120b13a928ade40
SQL
ChristyKoh/PatentsView-Disambiguation
/scripts/load_benchmark.sql
UTF-8
708
2.9375
3
[]
no_license
-- load benchmark data LOAD DATA INFILE '/Users/koh46433/Downloads/drive-download-20201230T181912Z-001/training_data/td_patent.csv' INTO TABLE patent FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' IGNORE 1 LINES (patent_number,@date,abstract,title,num_claims) SET date = IF(@date='',0,@date); LOAD DATA INFIL...
true
54d0df80f025c4a3058fedf9cd3aeea3ec5fe7a4
SQL
ExcaliburTuring/aghanim-scepter
/vanguard/src/main/resources/common/courierr.sql
UTF-8
595
2.953125
3
[]
no_license
CREATE TABLE `satanic`.`user` ( `userid` BIGINT(64) UNSIGNED NOT NULL COMMENT 'user id', `wx` VARCHAR(255) NOT NULL COMMENT '微信号', `email` VARCHAR(255) NOT NULL COMMENT '邮箱', `password` VARCHAR(255) NOT NULL COMMENT '密码', `usertype` INT NOT NULL COMMENT '用户类型', `tellphone` VARCHAR(255) NOT NULL COMMENT '', ...
true
c233f9cf9f8474b476f937e612f7795a981626dd
SQL
saurabh4828/login-form.github.io
/database.sql
UTF-8
2,169
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 02, 2020 at 12:02 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
5c02a72c2f97c81dd17b10b472b67e9611f81cdb
SQL
patrickchiang/botaniCards
/create.sql
UTF-8
2,350
4.03125
4
[]
no_license
DROP DATABASE IF EXISTS botanicards; CREATE DATABASE botanicards; USE botanicards; CREATE TABLE users ( user_id int NOT NULL AUTO_INCREMENT, device_id varchar(512) NOT NULL, sharing_flag int NOT NULL, PRIMARY KEY (user_id) ); CREATE TABLE common_names ( common_name_id int NOT NULL AUTO_INCREMENT, common_name varcha...
true
1cc5647b1e88dc41de4ac68964527b9b621d20bd
SQL
alsals126/spring_study_2021
/DB/scott .sql
UHC
835
3.53125
4
[]
no_license
-- 21.07.01 drop table login1; create table login1( user_id varchar2(50), user_pw varchar2(50) ); select * from login1; -- 21.07.06 create table book( title varchar2(20), author varchar2(20), price varchar2(20) ); select * from book; -- 21.07.15 CREATE SEQUENCE id INCREMENT BY 1 ST...
true
223f1c8620262ad8a77a803e4e1766afe9af79cf
SQL
xornjseh1000/hhhhh
/mvc/src/sql/member.sql
UTF-8
1,764
3.265625
3
[]
no_license
insert into member(id,pw,name,regdate,ssn,email,profile_img) values('xornjseh10000','1','박보영','2015-05-19','900102','parklove@naver.com','lee.jpg'); insert into member values('xornjseh10000','1','박보영','2015-05-19','900102','parklove@naver.com','lee.jpg'); insert into member values('xornjseh10000','1','박보영','2015-05-1...
true
e09a65b0f0a420dfd7bde21554621f597d68c8a0
SQL
JonathanRH07/Control-de-versiones
/DB ICAAVweb/Suite_mig_demo/Stored_Procedures/sp_cat_unidad_negocio_f.sql
UTF-8
3,964
3.421875
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`suite_deve`@`%` PROCEDURE `sp_cat_unidad_negocio_f`( IN pr_id_grupo_empresa INT, IN pr_id_unidad_negocio INT, IN pr_cve_unidad_negocio VARCHAR(45), IN pr_desc_unidad_negocio VARCHAR(45), IN pr_estatus_unidad_negocio ENUM('ACTIVO', 'INACTIVO','TODOS'), IN pr_cons...
true
56ce5adf0b372cfe7c9820896dc5fbbdba130f51
SQL
francoApaza/projeto_React_franco
/backend/fseletro (1).sql
UTF-8
7,861
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 17-Dez-2020 às 08:17 -- Versão do servidor: 10.4.16-MariaDB -- versão do PHP: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
e010b25dddd7468045751b75123fd2863cb0838b
SQL
userv/DB-Fundamentals
/Databases Basics -MS SQL Server/Exercises/Data Aggregation/Data Aggregation - Scripts/Data Aggregation - Scripts/19.Salary Challenge.sql
UTF-8
212
3.78125
4
[]
no_license
SELECT TOP(10) e.FirstName,e.LastName,e.DepartmentID FROM Employees AS e WHERE e.Salary > ( SELECT AVG(em.Salary) FROM Employees AS em WHERE e.DepartmentID = em.DepartmentID ) ORDER BY DepartmentID;
true
7bd557c80200a2620cb763dc498ef3159e6ff013
SQL
mosesmwale/dhis2-utils
/resources/sql/move-data-to-next-year.sql
UTF-8
1,085
3.5625
4
[]
no_license
-- SQL script for moving data from one year to the next. Useful for -- updating demo databases with sample data. -- (Write) Move startdate and enddate in period to next year update period set startdate = (startdate + interval '1 year')::date, enddate = (enddate + interval '1 year')::date; -- (Write) Move programs...
true
d7671de8ac557de8855feaae8dfa4261f63c7f14
SQL
aweir12/sn-py-extract
/scripts/dataModel/v5_dim_user.sql
UTF-8
1,018
2.890625
3
[]
no_license
create or replace view v5_dim_user as ( select usr.sys_id as row_wid, usr.active, usr.vip, usr.u_exec, usr.sys_updated_on, usr.sys_updated_by, usr.sys_created_on, usr.sys_created_by, usr.name, usr.first_name, usr.last_name, usr.source, usr.email, usr.manager, mgr.name as mgr_name, mgr.first_name as mgr_first_name, mgr....
true
8cc09ecefad30c5f66bc9ff3c6e10b423874ec5e
SQL
kir-/BootcampX
/3_queries_group/largeCohort.sql
UTF-8
190
3.625
4
[]
no_license
SELECT cohorts.name, count(cohorts.name) FROM cohorts JOIN students ON students.cohort_id = cohorts.id GROUP BY cohorts.name HAVING count(cohorts.name) >= 18 ORDER BY count(cohorts.name);
true
597fda9b03667cd82d64c51bec58186bd703c79f
SQL
Undin/shows-notifier
/server/migrations/20170401080003_add_show_url_and_add_unique_constraint/up.sql
UTF-8
164
2.796875
3
[]
no_license
ALTER TABLE shows ADD COLUMN show_url TEXT NOT NULL DEFAULT ''; ALTER TABLE shows ADD CONSTRAINT shows_source_name_raw_id_unique UNIQUE (source_name, raw_id);
true
af161e1d4a3b10dd9acb2e371d2b082484c73d0b
SQL
kngovand/SQL
/Queries/select_users_from_company_1_FK.sql
UTF-8
135
2.546875
3
[]
no_license
SELECT * FROM users JOIN company ON company.Company_Id=users.Company_Id WHERE company.Company_Name='Facilisis Vitae Orci Corporation';
true
e781eabd991becf55e8e231a8b6e82cdd1426214
SQL
zaur9287/menu
/conf/evolutions/default/5.sql
UTF-8
314
2.921875
3
[]
no_license
# passwordinfo schema # --- !Ups CREATE TABLE company( id BIGSERIAL NOT NULL PRIMARY KEY , name VARCHAR NOT NULL, description VARCHAR, image_id INTEGER, created_at TIMESTAMP WITH TIME ZONE NOT NULL, updated_at TIMESTAMP WITH TIME ZONE NOT NULL, deleted BOOLEAN ); # --- !Downs DROP TABLE company;
true
ad6595d49138a86885d582dcbeed57291486f257
SQL
darmalovan/mywarwick
/tiles.sql
UTF-8
10,183
2.515625
3
[ "ISC" ]
permissive
DELETE FROM TILE_GROUP_LAYOUT; DELETE FROM USER_TILE_LAYOUT; DELETE FROM TILE_GROUP; INSERT INTO TILE_GROUP (TILE_ID, "GROUP") VALUES ('bus', 'anonymous'); INSERT INTO TILE_GROUP (TILE_ID, "GROUP") VALUES ('news', 'anonymous'); INSERT INTO TILE_GROUP (TILE_ID, "GROUP") VALUES ('traffic', 'anonymous'); INSERT INTO TILE...
true
dcd959176c1f49cd65968161d99fde7454d2071e
SQL
uchinokot/sql_writing_drill
/3/3-4/2.sql
UTF-8
439
3.640625
4
[]
no_license
SELECT e.EmployeeID , MAX( e.EmployeeName )AS 社員名 , SUM( CASE WHEN s.EmployeeID IS NULL THEN 0 ELSE 1 END ) AS 販売件数 FROM Employees AS e LEFT OUTER JOIN Sales AS s ON e.EmployeeID = s.EmployeeID GROUP BY e.EmployeeID ; -- WHEN s.EmployeeID IS NULL THEN 0の対象の理解がまだできていない -...
true
27414bf01494544d08e1adc3ef7b14408917fa9b
SQL
zvlu/Employee-Management-System
/seeds.sql
UTF-8
517
3.359375
3
[ "MIT" ]
permissive
USE employee_db; INSERT INTO department (name) VALUES ('Sales'), ('Engineer'), ('Finance'), ('Legal'); INSERT INTO role (title, salary, department_id) VALUES ('Saleperson', 100, 1), ('Software Engineer', 1000, 2), ('Accountant', 300, 3), ('Lawyer', 600, 4); INSERT INTO em...
true