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
6b424249a858d0d2c31e73a5bf5dc32b436ed3e5
SQL
RoyalFlushever/HiringPlus
/src/main/resources/db/migration/V7__alter_primary_keys.sql
UTF-8
171
3.03125
3
[ "MIT" ]
permissive
ALTER TABLE candidate_skill ADD PRIMARY KEY (candidate_id, skill_id); ALTER TABLE job_candidate ADD CONSTRAINT jobcandidate_unique UNIQUE (job_id, candidate_id);
true
480cb3897524cf1d744cecc57074ed3c690a5aa7
SQL
omolewastephen/web-based-evoting
/install/assets/install.sql
UTF-8
8,273
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 23, 2020 at 08:28 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.2.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
c466055f9a807c03093a5108ffe5efc2cd8c0465
SQL
intellead/intellead-integration-tests
/docker/security_postgres_dump.sql
UTF-8
892
2.859375
3
[ "Apache-2.0" ]
permissive
SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; SET search_path = public, pg_catalog; SET default_tablespace = '...
true
0352221ba5551677c9b47ebcf8e9cb2c824ae2e2
SQL
DaNny-Programmer/djangovue1
/djangovueelement.sql
UTF-8
18,397
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-06-2020 a las 00:04:52 -- Versión del servidor: 10.1.40-MariaDB -- Versión de PHP: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
11994ef15dbbd0f0349a31654acae17ad9291901
SQL
wyoung60/employeeTracker
/employee.sql
UTF-8
1,300
4.09375
4
[ "MIT" ]
permissive
-- Deletes database if exist, creates and uses database -- DROP DATABASE IF EXISTS company_db; CREATE DATABASE company_db; USE company_db; -- Create tables -- CREATE TABLE departments( id INT PRIMARY KEY AUTO_INCREMENT NOT NULL, name VARCHAR(30) ); CREATE TABLE roles( id INT PRIMARY KEY AUTO_INCREMENT NOT NULL, ti...
true
8b57e7d8e174a021944afd70f39e525d4f6e923d
SQL
VijayMVC/JCC-Data-Warehouse
/SQLDB/dbo/Views/AA_SYS_VAT_RETURN_VIEW.sql
UTF-8
1,271
2.890625
3
[]
no_license
create view AA_SYS_VAT_RETURN_VIEW /* ** Returns a table of information for a vat return record ** Written: 25/05/2005 SR ** Last Amended: 16/09/2005 SH, 27/01/2006 JC, 10/03/2006 JC, 7/11/07 NC ** */ as select VAT_OUTPUT VAT_BOX_1 , VAT_EC_VATACQS ...
true
6a7b23a45f8758d1c34bc8ba03f4004f6261af9c
SQL
Jilpung/fullstack2-1st-thisisnevercode-backend
/prisma/migrations/20211012115736_last_migration/migration.sql
UTF-8
1,252
3.5625
4
[]
no_license
/* Warnings: - You are about to alter the column `price` on the `products` table. The data in that column could be lost. The data in that column will be cast from `Int` to `Decimal(10,2)`. - A unique constraint covering the columns `[key_number]` on the table `detail_images` will be added. If there are existing ...
true
c44143ba8d6ddb09af19135fd348beafc14f7672
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day11/select1509.sql
UTF-8
191
2.6875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-10T15:09:00Z' AND timestamp<'2017-11-11T15:09:00Z' AND SENSOR_ID='eb2c811b_4e4b_4f67_838c_d79aacd6c9de'
true
bb1891c6006f7e074a9dc5cabb0bc11221f7c4e1
SQL
matko84/ENJ19
/utakmica.sql
UTF-8
1,574
3.21875
3
[]
no_license
# mysql -uedunova -pedunova --default_character_set=utf8 < D:\utakmica.sql drop database if exists utakmica; create database utakmica character set utf8 collate utf8_general_ci; use utakmica; create table stadion( sifra int not null primary key auto_increment, naziv varchar(50) not null, pocetak datetime ...
true
4810d990cd74f1cda669f03a939aa6fe5c43b211
SQL
svelhinh/Projects
/Projects/piscine_php/j05/ex20/ex20.sql
UTF-8
298
3.796875
4
[]
no_license
SELECT genre.id_genre 'id_genre', genre.nom 'nom genre', distrib.id_distrib 'id_distrib', distrib.nom 'nom distrib', film.titre 'titre film' FROM film INNER JOIN genre ON film.id_genre = genre.id_genre INNER JOIN distrib ON film.id_distrib = distrib.id_distrib WHERE genre.id_genre BETWEEN 4 AND 8;
true
2b63bb906c85ba8c2b5b2a687fb71c8c6bdecc8e
SQL
AnilKumar01/banksystem_database_v1.0.0.1
/procedures/modify_desktop_user.SQL
UTF-8
288
2.78125
3
[]
no_license
USE BANK_SYSTEM DELIMITER // DROP PROCEDURE IF EXISTS MODIFY_DESKTOP_USERS; CREATE PROCEDURE MODIFY_DESKTOP_USERS ( IN P_USERNAME VARCHAR(60), IN P_ACCOUNT_STATUS VARCHAR(20) ) BEGIN UPDATE DESKTOP_APP_USERS SET ACCOUNT_STATUS=P_ACCOUNT_STATUS WHERE USERNAME=P_USERNAME; END; //
true
105b2e4538b9d89d8c783fa39b911195f620b8f0
SQL
Flying9001/springBootDemo
/doc/sql/gateway-database-create.sql
UTF-8
1,973
3.328125
3
[ "Apache-2.0" ]
permissive
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2022/8/23 16:29:21 */ /*==============================================================*/ drop table if exists gateway_route; drop table if...
true
0ab646b4e6c1b7fda38e047d560f6130664717cc
SQL
davidkurtz/demoscripts
/sql_profiles/dup_sql_profiles1.sql
UTF-8
2,113
3.46875
3
[]
no_license
REM dup_sql_profiles1.sql set long 600 lines 200 pages 999 break on force_sig skip 1 column profile# heading 'Prof|#' format 999 column num_profiles heading 'Num|Profs' format 999 column exact_sig heading 'Exact Matching|Signature' format 99999999999999999999 column force_sig heading 'Force Matching|Signature' format 9...
true
2566f04ad57f3ae05288a7dc84708ba947ae8a9e
SQL
tokmakov/database-migrate
/backup/test-19.11.2018-10.15.12.sql
UTF-8
4,067
3.46875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.20, for Win64 (x86_64) -- -- Host: localhost Database: test -- ------------------------------------------------------ -- Server version 5.7.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!401...
true
75d2a49fdb30e5a149c8219d67b89890983a7811
SQL
Adithyakaushik326/net-banking
/database/bank (1).sql
UTF-8
12,952
3.484375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 07, 2019 at 08:25 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.1.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
ee7cbf1cf795840300fb4e46769dccda2971b8ad
SQL
mmmjh/chipreservation
/chipreservation/chipreservation.sql
UTF-8
7,675
3.140625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : Mysql Source Server Type : MySQL Source Server Version : 50173 Source Host : localhost:3306 Source Schema : chipreservation Target Server Type : MySQL Target Server Version : 50173 File Encoding : 65001 Date: 11/06/201...
true
747efca8a3afe0f28de991880e64e6bf2252473a
SQL
DavidPageGroup/cdm-data
/src.sql/tables_emr.sqlite.sql
UTF-8
4,877
3.609375
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- Definition of tables to hold CDM clinical data, SQLite3 syntax, CDM -- version 5.1? -- Copyright (c) 2018 Aubrey Barnard. This is free software released -- under the MIT License. See `LICENSE.txt` for details. -- See http://sqlite.org/lang_createtable.html on syntax for creating -- tables and http://sqlite.org/d...
true
c532a9631883f8eff45ef716a46ccf5eaf7431bf
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day15/select0300.sql
UTF-8
178
2.625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-14T03:00:00Z' AND timestamp<'2017-11-15T03:00:00Z' AND temperature>=39 AND temperature<=77
true
874506c5a282247690a80e3ba6d8cfdf3b81a403
SQL
NickCharsley/ONS_googleAnalytics
/database/schema/msqli/fctnetwork.sql
UTF-8
1,552
2.984375
3
[]
no_license
CREATE TABLE `fctnetwork` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `dimDate` int(11) NOT NULL, `dimProfile` int(11) NOT NULL, `dimNetwork` int(11) NOT NULL, `Visits` int(11) NOT NULL DEFAULT '0', `Visitors` int(11) NOT NULL DEFAULT '0', `NewVisits` int(11) NOT NULL DEFAULT '0', `Bounces` int(11) NOT NULL...
true
c7b3b25c2e5513219ac6b48ac78deff4438df9e2
SQL
cnhsn/Teamspeak3-Panel
/SQL/DB.sql
UTF-8
2,122
2.984375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 16, 2017 at 05:57 PM -- Server version: 10.0.31-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...
true
7617b021fe9a738bb019aa32f065135045db1f3b
SQL
makgar/EDIBO
/SQL/examples/function_example_01.sql
UTF-8
694
3.0625
3
[]
no_license
USE db24; DELIMITER $$ CREATE FUNCTION MyFunc_19a (solis INT) RETURNS INT BEGIN DECLARE lielums, done INT; DECLARE mainig1 integer; DECLARE mainig2 varchar(10); DECLARE cursor_ieksh_tabulas CURSOR FOR SELECT ID, Title FROM MyTBL_19a; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; ...
true
0ef4c29fd5889bc87323ad5b529e4a088e799fc2
SQL
tkjelsrud/retro
/setup.sql
UTF-8
283
2.578125
3
[]
no_license
CREATE TABLE IF NOT EXISTS jsonobjects ( id INT AUTO_INCREMENT, pid INT, type VARCHAR(16), json VARCHAR(2048), ts TIMESTAMP(3) DEFAULT CURRENT_TIMESTAMP(3) ON UPDATE CURRENT_TIMESTAMP(3), skey VARCHAR(16) DEFAULT null, PRIMARY KEY (id) ) ENGINE = MEMORY;
true
ee8a260c238942a1f672d84a41bc42ba35b28f9b
SQL
EliteX23/rssAgregator
/init.sql
UTF-8
6,211
3.140625
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 13.0 -- Dumped by pg_dump version 13.0 -- Started on 2020-10-27 01:35:53 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_catalo...
true
ae7bba683510557b882406c307046a8f1425df0e
SQL
iisakjanova/js_group_10_exam_10_irina_isakzhanova
/database.sql
UTF-8
1,335
3.9375
4
[]
no_license
DROP DATABASE IF EXISTS exam10; CREATE DATABASE IF NOT EXISTS exam10; USE exam10; CREATE TABLE posts ( id int auto_increment, title varchar(255) not null, content text not null, image varchar(255) null, datetime datetime not null, constraint posts_pk primary key (id) ); CREATE TABLE comments ( id int auto_...
true
8629049e3a6cdc3aa7c4f9c19e994a00a56d5dd1
SQL
signtomonika/mysql-node
/Course/Challenges/01 - CRUD/Mega Challenge/02 - Insert.sql
UTF-8
2,067
2.859375
3
[]
no_license
Insert into shirts (article, color, shirt_size, last_worn ) values ('t-shirt', 'white', 'S', 10), ('t-shirt', 'green', 'S', 200), ('polo shirt', 'black', 'M', 10), ('tank top', 'blue', 'S', 50), ('t-shirt', 'pink', 'S', 0), ('polo shirt', 'red', 'M', 5), ('tank top', 'white', 'S', 200),...
true
d0025c4478d45bf41687158b73614d20ce3bd2c2
SQL
Oscarmal/pae-horasextra
/common/sql/pae_he_00.sql
UTF-8
26,247
3.125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50516 Source Host : localhost:3306 Source Database : pae_he_00 Target Server Type : MYSQL Target Server Version : 50516 File Encoding : 65001 Date: 2014-11-11 17:46:14 */ SET FOREIGN_KEY_CHECKS=0; --...
true
9125438ae514c5bc660926657637b5930826e4cd
SQL
spicyjack/public
/scripts/drupal-to-wordpress.sql
UTF-8
12,573
3.4375
3
[]
no_license
# DRUPAL-TO-WORDPRESS CONVERSION SCRIPT # Changelog # 07.29.2010 - Updated by Scott Anderson / Room 34 Creative Services http://blog.room34.com/archives/4530 # 02.06.2009 - Updated by Mike Smullin http://www.mikesmullin.com/development/migrate-convert-import-drupal-5-to-wordpress-27/ # 05.15.2007 - Updated by D’Arcy ...
true
792419207a81c69572cc89648fbb024086d50e60
SQL
RomanZakharenkov/task7
/src/main/resources/script.sql
UTF-8
445
2.671875
3
[]
no_license
CREATE SCHEMA game; CREATE TABLE game.hero ( id BIGSERIAL PRIMARY KEY, name CHARACTER VARYING(128) UNIQUE NOT NULL, gender CHARACTER VARYING(128) NOT NULL, first_melee CHARACTER VARYING(128) NOT NULL, first_ranged CHARACTER VARYING(128) NOT NULL, second_me...
true
2a700fdfd3b711e0996533a3cb0ce9c732ff3c2b
SQL
neal1202/OhdsiDataCatalogue
/data/method_of_data_collection.sql
UTF-8
261
3.078125
3
[ "Apache-2.0" ]
permissive
--method of data collection SELECT a.condition_source_concept_id, b.CONCEPT_NAME FROM (SELECT DISTINCT condition_source_concept_id FROM @schema.CONDITION_OCCURRENCE) a LEFT JOIN @schema.CONCEPT b ON a.condition_source_concept_id = b.concept_id
true
44ced1259947be99f9ba411f7ecd5d20ce09af7d
SQL
NorahJC/CS4720-Project-Internet-Programming
/database/dataSet.sql
UTF-8
2,498
3.296875
3
[]
no_license
/*Create Data*/ /* This sql script will create data and insert it into respective tables so that anyone using the site through xampp will have the same data to compare results with */ /*Create Parents*/ INSERT INTO PARENT (parentName, Username, Pass) VALUES ("Shruthi Rajuri", "srajuri", "password123"), ("Alex Drennan...
true
2530afdc053d6fc08b2e92ac7f02477abbb469d4
SQL
cmlaverdiere/gfxhub
/schema.sql
UTF-8
277
2.546875
3
[]
no_license
drop table if exists graphics; create table graphics ( id integer primary key autoincrement, title text not null, category text not null, info text DEFAULT "", starred integer DEFAULT 0, views integer DEFAULT 0, created_at timestamp DEFAULT CURRENT_TIMESTAMP );
true
97fa9d74490ba959bb9d8ad231d07f2b36c9ac19
SQL
hmac42/bases_donees
/SQL_niveau1/Exercice 2 Premières requêtes/exo2_codes.sql
UTF-8
1,537
4.0625
4
[]
no_license
/*question 6 - liste des 10 plus grands départements, en terme de superficie*/ SELECT departement_nom, SUM(`ville_surface`) AS dpt_surface FROM `villes_france_free` LEFT JOIN departement ON departement_code = ville_departement GROUP BY departement_nom ORDER BY dpt_surface DESC LIMIT 10 /* question 7 ...
true
6b29287aeec8a5dcbe74038796ce040dff340f6a
SQL
iahmedani/acf_mis_local
/queries/create_view_v_otpAddFull_report.sql
UTF-8
1,373
2.921875
3
[]
no_license
create view v_otpAddFull_report as select province_id, province, district_id, district_name, tehsil_id, tehsil_name, uc_id, uc_name, site_name, site_id, reg_date, count( case when muac < 11.5 then '' END ) as 'MUAC115', count( case when oedema != 'absent' then '' END ) as 'Oedema', count( case wh...
true
7965f84e14c5fbec4acf9cba8600fa0b54332989
SQL
aisondhs/gametcp_ex
/sql.sql
UTF-8
634
2.953125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS test DEFAULT CHARSET utf8 COLLATE utf8_general_ci; CREATE TABLE `user` ( `Uid` int(11) NOT NULL AUTO_INCREMENT, `Account` varchar(64) NOT NULL DEFAULT '', `Pwd` varchar(64) NOT NULL DEFAULT '', `Ctime` int(11) NOT NULL DEFAULT 0, PRIMARY KEY (`Uid`) ) ENGINE=MyISAM AUTO_...
true
cb261a0880e52b5b1442453f1823260c5219e4ae
SQL
stackfull/jpa-onetoone-sharedprimarykey-springboot-maven-h2
/src/main/resources/db.sql
UTF-8
740
3.421875
3
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `jpa_onetoone_sharedprimarykey`; USE `jpa_onetoone_sharedprimarykey`; -- -- Table structure for table `book_detail` -- DROP TABLE IF EXISTS `book`; CREATE TABLE `book` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=In...
true
c096554642ab404ae6f0928a5a367e8a967e1ddf
SQL
SebastiaoMartinsPereira/Coletor
/z_Auxiliares/ScriptTestesColetorMobile .sql
UTF-8
12,924
3.125
3
[]
no_license
 SELECT TOP (10) codigoPROPOSTA,numeroPROPOSTA, CONVERT(nvarchar, P.dataLIBERACAOPROPOSTA,103) +' '+ CONVERT(nvarchar, P.dataLIBERACAOPROPOSTA,108) as dataLIBERACAOPROPOSTA,clientePROPOSTA AS clientePROPOSTA, razaoEMPRESA, COALESCE(ordemseparacaoimpressaPROPOSTA,0) AS ordemseparacaoimpressaPROPOSTA, P.prioridadeLIBER...
true
d006264d8a66e7858977662c1318ffece02e4589
SQL
devisley/homework
/lesson3.local/task1/data/lesson3.sql
UTF-8
2,222
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3307 -- Время создания: Сен 03 2018 г., 23:50 -- Версия сервера: 5.7.20 -- Версия PHP: 7.1.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
be58f6f46da39bd8d8ce7fb61cea42864c7124df
SQL
MfN-Berlin/gdm
/custom/liquibase/example/changelogs/changelog-02.sql
UTF-8
323
3.015625
3
[]
no_license
CREATE TABLE `communities` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `title` varchar(200) DEFAULT NULL COMMENT 'Title of the community', `description` text COMMENT 'Description of the community', PRIMARY KEY (`id`) ) ENGINE InnoDB AUTO_INCREMENT 1 DEFAULT CHARACTER SET utf8 COMMENT 'communities table...
true
d72e74b9103629a256a6b8daa816514085b6791b
SQL
DevGHI/flight-ticket
/document/flight.sql
UTF-8
17,433
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 15, 2021 at 05:44 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
86747ff2237f4d86b7b80838e27c030452d469bd
SQL
xsat/Ministry-of-Justice
/app/databases/prisons.sql
UTF-8
3,898
3.9375
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS prisons; CREATE SCHEMA prisons; CREATE TABLE prisons.prison ( id INT(10) UNSIGNED PRIMARY KEY NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL ); CREATE UNIQUE INDEX prison_id_uindex ON prisons.prison (id); CREATE TABLE prisons.staff ( id INT(10) UNSIGNED PRIMARY KEY NOT NULL AUTO_I...
true
54d68357d312f102c3951ea761fdf9754e872263
SQL
patrickraphaelperez/484-Final-Project-Fall2016
/final.sql
UTF-8
740
2.59375
3
[]
no_license
CREATE DATABASE finaldb; USE finaldb; CREATE TABLE Auth ( UserID int NOT NULL AUTO_INCREMENT PRIMARY KEY, Username varchar(60), Password varchar(60), FirstName varchar(60), LastName varchar(60), email varchar(60), phone varchar(60) ); INSERT INTO Auth (Username,Password,FirstName,LastName,email,...
true
2aaf662ae18b0ab316846f24f403b80e71827ef1
SQL
mrallenlee/RE
/RealEstateDB/user_admin/CreateTable.sql
UTF-8
2,230
3.484375
3
[]
no_license
-- -- Table structure for table `LoginGroup` -- DROP TABLE LoginGroup; CREATE TABLE LoginGroup ( LoginGroupID int(11) NOT NULL auto_increment, GroupName varchar(50), GroupFullName varchar(100), Description varchar(100), GroupLevel double, PRIMARY KEY (LoginGroupID) ); -- -- Data for tab...
true
7376c3a764c54130ca21d464e9575f7a6efd4171
SQL
zoom59rus/sql
/src/2.sql
UTF-8
330
4
4
[]
no_license
-- CREATE TABLE IF NOT EXISTS employee -- ( -- id int NOT NULL, -- salary int, -- PRIMARY KEY (id) -- ); -- INSERT INTO employee (id, salary) -- VALUES (1, 100), (2, 200), (3, 300); SELECT salary AS SecondHighestSalary FROM employee WHERE salary < (SELECT max(salary) FROM employee) ORDER BY salary DES...
true
c775a8c58a12c30a7c157db97b2d90fee16ed87d
SQL
atanana/vue-stocks
/conf/evolutions/default/5.sql
UTF-8
890
3.6875
4
[ "MIT" ]
permissive
# --- !Ups CREATE TABLE `products` ( `id` INT UNSIGNED NOT NULL AUTO_INCREMENT, `product_type_id` INT UNSIGNED NOT NULL, `category_id` INT UNSIGNED NOT NULL, `pack_id` INT UNSIGNED NOT NULL, PRIMARY KEY (`id`), INDEX `fk_products_category_idx` (`category_id` ASC), INDEX `fk_produ...
true
cf0ccb67234134e175f358e2222adb5dfd43324c
SQL
lfhernandezb/car
/bd/scripts/create.sql
UTF-8
54,088
3.328125
3
[]
no_license
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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Table `mantencion_base` -- ----------------------------...
true
4559ff0be4fbc247c35a6cfdfdd828bd8395208b
SQL
joeybrown-ctrl/employee-tracker
/schema.sql
UTF-8
1,448
4.34375
4
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS employee_db; CREATE DATABASE employee_db; USE employee_db; CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT, dept_name VARCHAR(30), PRIMARY KEY(id) ); CREATE TABLE emp_role ( id INT NOT NULL AUTO_INCREMENT, title VARCHAR(30), salary DECIMAL, department_id INT, PRIMARY KEY(id) ); CREAT...
true
6ed227cf57db629f2ce9dba144719b81bc8e4f88
SQL
VanHoutteTibo/SecurityPE
/project-i-TiboVanHoutte-master/Project-I/sql/dbProject1.sql
UTF-8
6,026
3.265625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `project1` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `project1`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: project1 -- ------------------------------------------------------ -- Server version 5.7.21-log /*!40101 SET @OLD_CHARACTER_SET_CL...
true
8319a0b0780948af5052ef712c7ceb5a6928946e
SQL
dembygenesis/droppy-prulife
/src/v1/api/database/functions/get_base_price.sql
UTF-8
960
3.234375
3
[]
no_license
DROP FUNCTION IF EXISTS `get_base_price`; DELIMITER $$ CREATE FUNCTION `get_base_price` ( p_declared_amount INTEGER ) RETURNS INTEGER DETERMINISTIC BEGIN DECLARE base_price INTEGER; IF p_declared_amount BETWEEN 0 AND 1499 THEN SET base_price = 130; ELSEIF p_declared_amount BETWEEN 1500 AND 19...
true
9dd94563431db117a0a515f73c61e2618addeaee
SQL
yarlB/BDD
/tp1.sql
UTF-8
4,516
3.9375
4
[]
no_license
select table_name from user_tables; DROP TABLE Clients CASCADE CONSTRAINTS; CREATE TABLE Clients( idcl number PRIMARY KEY, nom varchar2(20), pren varchar2(15), adr varchar2(30), tel varchar2(12) ); DROP TABLE Livres CASCADE CONSTRAINTS; CREATE TABLE Livres( refl varchar2(10...
true
4e49a9818a67e4d1d3f903ab98b80a9be23ed7e4
SQL
HackRx2-0/ps12_runtime_error
/recommendation_system.sql
UTF-8
381
2.6875
3
[]
no_license
CREATE DATABASE recommendation_system; USE recommendation_system; CREATE TABLE useraccount ( id int NOT NULL AUTO_INCREMENT, username varchar(50) NOT NULL, fname varchar(50) NOT NULL, lname varchar(50) NOT NULL, email varchar(50) NOT NULL, mobile varchar(10) NOT NULL, pwd varchar(255) NOT NULL, cpwd varchar(25...
true
d6926ddd546baf9ae5adb4914c79b879bcee7979
SQL
Nam-SH/MySQL-Study
/HackerRank/Basic Select/Weather Observation Station 9.sql
UTF-8
160
2.90625
3
[]
no_license
SELECT DISTINCT CITY FROM STATION WHERE SUBSTR(CITY, 1, 1) NOT IN ('A', 'E', 'I', 'O', 'U') SELECT DISTINCT CITY FROM STATION WHERE CITY NOT REGEXP "^[aeiou]"
true
19a08550f964e19efca635f856589e25d66c397b
SQL
Colerk/lightBnB
/seeds/01_seeds.sql
UTF-8
1,255
3.015625
3
[]
no_license
INSERT INTO users (name, email, password) VALUES ('Cole', 'Cole@Cole.com', '2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u'), ('Joel', 'Joel@Joel.com', '2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u'), ('Shauna', 'Shauna@Shauna.com', '2a$10$FB/BOAVhpuLvpOREQVmvmezD4ED/.JBIDRh70tGevYzYzQgFId2u')...
true
d39e1524086cd1b21b7293f6048bb065adb4dd4c
SQL
chlwltn0219/team1
/src/main/resources/sql/team1_oracle.sql
UTF-8
1,644
3.296875
3
[]
no_license
-- -- DROP table -- DROP TABLE tbl_user; DROP TABLE tbl_attach; DROP TABLE tbl_reply; DROP TABLE tbl_jboard; -- -- tbl_user -- CREATE TABLE tbl_user ( uid VARCHAR2(50) NOT NULL PRIMARY KEY , upw VARCHAR2(50) NOT NULL, uname VARCHAR2(100) NOT NULL, upoint NUMBER DEFAULT 0, sessionkey VARCHAR2(50) DEFAUL...
true
5977dafaf0ddfd850a62b9b581e7ba863b7c6d23
SQL
arslanugur/db
/sql/sql-statements-SELECT.sql
UTF-8
2,468
4.03125
4
[]
no_license
--Basic SQL Commands The SQL SHOW statement displays information contained in the database and its tables. This helpful tool lets you keep track of your database contents and remind yourself about the structure of your tables. For example, the SHOW DATABASES command lists the databases managed by th...
true
ca473a0b7f0f96816125ef1e088dd2a48c3dad78
SQL
mrcasix/pd1_test
/sql/prenotazioni.sql
UTF-8
680
2.796875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `prenotazioni` ( `id_prenotazione` int(11) NOT NULL AUTO_INCREMENT, `fk_id_utente` int(11) NOT NULL, `durata_assegnata` int(11) NOT NULL, `durata_richiesta` int(11) NOT NULL, `fk_id_orario_prenotazione` int(11) NOT NULL, PRIMARY KEY (`id_prenotazione`) ) ENGINE=MyISAM DEFAULT CHA...
true
119871033400c4fbb2d090b9bcaccb2f1711e06f
SQL
MikeTNewell/testing
/mike_scripts/sql/lock information.sql
UTF-8
1,125
3.796875
4
[]
no_license
-- Who is locking what select oracle_username os_user_name, locked_mode, object_name, object_type from v$locked_object a,dba_objects b where a.object_id = b.object_id -- All locked objects select c.owner, c.object_name, c.object_type, b.sid, b.serial#, b.status, b.osuser, b.m...
true
71756d2d0b0c2a12036f643caafea36003bc784f
SQL
JedrekWang/graduation
/src/main/resources/schema/tables.sql
UTF-8
3,072
3.453125
3
[ "MIT" ]
permissive
CREATE TABLE `user` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `user_name` varchar(15) NOT NULL, `account` varchar(20) NOT NULL, `tel` varchar(10) NOT NULL, `sex` varchar(5) NOT NULL, `email` varchar(20) DEFAULT NULL, `school` varchar(50) DEFAULT NULL, `user_desc` varchar(120) DEFAULT NULL, `group_...
true
e20b5c5b897d30c24332fbb2e09785faa93e3d37
SQL
ccerrillos/PolyQuiz
/database/dev-data.sql
UTF-8
2,881
3.015625
3
[ "MIT" ]
permissive
SET FOREIGN_KEY_CHECKS=0; INSERT INTO `houses` (`houseid`, `housename`, `owner`) VALUES (3, 'East', -1337), (1, 'North', -1337), (6, 'Other', -1337), (5, 'South', -1337), (4, 'West', -1337); INSERT INTO `quizzes` (`uuid`, `quizname`, `version`, `owner`) VALUES (1, 'My Quiz', 0, -1337), (2, 'AAA', 0, -1337), (3, 'xxx'...
true
f5f920bdac1cf380428ced0d6f6243e9df8b3089
SQL
quyctd/hackerrank-sql-solution
/aggregation/weather-observation-station-16.sql
UTF-8
151
3.046875
3
[]
no_license
# Problem: https://www.hackerrank.com/challenges/weather-observation-station-16/problem SELECT ROUND(MIN(LAT_N), 4) FROM STATION WHERE LAT_N > 38.778
true
eede122f4949bb3a227c744f400014aa334997b8
SQL
chaquen/sistema_pos
/scripts_bd/Noejecutar/procedimientos_entrada.sql
UTF-8
2,510
3.9375
4
[]
no_license
--FUNCIONES Y PROCEDIMIENTOS PARA A TABA ENTRADA Y ENTRDA DEVOLUCION Y PEDIDO --REGISTRAR ENTRADA DELIMITER// CREATE FUNCTION fun_registrar_entrada(codigo_entrada VARCHAR(10),fecha_entrada DATETIME, fk_id_usuario_empleado INT) RETURNS INT BEGIN IF NOT EXISTS(SELECT * FROM entradas WHERE CodigoEntrada=codigo_entrada...
true
fe063be75f0e04505c36c9268829e6615d801c65
SQL
arizalsultan25/asosiasi_webDTS2019
/db/dts_webdev.sql
UTF-8
6,464
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 25, 2019 at 09:37 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
45302e50f1c694adb0ce9f5e5550dcb425909c97
SQL
BharathBejoy/sql
/find_nth_highest_salary_using_sub-query.sql
UTF-8
121
3
3
[]
no_license
SELECT TOP 1 SALARY FROM ( SELECT DISTINCT TOP N SALARY FROM EMPLOYEES ORDER BY SALARY DESC ) RESULT ORDER BY SALARY
true
bd90909ec91ceda2a9228c01b30241ebfa8cc7c6
SQL
asdbaihu/postgres
/usefulQueries/leetcode/solution_626.sql
UTF-8
1,106
3.546875
4
[]
no_license
-- leetcode.com #626 /* seat +---------+---------+ | id | student | +---------+---------+ | 1 | Abbot | | 2 | Doris | | 3 | Emerson | | 4 | Green | | 5 | Jeames | +---------+---------+ +---------+---------+ | id | student | +---------+---------+ | 1 | Doris | | ...
true
fb8041ed229b92fb15fe46779969c28a95605308
SQL
thecoffeeandcode/Medical-Store-Management-System
/med_db_create.sql
UTF-8
1,793
3.6875
4
[ "MIT" ]
permissive
CREATE TABLE medicine ( name varchar(60) NOT NULL, buy_timestamp timestamp NOT NULL, expiry_date date NOT NULL, chem_amount varchar(10) NOT NULL, qty int NOT NULL, cp int NOT NULL, sp int NOT NULL, PRIMARY KEY(name, buy_timestamp, expiry_date, chem_amount, cp) ); CREATE TABLE name_pharma ( name varchar(60) re...
true
c97e0d9d56f0841718826a1f47a7ead450f4fa37
SQL
Derrevale/Projet_Web
/restaurant.sql
UTF-8
7,889
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : lun. 25 mai 2020 à 12:30 -- Version du serveur : 8.0.18 -- Version de PHP : 7.3.12 SET FOREIGN_KEY_CHECKS = 0; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zon...
true
d2ded9f64c071514cf5442824e1e72cbcff7937c
SQL
MUZakharov/TestDBRepo
/postgres/Views/information_schema.domain_udt_usage.sql
UTF-8
1,023
3.765625
4
[]
no_license
SET SCHEMA "information_schema"; CREATE VIEW domain_udt_usage AS SELECT (current_database())::sql_identifier AS udt_catalog, (nbt.nspname)::sql_identifier AS udt_schema, (bt.typname)::sql_identifier AS udt_name, (current_database())::sql_identifier AS domain_catalog, (nt.nspname)::sql_identifie...
true
6ce5139500d5aeceac12ef7330d296cfd16e0939
SQL
Tryford/MP_MODSPACK_VPJFD
/Mods/(3) City-State Diplomacy Mod for CBP (v 27)/Art/ArtInfo.sql
UTF-8
3,263
2.578125
3
[]
no_license
-- UnitArtInfo -- INSERT INTO ArtDefine_UnitInfos ( Type, DamageStates, Formation) SELECT 'ART_DEF_UNIT_EMISSARY', '1','UnFormed'; INSERT INTO ArtDefine_UnitInfos ( Type, DamageStates, Formation) SELECT 'ART_DEF_UNIT_ENVOY', '1','UnFormed'; INSERT INTO ArtDefine_UnitInfos ( Type, DamageStates, Formation) SELECT '...
true
3e92be538a3b914b692f6093fd4ea9cabcfa1224
SQL
maxhbrt/farmForm
/db/edit_quan.sql
UTF-8
252
2.8125
3
[]
no_license
UPDATE orders SET quan = $1 WHERE order_item_id = $2; UPDATE items SET avail = CASE WHEN $1 >= $4 THEN (avail - ($1 - $4)) WHEN $1 < $4 THEN (avail + ($4 - $1)) END WHERE item_id = $3; --SET avail = avail - $1 * 1 --WHERE item_id = $3;
true
16ef8ecffa18b34e00049e5d3c2afb39b08da2fd
SQL
nanwan555/DANIEL-WELLINGTON
/src/lib/users.sql
UTF-8
1,730
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2019-06-04 06:42:23 -- 服务器版本: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET...
true
8dac99bc7c0c2faa2deeea969ff316f8a20eb133
SQL
eXpl0it3r/SFMLProjects-Kohana
/schema/all_tables.sql
UTF-8
2,095
3.78125
4
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- -- Table structure for table `navigations` -- CREATE TABLE IF NOT EXISTS `navigations` ( `id` int(11) NOT NULL AUTO_INCREMENT, `route` varchar(80) NOT NULL, `name` varchar(80) NOT NULL, `parent_id` int(11) DEFAULT NULL, `visible` tinyint(1) NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `route` (`route`), ...
true
ea35b7260c358f2cf47fb4a441a77733c1afe571
SQL
Luis-Angel-Santos/Blog
/curso_blog.sql
UTF-8
2,863
3.40625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-07-2020 a las 21:33:45 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
2afe3b91ae785c913a37988954fd370398d96690
SQL
Spandyandy/CS284
/hw4-kimj0/sql/create.sql
UTF-8
387
2.78125
3
[]
no_license
create table car( carID int AUTO_INCREMENT NOT NULL PRIMARY KEY ,name varchar(40) ,brand varchar(40) ,price int ,year int ); create table spec( specID int AUTO_INCREMENT NOT NULL PRIMARY KEY ,engine varchar(20) ,horsepower int ,engineRev float ,maxSpeed int ); create table carwithspec( descriptionID in...
true
83dae9760cee4da3b2abb0424b36ff64c27378a9
SQL
franNoticesSenpai/Previous-Code-Portfolio
/Year 2/SQL/Lab5Query.sql
UTF-8
1,274
3.859375
4
[]
no_license
--Formatting shenanigans SET LINESIZE 1000; SET TRIMSPOOL ON; -- First Query CREATE OR REPLACE VIEW first_view AS SELECT SUM(s.amount_sold) "Amount of Products Sold", SUM(s.quantity_sold) "Number of Products sold", t.fiscal_year, p.prod_name FROM sh.sales s JOIN sh.times t ON (s.time_id = t.time_id) JOI...
true
bd54fd90f4846efd3f54cbe508636f4566778600
SQL
animehk55/lost_vehicle_portal
/Missing_vehicle.sql
UTF-8
4,008
2.984375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 07, 2017 at 06:59 PM -- Server version: 5.7.20-0ubuntu0.16.04.1 -- PHP Version: 7.0.22-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
59eebc48aea106a95c216757dee3b52683bf8e3d
SQL
yuhao12345/publication_management
/project/modification.sql
UTF-8
1,076
3.625
4
[]
no_license
--INSERT a single tuple to article insert into article (title,subject,length,journal_ID) values('sasfffgw','cs',2000,5); --INSERT a single tuple to journal insert into journal(journal_ID,name,impact_factor) values(35,'sdgfdewwg',10); --INSERT company established after 1995 into affliation insert into affliation(...
true
b2bdfa4070aa66d56a3ec09a53711188f6950397
SQL
scsosna99/musicdb
/request.sql
UTF-8
990
3.0625
3
[]
no_license
PROMPT ...request_log... CREATE TABLE request_log ( request_log_seq_id NUMBER(8) NOT NULL PRIMARY KEY, song_seq_id NUMBER(5,0), cd_seq_id NUMBER(4,0), request_date DATE NOT NULL, play_log_seq_id NUMBER(7), email_addr VARCHAR2(256) NOT NULL, confirm_code VARCHAR2(20) NOT NULL, confirm_date DATE, artist_...
true
bf06e3abcdb8b6cafb2da101fdecec1475b54293
SQL
Saraswathi2995/Purchaseportal
/purchaseportal.sql
UTF-8
7,350
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 08, 2021 at 06:22 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
c76e4bcdcde5728d48e86e0e474092fd378f19f4
SQL
pmannuel/CodingDojo_Python
/MySQL/exercise_friendships.sql
UTF-8
126
2.859375
3
[]
no_license
SELECT * FROM users LEFT JOIN friendships ON users.id = friendships.user_id LEFT JOIN users as users2 ON friend.id = users2.id
true
3f3325292028bb3ecc03d462b88f63b8670f0b41
SQL
JacobDer/PostgreSQL-practice
/assessment_2/6.sql
UTF-8
153
2.953125
3
[]
no_license
-- This query returns the information for facilities with id 1 and 5 -- without using the OR operator SELECT * FROM cd.facilities WHERE facid IN (1,5);
true
81ada997013092ee032fca0f89680b00b5ecde85
SQL
sgbsc/mastering-spring-5-development
/spring-boot-fundamentals/section_4/section_4_1/src/main/resources/db/migration/V1.1__person_add_address.sql
UTF-8
358
3.34375
3
[ "MIT" ]
permissive
CREATE TABLE section4_2.address ( id INT PRIMARY KEY AUTO_INCREMENT, address1 VARCHAR(36) NOT NULL, address2 VARCHAR(36), city VARCHAR(36) NOT NULL, state VARCHAR(36), zip INT ); ALTER TABLE section4_2.person ADD address INT NULL; ALTER TABLE section4_2.person ADD CONSTRAINT person_address_id_fk FOREIGN ...
true
541236bd1b3caaf6c5677cfeca4ad7abd7efdbe1
SQL
nkomissar/Unido-Equipment-Database
/EetdbServices/Docs/db/eetdb_db_create.sql
UTF-8
12,664
3.5625
4
[]
no_license
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='TRADITIONAL'; -- ----------------------------------------------------- -- Drop tables `eetdb`.* -- ---------------------------------------------------...
true
0035e4a303bb3a9528f9c76c819a8dcdce0be6de
SQL
zombodb/zombodb
/test/sql/issue-678.sql
UTF-8
686
3.53125
4
[ "Apache-2.0" ]
permissive
create table issue678 ( id integer not null generated by default as identity, name character varying(250) not null, description text, primary key (id), constraint unique_name unique (name) ); create index idxissue678 on issue678 using zombodb ((issue678.*)) with (url =...
true
9462f9f7f7262679f68f36d675dc933934a079bd
SQL
spike321/Hospital-Database
/project/sqlscripts/CreateTablesAndData.sql
UTF-8
9,616
3.65625
4
[]
no_license
-- **MySQL Default DateTime format 'YYYY-MM-DD HH:MM:SS' -- **MysQL Time format 'HH:MM:SS' CREATE TABLE Doctor ( DoctorID VARCHAR(100) NOT NULL PRIMARY KEY, FirstName VARCHAR(100), LastName VARCHAR(100), Specialty VARCHAR(100), Revenue INT NOT NULL ); INSERT INTO Doctor (DoctorID, FirstName, LastName, Specialty,...
true
3dac57141edd1fccd34d2e2d484934221be32049
SQL
ishani216/IT-2351-Enterprise-Database-Systems
/Assignment 4/Assignment 4 IT 2351/Assignment4No5.sql
UTF-8
852
4.25
4
[]
no_license
-- ***************************************************** -- Ishani Nanavaty, Spring 2021 -- IT 2351 Assignment 4 No5 Prof. Tamerlano /*This query shows the highest and lowest prices by product for each category*/ -- ***************************************************** SELECT C.category_name, P.product_name, SUM((OI.it...
true
e4d5b7b446dd6d066bcb4ece25f967f5ad48949e
SQL
thobby/stocks
/web/math/create_db.sql
UTF-8
673
3
3
[]
no_license
drop table exchanges; create table exchanges (id integer primary key, name text, unique (name)); drop table tickers; create table tickers (id integer primary key, exchange integer, name text, unique (exchange, name)); drop table data; create table data (ticker integer, datum integer, open real, close real, high real...
true
d33e82c617eab64bdf61be00e76327c87b177fd8
SQL
VinodRobert/DBCapacite
/VersionSQL/BERACHAH/BSBS_CAPACITE/BS/Table/PAYBATCHROLES.sql
UTF-8
482
3.1875
3
[]
no_license
/****** Object: Table [BS].[PAYBATCHROLES] Committed by VersionSQL https://www.versionsql.com ******/ SET ANSI_NULLS ON SET QUOTED_IDENTIFIER ON CREATE TABLE [BS].[PAYBATCHROLES]( [BATCHROLEID] [int] IDENTITY(1,1) NOT NULL, [ROLENAME] [varchar](55) NULL, [BSROLEHEADID] [int] NULL, PRIMARY KEY CLUSTERED ( [BAT...
true
8a0051483a521f37c77766ccbc315aa994b0c138
SQL
Felipej-Gomes/Mysql
/Mysql/Ex1.sql
UTF-8
887
3.296875
3
[]
no_license
-- exerciocio1 -- Crie um banco de dados para um serviço de RH de uma empresa, onde o sistema -- trabalhará com as informações dos funcionários desta empresa. create database db_rh; use db_rh; create table tb_funcionarios( id bigint auto_increment, nome varchar (255) not null, idade int not null, cargo varchar(25...
true
4e2af7efaf0a6ec9dc716bc000bff7396de1c735
SQL
michelebraidotti/genomes-manager
/postgresql/genomes_v1.sql
UTF-8
74,064
3.125
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: annotation; Type: SCHEMA; Schema: -; Owner: genomes -- CREATE SCHEMA annotation; A...
true
e946ba2399a9d1aaaedb06432ea229f031453703
SQL
BiturbeWS/wsproba
/pWS19ikmigratua/quiz.sql
UTF-8
2,116
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 30-10-2019 a las 17:40:04 -- Versión del servidor: 10.4.6-MariaDB -- Versión de PHP: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"...
true
f98f977134a5cb8b5c58594356e98fd7a8cc8330
SQL
bth1994/CR-MesoLabs-Spring-QueryingPersons.SQL
/src/main/resources/script.sql
UTF-8
1,490
3.0625
3
[]
no_license
INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES ('Howard the Duck', 110, 'Sci-Fi', 4.6, 'PG'); INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES ('Lavalantula', 83, 'Horror', 4.7, 'TV-14'); INSERT INTO movies (title, runtime, genre, imdb_score, rating) VALUES ('Starship Trooper...
true
5d6672d126a9d699da2b17f07d3855f7db380f93
SQL
italogundes/gerenciador_arquivos
/bacelar.sql
UTF-8
4,624
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 19-Dez-2019 às 19:22 -- Versão do servidor: 10.4.8-MariaDB -- versão do PHP: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
9b1975c38c26a022668f3774267a5180e6bdb357
SQL
jstloyal/SQL-1
/5_sum_and_count.sql
UTF-8
583
3.78125
4
[ "MIT" ]
permissive
--1 SELECT SUM(population) FROM world; --2 SELECT DISTINCT continent FROM world; --3 SELECT SUM(gdp) FROM world WHERE continent = 'Africa'; --4 SELECT COUNT(*) FROM world WHERE area >= 1000000; --5 SELECT SUM(population) FROM world WHERE name IN ('Estonia', 'Latvia', 'Lithuania'); --6 SELECT continent, CO...
true
76718bd982b9270aee3b406d7a8c08913d29e856
SQL
paddym1991/hurling_blitz_database
/select.sql
UTF-8
4,732
4.34375
4
[]
no_license
/*return full player name for given last name*/ SELECT first_name AS "First Name", last_name AS "Last Name" FROM h_players WHERE last_name = 'Mason'; /*return teams in group 3*/ SELECT * FROM h_teams WHERE group_no = 3; /*return players who have scored more than 1 point*/ SELECT first_name AS "First Name", last...
true
005938fb44e4685331af57af12b2330c2ba14297
SQL
nexus-link/Nexus.Link.Sdks
/src/WorkflowEngine.Sdk.Persistence.Sql/contentFiles/any/any/sql-scripts/patches/patch01 - initial configuration tables.sql
UTF-8
7,604
3.421875
3
[]
no_license
-- PATCH: 1 ---------------------------------------------------------------------------------------------------------------------- -- Workflow form definition ---------------------------------------------------------------------------------------------------------------------- CREATE TABLE WorkflowForm ( Id uniq...
true
83e5c415a8af92c09cdd491221142f91a8da35de
SQL
zhangzhanpei/algorithm
/leetcode-196_delete-duplicate-emails.sql
UTF-8
157
2.9375
3
[]
no_license
--删除 person 表中重复的 email, 但保留 id 最小的 email 记录 delete p from person p, person tmp where p.email = tmp.email and p.id > tmp.id;
true
2eb3ce1b7410887051750761bc7c2d3b585419c5
SQL
pkonotopov/automation
/monitoring-templates/grafana/queries/pg_stat_activity_pg_dashboard_zbx_54.sql
UTF-8
1,509
4.6875
5
[]
no_license
WITH query AS ( SELECT query FROM ( SELECT i.name, q.value AS query, q.clock AS tm, row_number() OVER (PARTITION BY i.name ORDER BY q.clock DESC) AS rn FROM items i INNER JOIN hosts h ON i.hostid = h.hostid INNER JOIN it...
true
5a3860a1382866214fcd0fad1ff8b0d064794ec1
SQL
prateek-karanpuria/krish-training
/ref/m2-ee-to-ce-SQLs/sales/sales_invoiced_aggregated.sql
UTF-8
2,503
3.125
3
[]
no_license
SET GLOBAL FOREIGN_KEY_CHECKS=0; INSERT INTO m231_studentkare.sales_invoiced_aggregated ( m231_studentkare.sales_invoiced_aggregated.id, m231_studentkare.sales_invoiced_aggregated.period, m231_studentkare.sales_invoiced_aggregated.store_id, m231_studentkare.sales_invoiced_aggregated.order_status, m231_studentkare.sale...
true
5dfe9095d87ca836643400b3a488f6fbca6445c6
SQL
Breddam/Views
/UPPER CASE/GS_FEJLADRESSER_ENHED_BORGER.sql
UTF-8
743
3.03125
3
[]
no_license
SELECT MIN(DISTINCT GS_BORGER.Tidsstempling_tilflytning) AS Tidligste_indflytning, GS_BORGER.Adresse, GS_BORGER.Supplerende_bynavn, GS_BORGER.POSTNR, GS_BORGER.POSTBYNAVN, GS_BORGER.ADRESSELINK_ID, GS_BORGER.ADRESSE_ID, GS_BORGER.UDVadresseID FROM GS_BBREnhed ...
true
74428d68f00ab5e3af4fecedf3c2103104d91f32
SQL
intCCP/CCP
/Produzione/Viste/v_mcrei_app_garanzie_prop_mpl.sql
ISO-8859-1
1,343
3.0625
3
[]
no_license
/* Formatted on 17/06/2014 18:08:17 (QP5 v5.227.12220.39754) */ CREATE OR REPLACE FORCE VIEW MCRE_OWN.V_MCREI_APP_GARANZIE_PROP_MPL ( COD_ABI, COD_GARANZIA, COD_FORMA_TECNICA, DESC_FORMA_TECNICA, DTA_PERFEZIONAMENTO, COD_NDG_GARANTITO, COD_NDG_GARANTE, VAL_IMPORTO, COD_TIPO_GARANZIA ) AS S...
true
143ba8f8049aca2bf562e5d76dceed10e325643e
SQL
BlueSmiley/Pdxsite
/prisma/migrations/20210114170644_init/migration.sql
UTF-8
1,122
3.71875
4
[]
no_license
-- CreateTable CREATE TABLE "Game" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "name" TEXT NOT NULL ); -- CreateTable CREATE TABLE "Campaign" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "name" TEXT NOT NULL, "gameId" INTEGER, FOREIGN KEY ("gameId") REFERENCES "Game" ("id") ON DELE...
true