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
618bd24e0b0de6198c59de59a328f72b57a9295d
SQL
EderLukas/Portfolio
/SQL_MariaDB/some_queries.sql
UTF-8
2,705
3.609375
4
[ "MIT" ]
permissive
/*Aufg 4 a-c*/ SELECT mabt_fk AS 'Abt-Nr.' FROM mitarbeiter; SELECT mabt_fk AS 'Abt-Nr', mname AS 'Mitarbeiter', mfunktion AS 'Funktion' FROM mitarbeiter; SELECT mabt_fk AS 'Abt-Nr.', mname AS 'Mitarbeiter', mlohn AS 'Lohn' FROM mitarbeiter ORDER BY mabt_fk ASC, Lohn DESC; /*Aufg 5 a-d*/ SELECT m...
true
63be30fb0341d924fc18d75ef1197a50b04663d5
SQL
CarlosTenorio/Triviadisimos
/bdtriviadisimos.sql
UTF-8
45,399
3.4375
3
[]
no_license
-- -- Base de datos: `bdtriviadisimos` -- CREATE DATABASE IF NOT EXISTS `bdtriviadisimos`; USE `bdtriviadisimos`; -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `categoria` -- CREATE TABLE IF NOT EXISTS `categoria` ( `ID_Categoria` int(15) NOT NULL, `ID_Mundo...
true
0ec17acb22b68a492dc25cae57d23b94cd27ed0d
SQL
RobinLenin/siaa
/app/tributacion/scripts/comprobante_electronico.sql
UTF-8
862
3.046875
3
[]
no_license
CREATE TABLE sri_servicios.comprobante_electronico ( id serial NOT NULL, comprobante_id integer NOT NULL, numero_documento character varying(17) NOT NULL, clave_acceso character varying(49), numero_autorizacion character varying(49), fecha_autorizacion timestamp without time zone, estado varchar(1), tip...
true
caf90c6939fb6e730fc5e5cc4db7240f026bb275
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_HRBAO.SQL
GB18030
2,561
3.1875
3
[]
no_license
/* ================================================================================ ṹ:TB_HRBAO ṹ:Աнµ ṹĿ: ================================================================================ */ drop sequence SEQ_TB_HRBAO; drop index AK_TB_HRBAO; drop table TB_HRBAO; create table TB_HRBAO ( HRBAO_ID INTEGER ...
true
fd24ad94bd439d2af8984c8317e53f576ea7eefd
SQL
ccquach/tsql-fundamentals
/02 Single-table Queries/06 Working with Character Data.sql
UTF-8
3,154
4.15625
4
[]
no_license
/* Collation */ -- Get supported collations and their descriptions SELECT name , description FROM sys.fn_helpcollations(); -- Convert collation of an expression SELECT empid , firstname , lastname FROM HR.Employees WHERE lastname = N'davis'; -- default database collation is case INSENSITIVE SELECT emp...
true
0fc458ce8de4c7e71ee4789769bd01283f5f4f25
SQL
LondiweN/SQLBeginnerWork
/chapter 6/page 247.sql
UTF-8
1,043
2.875
3
[]
no_license
UPDATE movie_table SET category = CASE WHEN drama = ‘T’ AND rating = ‘R’ THEN ‘drama-r’ WHEN comedy = ‘T’ AND rating = ‘R’ THEN ‘comedy-r’ WHEN action = ‘T’ AND rating = ‘R’ THEN ‘action-r’ WHEN gore = ‘T’ AND rating = ‘R’ THEN ‘horror-r’ WHEN scifi = ‘T’ AND rating = ‘R’ THEN ‘scifi-r’ WHEN category = ‘misc’ AND ratin...
true
17bcdde194331877e6128987beab2f5a3247c897
SQL
vrdel/isabella-users
/frontend/helpers/dbcreate.sql
UTF-8
422
2.859375
3
[]
no_license
CREATE TABLE users ( user_id INTEGER PRIMARY KEY, username TEXT, home INTEGER, shared INTEGER, pass INTEGER, passvalue TEXT, sge INTEGER, maillist INTEGER, email INTEGER ); CREATE TABLE prio ( prio_id INTEGER PRIMARY KEY, project_name TEXT, papers INTEGER, prio INTEG...
true
eeb8d5b28747acac844379fe8b4f852e0ec420e6
SQL
dhxoghks95/sql_start
/입문/63_69.sql
UHC
1,330
3.921875
4
[]
no_license
SELECT e.ename as ̸, e.job as , e.sal as , d.loc as μġ FROM emp e join dept d USING (deptno) WHERE e.job = 'SALESMAN'; SELECT e.ename as ̸, e.job as , e.sal as , d.loc as μġ FROM emp e natural join dept d WHERE e.job = 'SALESMAN'; SELECT e.ename as ̸, e.job as , d.loc as μġ FROM emp e ...
true
037989f1645fe0c091bb0b7ead94a423269dd8b7
SQL
shreyade/Online-Store
/updatedProcedureE.sql
UTF-8
3,239
4.0625
4
[]
no_license
CREATE OR REPLACE PROCEDURE printInfo (custIdInput IN INTEGER, startDateInput IN DATE) AS startDate DATE; custIdLocal INTEGER; custNameLocal VARCHAR(20); phoneEmailLocal VARCHAR(30); custAddressLocal VARCHAR(30); orderIdLocal INTEGER; itemIdLocal INTEGER; itemTypeLocal VARCHAR(15); priceLocal NUMERIC(10,2); ...
true
3483b85ef4ba7379d65fb9c543d0c15734ab22ed
SQL
thierrysutter/siteClub
/document/script_bdd.sql
ISO-8859-1
23,444
3.453125
3
[]
no_license
DROP DATABASE IF EXISTS SITE; CREATE DATABASE SITE CHARACTER SET 'utf8'; USE SITE; DROP TABLE IF EXISTS SAISON; CREATE TABLE SAISON ( ID INTEGER(11) NOT NULL AUTO_INCREMENT, LIBELLE VARCHAR(100) NOT NULL, ETAT SMALLINT(6) NOT NULL, AUTEUR_MAJ VARCHAR(25) NOT NULL, DERNIERE_MAJ TIMESTAMP NOT N...
true
b0186cf581547becbaed474c052bea3a4c4b890e
SQL
Willremi/Groupe6
/ExercicesBDD/product.sql
UTF-8
2,330
3.5
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Mon Mar 30 14:17:17 2020 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
true
41bd6f3c1ad6ba5ec34a121f3685dd50e3c0ce43
SQL
kongyew/gpdb
/src/test/tinc/tincrepo/mpp/gpdb/tests/storage/filerep_end_to_end/resync/sql/resync_drop_col_heap_with_default.sql
UTF-8
120,505
3.046875
3
[ "Apache-2.0", "LicenseRef-scancode-generic-cla", "PostgreSQL", "LicenseRef-scancode-other-copyleft", "metamail", "BSD-3-Clause", "LicenseRef-scancode-openssl", "LicenseRef-scancode-other-permissive", "ISC", "Python-2.0", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "LicenseRef-scanco...
permissive
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- RESYNC TABLE resync_drop_column_heap_default1 -- CREATE TABLE resync_drop_column_heap_default1 ( a int,col001 char DEFAULT 'z',col002 numeric,col003 boolean DEFAULT false,col004 bit(3) DEFAULT '111',col005 text DEFAULT 'pookie', ...
true
c761068f7f12353b9b10d2a8acbf93e514a4d0d5
SQL
bmcculley/nameapp
/db.sql
UTF-8
639
3.53125
4
[]
no_license
SET SESSION storage_engine = "InnoDB"; SET SESSION time_zone = "+0:00"; ALTER DATABASE CHARACTER SET "utf8"; DROP TABLE IF EXISTS persons; CREATE TABLE persons ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, author_id INT NOT NULL REFERENCES users(id), firstname VARCHAR(100) NOT NULL, lastname VARCHAR(10...
true
36303373d128caa4b4eb7cd50e1cd5432bdaf28d
SQL
Jeromepullen/SQL-Projects
/Udemy SQL Course/selecting_data_using_like.sql
UTF-8
402
3.03125
3
[]
no_license
USE coffee_store; -- SELECT USING LIKE /* % any number of characters _ a single character */ SELECT * FROM customers WHERE last_name LIKE 'W%'; SELECT * FROM customers WHERE first_name LIKE '_o_'; SELECT * FROM customers WHERE first_name LIKE '_o%'; SELECT * FROM products WHERE price LIKE '3%'; -- need to enc...
true
c645bff94b2d360232dea164a719bb6f82e2134c
SQL
KarthikGangadhar/sql-design
/queries/create and load/gta_table.sql
UTF-8
318
2.6875
3
[ "MIT" ]
permissive
CREATE TABLE `doctoraldb`.`gta` ( `SectionId` VARCHAR(45) NOT NULL, `MonthlyPay` INT NOT NULL, `StudentId` VARCHAR(45) NULL, PRIMARY KEY (`SectionId`), FOREIGN KEY (`SectionId`) REFERENCES `doctoraldb`.`section` (`SectionId`), FOREIGN KEY (`StudentId`) REFERENCES `doctoraldb`.`phdstudent` (`StudentId`));
true
51a79553a26c3ac590e893ab2bb0e3e4bc54150c
SQL
radtek/abs3
/sql/mmfo/bars/Function/f_op_kas.sql
UTF-8
1,708
3.03125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/function/f_op_kas.sql =========*** Run *** = PROMPT ===================================================================================== CREATE OR REPLACE FUNCTION BA...
true
3f042ef9455ad9ce23be7c3353696233912725a2
SQL
Marcalzotto/Proyecto_egdo
/egdo_db_script/bdd_integrada/egdo_db (2).sql
UTF-8
18,665
3.25
3
[]
no_license
/*create database egdo_db; use egdo_db;*/ -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 14-07-2016 a las 06:55:35 -- Versión del servidor: 5.6.16 -- Versión de PHP: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!4...
true
07b8ab9dbb703c66489ddd64d39f4279c681f1a1
SQL
Jcc20/BD
/MySQL/Procedures_Transactions/Transactions.sql
UTF-8
3,912
3.875
4
[]
no_license
#Marcar um teste DELIMITER $$ CREATE PROCEDURE marcarTeste (IN idA VARCHAR(45),IN med VARCHAR(45), IN dat DATETIME) BEGIN DECLARE test1 INT; DECLARE test2 INT; DECLARE test3 INT; DECLARE test4 INT; DECLARE pre DOUBLE; DECLARE sucesso BOOL DEFAULT 0; SET autocommit = 0; SET pre = (SELECT RAN...
true
f098d5ade08e180ce2788f4f573abccc2f1b2013
SQL
ganeshbabuNN/Databases
/RDMS/Oracle Database/Function_Using_IN_IS.sql
UTF-8
670
3.71875
4
[]
no_license
desc employees; select * from employees; --getting the total salary of that deparmtent ID create or replace function TotalDeptSalary (varDepartmentID IN NUMBER) return NUMBER IS varTotalSalary NUMBER; varBalance NUMBER; begin /* Defining SQL query to retrieve the current balance */ select sum(salary) into varTot...
true
94dfa15f211825fc1a65766b14d7c695541aa29d
SQL
mpassak/db
/ddl/01_TABLE/BM_MODALITY_CONSTRAINT.sql
UTF-8
875
2.9375
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table BM_MODALITY -------------------------------------------------------- ALTER TABLE "METSM_OWNER"."BM_MODALITY" MODIFY ("DT_CREATED" NOT NULL ENABLE); ALTER TABLE "METSM_OWNER"."BM_MODALITY" ADD CONSTRAINT "PK_BM_MODALITY" PRIMARY KEY ...
true
61da3c30dfbae361dab6a9d26004185f8ef9d547
SQL
bellmit/iot-engine
/backup/core/scheduler/model/src/main/resources/ddl/01_edge_scheduler.sql
UTF-8
2,469
4.03125
4
[]
no_license
CREATE SCHEMA IF NOT EXISTS PUBLIC; CREATE TABLE IF NOT EXISTS JOB_ENTITY ( ID int GENERATED ALWAYS AS IDENTITY NOT NULL, GROUP_NAME varchar(63) NOT NULL, NAME varchar(63) NOT NULL, JOB_TYPE varchar(15) NOT NULL, FORWARD_IF_FAILURE boolean DEFAULT ...
true
80ea6ea1c6086af425441f5981856cacd412562c
SQL
weihongji/sql
/sqlserver/template/cte.sql
UTF-8
343
3.65625
4
[]
no_license
WITH Sales_CTE (SalesPersonID, SalesOrderID, SalesYear) AS ( SELECT SalesPersonID, SalesOrderID, YEAR(OrderDate) AS SalesYear FROM Sales.SalesOrderHeader WHERE SalesPersonID IS NOT NULL ) SELECT SalesPersonID, COUNT(SalesOrderID) AS TotalSales, SalesYear FROM Sales_CTE GROUP BY SalesYear, SalesPersonID ORDER BY Sal...
true
2a0f3f783821dcb1015752e127330dde30588c62
SQL
ua-eas/kc-3.1.1-5.2.1-dbupgrade
/current/5.0/tables/KC_TBL_BUDGET_COLUMNS_TO_ALTER.sql
UTF-8
508
2.65625
3
[]
no_license
CREATE TABLE BUDGET_COLUMNS_TO_ALTER( LOOKUP_RETURN VARCHAR2(50), COLUMN_NAME VARCHAR2(30), COLUMN_LABEL VARCHAR2(30) NOT NULL, DATA_TYPE VARCHAR2(9) NOT NULL, DATA_LENGTH NUMBER(4,0), HAS_LOOKUP CHAR(1) NOT NULL, LOOKUP_ARGUMENT VARCHAR2(100), UPDATE_TIMESTAMP DATE NOT NULL, UPDATE_USER VARCHAR2(60) NOT NULL,...
true
c732282e95ad786fb24bbb6dd2c368db35350e2a
SQL
MrKassadin/HANA-SQL
/配方行情成本填写页面.sql
UTF-8
425
3.5
4
[]
no_license
SET SCHEMA XN_FM; SELECT "ItemCode" "Code","ItemName" "Name",IFNULL("U_ItemPrice",N'无') "Price" FROM "OITM" T0 INNER JOIN "OITB" T1 ON T0."ItmsGrpCod"=T1."ItmsGrpCod" LEFT JOIN "@U_ITMPRICE" T2 ON T0."ItemCode"=T2."Code" WHERE T1."ItmsGrpNam" IN ('大宗原料','添加剂','半成品','包装物') AND "ItemName" NOT LIKE '%WH%' AND "ItemName" N...
true
1754a87fcd258406397c5eec0f0a61b3acd85cc9
SQL
hpmsnell/measures
/measures/2020/mips/268/spec.cql
UTF-8
2,570
3.4375
3
[]
no_license
library MIPS_268_2020 version '1' /* * Source: MIPS * ID: 268 * Year: 2020 * Version: 1 * Author: Patrick Clark * */ using QDM // MIPS value sets valueset "MIPS; MIPS 268 Encounter" valueset "MIPS; Epilepsy" valueset "MIPS; Performance Met: 4340F" valueset "MIPS; Performance Not Met: 4340F-8P" valueset "MIP...
true
520a0f5cac132f6b10195a72622b1039997148e7
SQL
Alvearie/cql_engine
/engine/src/test/resources/org/opencds/cqf/cql/engine/execution/ElmTests/Regression/qdm/ColorectalCancerScreening-8.4.000.cql
UTF-8
4,118
2.875
3
[ "Apache-2.0" ]
permissive
library ColorectalCancerScreening version '8.4.000' using QDM version '5.4' include Adult_Outpatient_Encounters version '1.2.000' called AdultOutpatientEncounters include MATGlobalCommonFunctions version '4.0.000' called Global include Hospice version '2.0.000' called Hospice include AdvancedIllnessandFrailtyExclusio...
true
0d6236c7fcb7e2609f9234b5734faf812fb9f02c
SQL
MaiKoDInW/Bus_RBRU
/api/busrbru.sql
UTF-8
3,588
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 05, 2021 at 10:44 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
1cdc804d5a7e41e88431ce6bdf73da8bf1eec587
SQL
ShubhamKhandelwal7/MySql
/Exercise-transaction.sql
UTF-8
1,409
4.09375
4
[]
no_license
CREATE TABLE users ( ID INTEGER , Name VARCHAR(20), Email VARCHAR(20), Account_no INTEGER UNIQUE, PRIMARY KEY (ID,Account_no) ); CREATE TABLE accounts ( ID INTEGER PRIMARY KEY, Account_no INTEGER, Balance INTEGER, FOREIGN KEY (Account_no) REFERENCES users(Account_no) ); INSERT INTO users VALUES (1,"userA","userA@gma...
true
bf22c77a84504c748ab653b7ed67efa1cef13b31
SQL
witnesslq/SiChuan
/scrcu/src/main/resources/init.sql
UTF-8
4,981
3.265625
3
[]
no_license
# Host: localhost (Version: 5.5.40) # Date: 2015-09-02 10:58:18 # Generator: MySQL-Front 5.3 (Build 4.120) /*!40101 SET NAMES utf8 */; # # Structure for table "custom" # DROP TABLE IF EXISTS `custom`; CREATE TABLE `custom` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL DEFAULT '', `url`...
true
793c75b63842bf5b608e53b84860aedc3b590883
SQL
AnshGaikwad/Hyper-Secure-Vault-Backend
/vault_db.sql
UTF-8
1,169
3.84375
4
[ "MIT" ]
permissive
-- Initialize the postgreSQL database template (using spring boot JDBC) drop database vaultdb; drop user vault; create user vault with password 'password'; create database vaultdb with template=template0 owner=vault; \connect vaultdb; alter default privileges grant all on tables to vault; alter default privileges gran...
true
303973f98dd8944ab29f871e3af142f18788896b
SQL
navnathsatre/SQL
/stproc_classwork.sql
UTF-8
3,403
3.890625
4
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `myproc`(aid integer) BEGIN if aid is null then select "Null not allowed" as message; elseif aid > 10 then select "Invalid Author" as message; else select "Selecting author details" as message; select authorid, name from authors where authorid = aid; ...
true
88b83a2c5e36a8f9b14dcf4e519fd659a2c9e425
SQL
roxas8210/table-api
/list.sql
UTF-8
1,826
3.046875
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version phpStudy 2014 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2017 年 07 月 11 日 18:03 -- 服务器版本: 5.5.53 -- PHP 版本: 5.4.45 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARA...
true
3531c2f9d6eb714bd3281ec9c0bf5b15cb590580
SQL
charlverster/mock_twitter_feed
/mysql_docker/sql-scripts/CreateTable.sql
UTF-8
671
3.828125
4
[ "MIT" ]
permissive
-- Create the users table CREATE TABLE users ( username VARCHAR(30) PRIMARY KEY -- Use user name as primary key. -- Assuming all user names are unique -- Assuming names are no longer than 30 characters ); -- Create the follows table CREATE TABLE follows ( username VARCHAR(30) NOT NULL REFERENCES ...
true
24a957d0de519297bef578237d98a00f56ff8416
SQL
ManuelLoaizaVasquez/inf246-bases-de-datos-pucp
/problemas/string-processing-functions/PatientsWithACondition.sql
UTF-8
185
3.0625
3
[]
no_license
-- https://leetcode.com/problems/patients-with-a-condition/ SELECT * FROM patients WHERE conditions LIKE 'DIAB1%' OR conditions LIKE '% DIAB1%' ORDER BY 1 ASC;
true
795e7aac3e316928205b90dbcd0e0af573496e8e
SQL
alanzhong/predictit-explorer
/src/backend/postgres/sql/update_hourly_aggregation.sql
UTF-8
725
3.4375
3
[]
no_license
/** * update hourly aggregation */ insert into observation_hour select contract_id, avg(buy_yes) as buy_yes, avg(buy_no) as buy_no, avg(sell_yes) as sell_yes, avg(sell_no) as sell_no, avg(last_close) as last_close, avg(last_trade) as last_trade, date_trunc('hour', date) as hour from ...
true
c504b675f998daf7efe129f3fd96830330e117b8
SQL
ebzeal/store-manager
/api/models/db.sql
UTF-8
3,762
3.609375
4
[]
no_license
DROP TABLE IF EXISTS users, usersProfile, categories, products, sales, incidents, notifications, feedback; CREATE TABLE IF NOT EXISTS users( id SERIAL PRIMARY KEY, userName VARCHAR(128), userEmail VARCHAR(128), userPriviledge VARCHAR(128), password VARCHAR(128), ...
true
3b40755cfce0333a0aa60bfab64bbedf788f5332
SQL
linhtdub/magento2_data_migration
/protected/data/step3_reset.sql
UTF-8
10,344
3.71875
4
[ "MIT" ]
permissive
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `catalog_category_entity` -- ---------------------------- DROP TABLE IF EXISTS `catalog_category_entity`; CREATE TABLE `catalog_category_entity` ( `entity_id` int(10) unsigned NOT NULL AUTO_INCRE...
true
a4d2308442fb99d53c99e666c18fde4739976786
SQL
psw7205/Programming-Practices
/Python/DB/sql1_1.sql
UTF-8
1,183
4.15625
4
[]
no_license
-- 한줄주석 /* 여러줄 주석 */ -- ************ -- 데이타베이스 변경하기 -- USE 데이타베이스명 USE world; USE employees; -- 현재 데이타베이스안의 테이블 확인하기 -- SHOW tables; SHOW TABLES; -- 테이블 정보 조회 SHOW TABLE STATUS; -- 테이블 구조 확인하기 -- DESC 테이블명; -- describe 테이블명; DESC salaries; -- 특정 레코드 표시 -- SELECT ... FROM 테이블명; SELECT * FROM employees LI...
true
05595660b309b64f6cda0d908363f27dc1faacd7
SQL
ejoo1109/oraclesource
/다중행함수.sql
UHC
6,759
4.71875
5
[]
no_license
--SUM : հ SELECT sum(sal), sum(distinct sal), sum(all sal) from emp; --distrinct sal ߺ ϰ հ --count : emp ̺ ˰ select count(*) from emp; --μ ȣ 30 ϱ select count(*) from emp where deptno=30; SELECT count(sal), count(distinct sal), count(all sal) from emp; --max(ִ밪), min(ּҰ) select max(sal), min(sal) from emp; --μȣ...
true
1ba4274fc39cad68622b8fce1b653fb23b1b15af
SQL
AleksandrPok/TaxiService
/src/main/resources/init_db.sql
UTF-8
1,646
3.953125
4
[]
no_license
CREATE SCHEMA `taxi` DEFAULT CHARACTER SET utf8 ; CREATE TABLE `taxi`.`manufacturer` ( `id` BIGINT(11) NOT NULL AUTO_INCREMENT, `name` VARCHAR(45) NOT NULL, `country` VARCHAR(45) NOT NULL, `deleted` TINYINT NOT NULL DEFAULT 0, PRIMARY KEY (`id`) ); CREATE TABLE `taxi`.`drivers` ( `id` BIGINT(1...
true
c1ec9b91e63a50d146ee951b2b4168c05e7e05d9
SQL
twinc1e/AuctionSite
/sql/auction.sql
UTF-8
10,897
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Июн 06 2019 г., 20:59 -- Версия сервера: 5.7.20 -- Версия PHP: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
4a02e15da5aec390458d369c0641f290714a5ce6
SQL
davidheryanto/turing
/infra/docker-compose/dev/turing/db-migrations/000001_schema_creation.up.sql
UTF-8
3,052
3.875
4
[ "Apache-2.0" ]
permissive
CREATE TYPE router_status as ENUM ('pending', 'failed', 'deployed', 'undeployed'); CREATE TYPE router_version_status as ENUM ('pending', 'failed', 'deployed', 'undeployed'); CREATE TABLE IF NOT EXISTS routers ( id serial PRIMARY KEY, project_id integer NOT NULL, ...
true
d4e97936093f1230e5e5d720db8281c258c881a0
SQL
renz-acain/portfolio
/old-portfolio/coodle/coodle.sql
UTF-8
8,324
3.234375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 28, 2013 at 07:57 PM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
true
019108456b92ceacb07dc66a60b3fa20443496fe
SQL
aimurphyii/bs-am-books-app
/data/schema.sql
UTF-8
805
2.890625
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS books; CREATE TABLE books ( id SERIAL PRIMARY KEY, title VARCHAR(255), author VARCHAR(255), isbn NUMERIC(20), image_url VARCHAR(255), description TEXT, bookshelf VARCHAR(255) ); INSERT INTO books (title, author, isbn, image_url, description, bookshelf) VALUES('Just So Stories',...
true
b43bbc11a2ece3615233ec8b3e2b7d58f2d257fd
SQL
slardizzone/broadwayly
/schema.sql
UTF-8
324
2.875
3
[]
no_license
create table shows ( id serial primary key, title varchar(50) not null, year varchar(4) not null, composer varchar(50) not null, img_url varchar(400) not null ); create table songs ( id serial primary key, title varchar(50) not null, embed_url varchar(300) not null, show_id integer references shows(id)...
true
8f134d7094cce6b662954b43d22cdca04be80a5c
SQL
Arlam/Catalog
/DB/catalog.sql
UTF-8
4,997
3.328125
3
[]
no_license
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; DROP TABLE IF EXISTS `actors`; CREATE TABLE IF NOT ...
true
116f4def61ee755f3ac5a7314236662953d4c612
SQL
NikiYu812/regional-transformation
/sql/rt_heatingexpense.sql
UTF-8
11,518
2.890625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50605 Source Host : localhost:3306 Source Database : regional transformation Target Server Type : MYSQL Target Server Version : 50605 File Encoding : 65001 Date: 2017-09-12 09:58:27 */ SET FOREIG...
true
c06770b130b49bf38b626e1f72942a478f6f959e
SQL
asongulol/Pewlett-Hackard-Analysis
/Analysis_Projects_Folder/Pewlett-Hackard-Analysis-Folder/Queries/schema.sql
UTF-8
8,689
4.5
4
[]
no_license
-- Creating tables for PH-EmployeeDB -- Syntax goes like , CREATE TABLE "name_of_the_table" ( CREATE TABLE departments ( -- column_name type of data(length of data) NOT NULL, dept_no VARCHAR(4) NOT NULL, dept_name VARCHAR(40) NOT NULL, -- define what is the primary key inside parentheses PRIMARY KEY (dept_n...
true
b38bb6dcad2730137d6f76d57be95361d26bc453
SQL
cmmgw/Pewlett-Hackard-Analysis
/Queries/queries.sql
UTF-8
5,210
4.21875
4
[]
no_license
-- Creating tables for PH-EmployeeDB -- Departments Table CREATE TABLE departments ( dept_no VARCHAR(4) NOT NULL, dept_name VARCHAR(40) NOT NULL, PRIMARY KEY (dept_no), UNIQUE (dept_name) ); -- Employees Table CREATE TABLE employees ( emp_no INT NOT NULL, birth_date DATE NOT NULL, firs...
true
c82df1062972d702990722b1bf6a8f487a577a9e
SQL
robinsonmhj/codebase15-18
/StockReport/database.sql
UTF-8
502
2.765625
3
[]
no_license
create database finance; drop table if exists finance.company; create table finance.company( id bigint NOT NULL AUTO_INCREMENT symbol varchar(5) not null, company_name varchar(50), address1 varchar(100), address2 varchar(20), county varchar(20), phone varchar(20), website varchar(20), sector varchar(20), ...
true
e093d32cc6b6aae8a85fd7c36fc27de649538daf
SQL
VijayMVC/Synergy
/User/Debbie Ann Chavez/Pull Attendance Daily Half and Full Days with Details for Ashley.sql
UTF-8
201
2.875
3
[]
no_license
SELECT SIS_NUMBER, STATE_STUDENT_NUMBER, SCHOOL_CODE, CAST(ABS_DATE AS DATE) AS ABS_DATE, [Half-Day Unexcused], [Full-Day Unexcused] FROM [APS].[Daily]('2016-05-25') WHERE SIS_NUMBER = 970035916
true
8aaca7b049c4f0ae9608f1b48569e511dcbee26a
SQL
Los-bocachicos/EGCONAplicaciones
/api/src/db/creacion_tabla_aplicaciones.sql
UTF-8
605
2.703125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `evergreen`; USE `evergreen`; CREATE TABLE `evergreen`.`aplicaciones` ( `id` int NOT NULL AUTO_INCREMENT, `nombre` varchar(100) NOT NULL, `puerto` int DEFAULT NULL, `estado` int DEFAULT NULL, `tipo` int DEFAULT NULL, `imagen` varchar(200) DEFAULT NULL, `lenguaje` varchar(20...
true
40538ff6a9fdeff45c0287cc698d8d609a7b07db
SQL
cjungmann/sfw_new_enroll
/setup_files/procs_2_login.sql
UTF-8
10,529
3.796875
4
[]
no_license
DELIMITER $$ -- ----------------------------------------------- DROP FUNCTION IF EXISTS App_User_Password_Is_Valid $$ CREATE FUNCTION App_User_Password_Is_Valid(id_user INT UNSIGNED, password VARCHAR(30)) RETURNS BOOLEAN BEGIN DECLARE pcount INT UNSIGNED; SELECT COUNT(*) INTO pcount FROM User u IN...
true
4480077d5363743766674a35fb5ba7bc6997be61
SQL
maxabelardo/comandos
/ORACLE - Scripts SQL do dia a dia/Scripts Uteis - Retorna o tamanho das tabelas da database.sql
UTF-8
972
4.34375
4
[]
no_license
/* Lista todas as tabelas e suas metricas: tamanho do dados, tamanho do index, total de linhas */ SELECT TB.OWNER , TB.TABLE_NAME , NVL(min(NUM_ROWS),0) NUM_ROWS , ROUND(sum(TB.DATA_KB),2) DATA_KB , ROUND(sum(IX.INDX_KB),2) INDX_KB , ROUND(sum(IX.INDX_KB + TB.DATA_KB ),2) RESERVED_KB FROM (SE...
true
7672d8580afe706723af4e7feca2346efc199a02
SQL
radtek/abs3
/sql/mmfo/bars/Data/tts/et_tm5.sql
WINDOWS-1251
13,952
2.953125
3
[]
no_license
set lines 1000 set trimspool on set serveroutput on size 1000000 prompt / TM5 prompt : TM5/ () declare cnt_ number; begin -------------------------------- -- -- -------------------------------- begin insert into tts(tt, name, dk, nlsm, kv, nlsk, kvk, nlss, nlsa, nlsb, mfob, flc, fli...
true
61a63ea0065987264ed0e9fa4402c142a9902ec7
SQL
ganeshbabuNN/Databases
/RDMS/Oracle Database/RegularExpression_REGEXP_INSTR_HoldSix+DigitsPincode.sql
UTF-8
841
3.609375
4
[]
no_license
--view drop view vlocations; create view vlocations as select location_id, Street_address || ','|| postal_code Address from locations; --address holds either hold a four digits or a four +five digits pincode along with address select location_id,Address, regexp_INSTR (Address,'[[:digit:]]{6}(-[[:digit:]]{7})?$') pinc...
true
71af017a9bb096a2466f5f358c9bddcd4dd55ee3
SQL
diegolt8/ProyectoFinalBack
/Resource/farmacia.sql
UTF-8
37,227
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 28-05-2020 a las 02:11:26 -- Versión del servidor: 10.4.10-MariaDB -- Versión de PHP: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...
true
02ce86732612a5f57faced8d8ff0aef0ae3f8f51
SQL
almogalili/maman11-sql
/maman11-questions.sql
UTF-8
2,908
4.46875
4
[]
no_license
/* 1 */ SELECT eid FROM Employee as e WHERE e.salary < 12000 AND e.classification BETWEEN 1 AND 3; /* 2 */ SELECT ename, salary FROM Employee AS e, Onproject AS o, Project AS p WHERE e.did = 1 AND e.eid = o.eid AND p.pid = o.pid AND p.pname = 'search' /* 3 */ SELECT d.did, dname, SUM(distinct p.budget) AS total...
true
47fbb357f3d7d42bd8d7af4f02784246e34b3ed6
SQL
mikestevenson86/SQL-Repository
/Mike S Queries/Archives/00 Archive 2016/05 May 2016/HR Forced Installs.sql
UTF-8
693
3.59375
4
[]
no_license
SELECT 'http://database/shorthorn/shClient.asp?clientID=' + CONVERT(varchar, cl.clientId) + '&dealId=' + CONVERT(varchar, dl.dealId) [Shorthorn Link], cl.companyName [Company Name], s.siteName [Site Name], s.postcode [Site PostCode], hr.inMakeUp [Make Up Date], mu.[type] [Make Up Type] FROM Shorthorn..cit_sh_deal...
true
6a1c797167ca7e783092fcf357bbaec1c342eb53
SQL
ShattereDarkness/dbms-ass4
/DBMS ass/ddl.sql
UTF-8
2,149
4.03125
4
[]
no_license
drop database company_db; create database company_db; \c company_db CREATE TABLE COMPANY ( CompanyID INT, Cname VARCHAR(10), Primary key(CompanyID) ); CREATE TABLE DEPARTMENT ( Dname VARCHAR(15) NOT NULL, Mgr_ssn CHAR(9) , CompanyID INT, DepartmentID Int, PRIMARY KEY (DepartmentID, CompanyID), -- UNIQUE (Dn...
true
efa94fa3e5fe732197928f38b4773729e01ac355
SQL
cfv7/blog-app-challenge
/blog-app-challenge.sql
UTF-8
2,150
4.53125
5
[]
no_license
-- users - first_name, last_name, email_address NOT NULL, screen_name NOT NULL -- posts - author, title, content, timestamp, >=0 comments, >=0 tags -- comments - author, posts, text -- tags - text -- write SQL statements to create some users, posts, and comments --user => posts, comments --post => comments, tags --c...
true
7c911b2857dbe3446bc140455848139ad5317d88
SQL
uniphil/write-only.space
/src/migrations/add-author-table.sql
UTF-8
714
4.21875
4
[]
no_license
CREATE TABLE author ( email citext PRIMARY KEY NOT NULL CONSTRAINT could_be_valid_email CHECK ( length(email) <= 254 AND email like '%_@_%' ) , timestamp timestamp NOT NULL DEFAULT now() , username text UNIQUE ); -- give existing authors each a row INSERT INTO author (email, timestamp) SEL...
true
65deaacff5ad334e4287f33d05634a92832b12af
SQL
dmitriynitievskiy/BSU-MMF
/2_course/Database/TaskScript.sql
UTF-8
2,368
4.0625
4
[]
no_license
USE hr; set SQL_SAFE_UPDATES = 0; set FOREIGN_KEY_CHECKS = 0; /* 1 */ TRUNCATE TABLE locations; INSERT INTO locations(street_address,postal_code,city,state_province,country_id) SELECT DISTINCT street_address,postal_code,city,state_province,country_id FROM report WHERE city IS NOT NULL AND country_id IS NOT NULL; /* 2 *...
true
24b513c0f03c1ee31791f5eabad37a3a05f179c3
SQL
Minh42/42_project-piscine_PHP
/j05/ex10/ex10.sql
UTF-8
168
3.203125
3
[]
no_license
SELECT titre AS 'Titre', resum as 'Resume', annee_prod FROM film INNER JOIN genre ON film.id_genre = genre.id_genre WHERE genre.id_genre = 25 ORDER BY annee_prod DESC;
true
018f6132efcb9d03cff79d237c7ae4c0547f57cb
SQL
pstoeber/nba-stats-predictor
/Pipeline Development/multithread_testing_sql/multithread/player_misc_stats.sql
UTF-8
2,656
2.875
3
[]
no_license
insert into nba_stats_backup.player_misc_stats (select `b`.`game_hash` AS `game_hash`, `pv`.`player_id` AS `player_id`, `misc`.`PTS_OFF_TO` AS `pts_off_to`, `misc`.`2...
true
725f068e2de0aff0dd7155dfec2ee66a8bfb8ff9
SQL
brettshollenberger/databases-course-lab-7
/modify/bakery.sql
UTF-8
1,368
4.25
4
[]
no_license
/* For each pastry flavor which is found in more than three types of pastries sold by the bakery, report the average price of an item of this flavor and the total number of different pastrties of this flavor on the menu. Sort the output in ascending order by the average price */ select flavor, count(id) as count, ...
true
856ad8aa4e68d8b72f0fe0bf309867ae0d2dd22b
SQL
centripetum/server
/docs/newer/03-views.sql
UTF-8
9,494
4.4375
4
[]
no_license
-- PATH RELATIONSHIP CREATE VIEW app_private.path_relationship AS SELECT 'Event'::text AS type, event.id, CASE WHEN (event.parent IS NULL) THEN NULL::uuid ELSE event.parent END AS parent_id, CASE WHEN (event.parent IS NULL) THEN '/'::text ELSE...
true
206679833c556502149f95ec0f8d6206935aabe3
SQL
djrobstep/migra
/tests/FIXTURES/rls/b.sql
UTF-8
367
2.625
3
[ "Unlicense" ]
permissive
CREATE TABLE accounts (manager text, company text, contact_email text); ALTER TABLE accounts ENABLE ROW LEVEL SECURITY; CREATE POLICY account_managers ON accounts as restrictive TO schemainspect_test_role USING (manager = current_user); CREATE TABLE accounts2 (manager text, company text, contact_email text); AL...
true
b14fe956baa03f2682d5815ab7b1da05499844de
SQL
ivanandrianto/Biodict
/assets/mydb2.sql
UTF-8
230
2.625
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE `table1` ( `_id` INTEGER, `name` TEXT, `desc` TEXT, PRIMARY KEY(_id) ); CREATE TABLE "android_metadata" ("locale" TEXT DEFAULT 'en_US'); INSERT INTO `android_metadata` VALUES ('en_US'); COMMIT;
true
5a05f4dcad25c3810df2696cccbe38512eddfe21
SQL
gon1958/minibso
/minibso/create/append/addcoll.sql
UTF-8
1,468
3.484375
3
[]
no_license
set serveroutput on; create or replace procedure addColl is vParentId number; vNRecord number; dynStmt varchar2(2000); type tDynStmtCur is ref cursor; dynStmtCur tDynStmtCur; reduAddRec redu_add%rowtype; begin for iterLev in (select id_obj, table_name from redu_add where lev = 0 ) loop for co...
true
07424a76adb085b49c8afd2eecc88110b2ffb052
SQL
nss-day-cohort-13/chinook-carter-harris
/brazil_customers_invoices.sql
UTF-8
372
3.625
4
[ "MIT" ]
permissive
-- Provide a query showing the Invoices of customers who are from Brazil. -- The resultant table should show the customer's full name, Invoice ID, -- Date of the invoice and billing country. -- #3 select c.FirstName, c.LastName, c.Country i.InvoiceId, i.InvoiceDate, from Customer c, Invoice i where c.Cu...
true
14f051b3bd3d4a10a0b5d0bab8f04ac4bd1e7aeb
SQL
diego1982chile/SIGGES
/RFCSalud Conectada Fase 3 2015.01.15/RFCSalud Conectada Fase 3 2015.01.15/2.-Trabajo/1. AT/2.ENDECA/(003)[AT.ENDECA] IA CREA 4 VISTAS ENDECA F3.sql
WINDOWS-1250
2,027
2.921875
3
[]
no_license
INSERT INTO sis.SIS_TAB_CONTROL_SCRIPT (RESPONSABLE, NOMBRE_SCRIPT, DESCRIPCION, FECHA_EJECUCION, NUMERO_OT) VALUES ('Ivn Aguilera', '(003)[...
true
d689607557b5782d0e17de3bc7728b3b3b9fcd07
SQL
aaric/spring-boot-2-achieve
/sparrow-db-init/src/main/resources/db/migration/V1.0_5__role.sql
UTF-8
556
3.390625
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS role ( id serial PRIMARY KEY, role_name varchar(50) NOT NULL UNIQUE, is_del boolean NOT NULL DEFAULT FALSE, insert_time timestamp WITH time ZONE NOT NULL DEFAULT current_timestamp ); COMMENT ON TABLE role IS '权限信息'; COMMENT ON COLUMN role.id IS 'ID'; COMMENT ON COLUMN role.role_name ...
true
ac37892583aa5720a6c8ece26cfb0e230b2e6e3c
SQL
ericafenyo/wild-circus
/server/query.sql
UTF-8
919
3.53125
4
[]
no_license
CREATE DATABASE `circus`; USE `circus` CREATE TABLE `spectator` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(255) NOT NULL, `email` VARCHAR(255) NOT NULL, `birthDate` VARCHAR(125) NOT NULL ); CREATE TABLE `event` ( `id` INT PRIMARY KEY AUTO_INCREMENT, `title` VARCHAR(255) NOT NULL, `descripti...
true
0c7789fcd8a1f3b9e537d6b3524b0d2c5a1ac8ed
SQL
korezonzi/-NB_SQL
/theme-c/63.sql
UTF-8
188
2.9375
3
[]
no_license
select E.イベント番号,E.イベント名称,M.クリア区分 from イベント E join 経験イベント M on E.イベント番号= M.イベント番号 where E.タイプ = '1'
true
b64fe5772c94a17c9d303a112284cb7e7ea7f24d
SQL
Irreverent-Ironwood/Reviews-API
/reviewsAPI/dbsql/schema.sql
UTF-8
1,686
3.875
4
[]
no_license
DROP DATABASE IF EXISTS retaildb; CREATE DATABASE retaildb; USE retaildb; CREATE TABLE product ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, product_id INT UNSIGNED NOT NULL, PRIMARY KEY(id) ); CREATE TABLE reviews ( id INT UNSIGNED NOT NULL AUTO_INCREMENT, product_id INT UNSIGNED NOT NULL, rating TINYINT ...
true
9600deebe3e372c4038e882ae1482b15b1742034
SQL
hans511002/erydb_rep
/utils/scenarios/perf/source/iteration17queries/Group5/grp5_6_test.sql
UTF-8
507
2.828125
3
[]
no_license
select p_brand, sum(l_quantity) tot_qty, avg(l_quantity) avg_qty from lineitem, part where l_shipdate between '1996-04-01' and '1996-04-14' and l_partkey = p_partkey and p_size = 5 group by p_brand order by 1; Select erygetstats(); Select now(); select p_brand, sum(l_quantity) tot_qty, avg(l_quantity) avg...
true
0602ed910abc29568a1b03985675cf2a4a4b83c8
SQL
korezonzi/-NB_SQL
/theme-b/59.sql
UTF-8
343
3.390625
3
[]
no_license
SELECT A.数量合計 AS 割引による販売数, TRUNC(A.割引料合計 / A.数量合計) AS 平均割引額 FROM (SELECT SUM(数量) AS 数量合計, SUM(クーポン割引料) AS 割引料合計 FROM 注文 WHERE 商品コード = 'W0746' AND クーポン割引料 IS NOT NULL) AS A
true
023668fb45d7538b6e445b5d18e01b19a9bb7e46
SQL
patorma/GastosBackend
/GastosBackend/bin/main/import.sql
UTF-8
3,270
2.75
3
[]
no_license
/*Registro de tipos de gastos*/ INSERT INTO tipo_gastos (nombre) VALUES ('Gastos Comunes'); INSERT INTO tipo_gastos (nombre) VALUES ('Ferreteria'); INSERT INTO tipo_gastos (nombre) VALUES ('Supermercado'); INSERT INTO tipo_gastos (nombre) VALUES ('Transporte'); INSERT INTO tipo_gastos (nombre) VALUES ('Carniceria'); IN...
true
91096185d1eb911b561be8c87aca63733aef8559
SQL
BUPT-SCS-2015-Web-Developer/borrow-site
/localhost.sql
UTF-8
2,041
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version phpStudy 2014 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2017 年 03 月 26 日 15:54 -- 服务器版本: 5.5.53 -- PHP 版本: 5.4.45 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARA...
true
f4f822c93ef094b65d429350f9fb4e4b700295fb
SQL
RKWKomZe/RkwForm
/ext_tables.sql
UTF-8
1,512
2.828125
3
[]
no_license
# # Table structure for table 'tx_rkwform_domain_model_standardform' # CREATE TABLE tx_rkwform_domain_model_standardform ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, salutation int(11) DEFAULT '0' NOT NULL, first_name varchar(255) DEFAULT '' NOT NULL, last_name varchar(255) DEFAULT ''...
true
45dc7c0112276eb400831023ea24cb09dfdb8596
SQL
sinotopia/sinotopia-pay
/sinotopia-pay-migration/scripts/20170513153050_init_pms_role_permission_data.sql
UTF-8
3,070
2.59375
3
[ "Apache-2.0" ]
permissive
-- -- Copyright 2010-2016 the original author or authors. -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/licenses/LICENSE-2.0 -- -- Unles...
true
17a6be24bd4f9af7f260c2a15e34b06cc5d6cd51
SQL
mdaria/SQL
/sql-ex.ru/DML/Ships/8.sql
UTF-8
257
2.59375
3
[]
no_license
--Задание: 8 (Serge I: 2004-09-08) --Удалите из таблицы Ships все корабли, потопленные в сражениях. DELETE FROM Ships FROM Ships INNER JOIN Outcomes ON Ships.name = Outcomes.ship WHERE result = 'sunk';
true
85682dbe49f7020d8259bc7a1dc1ef706b24fd38
SQL
Darkaby/Bibliotheque-numerique
/bookstore.sql
UTF-8
3,165
3.515625
4
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SE...
true
8ce2ad1f11667de7edb9499e5161169e7d9ef108
SQL
beeflawg/bamazon
/schema.sql
UTF-8
349
3.125
3
[]
no_license
-- DROP DATABASE IF EXISTS bamazonDB; CREATE DATABASE bamazonDB; USE bamazonDB; CREATE TABLE products( id INTEGER(11) AUTO_INCREMENT NOT NULL, item_id INTEGER(11) not null, product_name VARCHAR(100) not null, department_name VARCHAR(100) not null, price decimal(10,4) not null, stock_quantity integer(11) no...
true
a95cc57157b67e66d1a067a7b9226d15eeba1dc7
SQL
PiotrIzw/liga-szachowa
/src/sql/ElementaryDatabase.sql
UTF-8
1,503
3.984375
4
[]
no_license
#Usun baze DROP DATABASE LigaSzachowa; #Tworzenie bazy CREATE DATABASE LigaSzachowa; #Uzycie bazy USE LigaSzachowa; #Tworzenie tabeli ListaZawodnikow CREATE TABLE ListaZawodnikow ( PlayerID int(11) NOT NULL AUTO_INCREMENT, FirstName varchar(255) NOT NULL, Surname varchar(255) NOT NULL, Country varch...
true
a8b7450beebaf7337fe4f1bfbba3dc4879618e33
SQL
sanrules/mlp
/back/src/main/resources/database/mlp.sql
UTF-8
1,324
3.828125
4
[]
no_license
create table if not exists category ( id bigint auto_increment primary key, description varchar(50) null ); create table if not exists product ( id bigint auto_increment primary key, name varchar(50) null, variety varchar(50) null, description varchar(500) null ...
true
5e1913af83ac387c0121c0f974a230f503f16703
SQL
taipeifx/vote_data_TW
/2004_11/new templates 11.sql
UTF-8
6,400
3.84375
4
[]
no_license
use vote_data; #elctks has 43862 obs which should be correct #elctks20160523 has 43863 obs. why? # ENGLISH TEMPLATES############# ONE ############### CREATE TABLE `vote_data`.`elbase_11` ( `V1` INT(3) NULL, `V2` INT(3) NULL, `V3` INT(2) NULL, `V4` INT(3) NULL, `V5` INT(4) NULL, `AName` CHAR(30) NULL )...
true
be0d8b2f67c087d5c08f2a58844303a6318a7daf
SQL
MonetDBSolutions/airtraffic-benchmark
/sql/q18.sql
UTF-8
124
2.5625
3
[]
no_license
SET SCHEMA atraf; SELECT "Carrier", "Year", COUNT(*) FROM ontime GROUP BY "Carrier", "Year" ORDER BY "Carrier", "Year" ;
true
2b21c2ea3c362f77702e2893f237d9e9afc6320d
SQL
NjekeMbai/Food-Guru
/user_registration.sql
UTF-8
1,907
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 02, 2020 at 03:14 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
3cb42d0af18cc1b6e0fe78e34172671592ea7635
SQL
joonyoo/snowflake_security_analytics
/snowsql/aws/elbMonitoringIngestion.sql
UTF-8
2,989
3.40625
3
[ "Apache-2.0" ]
permissive
//=========================================================== // Create elb monitoring objects //=========================================================== // set context USE ROLE SNOWALERT; USE WAREHOUSE SNOWALERT; // CREATE TABLE CREATE TABLE IF NOT EXISTS SNOWALERT.AWS.ELB_MONITORING_LANDING_ZONE ( RAW_DATA ...
true
26e8a20b44e5b75896b6f63845347c3756b0d4ac
SQL
srsohan150626/student_management
/database/student_management.sql
UTF-8
23,838
3.390625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 19, 2019 at 05:23 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
31499cd0626d9b228d0aff828417d6ef0911d724
SQL
74Labs/node-sparx-ea
/sql/diagrams/multi.sql
UTF-8
119
2.53125
3
[ "MIT" ]
permissive
select Diagram_ID as id, Name as name from t_diagram order by Name offset (@OFFSET) rows fetch next (@LIMIT) rows only
true
2d81adc63b6108f710b7635736a96ebbbf31b560
SQL
ogu-rep/my-sql
/tmp.sql
UTF-8
477
3.40625
3
[]
no_license
drop table if exists posts; create table posts ( id int unsigned primary key auto_increment, title varchar(255), created_at datetime default current_timestamp, updated_at datetime default current_timestamp on update currentstamp, ); insert into posts (title) values ('title1'); insert into posts (title) values...
true
edf68a9daaebfba5963fd05acdd143330c9dc9c9
SQL
Wyshown/projectFile
/02_项目开发目录/01_数据库开发/02_表结构变更/18-12-24-app资讯列表迭代-店铺资讯-访谈字段增加.sql
UTF-8
932
2.859375
3
[]
no_license
-- 店铺资讯id ALTER TABLE S_ARTICLE ADD COLUMN ARTICLE_BELONG_STORE_ID varchar(32) DEFAULT NULL COMMENT "店铺资讯所属店铺id" AFTER VIDEO_URL ; -- 专访(访谈) 头像 ALTER TABLE S_ARTICLE ADD COLUMN INTERVIEWEE_PROFILE_URL varchar(255) DEFAULT NULL COMMENT "专访(访谈) 被采访者头像" AFTER ARTICLE_BELONG_STORE_ID; -- 专访(访谈) 专访姓名 ALTER TABLE S_ARTI...
true
2ff39ef45ecea40ce94a756e23aac72f784917e9
SQL
nnanchari/pgexercises
/Aggregation.sql
UTF-8
8,888
4.65625
5
[]
no_license
-- Count the number of expensive facilities -- Question -- Produce a count of the number of facilities that have a cost to guests of 10 or more. select count(*) from cd.facilities where guestcost>=10; -- Count the number of recommendations each member makes. -- Question -- Produce a count of the number of recommend...
true
13290f0febf5721d1f13b1da2e269ffa86f5e680
SQL
jukarsoft/poo_152_libreria_DPO
/libreria_original.sql
UTF-8
1,925
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 20-04-2017 a las 19:06:47 -- Versión del servidor: 5.6.16 -- Versión de PHP: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
21a5a79aed6eb7cea77528c50201491fc611d6b1
SQL
wvanheemstra/core
/apps/tests/models/tables/structures/sql/tbl_test_scenario.sql
UTF-8
1,153
3.25
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : wvanheem_core_local Source Server Version : 50509 Source Host : 127.0.0.1 Source Database : core Target Server Version : 50509 File Encoding : utf-8 Date: 07/05/2012 14:19:56 PM */ SET NAMES utf8; SET FOREIGN_KEY_CHECKS = 0; -- ...
true
99dbed49c9157cf7534918bd6e40c0597fb927dd
SQL
lsst/qserv
/src/replica/schema/migrate-9-to-10.sql
UTF-8
1,577
3.25
3
[]
no_license
-- A few notes on the default values of the new columns: -- -- 1) Values of the `create_time` and `publish_time` columns of both tables will -- be incorrect for any catalogs and tables. Correct values should be set -- (if that will be needed) from at the earliest `create time` and `end_time` -- values of the d...
true
f1e1ec88e0d6fa6ddfe963b3b1599da6e6c54a53
SQL
justin830827/Venhicle-Mangement-System
/sql/insert.sql
UTF-8
78,840
3.015625
3
[]
no_license
/* Service Center Schema: |Center_id| Center_name| Center_addr| Center_phonenum| Open_dat| Open Hour| Emp_Quan */ insert into SERVICE_CENTER values ('S0001', 'Downtown Auto Care', '437 Fayetteville St., Raleigh, NC 27601', 18008999999, 'M-F', '8AM-7PM', 7); insert into SERVICE_CENTER values ('S0002', 'Express Auto Shop...
true