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
3d0922a1f4ef2dd88bc4a95cc5b0e1af4f14b1f1
SQL
jramiloQV/Fonade
/FonadeDB/dbo/Stored Procedures/MD_CrearInformeVisita.sql
UTF-8
1,436
3.359375
3
[]
no_license
/* Fecha: 16/09/2014. Nombre: Mauricio Arias Olave. Procedimiento: MD_CrearInformeVisita Descripción: Registrar o actualizar el informe de visita que se manipula desde la ventana "AdicionarInformeVisitaProyecto.aspx". */ CREATE PROCEDURE MD_CrearInformeVisita ( @PARAMETRO VARCHAR(11), @NombreInforme NVARCHAR(2...
true
4854c1cf83f757a5668cf4da145e91c0569b196b
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day25/select1453.sql
UTF-8
178
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-24T14:53:00Z' AND timestamp<'2017-11-25T14:53:00Z' AND temperature>=12 AND temperature<=79
true
09a5d8af8692531fc15abea48c80a4c178864792
SQL
nisngyo/bf_shop
/install/install.sql
UTF-8
10,418
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- 主机: localhost -- 生成日期: 2020-04-25 13:16:35 -- 服务器版本: 5.7.26 -- PHP 版本: 7.3.4 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_CLI...
true
41b8393c9bfa5bcc02fc1e468c639de690302913
SQL
cs50/problems
/songs/setup.sql
UTF-8
22,919
3.203125
3
[]
no_license
-- Create tables CREATE TABLE movies ( id INTEGER, title TEXT NOT NULL, year TEXT, PRIMARY KEY(id) ); CREATE TABLE people ( id INTEGER, name TEXT NOT NULL, birth TEXT, PRIMARY KEY(id) ); CREATE TABLE stars ( movie_id INTEGER NOT NULL, person_id INTEGER NOT NULL ); CREATE TABLE di...
true
708105e1a4208a3cd57d660d55cacf6401d238cb
SQL
Venkatalakshmi78/Simple-Project-Management-App
/app_db.sql
UTF-8
1,698
3.40625
3
[ "MIT" ]
permissive
CREATE DATABASE APP_DB; USE `app_db`; /*Table structure for table `project_info` */ DROP TABLE IF EXISTS `project_info`; CREATE TABLE `project_info` ( `id` int(11) NOT NULL AUTO_INCREMENT, `project_title` varchar(60) DEFAULT NULL, `project_start_date` varchar(20) DEFAULT NULL, `project_end_date` varchar(20)...
true
4f70d7a7c47eee31d809512123c27cc6ce93eaf0
SQL
elixneto/DB1.MestreDosCodigos.SQL
/Escudeiro/dataload.sql
UTF-8
1,962
3.8125
4
[]
no_license
USE mestredoscodigos; DELETE atendimento; DELETE usuario; DELETE paciente; DELETE clinica_profissional; DELETE profissional; DELETE tipo_profissional; DELETE clinica; ----------------------------------------------------------------- INSERT INTO clinica (cnpj, nome_fantasia) VALUES ('04204018000166', 'DB1 CLINICA'); ...
true
ae1a645d695bf2d54b5f29af4832cfa8e527f305
SQL
corykitchens/cci-ransomware
/db/schema_dev.sql
UTF-8
3,394
3.765625
4
[]
no_license
-- -- Table Definitions -- create table public.contest ( contest_id int not null, event_date date, winner_id int ); create table public.flag ( flag_id int not null, value varchar(100) not null ); create table public.team ( team_id int not null, name varchar(100) not null, password varchar(100), ...
true
e08c3637c3666c9b838f0505fdceb0a966daf81a
SQL
2002javareact/project-0-Gerard-Cancino
/sql/create-tables.sql
UTF-8
1,050
3.5625
4
[]
no_license
drop table if exists "reimbursement"; drop table if exists "user"; drop table if exists "role"; drop table if exists "reimbursement_status"; drop table if exists "reimbursement_type"; create table "role" ( id serial primary key, "name" varchar not null ); create table "user" ( id serial primary key, username var...
true
72e9565d29f9f211ff114e66a26b0a29e875d410
SQL
Asbaharoon/ERP_Garment_Ver-1
/ERP_Garment_Ver-1/MySqlDump/garmentsystem_Raw_Materials.sql
UTF-8
2,939
2.78125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `garmentsystem` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `garmentsystem`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: itp2016ver1fdgd.cht0bvbob1wj.us-west-2.rds.amazonaws.com Database: garmentsystem -- --------------------------------------------------...
true
dd531c47ac552a15d1c002c0a0fbca1b85abd655
SQL
musama619/SQL
/OrderBy/OrderBy.sql
UTF-8
323
3.03125
3
[]
no_license
-- Showing data in order -- Ascending order SELECT * FROM [P12-OrderBreakdown] ORDER BY [Product Name] -- Descending Order SELECT * FROM [P12-OrderBreakdown] ORDER BY [Product Name] DESC -- When data type is not float or integer for numerical data SELECT * FROM [P12-OrderBreakdown] ORDER BY CAST([Sales] as FLOAT) DE...
true
dcdc80c4f37bd37fbfb44b32a5cce20dcb760563
SQL
kklipski/BDProject
/Generator/Tables/Views.sql
WINDOWS-1250
1,514
2.8125
3
[ "MIT" ]
permissive
----========================================================================================================================---- ----===------------------------------------------Dodawanie widokw bazy--------------------------------------------------===---- ----===========================================================...
true
d4703d92b0b1250eb3be21647c8c48df88dbe667
SQL
azavea/district-builder-dtl-pa
/sql/011_add_multi_member_districts.sql
UTF-8
2,342
2.765625
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
-- Add columns to configure multi-member districts in the legislative body SET search_path to publicmapping; ALTER TABLE redistricting_legislativebody ADD COLUMN multi_members_allowed boolean; UPDATE redistricting_legislativebody SET multi_members_allowed = false; ALTER TABLE redistricting_legislativebody ALTER COLUMN...
true
45701d214bbd834a477fcd4dd84ca7c89f591ddc
SQL
PDSW-POSGRADO-ECI/posgrado
/tables.sql
UTF-8
7,563
3.515625
4
[]
no_license
--- Created by Vertabelo (http://vertabelo.com) -- Last modification date: 2017-05-02 22:08:34.818 -- tables -- Table: Asignatura CREATE TABLE Asignatura ( id int NOT NULL, nombre varchar(100) NOT NULL, Posgrado_id int NOT NULL ); -- Table: Clase CREATE TABLE Clase ( id int NOT NULL, hora_inic...
true
d200555825e821f279a0fa5a13b9b2a8691565f8
SQL
Lozov-Petr/programming-semester-5
/Database/pets2.sql
UTF-8
846
4.03125
4
[]
no_license
-- 1 Питомцы по возрасту SELECT Age, COUNT(*) FROM A0_Pet GROUP BY Age; -- 2 Типы питомцев по возрасту SELECT Name, Age, COUNT(*) FROM A0_Pet JOIN A0_Pet_Type ON A0_Pet.Pet_Type_ID = A0_Pet.Pet_Type_ID GROUP BY Age, Name; -- Типы питомцев - средний возраст SELECT Name, AVG(CAST (A0_Pet.Age AS DECIMAL)) FROM A0_Pet...
true
d31fbb8899ed279e578853ca0e43258da2a5ce1b
SQL
somi00138/SI2020-Project
/Database/Tables.sql
UTF-8
2,905
3.640625
4
[]
no_license
CREATE TABLE [Orders] ( ID int NOT NULL IDENTITY, FirstName varchar(50) NULL, LastName varchar(50) NULL, Country varchar(100) NULL, City varchar(100) NULL, Street varchar(200) NULL, PostalCode int DEFAULT NULL, PRIMARY KEY (ID) ); CREATE TABLE [Roles] ( ID int NOT NULL IDENTITY, Name varchar(50) NULL, PRIMA...
true
ba25f91884d4ab19b3881a667fa7e60574bf81ce
SQL
user062/stoa
/events.sql
UTF-8
632
2.953125
3
[]
no_license
-- show processlist;-- to show the processes in our case to check event_scheduler -- set global event_scheduler= on; to enable the event scheduler -- set global event_scheduler= off;-- to desable the event_scheduler -- show events ; to list all the events -- ------------------------------------------------------------...
true
dd977b2e1f61c4d67da110136655e239f57e91e9
SQL
jovi1410/Sedia.in
/DB fixxx.sql
UTF-8
10,114
2.796875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 05, 2020 at 01:04 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
d549b5a67f9dcac75c2f248c8666b78839a0359c
SQL
raphaelaraujo/estacionamento
/adm-leader/recursos/Todos os recursos utilizados no projeto/SQL/estacionar.sql
UTF-8
2,022
3.1875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 17-Abr-2020 às 03:53 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
033502f412344039c5e699cd9ecd9569864e06c4
SQL
kaelsilva/BD2-T03
/q16.sql
UTF-8
988
4.03125
4
[ "WTFPL" ]
permissive
DROP VIEW IF EXISTS responsavelrico CASCADE; DROP VIEW IF EXISTS responsavelgenerico CASCADE; DROP VIEW IF EXISTS gerenteresponsavel CASCADE; DROP VIEW IF EXISTS listadegerentes CASCADE; CREATE VIEW listadegerentes AS SELECT f.nome, f.codigo, f.coddepto, f.salario FROM funcionario f RIGHT JOIN departamento d ON f.codi...
true
7f33e7d7ac0909af3e796e6a679c9ef1a9247694
SQL
kritikabajpai111/project1
/hotwire/db_objects/Stored Procedure/SP_GET_CONTACT_BY_EMAIL.sql
UTF-8
835
3.296875
3
[]
no_license
DELIMITER $$ USE `hwc_mobile`$$ DROP PROCEDURE IF EXISTS `SP_GET_USER_BY_EMAIL`$$ CREATE DEFINER=`root`@`%` PROCEDURE `SP_GET_USER_BY_EMAIL`(IN reference NVARCHAR(200)) BEGIN /* ***************************************************************************************** -- Name SP_GET_USER_BY_EMAIL -- Description The ...
true
fcb8c9bd60a67891183db02f590e0aa58d865d8b
SQL
duanyong/duanyong.tk
/dev/conf/201208aiyuji_user.sql
UTF-8
3,178
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.10.1deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Oct 10, 2012 at 02:10 AM -- Server version: 5.5.24 -- PHP Version: 5.3.10-1ubuntu3.2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
41499abfb1f70fb7c7df437498d6678622421369
SQL
michaellee2245/group-project
/db/board/name_search.sql
UTF-8
584
4.15625
4
[]
no_license
/* find boards that you can access with names that start with the search term */ SELECT board.id AS id, board.name AS name, board.description AS description, board.team AS team_id, board.owner AS owner_id, owner.name AS owner, owner.profile_pic AS owner_pic, team.name AS team FROM board JOIN person AS ...
true
6bf2aa677c21a6e1542f808252433421be3be3d7
SQL
emanoelmiranda/php-ddd-cargo-sample
/scripts/cargo_sample.sql
UTF-8
1,071
3.4375
3
[]
no_license
-- -- Datenbank: `cargo_sample` -- -- -------------------------------------------------------- -- -- Tabellenstruktur für Tabelle `cargo` -- CREATE TABLE IF NOT EXISTS `cargo` ( `tracking_id` varchar(36) NOT NULL, `origin` varchar(250) NOT NULL, `route_specification_id` int(11) NOT NULL, `itinerary_id` int(...
true
e97add4b771e31b045390abd57cf597175bf5ea4
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day12/select0938.sql
UTF-8
262
2.984375
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='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['5013','4066','2099','4212','2019','2214','4209','5061','5081','5074'])
true
f3553200b0bf869fddff55050b0af96531430ea1
SQL
gguilherme42/CursoMySQL
/Aulas/aula13/aula13.sql
UTF-8
339
3.515625
4
[ "MIT" ]
permissive
USE cadastro; SELECT carga FROM cursos GROUP BY carga ORDER BY carga; SELECT carga, COUNT(nome) FROM cursos GROUP BY carga ORDER BY carga; SELECT carga, COUNT(nome) FROM cursos GROUP BY carga HAVING COUNT(nome) > 3; SELECT carga, COUNT(*) FROM cursos WHERE ano > 2015 GROUP BY carga HAVING carga > (SELECT AVG(carg...
true
55580c94dfffc1b67e9ded907f2754dc6482da11
SQL
LuizdosReis/credit-card-control-api
/src/main/resources/db/migration/V7__installments.sql
UTF-8
301
3.21875
3
[]
no_license
DROP TABLE IF EXISTS installments; CREATE TABLE installments ( id BIGSERIAL, value NUMERIC NOT NULL, date TIMESTAMP NOT NULL , expense_id BIGINT NOT NULL, CONSTRAINT installments_pk PRIMARY KEY (id), CONSTRAINT installments_fk_expense FOREIGN KEY (expense_id) REFERENCES expenses (id) );
true
26ee9900f3b55c27516eef13091b26e0ae9fbd49
SQL
memo1994/trabajo-de-campo
/database/db_gym.sql
UTF-8
4,556
3.578125
4
[]
no_license
CREATE DATABASE db_gym; USE db_gym; CREATE TABLE persona ( id INT(11) NOT NULL, nombres VARCHAR(50) NOT NULL, apellidos VARCHAR(50) NOT NULL, documento VARCHAR(12) NOT NULL, codigo VARCHAR(12) NOT NULL, celular VARCHAR(15), email VARCHAR(140) NOT NULL, rol VARCHAR(15), created_at timestamp NOT NULL ...
true
69fb4516dda05b4d33c3f17da563892769cf98c9
SQL
anastmigk/SocialGreen_dev
/Sql Files/userbadges_trigger.sql
UTF-8
477
3.53125
4
[]
no_license
USE `sgalpha`; DELIMITER $$ CREATE TRIGGER `userscore_trigger` AFTER INSERT ON activity FOR EACH ROW -- Edit trigger body code below this line. Do not edit lines above this one BEGIN SET sum_leaves = (SELECT ((sum(act.aluminium)*3)+(sum(act.glass)*1)+(sum(act.plastic)*2)) as LEAVES FROM sgalpha.activity as act W...
true
385da3d7a839b6880945f1fdc3aea25aa8e42c43
SQL
michaelcw02/AdministracionBD2
/I/bd2/Proc2.sql
UTF-8
9,698
3.59375
4
[ "MIT" ]
permissive
--Sinónimos: --Publicos (Global, para todos los usuarios es el mismo) --Privados (para un usuario específico) --Puntero --Facilidad, unificar, --Seguridad, para ocultar. --Cuando un usuario crea objetos globales --Ej: ROLES, SINONIMOS PUBLICOS, TABLESPACES, USUARIOS --cuando el usuario se borra aunque sea cascade, ...
true
f89880dbc150bc79b1ffb98b0a222bc36e9abfdf
SQL
ajlane17/cit225
/apply_mysql_lab11.sql
UTF-8
11,777
3.875
4
[]
no_license
-- ---------------------------------------------------------------------- -- Instructions: -- ---------------------------------------------------------------------- -- The two scripts contain spooling commands, which is why there -- isn't a spooling command in this script. When you run this file -- you first connect to...
true
6e15aea4c0a8d0f66b80c0490cbcc2446e579973
SQL
sled30/osint1
/db/osint_create_catalog.sql
UTF-8
5,456
2.59375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Сб 01 дек 2018 13:35:20 -- 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='TRA...
true
043616cfca7ceab15816d11c8d4aad3e382cf9f1
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day23/select1327.sql
UTF-8
178
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-22T13:27:00Z' AND timestamp<'2017-11-23T13:27:00Z' AND temperature>=12 AND temperature<=22
true
50b6f7e556f61432bd6bcf9cb10ac74fd0abf484
SQL
dccfmatos/SQL_Exercicios
/Exercicios_w3resourcecom-sql-retrieve-from-table.sql
UTF-8
11,886
4.34375
4
[]
no_license
#https://www.w3resource.com/sql-exercises/sql-retrieve-from-table.php create database Exercicios; use Exercicios; create table salesman( salesman_id int AUTO_INCREMENT primary key, name varchar(30), city varchar(30), comission decimal(3,2) ); desc salesman; alter table salesman modify comission decimal (3,2) not nul...
true
24e0325e1b8f85f37b2150ccbb5ffacd6d337108
SQL
jstiago/sql
/show_dumpfile_info.sql
UTF-8
8,203
2.84375
3
[]
no_license
CREATE OR REPLACE PROCEDURE show_dumpfile_info( p_dir VARCHAR2 DEFAULT 'DATA_PUMP_DIR', p_file VARCHAR2 DEFAULT 'EXPDAT.DMP') AS v_separator VARCHAR2(80) := '----------'; v_path all_directories.directory_path%type := '?'; v_filetype NUMBER; -- 0=unknown 1=expdp 2=exp v_fileversion VARCHAR2(...
true
967fe096d51ea11587e7f7818332963085d7e76c
SQL
yellowpad/sql-library-lab-web-0217
/lib/insert.sql
UTF-8
1,381
2.53125
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
INSERT INTO series VALUES (1,"Book",1,2); INSERT INTO series VALUES (2,"Book2",2,3); INSERT INTO books VALUES (1,"Book1",1990,2); INSERT INTO books VALUES (2,"Book2",1990,2); INSERT INTO books VALUES (3,"Book3",1991,1); INSERT INTO books VALUES (4,"Book4",1992,2); INSERT INTO books VALUES (5,"Book5",1993,1); IN...
true
c75ae1c598a73035cb3af2a3bf8f3838bd900005
SQL
paulfuller/PAUL_Cashlinx_Maint
/src/Build/etc/version_template.sql
UTF-8
1,018
3.546875
4
[]
no_license
-- -- MERGE INTO PAWNSEC.STOREAPPVERSION A USING (SELECT [APPID] as "ID", '[APPVERSION]' as "APPVERSION", '[DESCRIPTION] [APPVERSION] Release' as "DESCRIPTION", TO_TIMESTAMP_TZ('3/16/2010 10:57:53.000000 AM -05:00','fmMMfm/fmDDfm/YYYY fmHH12fm:MI:SS.FF AM TZH:TZM') as "CREATIONDATE", 'admin' as "CREATEDBY", ...
true
cf25424e3df28a5bc40447ae524ef3a47bf874c3
SQL
jingyigao/PROJET_BDA
/projet_bd.sql
ISO-8859-1
7,488
4.09375
4
[]
no_license
/*table Entreprise*/ CREATE TABLE Entreprise( NumEntreprise INTEGER CONSTRAINT PK_Entreprise PRIMARY KEY, NomEntreprise VARCHAR2(30), VilleEntreprise VARCHAR2(30), CPEntreprise VARCHAR2(6)); /*table Etudiant*/ CREATE TABLE Etudiant( NumEtudiant INTEGER CONSTRAINT PK_Etudiant PRIMARY KEY, NomE...
true
dc80a90fd0cba2297a54551b54d3f19cacb95669
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day12/select1659.sql
UTF-8
266
2.921875
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='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['4004','2054','5100_1','3202','5100_8','2069','2086','2011','4234','2019'])
true
16659fc61a83d19f0f1e2f256c4217677efe637b
SQL
danieldiamond/gitlab-analytics
/transform/snowflake-dbt/models/staging/zuora/xf/saas_charges_with_namespace_id.sql
UTF-8
1,769
3.625
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
WITH zuora_base_mrr AS ( SELECT * FROM {{ ref('zuora_base_mrr') }} WHERE delivery = 'SaaS' ) , customers_db_charges AS ( SELECT * FROM {{ ref('customers_db_charges_xf') }} ) , namespaces AS ( SELECT * FROM {{ ref('gitlab_dotcom_namespaces') }} ) , dim_accounts AS ( ...
true
3661fe01e1391f11b94bd0ab5ea8eb6d8cb14ae9
SQL
ARWA-ALraddadi/python-tutorial-for-beginners
/09-Workshop/QueryAndUpdateAirlineDatabase.sql
UTF-8
2,603
4.1875
4
[]
no_license
/* This SQLite script contains suggested solutions to the "Airline Database" questions. Having imported the Airline database, you should run these queries and statements one at a time to see the results. */ /* 1. The first query, reproduced below, produces 11 rows */ SELECT * FROM cities; /* 2. The second query...
true
67bda770faf5f90c4c79b7e5bda1661419ed0b04
SQL
CesarChaMal/Tesis_Matriz_de_pagos
/Programa Matriz de Pagos/Nuevo script calculo de pesos.sql
ISO-8859-1
3,102
3.8125
4
[]
no_license
select * from pareto order by factor desc select * from dbo.Matriz070906 order by Modelo, Descripcion select * from dbo.view_MatrizBruta where tipo=0 and punto like'%Comodidad%' order by Modelo, Punto select * from dbo.view_MatrizBruta where tipo=0 order by Modelo, Punto -- Verifica que todos los puntos tengan el mi...
true
7908b16f0fce600626e2392f1087300646712555
SQL
emilcerezo15/aob
/aob.sql
UTF-8
1,890
2.984375
3
[ "MIT" ]
permissive
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.5-10.1.19-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 8.3.0.4694 -- ------------------------------------------...
true
34bc76e9b7d080cde2ba5fd5c400b088ef3933b0
SQL
tegarferdyla/Inventory
/inventory.sql
UTF-8
4,047
3.171875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 12, 2018 at 07:50 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
55f89738d44527f632bf13606f6b19a189ec219f
SQL
CGMcBride/EmployeeTracker
/db/seeds.sql
UTF-8
642
3.09375
3
[]
no_license
INSERT INTO departments (department) VALUES ("Finance"), ("Programs"), ("Contracts"); INSERT INTO roles (title, salary, departmentId) VALUES ("Sup 1", 4000, 1), ("EODDS", 5000, 2), ("DATA Broker", 3500, 2), ("Specialist", 5500, 3); INSERT INTO employees (first_name, last_name, rolesId) VALUE...
true
b9cac7f96636f4e941ec95948b4a94a0824cfae1
SQL
e-webking/nws_tripmanage
/ext_tables.sql
UTF-8
14,705
2.984375
3
[]
no_license
# # Table structure for table 'tx_nwstripmanage_domain_model_trip' # CREATE TABLE tx_nwstripmanage_domain_model_trip ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, title varchar(255) DEFAULT '' NOT NULL, image int(11) unsigned NOT NULL default '0', description text NOT NULL, itinerary ...
true
599ee3e4f0e4dbf71f0c1b0bd9f63f860267bca5
SQL
AbrahamFergie/abraHarmanHammer
/SOLUTIONS.sql
UTF-8
5,861
4.09375
4
[ "MIT" ]
permissive
LEETCODE.COM: Duplicate Emails(table called Person): SELECT Person.Email FROM Person GROUP By Person.Email Having Count(*) > 1; Employees Earning More Than Their Managers: SELECT Name AS Employee From Employee emp Where emp.ManagerId IS NOT NULL AND emp.Salary > (SELECT Salary From ...
true
3a58fb8df970b495ffe62f9065c4f96800169383
SQL
tangyu1992/springboot-bootstrap
/src/main/resources/schema/tangyu.sql
UTF-8
913
2.78125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : VOS Source Server Version : 50096 Source Host : localhost:3306 Source Database : tangyu Target Server Type : MYSQL Target Server Version : 50096 File Encoding : 65001 Date: 2016-11-08 13:03:39 */ SET FOREIGN_KEY_CHECKS=0; -- --------...
true
769ec504d360de0cd81519b06bf0426dbdd61ff1
SQL
murphyc12/php-final-project
/sql/joinReview.sql
UTF-8
144
3.015625
3
[]
no_license
SELECT players.playerid, players.name, playerreviews.review FROM players Inner JOIN playerreviews ON players.playerid = playerreviews.playerid
true
9787588f3edd1f5dc7de2320cea551bede55c898
SQL
buikevin96/Bamazon
/products.sql
UTF-8
805
3.359375
3
[]
no_license
CREATE DATABASE bamazon USE bamazon CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(40) NULL, department_name VARCHAR(40) NULL, price DECIMAL(10,2) NULL, stock_quantity INT NULL, primary key (item_id) ); INSERT INTO products (product_name, department_na...
true
4aee3d21e9151565b35fa09a4e478b408d4f931d
SQL
sergioivan154/androidVernam
/usb/DreamHome/Directores.sql
UTF-8
345
2.515625
3
[]
no_license
drop table if exists directores; create table directores( num_empl int primary key, fecha_nombramiento datetime not null, num_sucursal varchar(6)not null UNIQUE ); insert into directores values (00005, '2013-01-12','B003'); insert into directores values (00006, '2013-01-12','B004'); insert into directores values (000...
true
331e7cdfecb7b4a02cc7ba4ae2b08c445907ef1a
SQL
YannickOsen/WebEngineeringProject
/QASystem/src/main/resources/data.sql
UTF-8
498
2.53125
3
[]
no_license
INSERT INTO Users( VALUES (10000,'password','jonathan') ); INSERT INTO Users( VALUES(9999,'password','joseph') ); INSERT INTO Users( VALUES(10001,'password','yareyare') ); /*INSERT INTO Questions( VALUES(5000, 2004-02-09 13:12:11.000, false, false, 'Questiontext that iss highly interesting', 'exampleTitle', 10001) )...
true
78293afe7fc6eeb6c2bf95e7a07d9536aac56563
SQL
ccappetta/scratch
/taskr_proc_upsert_taskr_activity_stream_view.sql
UTF-8
1,602
3.90625
4
[]
no_license
DROP procedure if exists proc_upsert_taskr_activity_stream_view; create procedure proc_upsert_taskr_activity_stream_view(IN dbname varchar(128)) BEGIN SET @theSQL=CONCAT(' CREATE OR REPLACE VIEW ', dbname,'.taskr_activity_stream AS SELECT ''task'' COLLATE utf8mb4_unicode_ci AS action_type, a.last_action_by...
true
c914324b84cc8707028b4bd03607bc58887e475b
SQL
samitamaharjan/Hadoop-Cloudera-Certification
/HadoopExam/HIVE_summary.sql
UTF-8
6,728
3.78125
4
[]
no_license
HIVE: to create table: create table table1 (name string, salary int, sex string, age int) row format delimited fields terminated by ','; to load data from hdfs file: load data inpath '/HadoopExam/logs/ads.log' into table temp_ad_part; to load data from local file: LOAD DATA LOCAL INFILE '/path/pet.txt' INT...
true
dc0b5e995018db99fa742a9452451030e8d21671
SQL
sebagott/project1
/create.sql
UTF-8
742
3.625
4
[]
no_license
CREATE TABLE avatars ( id SERIAL PRIMARY KEY, filename TEXT NOT NULL ); CREATE TABLE users ( id SERIAL PRIMARY KEY, name TEXT NOT NULL UNIQUE, password TEXT NOT NULL, avatar_id INTEGER NOT NULL REFERENCES avatars ); CREATE TABLE authors ( id SERIAL PRIMARY KEY, name TEXT NOT NULL UNIQUE ); C...
true
638f1e2794f708c2b812e7ae0c83d44d5b9f4f56
SQL
oradrs/Oracle
/Scripts/Other/topsql_v3.sql
UTF-8
712
3.46875
3
[]
no_license
-- Source : http://www.nocoug.org/download/2008-08/a-tour-of-the-awr-tables.nocoug-Aug-21-2008.abercrombie.html#script-find-expensive select sub.sql_id, sub.seconds_since_date, sub.execs_since_date, sub.gets_since_date from ( -- sub to sort before rownum select sql_id, round(sum(...
true
e7616d5612a099bf9bb5baa060cf2bcfd9d956a2
SQL
htmlacademy-php/1418301-doingsdone-12
/shema.sql
UTF-8
1,206
3.71875
4
[]
no_license
/* Создание БД */ CREATE DATABASE `doingsdone` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; USE `doingsdone`; /* Создание таблиц */ CREATE TABLE `users` ( `id` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `email` VARCHAR(128) NOT NULL UNIQUE, `password` CHAR(64) NOT NULL, `na...
true
4fd8104b5d6cb7926560654171a0e38dfb6335be
SQL
GautamGadipudi/imdb-insertion-tool
/db_init.sql
UTF-8
3,249
3.84375
4
[]
no_license
--CREATE USER imdb_super_admin IF NOT EXISTS DO $create_super_user$ BEGIN IF NOT EXISTS ( SELECT FROM pg_catalog.pg_user WHERE usename = 'imdb_super_admin' ) THEN CREATE USER imdb_super_admin WITH ENCRYPTED PASSWORD 'imdb_super_admin' SUPERUSER CREATEDB CREATEROLE REPLIC...
true
fa7d43c6694ee1b8326a21e6300382b21859075f
SQL
birce-ceren/Web-Programlama-Blog-Sitesi
/basic_blog/blog.sql
UTF-8
513
3.359375
3
[]
no_license
CREATE TABLE users ( id int PRIMARY KEY AUTO_INCREMENT, name varchar(255), surname varchar(255), password varchar(255), username varchar(255) ); CREATE TABLE blogs ( id int PRIMARY KEY AUTO_INCREMENT, owner int, title varchar(255), a...
true
81e3267231c1343688865b803b307b4b1c8bb9b9
SQL
noel-castillo/JPACRUDProject
/mlbb.sql
UTF-8
1,534
3.375
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
39f7d718207ed947032cb7c2f754523d44a0a34d
SQL
pablogomezponce/executive-interaction-system-for-moodle
/views.sql
UTF-8
905
2.578125
3
[]
no_license
create view logstore as select id, action, courseid, component, userid, objectid, eventname from mdl_logstore_standard_log; create view user as select firstname, id, username from mdl_user; create view assign as select duedate, id, course from mdl_assign; create view assign_submission as select assignment, userid, t...
true
c69df30a001400ca8757c6c941a763afbb46a0ae
SQL
XingXing2019/LeetCode
/Database/LeetCode 2066 - AccountBalance/AccountBalance_SQLServer.sql
UTF-8
185
3.8125
4
[]
no_license
SELECT account_id, day, SUM( CASE [type] WHEN 'Deposit' THEN amount ELSE -amount END) OVER (PARTITION BY account_id ORDER BY day) AS balance FROM Transactions ORDER BY account_id
true
3efb1b90ddceac603f9db0d05f7ae1bcb1ea8df9
SQL
GuruYoda/Learning_SQL
/SQLCommands.sql
UTF-8
4,082
4.1875
4
[]
no_license
--'Creating new TABLE' --\* BASICS COURSE */ CREATE TABLE EmployeeDemographics ( EmployeeID int, FirstName varchar(50), LastName varchar(50), Age int, Gender varchar(50) ) CREATE TABLE EmployeeSalary ( EmployeeID int, JobTitle varchar(50), Salary int, ) --HardRefresh Ctrl+Shift+R 'Inserting data into TABLE' INSERT I...
true
05c716980bb9725f3f22cf6646ecf7c9bb321f55
SQL
EladC921/Ricos
/create tables query.sql
UTF-8
1,582
3.859375
4
[]
no_license
CREATE TABLE Users ( uid INT PRIMARY KEY AUTO_INCREMENT, username VARCHAR(55) UNIQUE NOT NULL, password VARCHAR(255) NOT NULL, mail VARCHAR(255) UNIQUE NOT NULL, firstName VARCHAR(55) NOT NULL, lastName VARCHAR(55), profilePic TEXT(1000), bio TEXT, numOfRecipes INT DEFAULT 0, numOfFollowers INT DEFAULT 0, nu...
true
c8559852329b5100838bf723d419b89d5b05a819
SQL
GillesRitchmond/Delivery
/difference_date_time-main/Table_Ajax_PHP/user.sql
UTF-8
2,253
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 11, 2021 at 09:33 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
d34dd927e2e5542bb4752f22d62eca85d1698511
SQL
s18001-ikeshiro/oracle
/0117/0117.3.sql
UTF-8
139
3.078125
3
[]
no_license
select employee_id, last_name from employees where department_id = any (select department_id from employees where last_name like '%u%') /
true
87966bbe7b1f1256a5354e30d170fcc90eb4285c
SQL
SQLauto/PyroSQL
/bestpractice/tsqlsmells/TSQLSmells/ConvertInt.sql
UTF-8
166
3.015625
3
[]
no_license
CREATE PROCEDURE dbo.ConvertDateMultipeCond AS SELECT create_date,CONVERT(varchar(255),create_date,120) FROM sys.objects WHERE CAST(object_id AS VARCHAR(10)) ='22'
true
d21d9ace742ca1de85e4c0a4cf3dbea1c934352f
SQL
THRAGOO/Morningbees-server
/src/main/resources/db/migration/V1__create_user.sql
UTF-8
296
3.203125
3
[]
no_license
create table users ( id bigint unsigned not null auto_increment primary key, nickname varchar(255), status int(1), created_at datetime not null, updated_at datetime not null, index idx_status(status), UNIQUE idx_nickname(nickname) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
ba2302bbc821be710de0d9295d946c26d18cd66c
SQL
lt911/PL-SQL-Fundamentals-2018-
/week3_code_examples/les03_part04_codex01.sql
UTF-8
1,066
3.609375
4
[]
no_license
-- This program is intended to explain cursors, and it does not handle any exceptions that might arise from the SQL query. DECLARE v_emp_id copy_emp2.employee_id%TYPE := 0; v_bonus NUMBER(8,2) := 0; v_salary copy_emp2.salary%TYPE; v_hire_date copy_emp2.hire_date%TYPE; CURSOR c_emp_cursor IS SELE...
true
23f1283c1952d75b4f816cf1f26ea8e22e411b4c
SQL
MrLambert13/PHP2
/lesson3/Exersice2.sql
UTF-8
598
2.984375
3
[]
no_license
CREATE SCHEMA `world` ; CREATE TABLE `world`.`country` ( `id` INT NOT NULL AUTO_INCREMENT, `Code` VARCHAR(45) NULL, `Name` VARCHAR(45) NULL, `Region` VARCHAR(45) NULL, `Population` VARCHAR(45) NULL, `Capital` VARCHAR(45) NULL, PRIMARY KEY (`id`)); CREATE TABLE `world`.`city` ( `id` INT NOT NULL, `Na...
true
30b8a55c28a6a0d5aee90d28d349319d095fa18c
SQL
fleetside72/tps_etl
/database/reports/colateral_balalance.sql
UTF-8
744
3.3125
3
[]
no_license
SELECT r.* ,CASE "Schedule#" WHEN '02IN Raw Material' THEN 13097563.42 WHEN '03IN Finished Goods' THEN 35790696.52 ELSE 0 END + SUM("Sales"+"Credits & Adjustments"-"Gross Collections") OVER (PARTITION BY "Schedule#" ORDER BY "Schedule#" ASC, "PostDate" ASC) running_bal ,(LEAST("...
true
5bb009ee79bd090adce0825bab28d1c481fd3916
SQL
gitdaddy/gitdaddy.github.io
/web2_db.sql
UTF-8
2,133
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10.10 -- http://www.phpmyadmin.net -- -- Host: 127.10.41.2:3306 -- Generation Time: Jan 05, 2016 at 08:54 PM -- Server version: 5.5.45 -- PHP Version: 5.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_C...
true
dda342d0c7497a6cbbd89fc10cdcc83cd1a35d92
SQL
ricco1337/projects
/db/get_products.sql
UTF-8
78
2.734375
3
[]
no_license
select * from images join products on images.product_id = products.product_id
true
0f72724151fedc7dcb03971fef469282fad69f89
SQL
pablorzmz/AdminEscuelasDeFut
/src/Tables.sql
ISO-8859-1
5,858
3.75
4
[]
no_license
USE DB_ERROR404; /* Tabla de la entidad de Persona*/ CREATE TABLE Persona ( Cedula CHAR(9) NOT NULL, NombreP VARCHAR(30) NULL, Apellido1 VARCHAR(15) NULL, Apellido2 VARCHAR(15) NULL, CONSTRAINT Ced_Persona PRIMARY KEY ( Cedula ) ); /*Atributo multivalor de los telfonos de las personas*/ CREATE TABLE TelefonoP...
true
f89f68c1b280fa94e9506b441e410ad2ba90c4af
SQL
myun2ext/shibuya
/db/seed.sql
UTF-8
772
2.765625
3
[]
no_license
use shibuya_development; INSERT INTO nodes (name, screen_name, color, created_at, parent_node_id) VALUES ("Tokyo(root)", "東京", "fff", NOW(), NULL), ("Shibuya", "渋谷", "278C3E", NOW(), 1), ("Tokyo", "東京", "37B7DD", NOW(), 1), ("Shinagawa", "品川", "3689DB", NOW(), 1), ("Meguro", "目黒", "212B23", NOW(), ...
true
028225797a09f2b907bc48d2bd18b732da73d1f3
SQL
xsanm/DB-COURSE
/oracle/V_TRIPS.sql
UTF-8
258
3.015625
3
[]
no_license
create view V_TRIPS as select COUNTRY, TRIP_DATE, NAME, NO_PLACES, NO_PLACES - ( select count(*) from RESERVATION where RESERVATION.TRIP_ID = TRIP.TRIP_ID ) NO_AVAILABLE_PLACES from TRIP /
true
758b00a5bb867692a62863d526e65a8be569c904
SQL
vineetshukla15/dusharimango
/src/data/sql/X/Temp/Temp1/05.sql
UTF-8
9,821
4.09375
4
[]
no_license
DROP TABLE IF EXISTS insights.brands; CREATE TABLE insights.brands ( brand_id int(11) unsigned, PRIMARY KEY(brand_id), brand_name varchar(120), INDEX(brand_name), brand_display_name varchar(120), INDEX(brand_display_name), brand_group_id int(11) unsigned, INDEX(brand_group_id)# FOREIGN KEY(brand_group_id) r...
true
fae6db4db0eb52c77c42e432f3d42be87d77a256
SQL
robertomassabr/rakkas-realworld
/prisma/migrations/20210818122947_init/migration.sql
UTF-8
2,917
3.90625
4
[ "CC-BY-2.0", "MIT", "CC-BY-4.0", "CC-BY-3.0" ]
permissive
-- CreateTable CREATE TABLE "User" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL, "email" TEXT NOT NULL, "username" TEXT NOT NULL, "bio" TEXT NOT NULL, "image" TEXT, "passwordHash" TEXT NOT NULL )...
true
4ec77868b69db83de93b7fb5c387b2a8a1914262
SQL
nilsonrochabh/espacodapalavra
/module/Model/model/generated-sql/espacopalavra.sql
UTF-8
14,365
3.28125
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 07/25/16 10:41:38 -- 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='TRADITION...
true
cd2b6df7ea615a7424c43107feca0724189352b6
SQL
TheGhostGroup/DynastyCore
/sql/updates/world/0001_cleanup_firestorm.sql
UTF-8
2,449
3.28125
3
[]
no_license
-- Removing custom firestorm creatures -- Cleanup loyalty npc, transmog npc and exp rate modifier npc DELETE FROM creature WHERE id IN (SELECT entry FROM creature_template WHERE scriptname IN ('npc_loyalty_point','npc_legendary_transmogrificator','npc_rate_xp_modifier')); -- delete creatures on GM island DELETE FROM c...
true
e053a02b3d3e866b810ca9aaec88c474cf644f2c
SQL
noikiy/sc-project
/chuangying/shihua/protected/modules/market/install/market_2015_09_09.sql
UTF-8
2,012
3.53125
4
[]
no_license
/*邀请码表*/ CREATE TABLE `cyShihuaInviteCode` ( `shihuaInviteCodeId` int(10) NOT NULL AUTO_INCREMENT COMMENT 'id', `inviteCode` varchar(10) NOT NULL DEFAULT '' COMMENT '邀请码', `isUsed` tinyint(4) NOT NULL DEFAULT 0 COMMENT '本条邀请码是否被使用 0:否 1:是', `status` tinyint(4) NOT NULL DEFAULT 0, `addTime` ti...
true
17f41bb9e4adab63c1e95198e764f7ce7aa4ac8c
SQL
KhaledNouiraa/KhaledNouiraProjet
/Practical_Exercice/DataBase/buildstore_1_.sql
UTF-8
4,083
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 13, 2020 at 10:47 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
868cd70b7a00684a0c3e7aaeb92ceef3249f2f26
SQL
vattikuti/assignment4
/anudeep lab 4.sql
UTF-8
2,728
3.734375
4
[]
no_license
 -- lab-4 name:Anudeep vattikuti cwid:200 53 275 date:2/14/2014-- --1.get the cities of agents booking an order for customers 'basics' select city from agents where aid in ( select aid from orders where cid in( select cid ...
true
5cd4d6ba06ffd8e6d6ddebdb8d0bd5e977a0512e
SQL
tghjkl777/oracle_sql_practice
/hr_quiz.sql
UHC
6,374
4.4375
4
[]
no_license
/*hr Quiz 1*/ /*https://carami.tistory.com/116?category=552237*/ select * from tab; select * from employees; desc employees select * from dept; select * from dept; select * from jobs; desc emp /*1. --1. å(Job Title) Sales Manager Ի⵵ Ի⵵(hire_date) ޿ Ͻÿ. -- ⵵ Ͻÿ. */ select to_char(hire_date,'YY') as "HIRE_YEAR", ...
true
9f91143fe2d73e0a1aab8072d94775828479eb98
SQL
c-eng/holbertonschool-higher_level_programming
/0x0D-SQL_introduction/15-groups.sql
UTF-8
151
2.78125
3
[]
no_license
-- Counts number of rectors with the same score in second_table SELECT score,COUNT(*) as number FROM second_table GROUP BY score ORDER BY number DESC;
true
b8a7a8cef6772d0a5ba3b276e9fb704c6fa821f1
SQL
concourse/concourse
/atc/db/migration/migrations/1579713200_alter_parent_id_constraint_on_volumes.down.sql
UTF-8
251
2.953125
3
[ "CC-BY-NC-ND-2.0", "Apache-2.0" ]
permissive
ALTER TABLE volumes DROP CONSTRAINT volumes_parent_id_fkey; ALTER TABLE ONLY volumes ADD CONSTRAINT volumes_parent_id_fkey FOREIGN KEY (parent_id, parent_state) REFERENCES volumes(id, state) ON DELETE RESTRICT; DROP INDEX missing_volumes_idx;
true
6f840cf5eea415e9119a49e399b743fb5c868420
SQL
KZoneOfX/review
/documents/review.sql
UTF-8
8,380
3.546875
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50710 Source Host : localhost:53306 Source Database : review Target Server Type : MYSQL Target Server Version : 50710 File Encoding : 65001 Date: 2016-03-29 22:59:09 */ SET FOREIGN_KEY_CHECKS=0; -- -...
true
32ec2f6251ef20d46c48d16b12320a8523990688
SQL
pipepi/gta
/src/db/ddl_t_task.sql
UTF-8
319
3.515625
4
[ "Apache-2.0" ]
permissive
create table t_task ( id int auto_increment comment '任务ID' primary key, parent_id int null comment '父任务ID', name varchar(50) null comment '任务名称', content varchar(1024) null comment '任务描述' ) comment '任务表' engine=InnoDB ; create index t_task_parent_id_index on t_task (parent_id) ;
true
560fe464316c15c9061511735154d19bd8850210
SQL
GaryYinCode/shipment-management
/src/main/resources/scripts/db/schema.sql
UTF-8
1,329
3.59375
4
[]
no_license
DROP TABLE IF EXISTS TRADE; CREATE TABLE TRADE ( ID VARCHAR(36) NOT NULL COMMENT 'id, PK', TITLE VARCHAR(128) NULL COMMENT 'title', QUANTITY INT(11) NOT NULL DEFAULT 0 COMMENT 'quantity', CREATEDATE TIMESTAMP(6) NULL DEFAULT CURRENT_TIMESTAMP(6) COMMENT 'create date', CREATEUS...
true
2418685eacb114a93b576c48e7b92fccb078d3fe
SQL
Axita31/NoteMarketPlaceHTML
/MVC/notesmarketplace.sql
UTF-8
35,069
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 03, 2021 at 07:44 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 7.4.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
06ab794c10f031cb724e0359258b17da4cb43d8d
SQL
mershicorn/University-BD
/university DB.sql
UTF-8
1,105
2.875
3
[]
no_license
CREATE TABLE "Faculty" ( "id_faculty" serial, "id_address" integer, "foundation_year" year, "dean" varchar ); CREATE TABLE "Faculty_address" ( "id_address" serial, "id_faculty" int, "adress" varchar ); CREATE TABLE "Degree" ( "id_degree" serial, "name_degree" varchar ); CREATE TABLE "Subject" ( "...
true
807118209b670d965d20207a2238189f2f39fec2
SQL
gjbex/training-material
/DataStorage/Sql/ExperimentDB/07_insert_exp3.sql
UTF-8
799
2.59375
3
[ "CC-BY-4.0" ]
permissive
INSERT INTO experiments (experiment_id, start_date, end_date, experiment_description) VALUES (3, '2015-11-21 09:05:00', NULL, 'third experiment'); INSERT INTO staff_assignments (experiment_id, researcher_id) VALUES (3, 1), (3, 2); INSERT...
true
4a9871f97bd241dcd6545f5b7451442e821478d4
SQL
kubeflow/community
/devstats/config/util_sql/devstats_log_table.sql
UTF-8
714
3.359375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE gha_logs ( id integer NOT NULL, dt timestamp without time zone DEFAULT now(), msg text, prog character varying(32) not null default '', proj character varying(32) not null, run_dt timestamp without time zone not null ); ALTER TABLE gha_logs OWNER TO gha_admin; CREATE SEQUENCE gha_lo...
true
f401f2df4412f443a688641743f4c8e8eaf7921d
SQL
ElvisNogueira/Projeto_GYM
/src/bd/GYM_BD.sql
WINDOWS-1252
9,456
3
3
[ "Apache-2.0" ]
permissive
CREATE TABLE endereco( id serial PRIMARY KEY, bairro Varchar(255), uf Varchar(2), cidade Varchar(255), cep Varchar(255), logradouro Varchar(255), num int ); CREATE TABLE aluno( id serial PRIMARY KEY, nome Varchar(255), cpf Varchar(14) unique, status Varchar(50), data_nascimento date, ...
true
9eef66b00ea5ce7d70819045ac19e5bb936ec900
SQL
agalan33/Db-Project-Python
/schema.sql
UTF-8
5,447
3.546875
4
[]
no_license
drop table if exists contacts; drop table if exists ismember; drop table if exists replies; drop table if exists reactions; drop table if exists contains; drop table if exists messages; drop table if exists chats; drop table if exists users; drop table if exists hashtags; CREATE TABLE users(uid serial primary...
true
5cd533cebde96c3dcb79b9afb280f0de57d0cd88
SQL
nilu-000/furry-octo-giggle
/src/db.sql
UTF-8
1,146
4.0625
4
[]
no_license
CREATE DATABASE bookstore; CREATE TABLE books( id SERIAL NOT NULL, name VARCHAR(32) NOT NULL, isbn VARCHAR(32), PRIMARY KEY(id) ); CREATE TABLE authors( id SERIAL NOT NULL, fullname VARCHAR(32) NOT NULL, email VARCHAR(32) NOT NULL UNIQUE, PRIMARY KEY(id) ); CREATE TABLE book_author( ...
true
ef81fa2277d23eeb5508ee46fe4dec8c9ccbc0f3
SQL
ShayRow/phpForm
/dbname.sql
UTF-8
3,091
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Мар 24 2020 г., 19:53 -- Версия сервера: 10.3.13-MariaDB-log -- Версия PHP: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
true
c53925ca417de53ee603dc36ede35d27fc3882d2
SQL
vicrobert/wisdom-medical
/wm-infosys-web/script/database/database-schema.sql
UTF-8
1,183
3.109375
3
[]
no_license
/* SQLyog Enterprise - MySQL GUI v6.15 MySQL - 5.7.22-log : Database - wm_web ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; create database if not exists `wm_web`; USE `wm_web`; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHE...
true
fc9a2de8f30d6779d914748a0ec87d1a5ac2db72
SQL
BanguyenHuu/SocialNetworkServer
/src/main/resources/social.sql
UTF-8
4,085
2.96875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: doan -- ------------------------------------------------------ -- Server version 5.7.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*...
true
25c5dfbcbb8043bf122529423c06694847c0260c
SQL
CarlosGabrielGomez/mysql-example
/script-biblioteca.sql
UTF-8
1,587
3.90625
4
[]
no_license
--dbb-biblioteca --1. Precio promedio de los libros de Salamandra SELECT editoriales.nombre,avg(libros.precio)as 'precio promedio' from libros inner join editoriales on libros.id_editorial=editoriales.id_editorial GROUP by editoriales.nombre SELECT editoriales.nombre,avg(libros.precio)as 'precio promedio' from libro...
true
5aa52e249ae5ec5f4649438ae7bde6d1db158775
SQL
Nevercomes/TaBook
/db/ta_book.sql
UTF-8
41,398
3.125
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : Terminal Source Server Type : MySQL Source Server Version : 100135 Source Host : localhost:3306 Source Schema : ta_book Target Server Type : MySQL Target Server Version : 100135 File Encoding : 65001 Date: 27/03/2019 1...
true