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
ecaa87bc3f20f4580d484d30378c4f087b35e1f0
SQL
leonardoeloy/persona
/db.sql
UTF-8
1,836
3.984375
4
[ "Apache-2.0" ]
permissive
DROP DATABASE IF EXISTS `persona` ; CREATE SCHEMA `persona` CHARACTER SET UTF8; CREATE TABLE `persona`.`project` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(120) NOT NULL, `start_date` DATE NOT NULL, `end_date` DATE NULL, PRIMARY KEY (`id`) ); CREATE TABLE `persona`.`person` ( `id` INT NOT NULL AUT...
true
a9184116eaa1cb93401cb6ee849c31e7025b0b55
SQL
larlarru/dbSql
/200909.sql
UTF-8
7,498
3.859375
4
[]
no_license
날짜 관련된 함수 TO_CHAR 날짜 ==> 문자 TO_DATE 문자 ==> 날짜 날짜 ==> 문자 ==> 날짜 문자 ==> 날짜 ==> 문자 SYSDATE(날짜)를 이용하여 현재 월의 1일자 날짜로 변경하기 NULL 관련 함수 - NULL과 관련된 연산의 결과는 NULL 총 4가지 존재, 다 외우진 않아도 괜찮음. 본인이 편한 함수로 하나 정해서 사용 방법을 숙지. 1. NVL(expr1, expr2) if(expr1 == null) System.out.println(expr2); else System.out.pri...
true
2ab57d71f5e442cbf82ed5747f3b12d6f9007751
SQL
dasucard/Estructura_Dades_M5
/Nivel_1/Pizzeria/Nom_RepartidorDomicili.sql
UTF-8
192
3.125
3
[]
no_license
SELECT e.Empleats_Nom, c.Comanda_data As 'data/hora lliurament' FROM botiga b JOIN comanda c USING (Botiga_id) JOIN empleats e USING (Botiga_id) WHERE c.Comanda_Repartiment = 'Domicili'
true
79d27db899e4a582755f56d6b765f30c13dfd20f
SQL
vitikevich-landau/parus_test
/snippets/UDP/FIND_PHONES.sql
UTF-8
575
3.203125
3
[]
no_license
-- Поиск невалидных номеров телефонов select T.RN, T.PHONE, T.PHONE2, T.FAX, T.TELEX, T.ROWID from AGNLIST T where ( INSTR(T.PHONE, '8') = 1 or INSTR(T.PHONE2, '8') = 1 or INSTR(T.FAX, '8') = 1 or INSTR(T.TELEX, '8') = 1 ) or ( INSTR(T.PHONE, '+') = 1 or IN...
true
0e4c30dc816375399b1405f9f6a6600f455d097f
SQL
DPAteam/Kyrgyz-Republic-Open-Data-OCDS-Transformation-Analytics
/OCDS export/exporter/src/main/resources/sql/catalogs/legalForms.sql
UTF-8
168
3.359375
3
[]
no_license
SELECT c.inn, cn.iso_code country_code, l.title_ru FROM company c JOIN country cn ON c.country_id = cn.id JOIN legal_form l ON c.legal_form_id = l.id
true
4be171942e2d5f3832675c56e5ceed9e077b9cde
SQL
sdu-gyf/competition-project-manager
/src/main/resources/db/migration/V3__Add_team_table.sql
UTF-8
746
2.921875
3
[]
no_license
create table team ( id int auto_increment comment '主键' primary key, team_code varchar(20) not null comment '参赛队伍编码,自动生成,全局唯一', team_name varchar(20) not null comment '代表队名称,唯一', province varchar(20) not null comment '所在省', contact varchar(20) not null comment '联系人', ...
true
3ca4e979ef1739fb1d83bb9692747b63d00d75ba
SQL
Macchinetta/spring-functionaltest
/spring-functionaltest-initdb/src/main/sqls/postgres/00003_schema-pgnt.sql
UTF-8
721
3.515625
4
[]
no_license
DROP TABLE IF EXISTS t_celebrity; DROP TABLE IF EXISTS t_article; DROP TABLE IF EXISTS t_person; CREATE TABLE t_celebrity ( celebrity_id integer NOT NULL ,first_name varchar(30) NOT NULL ,last_name varchar(30) NOT NULL ,CONSTRAINT pk_t_celebrity PRIMARY KEY (celebrity_id) ); CREATE TABLE t_article ( ...
true
089d3f976358aa4b397647b57cb8b781c641bc36
SQL
mahi14606/student-project-management
/project (4).sql
UTF-8
3,797
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.4 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 26, 2017 at 12:54 PM -- Server version: 5.6.15-log -- PHP Version: 5.4.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
03f835c312bc08f9758c6629874818c5def18831
SQL
bcgov/PIMS
/backend/dal/Migrations/v01.01.00/Up/PreUp/AddRolesAndClaims.sql
UTF-8
1,009
3.09375
3
[ "Apache-2.0" ]
permissive
INSERT INTO dbo.[Claims] ([Id], [Name], [Description], [IsDisabled]) VALUES ( '0fbd370d-6cde-41e7-9039-f05ae60d75da', 'reports-spl', 'Ability to administrate spl reports.', 0 ), ( 'e13d1c7d-f350-4aee-808e-c9603c29479b', 'reports-view', 'Ability to view exported reports.', 0 ); INSER...
true
003226811b54f0646fbf23499c87b0686d25b65d
SQL
lynethcutamora/testing42-index0
/snbdb.sql
UTF-8
9,834
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 18, 2015 at 01:04 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
42202f5aa842a26bb0c701f360d9eb5d85ff1e73
SQL
AllenAlan/stone-mmrk
/stone-mmrk-mapper/src/main/resources/sql/User.sql
UTF-8
357
2.640625
3
[]
no_license
-- auto Generated on 2018-10-07 -- DROP TABLE IF EXISTS `t_user`; CREATE TABLE `t_user`( `id` BIGINT (15) NOT NULL AUTO_INCREMENT COMMENT 'id', `user_name` VARCHAR (50) NOT NULL DEFAULT '' COMMENT 'userName', `password` VARCHAR (50) NOT NULL DEFAULT '' COMMENT 'password', PRIMARY KEY (`id`) )ENGINE=InnoDB DEFAULT C...
true
9008efb51f1b8d33778b6eb17a2546881bb2bbcf
SQL
Crisjimenez/UniversidadJavaRest
/bin/main/universidadBD.sql
UTF-8
4,453
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 26-01-2020 a las 22:15:46 -- Versión del servidor: 10.3.16-MariaDB -- Versión de PHP: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00...
true
fc3331de87f2a5c39848b1978eea07d0db147a89
SQL
AlekseiAnisimov/go-todo-user
/migrations/20200130220022-user.sql
UTF-8
359
2.90625
3
[]
no_license
-- +migrate Up CREATE TABLE user ( id integer(11) AUTO_INCREMENT, auth_id integer(11) NOT NULL unique, fam varchar(64) DEFAULT NULL, name varchar(64) DEFAULT NULL, otch varchar(64) DEFAULT NULL, birthday date DEFAULT NULL, description varchar(255) DEFAULT NULL, avatar varchar(255) DEFAULT NULL, PRIMARY KEY(id...
true
2d88ba5850de19b02b305de7c9ecff5a7e2d658b
SQL
GonzaloTieri/tiendapuglin
/database/tiendanubeDatabase.sql
UTF-8
2,972
3.0625
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.19, for Win64 (x86_64) -- -- Host: localhost Database: tiendanubeplugin -- ------------------------------------------------------ -- Server version 5.7.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
ead609f46acad3a74ca6fc3cb9ca12db2b0d98bb
SQL
VoTech-Recruiting/MobileLoc
/MobileLoc/stage/SquareItem.sql
UTF-8
1,382
2.53125
3
[]
no_license
CREATE TABLE [stage].[SquareItem] ( [Token] nvarchar(255) NULL, [Item Name] nvarchar(255) NULL, [Description] nvarchar(2000) NULL, [Category] nvarchar(255) NULL, [SKU] nvarchar(255) NULL, [Variation Name] nvarchar(255) NULL, [Price] float NULL, [Option Name 1] nvarchar(255) NULL, [Option Value 1] nvarchar(255...
true
e372a12764159ef98d5ae91687960275ecadad32
SQL
snehalsp14/SchoolMg
/studentmanagement.sql
UTF-8
4,056
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 16, 2021 at 01:39 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 7.3.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
86963a893dfd3f73370b69aa40f32f18acf5da54
SQL
ELayman1/Ser422Lab4Old
/mysql_phonebook.sql
UTF-8
2,262
3.046875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `phone` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */; USE `phone`; -- MySQL dump 10.13 Distrib 8.0.15, for Win64 (x86_64) -- -- Host: localhost Database: phone -- ------------------------------------------------------ -- Server version 8.0.15 /*!40101 SET @OLD...
true
f3b088b7de8092e8cad20c54df06134da199a778
SQL
cherryc0ck/PetSitter
/PetSitter_DB.sql
UHC
14,663
3.578125
4
[]
no_license
create table member( MEMBER_ID varchar2(30) primary key, --ID MEMBER_NICKNAME varchar2(30) DEFAULT 'N', --г MEMBER_PW varchar2(30), --PW MEMBER_NAME varchar2(20), --̸ MEMBER_TEL varchar2(20), --ȭȣ MEMBER_RANK varchar2(30) DEFAULT 'Green', --('Green', 'Gold', 'VIP') MEMBER_COUNT number DEFAUL...
true
6ddd4bcc19e1a241c7e86ec0a5a0464f05ca6b64
SQL
aaronlam88/cmpe295
/java/createUpdateScript.sql
UTF-8
275
2.921875
3
[ "MIT" ]
permissive
USE INFORMATION_SCHEMA; SELECT CONCAT("UPDATE `StockDatabase`.`4update` SET `lastUpdate` = (SELECT MAX(Date) FROM `", TABLE_SCHEMA,"`.`", TABLE_NAME, "`), `updateStatus` = 0 WHERE Symbol = '", TABLE_NAME, "';") AS MySQLCMD FROM TABLES WHERE TABLE_SCHEMA = "StockDatabase";
true
df3a46af0e2708e8c9a33224cc122234d8cd9875
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day16/select1958.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-15T19:58:00Z' AND timestamp<'2017-11-16T19:58:00Z' AND temperature>=17 AND temperature<=64
true
cd638b2dd878d1908f4cf043781cdb7efbd01db7
SQL
eguller/twitstreet
/WEB-INF/db/setup/proc/rerank.sql
UTF-8
1,278
3.8125
4
[]
no_license
drop procedure if exists rerank; delimiter $$ create procedure rerank() begin declare done int default false; declare user_id bigint; declare user_portfolio double; declare user_cash double; declare user_loan double; declare new_rank int default 1; declare cur1 cursor for sel...
true
8841c0d42948bff600010ff1e054691578c529f8
SQL
UncleStepa/housing-calculator
/Documents/Scripts/CREATE TABLE TESTIMONY_HISTORY.sql
UTF-8
439
2.65625
3
[]
no_license
CREATE TABLE testimony_history( id smallint unsigned not null auto_increment, currentmonth varchar(36), previous_month varchar(36), coldWater numeric(12), hotWater numeric(12), gas numeric(12), electricity numeric(50), cost_coldWater decimal(15,2), cost_hotWater decimal(15,2), cost_gas decimal(15,2), cost...
true
b15d25bb5a98ac7714d276003ccd0a326c609698
SQL
radtek/abs3
/sql/mmfo/bars/View/provnu_po1.sql
WINDOWS-1251
1,916
2.90625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/PROVNU_PO1.sql =========*** Run *** === PROMPT ===================================================================================== PROMPT *** Create view PROV...
true
1ef9ca5ef0f49971192b70d0d84ab7be21250a8e
SQL
penanrajput/oracle-sql-tutorials
/Practical-06/cursor.sql
UTF-8
1,064
3.53125
4
[ "MIT" ]
permissive
DECLARE c_id customers.id%type; c_name customerS.Name%type; c_addr customers.address%type; CURSOR c_customers is SELECT id, name, address FROM customers; BEGIN OPEN c_customers; LOOP FETCH c_customers into c_id, c_name, c_addr; EXIT WHEN c_customers%notfound; dbms_outpu...
true
9a482ce2ea46ea7ff04787faced4c5f19af2f056
SQL
marcelosdm/oracle-sql
/Tasy/Faturamento/Utils/temp Campo27_EstadioClinico.sql
UTF-8
1,294
3.28125
3
[]
no_license
select --e.NR_ATENDIMENTO, e.DS_ESTADIO_UICC, a.CD_ESTADIO, x.ds_valor_dominio from SUS_LAUDO_PACIENTE e, CAN_FICHA_ADMISSAO a, valor_dominio x where e.ds_estadio_uicc = x.vl_dominio and e.CD_PESSOA_FISICA = a.CD_PESSOA_FISICA and e.CD_CID_TOPOGRAFIA like '%C61%' and x.cd_dominio = 2502 and e.nr_atendimento = 7017687;...
true
284d0fdb3850bedc45b34013e7d3402e8cfcba67
SQL
SMC1/JK1
/Integration/rpkm_pathway.sql
UTF-8
463
2.75
3
[]
no_license
drop table IF EXISTS rpkm_pathway; CREATE TABLE rpkm_pathway ( samp_id varchar(63) NOT NULL, pathway varchar(31) NOT NULL, activity double NOT NULL, primary key (samp_id,pathway), index (pathway), index (samp_id), index (samp_id,pathway,activity) ); LOAD DATA LOCAL INFILE "/EQL1/TCGA/GBM/RNASeq/TCGA_GBM_RPKM_pa...
true
5a9f057b72599cb65b376d33760cc6b11b27a3d5
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day17/select0425.sql
UTF-8
269
3.015625
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='Thermometer' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['6136','2204','5204','4086','4241','5100_8','6026','2069','2092','1200'])
true
781e4866763bfec2825948446625dfb6d1bf3461
SQL
ahmadgojali/testonline
/user.sql
UTF-8
1,040
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.9.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 07, 2019 at 03:28 PM -- Server version: 5.0.67 -- PHP Version: 5.2.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTE...
true
7a3f4059723dde16d43583a14b17a5472cb7f9bc
SQL
klymenko-ruslan/widget-miro-serice
/src/main/resources/schema.sql
UTF-8
493
3.015625
3
[]
no_license
CREATE TABLE IF NOT EXISTS widget ( id BIGINT NOT NULL, xCoordinate INTEGER NOT NULL, yCoordinate INTEGER NOT NULL, width INTEGER NOT NULL, height INTEGER NOT NULL, lastModificationTimestamp BIGINT NOT NULL, zIndex INTEGER NOT NULL, PRIMARY KEY(id) ); CREATE INDEX IF NOT EXISTS zIndex_index ON w...
true
559df46e0719539adf8996e697f43eeee518a1f8
SQL
fbianchetto/ensembl
/ensembl-variation/sql/patch_65_66_f.sql
UTF-8
682
3.0625
3
[]
no_license
# update the tagged_variation_feature table ################## alter table tagged_variation_feature drop primary key; alter table tagged_variation_feature add column tagged_variation_feature_id int(10) unsigned default null after variation_feature_id; # create indices create index tag_idx on tagged_variation_feature(...
true
0dc66b0ac3260b6fd6fe9ae0de1bd4cefc26cd3b
SQL
jenalynN/myProject
/Thesis/rental/db_rental.sql
UTF-8
6,127
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 12, 2017 at 07:55 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
0d16f9f32d1f9d1b390117534356322748b3663e
SQL
ejmstark/event_system
/db_files/event_db-11.sql
UTF-8
13,835
3.171875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 10, 2018 at 03:25 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
5660513d8e6689f73403c97686c48ab686e72904
SQL
DraconianS/JAM
/db/jam_db.sql
UTF-8
1,758
3.359375
3
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
6502fbb0bb576c1da5414454ac1e4ffada1aec85
SQL
Jin-wei/chumuu
/db/upgrades/17.up.sql
UTF-8
456
2.625
3
[]
no_license
delimiter $$ CREATE TABLE `stat_monthly_order` ( `id` int(4) NOT NULL AUTO_INCREMENT, `biz_id` bigint(4) NOT NULL DEFAULT '0', `product_id` bigint(4) NOT NULL DEFAULT '0', `month` int(4) NOT NULL, `year` int(4) NOT NULL, `year_month` int(4) NOT NULL, `monthly_count` int(4) DEFAULT NULL, PRIMARY KEY (`id`) )ENG...
true
c29590b9ffc569c9073a7f172cd0d0fcbcf2a202
SQL
MarioSalamanca64/master-php
/aprendiendo-sql/02-modificartablas/modificar.sql
UTF-8
354
2.921875
3
[]
no_license
# RENOMBRAR UNA TABLA # ALTER TABLE usuarios RENAME TO usuarios_renom; # CAMBIAR NOMBRE DE UNA COLUMNA # ALTER TABLE usuarios_renom CHANGE apellidos apellido varchar (100) null; # MODIFICAR COLUMNA SIN CAMBIAR NOMBRE# ALTER TABLE usuarios_renom MODIFY apellido char(50); # AñADIR COLUMNA # ALTER TABLE usuarios_renom ...
true
0747dff7c8d53ef8803c89caaf9b2c55274c5b94
SQL
martanetza/Yoma
/learning_mysql/create_procedure_update_courses.sql
UTF-8
146
2.609375
3
[]
no_license
CREATE PROCEDURE users_plus(param1 INT) BEGIN UPDATE courses SET no_of_paparticipants = no_of_paparticipants + 1 WHERE course_id = param1; END
true
4719211a92764f34ba0825f4313deb527a733341
SQL
mundodron/arduino-bot-aurelio
/Querys/~eb46CA.sql
UTF-8
757
3.140625
3
[]
no_license
select * from gvt_no_bill_audit where new_no_bill <> 0 order by NEW_NO_BILL select count(*) from gvt_no_bill_audit select CHG_WHO from gvt_no_bill_audit where CHG_WHO not like '%bip%' and NEW_NO_BILL = 1 group by CHG_WHO; select * from all_users where USERNAME like '%%' C...
true
4fab26bd4956a476121578d473f68a92e85a992b
SQL
jinsu99/django_practices
/sql/guestbook.sql
UTF-8
369
2.859375
3
[]
no_license
-- scheme desc guestbook; -- insert insert into guestbook values(null, '동해물', '1234', '안녕하세요', now()); -- select select no, name, message, date_format(reg_date, '%Y-%m-%d %p %h:%i:%s') as reg_date from guestbook order by reg_date desc; select * from guestbook; -- delete delete from guestbook where no ...
true
defcd0a588b8b97dc633688808037642ef2bdca1
SQL
RuiwenH/springboot-shiro
/src/main/resources/sql/ddl.sql
UTF-8
3,054
3.4375
3
[]
no_license
CREATE DATABASE `shiro_test` CHARACTER SET 'utf8' COLLATE 'utf8_general_ci'; SET FOREIGN_KEY_CHECKS=0; use shiro_test; SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for t_permission -- ---------------------------- DROP TABLE IF EXISTS `t_permission`; CREATE TABLE ...
true
de4dd89908dfda09d76b4959654cfc56a43baadb
SQL
lovejs123/oblog
/nettuts_blog.sql
UTF-8
2,617
3.5
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.0 -- http://www.phpmyadmin.net -- -- Host: internal-db.s41150.gridserver.com -- Generation Time: Oct 17, 2008 at 12:48 PM -- Server version: 4.1.25 -- PHP Version: 4.4.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `db41150_nettuts_blog` -- -- -------------------------...
true
fc9352099dab551fcbdb7a4874ee06078f7e809a
SQL
sniemeyer1/bamazon
/bamazon.sql
UTF-8
239
2.734375
3
[]
no_license
USE bamazon_DB; CREATE TABLE products( id INT(10) AUTO_INCREMENT NOT NULL, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(45) NOT NULL, stock_quantity INT default 0, highest_bid INT default 0, PRIMARY KEY (id) );
true
bda537fc7b308a89f5d28ae2c34de1452a845aab
SQL
abercalini/projeto-backend-solufix-prod
/src/main/resources/db/migration/V01__criar_e_registrar_usuario.sql
UTF-8
2,398
3.21875
3
[]
no_license
CREATE TABLE usuario ( codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT, nome VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, senha VARCHAR(150) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE permissao ( codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT, descricao VARCHAR(50) NOT NULL ) ENGINE=InnoDB DEFAU...
true
f0169ddc16a378a86615bb3f518b98e77fe94ae6
SQL
Partevikov/DefCodesParser
/htdocs/tableMySQL.sql
UTF-8
339
2.796875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS DefCodesDb; USE DefCodesDb; CREATE TABLE IF NOT EXISTS DefCodesInfo ( id INT(6) NOT NULL auto_increment PRIMARY KEY, def VARCHAR(3) NOT NULL, num_s VARCHAR(7) NOT NULL, num_e VARCHAR(7) NOT NULL, region VARCHAR(100), operator VARCHAR(100), fd date, td date ) DE...
true
bd9d64ca72834246c6e9a18796797b3dda00ff5e
SQL
themadprofessor/riostu
/sql/up.sql
UTF-8
351
3
3
[]
no_license
-- Your SQL goes here CREATE TABLE users ( id VARCHAR PRIMARY KEY, name VARCHAR NOT NULL, email VARCHAR NOT NULL ); CREATE TABLE requests ( id SERIAL PRIMARY KEY, user_id VARCHAR references users(id) NOT NULL, amount INTEGER NOT NULL ); CREATE TABLE tokens ( user_id VARCHAR PRIMARY KEY REFERENCES users(...
true
141570027d731da71ba87ad68566d9a937258540
SQL
Marianasilvago/promotional-wallet
/pkg/repository/migrations/20210315012308_add_ledger_table.up.sql
UTF-8
389
2.78125
3
[]
no_license
create table if not exists ledger ( id uuid primary key default gen_random_uuid(), account_id uuid not null, amount INTEGER not null, activity varchar(36) not null, type varchar(36) not null, priority integer not null, expiry timestamp without time zone, create...
true
07a09c6324d8b89408e3829bd7beed4dd51dda6c
SQL
daniiel/ora-scripts
/dba queries.sql
UTF-8
883
3.71875
4
[]
no_license
-- Saber los indices de una tabla (OSDSMANAGER) SELECT ind.owner, ind.tablespace_name tbs, ind.index_name, ind.status, --ind.table_owner, col.column_name, col.descend FROM dba_indexes ind, dba_ind_columns col WHERE ind.index_name = col.index_name AND ind.owner = col.index_owner AND ind.table_name ...
true
aeb88eeca46f1f1b8812ff12f84d6628db08f2ad
SQL
KhrystynaMakar/jOOQTest
/src/main/resources/jOOQ_insertDB.sql
UTF-8
1,284
2.75
3
[]
no_license
INSERT INTO car (manufactor, create_date, model, color, door_quantity, petrol) VALUES ('Hyundai', '2014-04-07', 'Genesis', 'red', 5, true), ('Ford', '2010-03-07', 'Kuga', 'blue', 4, false), ('Jeep', '2010-05-22', 'Cherokee', 'black', 4, true), ('Toyota', '2010-11-12', 'Auris', 'black', 3, true), ('Toyota', ...
true
4225b463056c6e2469178a2b5130e6747c84029d
SQL
guohaileaa/JXC
/sql/jxc.sql
UTF-8
248,462
3.71875
4
[ "MIT" ]
permissive
/* Navicat Premium Data Transfer Source Server : wangjiangfei Source Server Type : MySQL Source Server Version : 50717 Source Host : localhost:3306 Source Schema : jxc Target Server Type : MySQL Target Server Version : 50717 File Encoding : 65001 Date: 16/08/2019 07:...
true
263878eb1f9883f4639192d148d9a807710b5d5f
SQL
xuguanhua/Super-Community
/SQL/community_recruit.sql
UTF-8
10,744
3.59375
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50714 Source Host : localhost:3306 Source Database : community_recruit Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2018-04-09 21:34:23 */ SET FOREIGN_KEY_...
true
2dc00b5cfee1eae27e36483346faa12e17b61b73
SQL
SamuelELBEZ/Theatre-du-Chrysantheme
/Scripts/test_externe.sql
UTF-8
280
2.625
3
[]
no_license
/* Montre qu'il n'est pas possible d'insérer une représentation externe qui est déjà interne ou qui n'a pas été vendu. */ SELECT * FROM Interne; SELECT * FROM Externe; INSERT INTO Externe(id_representation, lieu, ville, pays) VALUES (19, 'Théâtre Icare', 'Paris', 'France') ;
true
2b864f9e83cf7d28e7b2782b27dd95e9e009fe95
SQL
paldonenemttin/Oracle
/Oracle/SCUSER(2021-04-26)01.sql
UTF-8
6,886
4.125
4
[]
no_license
DROP TABLE tbl_student; -- scuser로 접속 -- 학생정보 table생성 DROP TABLE tbl_student; CREATE TABLE tbl_student( st_num CHAR(5)PRIMARY KEY, st_name NVARCHAR2(20) NOT NULL, st_dept NVARCHAR2(20), st_grade VARCHAR2(10), st_addr NVARCHAR2(125) ); CREATE TABLE tbl_student( st_num CHAR(5) PRIMARY KEY, st_name NVA...
true
3d35d7462ba3e149365b3832e73388304f3ecf81
SQL
cbritezm/cbritezm
/blocked_package.sql
UTF-8
1,607
3.546875
4
[]
no_license
-------------------------------------------------------------------------------- -- PACKAGE BLOCKED -------------------------------------------------------------------------------- BREAK ON sid ON lock_id1 ON kill_sid COL sid FOR 999999 COL lock_type FOR A38 COL mode_held FOR A12 COL mode_reques...
true
65074139d35577d5775e315c993b1ed8b6dbd837
SQL
TheoCib/postgresql_TCI_JES
/scripts/sql/create_readonly_role.sql
UTF-8
1,090
3.78125
4
[]
no_license
-- permet de supprimer l'alter default privileges DROP OWNED BY readonly; -- supprime tout les privileges sur le schema public REVOKE ALL PRIVILEGES ON SCHEMA public FROM readonly; -- supprime tout les privileges sur les tables REVOKE ALL ON ALL TABLES IN SCHEMA public FROM readonly; -- supprime le droit connect à l...
true
56ae5e2c9928603982c28e19b8ad0a46c814a6f8
SQL
irfaardy/ta_rka
/database/old/22082020_ta_rka.sql
UTF-8
7,887
2.96875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 22, 2020 at 02:05 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
dd1d66d0601e92ba3e94542c2f4c3e9fe16a9658
SQL
sudeepakariyawasam/library
/DataBase/abc_lib.sql
UTF-8
6,425
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 05, 2019 at 09:08 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
cfb96bfedd334bd197daba9a6813be6b7c557d8f
SQL
a559927z/doc
/chinahrd-hrbi/base/src/test/resources/pro-script/dowhile_update.sql
UTF-8
2,069
3.625
4
[]
no_license
DROP PROCEDURE IF EXISTS dowhile_update; CREATE PROCEDURE dowhile_update () BEGIN DECLARE sKey, aKey, abLvKey, eKey, seKey VARCHAR(20); DECLARE done INT DEFAULT 0; DECLARE s_cur CURSOR FOR SELECT upper(left(t2.sequence_key, 1)) sKey, t3.ability_key aKey, t4.ability_lv_key abLvKey, tt.emp_key eK...
true
f284e4766a7ace7a7075db6f58103f1f113b056b
SQL
daniel2483/SQLPractice
/queries/select_diario_doforms.sql
UTF-8
747
4.03125
4
[]
no_license
select a.fecha, a.total, b.total2 from ( -- Total de RIRs select DATE(a.fecho_visita) as fecha, count(rir_proyecto_id) as total from doforms.rir_proyecto a where a.fecho_visita=a.fecho_visita AND weekofyear(fecho_visita) >= weekofyear('2014-02-01') and weekofyear(fecho_visita) <= weekofyear(DATE...
true
7aa3ca7d181796154b14ae8342b4c3c15edcaec7
SQL
charisZx/CRUD-onefile
/onefile.sql
UTF-8
1,318
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 18, 2018 at 07:22 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 5.6.36 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
d6da10b0779ab06c88506be040c0ff981be1bf8e
SQL
Neto6391/system_library
/SQL/controle_biblioteca.sql
UTF-8
6,434
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 27-Nov-2017 às 20:52 -- Versão do servidor: 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
09dca959d1406db053f496c7e55e7a76b6f87600
SQL
cjt243/DartboardOS
/gamedb/create_game_header.sql
UTF-8
407
3.25
3
[ "MIT" ]
permissive
-- game header table CREATE TABLE IF NOT EXISTS game_header ( id integer PRIMARY KEY, game_type text, game_start datetime, game_end datetime, player1_id integer, player2_id integer, winner_id integer, player1_score integer, player2_score integer, FOREIGN KEY (player1_id) REFERENCES player (id), FOREIGN KEY (...
true
bace6767559500d3a8ceed0f884e6355b8865160
SQL
NZOGPS/nzopengps
/scripts/Suburbs/Code/postproc.sql
UTF-8
643
3.1875
3
[]
no_license
CREATE INDEX nzsl_idx ON nz_suburbs_and_localities USING btree(id); -- below is psql command to emit only tuples on selects for timing ALTER TABLE nz_suburbs_and_localities ADD COLUMN watery boolean; ALTER TABLE nz_suburbs_and_localities ADD COLUMN nztm_geometry geometry(geometry,2193); CREATE INDEX nz_suburbs_...
true
721c498fd0777cc7c6e37d6a5643336ab844dcd6
SQL
RunshengSong/CS174A_final_project
/other_files/Some useful sql commands.sql
UTF-8
346
2.75
3
[]
no_license
show databases; CREATE DATABASE project; # grant all privileges to user:yiting with ip_address:128.111.106.188 with password:roma grant all on *.* to yiting@'128.111.106.188' identified by 'roma'; grant all on project.* to batigoal@'%' identified by 'clicc'; # show all grants/privileges select * from information_sc...
true
822f8509a625a6bc9e53bd35a538d5a420b3af5b
SQL
t2m-git/LeetCode
/SQL/1511.sql
UTF-8
885
4.625
5
[]
no_license
# Write your MySQL query statement below SELECT t.customer_id, t.name FROM ( SELECT SUBSTR(o.order_date, 1, 7) AS order_month, o.customer_id, c.name, SUM(o.quantity * p.price) AS rev FROM Orders AS o INNER JOIN Customers AS c ON c.customer_id = o.customer_id INNER JOIN Product AS p ON p....
true
7c91a03e30c51e0f16290c5637b04a5573ab20c6
SQL
asopf/asopf-app
/queries.sql
UTF-8
152
2.796875
3
[]
no_license
-- FIND THE NEWEST DATA -- SELECT * FROM asopf_test.covid_data where date=(SELECT MAX(date) AS 'date' FROM asopf_test.covid_data) ORDER BY county_code;
true
31743bd9a32ee4b49c44a377f99ca718f7c1cc42
SQL
mgoyal05/campus-training
/DBMS/Lecture 42.sql
UTF-8
134
3.546875
4
[]
no_license
SELECT count(e.EmployeeID)accidents, e.City, c.City FROM employees e JOIN customers c ON (e.City = c.City) GROUP BY e.City, c.City
true
715fcf67501993161f937b8997eef0e7281f1f19
SQL
wecode-bootcamp-korea/fullstack2-2nd-ourcodetrip-backend
/prisma/migrations/20211102172723_modify_some_fk_column_add_unique_constraint/migration.sql
UTF-8
1,276
3.1875
3
[]
no_license
/* Warnings: - A unique constraint covering the columns `[user_id]` on the table `partners` will be added. If there are existing duplicate values, this will fail. - A unique constraint covering the columns `[reservation_id]` on the table `reservation_tours` will be added. If there are existing duplicate values, ...
true
e92bba314ab4cab763e9ec60fbd16944e59646b2
SQL
luckonly/hibernate
/src/main/resources/db/changelog/1.0_init/1.0_init.sql
UTF-8
830
3.21875
3
[]
no_license
CREATE SCHEMA if not exists hibernate; CREATE TABLE IF NOT EXISTS hibernate.persons ( id int not null primary key, name varchar(50) not null, surname varchar(50) not null, age int not null check (age > 0), phone_number varchar(20), city_...
true
14d3ad196712e75a0ae48df712951d0ea17f5b87
SQL
ddt-sawa/sql_drill_sawa
/1-13_question1.sql
UTF-8
1,103
4.125
4
[]
no_license
/*1-13 問1 アンケート回答テーブル(quest)から回答日時が新しい順にname,answer1,answer2列を取得してみましょう。 その際、answer1列の値は3〜1に対応して、それぞれ「ためになった」「普通」「役に立たない」という文字列に置き換えることとします。 別名は、先頭から順に「氏名」「評価」「感想」とします。 以下の空欄を埋めて、SQL命令を完成させてみましょう。*/ --取得列 SELECT --氏名 name AS 氏名, --条件分岐 CASE --answer1列の値において、 answer1 --3であれば「ためになった」 WHEN 3 THEN...
true
81215b21c5570c3c2160d0fd901cf3b6314eeb7c
SQL
molefeq/database-backups
/update_ucloud.sql
UTF-8
4,967
3.3125
3
[]
no_license
SELECT * FROM public.ucloud_country WHERE country_id is null; SELECT * FROM public.country where name like '%Venezuela%'; UPDATE public.ucloud_country SET country_id = 87 where country like '%Venezuela%'; UPDATE public.ucloud_country SET country_id = 184 where country like '%Bolivia%'; UPDATE public.ucloud_count...
true
c49b5ba5213c7066b246aca331d66eeb396c9747
SQL
Li-Xiang/EventCentral
/create_db.sql
UTF-8
1,415
3.375
3
[ "Apache-2.0" ]
permissive
CREATE DATABASE `lsec` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; CREATE TABLE IF NOT EXISTS `lsec`.`listeners` ( `raddr` VARCHAR(32) NOT NULL, `port` INT(10) UNSIGNED NOT NULL, `protocol` VARCHAR(16) NOT NULL, `type` VARCHAR(45) NOT NULL, `name` VARCHAR(64) NOT NULL, `status` TINYINT(4) NOT...
true
00b6b3801c026e9e3c9efbf1da033f3a11644c1f
SQL
toannguyena/Rocket-NonIT
/SQL/Assignment 4/Assignment 4.sql
UTF-8
4,359
4.59375
5
[]
no_license
-- Exercise 1: --- -- Cho table sau: -- Department (Department_Number, Department_Name) -- Employee_Table (Employee_Number, Employee_Name, -- Department_Number) -- Employee_Skill_Table (Employee_Number, Skill_Code, Date Registered) -- Question 1: Tạo table với các ràng buộc và kiểu dữ liệu DROP DATABASE IF EXISTS Huma...
true
4de20c5bc12303778a44c01b899dacd4b9d8b9b3
SQL
abigail830/wish-list
/src/test/resources/db/migration/V1__Create_user_and_wish_table.sql
UTF-8
1,418
3.40625
3
[]
no_license
CREATE TABLE user_tbl ( ID int NOT NULL AUTO_INCREMENT, open_id varchar(100) unique NOT NULL, gender varchar(45) DEFAULT NULL, nick_name varchar(255) DEFAULT NULL, city varchar(255) DEFAULT NULL, country varchar(255) DEFAULT NULL, province varchar(255) DEFAULT NULL, lang varchar(45) DEFAULT NULL, avat...
true
d2242a90eb03ab4ed9e47dccc36f66025662785f
SQL
shinah/DBprogramming
/source/insertEnroll.sql
UTF-8
3,044
4.03125
4
[]
no_license
CREATE OR REPLACE PROCEDURE InsertEnroll ( sStudentId IN VARCHAR2, sCourseId IN VARCHAR2, nCourseIdNo IN NUMBER, result OUT VARCHAR2) IS too_many_sumCourseUnit EXCEPTION; too_many_courses EXCEPTION; too_many_students EXCEPTION; duplicate_time EXCEPTION; nYear NUMBER; nSemester NUMBER; nSumCourseU...
true
2727bf2cf674e9cc9c72cf5d6240ab1cebbcbb4b
SQL
flaviolyra/wis-framework
/PostGIS/Piabanha/OriginalDatabaseDevelopment/IncorporaPoligonosSecundariosAreaContrib/CriaTabelaAreaContrib.sql
UTF-8
363
2.71875
3
[]
no_license
INSERT INTO areacontrib (id_trecho, geomproj) SELECT id_tr AS id_trecho, (ST_Dump(geomproj_agreg)).geom AS geomproj FROM (SELECT id_tr, ST_Union(geomproj) as geomproj_agreg FROM (SELECT id_trecho_princ AS id_tr, geomproj FROM areacontrib_a_incorp UNION SELECT id_trecho AS id_tr, geomproj FROM areacontrib_princ) AS ai ...
true
f44bca6a942d032f54e540211596ff0da284c425
SQL
chintanp/ChargEval
/database/migrations/V13.1.1__new_evses_add_cols.sql
UTF-8
214
2.734375
3
[ "MIT" ]
permissive
-- Add new columns to new_evses ALTER TABLE new_evses ADD COLUMN station_type VARCHAR(20) DEFAULT 'new', -- store whether new or an upgrade ADD COLUMN comments text; -- store the station ID when type is upgrade
true
ce1e90c17cadfa75d92790ba2ae9912bef1b743b
SQL
chancethecoder10/personal-project-2
/db/delete_messages.sql
UTF-8
238
3.359375
3
[]
no_license
delete from messages where message_id = $1 select message_id, messages.user_id, user_message, reciever_message, friend_id from messages join users on (users.user_id = messages.friend_id) where friend_id = $3 and messages.user_id = $2;
true
7de895e06a5d749c8d3de7a467a462e6a268b607
SQL
svnibtf/dsb
/sql/estados.sql
UTF-8
1,887
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: 08-Jun-2018 às 13:50 -- Versão do servidor: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
aaa7189c54e9f56431af3e482ad2f646c84ee3f7
SQL
rachaelbaumann/SSMS_Student_Files
/Demo Files/Chapter 03 Functions/Try It Exercises/Try It 8 - Implicit conversion.sql
UTF-8
288
2.734375
3
[]
no_license
/* These queries allow you to see how implicit conversion affects your queries. Before executing each query, think about the results that you are expecting to be returned. */ SELECT 'a' + 'b'; SELECT 1 + 2; SELECT '1' + '2'; SELECT 1 + '2'; SELECT '1' + 'a'; SELECT 1 + 'a';
true
f906f4209f0811e67144862d5afe7a90dd1995a0
SQL
RVC3/PTK
/cppk/app/src/main/assets/migration/migrateTo84.sql
UTF-8
735
2.84375
3
[]
no_license
CREATE TABLE CouponReadEvent ( _id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, EventId INTEGER NOT NULL, CashRegisterWorkingShiftId INTEGER NOT NULL, PreTicketNumber INTEGER NOT NULL, PrintDateTime INTEGER NOT NULL, Devic...
true
ccfa693e540cc0551d6805bbd461cb9d58ad9b55
SQL
sebeneyi/cs262
/lab07/monopoly.sql
UTF-8
2,991
3.890625
4
[]
no_license
-- -- This SQL script builds a monopoly database, deleting any pre-existing version. -- -- @author kvlinden -- @version Summer, 2015 -- -- Drop previous versions of the tables if they exist, in reverse order of foreign keys. DROP TABLE IF EXISTS PlayerGame; DROP TABLE IF EXISTS Game; DROP TABLE IF EXISTS PlayerCash; ...
true
1235d90a74f5a7ac22ab8fb74e38437ffed141bb
SQL
JspDarker/cin-lampart
/Homework/HW05/cau4.sql
UTF-8
6,514
3.15625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 31, 2018 at 12:48 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
2fc5f159da2d26e51f22f093c096a94230295d6e
SQL
Kimchoulwoo/SpringWeb
/src/main/webapp/sql/stadium.sql
UHC
2,368
3.578125
4
[]
no_license
create table stadium( stacode int not null auto_increment PRIMARY KEY, staname varchar(50) not null, staaddr1 varchar(50) not null, staaddr2 varchar(50) not null, staaddr3 varchar(50) not null, stapay int not null, stainfo varchar(2000) not null, stadate datetime not null, staclose int not null, staopen int n...
true
f52d13c825ac699391e682c22156e6639097f311
SQL
tienthanh7992/thcstto
/src/main/resources/data/db.sql
UTF-8
40,031
3.03125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 10.5 -- Dumped by pg_dump version 10.5 -- Started on 2018-10-29 19:43:46 +07 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_ca...
true
8e1706ad81324ba20fd14ef7b776821671fc1882
SQL
sirrin1991/NguyenThanhCong_Module3
/case_study_database/case_study_tasks/task10.sql
UTF-8
256
3.609375
4
[]
no_license
select c.contract_id id , c.start_day start_day, c.end_day end_day, c.deposit deposit, count(ct.contract_detail_id) as amounts_of_accompanied_service from contracts c inner join contract_detail ct on ct.contract_id = c.contract_id group by c.contract_id;
true
015413eaa7d3c4ee7e22a80129ddfad1a87fcad0
SQL
eea/rn3-deploy-scripts
/helm/eaa-deploy/test-files/metabase.sql
UTF-8
14,794
3.265625
3
[]
no_license
-- Initializing metabase structure historified as flyway will do -- Flyway V1 --TABLES CREATE TABLE IF NOT EXISTS public.dataflow ( id bigserial NOT NULL, description varchar(255) NULL, "name" varchar(255) NULL, creation_date timestamp null, DEADLINE_DATE timestamp null, status VARCHAR null, CONSTRAINT data...
true
e3ee60aabcb91ab675e0a38dc30174a6ff7fbec1
SQL
lambdatastic/jslcs
/config/makeTables.sql
UTF-8
3,011
3.515625
4
[]
no_license
-- --- -- Globals -- --- -- SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- SET FOREIGN_KEY_CHECKS=0; -- --- -- Table 'Teams' -- Table of teams, has abbreviations and full names -- --- DROP TABLE IF EXISTS `Teams`; CREATE TABLE `Teams` ( `id` INTEGER NOT NULL AUTO_INCREMENT UNIQUE, `shortName` VARCHAR(10) NOT NULL D...
true
d8a2e77637e65ab295b76e69c4c7a1a5d792db31
SQL
Amrit-Raj12/IQ-Assignment
/database/iqdb.sql
UTF-8
2,703
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Dec 05, 2020 at 08:15 AM -- Server version: 5.7.24-log -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
c687a985210a12a07774281c017d830a5aebef52
SQL
llw33556/apex-blog
/Database/Views/BLOG_V_POSTS_LAST20.sql
UTF-8
859
3.390625
3
[ "MIT" ]
permissive
-------------------------------------------------------- -- DDL for View BLOG_V_POSTS_LAST20 -------------------------------------------------------- CREATE OR REPLACE FORCE VIEW "BLOG_V_POSTS_LAST20" ("DISPLAY_SEQ", "POST_ID", "PUBLISHED_ON", "BLOGGER_NAME", "POST_TITLE", "POST_DESC", "CATEGORY_TITLE") AS with qry ...
true
7d641bee83e76daf83e03440a75ee26080c6638a
SQL
Ferreira17dtr/ProjetoPSI
/requisicao.sql
UTF-8
8,834
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 10-Dez-2020 às 22:13 -- Versão do servidor: 10.4.14-MariaDB -- versão do PHP: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
a863adf78243d4b27219e7083bdcfecfb04feb96
SQL
cole-robertson/DatabaseProject
/SQL Queries/Location/GetAllLocations.sql
UTF-8
122
2.515625
3
[]
no_license
CREATE PROCEDURE [Project].[GetAllLocations] AS SELECT * FROM [Location] ORDER BY Building ASC, RoomNumber ASC
true
df2cbec05539c9b06f0ee66024440c211f25b09b
SQL
qweasd1/is-2711-final
/code/database/mysql/batch/load_dim_customer.sql
UTF-8
1,052
3.484375
3
[]
no_license
CREATE DEFINER=`root`@`%` PROCEDURE `load_dim_customer`( _batch_id int ) BEGIN ## insert insert into dw.dim_customer SELECT vehicle.customer.id, vehicle.customer.name, case vehicle.customer.kind when 0 then 'home' when 1 then 'business' when 2 then 'government' else 'unknown' end as categor...
true
ab694fed565d15053212417cc5b523b6bd560c11
SQL
arrowfeng/go-grpc-http-rest-microservice-demo
/sql/Create_ToDo_Table.sql
UTF-8
243
2.875
3
[]
no_license
CREATE TABLE ToDo ( ID BIGINT(20) NOT NULL AUTO_INCREMENT, Title VARCHAR(200) DEFAULT NULL, Description VARCHAR(1024) DEFAULT NULL, Reminder TIMESTAMP NULL DEFAULT NULL, PRIMARY KEY (`ID`), UNIQUE KEY ID_UNIQUE (ID) );
true
3970f3a6b32dcde8b211b25757db37ab146dbbcc
SQL
adrbessy/PayMyBuddy
/ressources/data.sql
UTF-8
6,563
3.984375
4
[]
no_license
/* Setting up PROD DB */ create database prod; \c prod; CREATE TABLE public.User_account ( email_address VARCHAR(100) DEFAULT 'test@mail.fr' NOT NULL, password VARCHAR(100) DEFAULT 'password' NOT NULL, first_name VARCHAR(100) DEFAULT 'first name' NOT NULL, ...
true
f33169eb7bb159e05c8b9483989b5ef43f00c4be
SQL
julienmcoding/exercise-tracker
/query.sql
UTF-8
217
3.046875
3
[]
no_license
CREATE TABLE users ( username varchar(50) UNIQUE, _id UUID PRIMARY KEY ); CREATE TABLE exercices ( user_id UUID REFERENCES users (_id), description varchar(500), duration INTEGER, date DATE );
true
d1b14c71136562d15ef2aebbd380fe55719d44e4
SQL
Lileu/bamazon
/bamazon.sql
UTF-8
960
3.390625
3
[]
no_license
-- ### Challenge #1: Customer View (Minimum Requirement) DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( item_id INT AUTO_INCREMENT NOT NULL, product_name VARCHAR(40) NULL, department_name VARCHAR(30) NULL, price DECIMAL (10,2) NULL, stoc...
true
c7da835523cc064e9aca146639ada78f2b29672a
SQL
rbdjur/Mock-Amazon-App
/SqlHw.sql
UTF-8
861
3.375
3
[]
no_license
CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(50), department_name VARCHAR(50), price DECIMAL(10,2) NOT NULL, stock_quantity INTEGER(10), PRIMARY KEY (item_id) ); USE bamazon; INSERT INTO products (item_id, product_name, department_name, price,...
true
aa8df41cf791695750472f6791624a973585c0ab
SQL
spatil02/Taiho_R3
/global/cleanup/subject.sql
UTF-8
1,234
3.984375
4
[]
no_license
/* CCDM Subject second pass script Notes: - Update status to latest disposition record for subject. Set to 'Unknown' if null in order to satisfy not null constraint - Update exit date to earliest exiting disposition date for subject - Remove subject records without a matching site Revision Histor...
true
daa4eecb25609bd674f6b40f24eae1900173cd09
SQL
AteneaSoluciones/Mercurio
/otros/bdd/sql.sql
UTF-8
13,850
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.15.8 -- https://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 05-09-2017 a las 14:01:48 -- Versión del servidor: 5.5.44-MariaDB -- Versión de PHP: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Base de datos: `mercurio2` -- ...
true
ed6f6b0c4b0ff25bc26ef1e2d256c6da52cd7789
SQL
qihuiyong/sourcecode
/sql/MYSQL存储过程.sql
GB18030
1,881
3.8125
4
[]
no_license
DROP PROCEDURE IF EXISTS GEN_CUSTOM_PRODUCT_REL; --/ CREATE PROCEDURE GEN_CUSTOM_PRODUCT_REL(IN CUSTOM_GROUP_ID VARCHAR(32), IN LABLE_IDS VARCHAR(1024), IN LABLE_NAMES VARCHAR(1024)) MODIFIES SQL DATA BEGIN DECLARE SQL_FOR_SELECT VARCHAR(4000); SET LABLE_IDS=CONCAT('(\'',REPLACE(LABLE_IDS,'::','\',\'')...
true
117e8d195ea607e6f6300489e8166baafb93e900
SQL
Database-Project-with-travel/Database_Project
/create_table/create_table_country.sql
UTF-8
528
3.4375
3
[]
no_license
create table country( 年 int NOT NULL, 月 int NOT NULL, 國家名稱 varchar(15) NOT NULL, 英文國名 varchar(40), primary key (年, 月, 國家名稱) ); create trigger drop_bracket_in_afghaninstan before insert on country for each row set new.國家名稱 = substring_index(new.國家名稱, '(', 1); load data local infile './data/Inbound_Age.cs...
true