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
825ba20e081d6f91860b18f98335aab458b41014
SQL
pmosoft/teos
/src/com/sccomz/scala/hive/I_RU.sql
UTF-8
1,192
2.6875
3
[]
no_license
DROP TABLE I_RU; CREATE EXTERNAL TABLE I_RU ( SCENARIO_ID INT , ENB_ID STRING , PCI INT , PCI_PORT INT , RU_ID STRING , MAKER STRING , SITE_TYPE ...
true
d1545c4d21ecd1cfce8ee7ede274b4148c611aab
SQL
adayal2015/Test3
/SQL/UniqueHuddles.sql
UTF-8
829
2.9375
3
[]
no_license
CREATE TABLE IF NOT EXISTS capitalone.huddle ( HuddleName varchar(255) ); INSERT INTO capitalone.huddle (HuddleName) VALUES ('Huddle'); CREATE TABLE IF NOT EXISTS capitalone.MainTable( Huddle text, InsertDate datetime, Metrics text, MetricStatus int, CompletionPercentage float ); INSERT INTO ca...
true
f11b422290da972115c857879d3873844f58373d
SQL
monkdaf/hexlet-exircise
/postgresql-ddl/03_create_table/solution.sql
UTF-8
185
2.53125
3
[]
no_license
DROP TABLE IF EXISTS "cars"; -- BEGIN (write your solution here) CREATE TABLE cars( id integer, name character varying, price numeric, created_at timestamp); -- END
true
a0c1eaabe7859f24d1f478c78240027501a5f099
SQL
Jostrange/bstorefront
/bamazon.sql
UTF-8
1,737
3.34375
3
[]
no_license
-- this is the schema CREATE database bamazon USE bamazon; CREATE TABLE Products( id INTEGER(11) AUTO_INCREMENT NOT NULL, product_name varchar(100), department_name varchar(100), stock_quantity integer(11), price decimal(10, 1), PRIMARY KEY (id) ); -- this is the seed data to fill in the appropriate dataset IN...
true
972ec82a36a6c6c90db85189f8398bf54b6af464
SQL
RemyGaudre/TPBaseDeDonnees
/chansons.sql
UTF-8
9,792
3.21875
3
[]
no_license
-- source de creation de la base chansons drop table interprete; drop table groupe; drop table chanson; drop table chanteur; drop table disque; drop table categorie; create table CATEGORIE ( c_ref integer constraint categorie_pkey primary key,-- obligatoirement not null et unique c_libell...
true
fa474b9c2985b4f4f57c13746a52c395da54a728
SQL
milena-dimitrova/sql-training
/part2-2_playlist-maker.sql
UTF-8
306
2.921875
3
[]
no_license
/*https://www.khanacademy.org/computing/computer-programming/sql/more-advanced-sql-queries/pc/challenge-playlist-maker*/ SELECT title FROM songs WHERE artist = "Queen"; SELECT name FROM artists WHERE genre = "Pop"; SELECT title FROM songs WHERE artist IN (SELECT name FROM artists WHERE genre = "Pop");
true
52be73c0f45c9b562b047dbbcbdaf26e3fa05458
SQL
bellmit/flexdb
/2.HOST/1.View/v_etsadvanceschedule.sql
UTF-8
3,032
3.671875
4
[]
no_license
CREATE OR REPLACE FORCE VIEW V_ETSADVANCESCHEDULE AS ( SELECT ISMORTAGE,AFACCTNO,AMT,QTTY,FULLNAME,ADDRESS,LICENSE,FAMT,CUSTODYCD,SYMBOL,AAMT,ORGORDERID,PAIDAMT, PAIDFEEAMT,FEERATE,MINBAL,TXDATE,DES,CLEARDATE,DAYS, GREATEST(LEAST(ROUND(ADVAMT*(1-FEERATE*DAYS/100/360)), ADVAMT-MINBAL),0) DEPOAMT,...
true
c5d5c3050d7c85e84d14c2f95de69bfc2ae996b0
SQL
neostreet/poker_session_data
/mttx_century_pct.sql
UTF-8
165
2.828125
3
[]
no_license
use poker select sum(num_hands >= 100),count(*), sum(num_hands >= 100) / count(*) from poker_sessions where poker_style in (2,6,7) and num_hands is not null; quit
true
022ee37d0974cc2a0a51b6cc4281f37f4de557f7
SQL
pattmurphy/CodingExercises
/Leetcode/Easy/SQL/197 - Rising Temperature.sql
UTF-8
746
4
4
[]
no_license
-- table creation for testing /* Create table If Not Exists coding_exercises.Weather ( Id int, RecordDate date, Temperature int); Truncate table Weather; insert into coding_exercises.Weather (Id, RecordDate, Temperature) values ('1', '2015-01-01', '10'); insert into coding_exercises.Weather (Id, RecordDat...
true
e2fb446c4d679bc68dd59e9c07f4206d2254e209
SQL
nandor1992/I-energy
/ienergy.sql
UTF-8
1,384
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 09, 2014 at 03:33 PM -- Server version: 5.5.36 -- PHP Version: 5.4.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
14f58d666dbe3a759e37883938d8ec3a6f89907d
SQL
igoryen/bearberry2
/sql_scripts/insert/in_list.sql
UTF-8
808
3.234375
3
[]
no_license
# add an exercise to a list INSERT INTO `bearberry`.`list` (`list_id`, `day_type`, `uid`, `eid`) VALUES ( '8', # list ID '1', # work-out day type (1 = pull, 2 = push, 3 = leg) '1', # user ID (1 = Igor, 2 = Jenica, 3 = Daniel, 4 = Joy) '38' # exercise ID ); SELECT * FROM `bearberry`.`list`; SELECT * FROM `be...
true
5d8c7c83e96c4c916ce8eeaf36db140e2e3e427b
SQL
digital-asset/canton
/community/common/src/main/resources/db/migration/canton/postgres/stable/V5__changes_for_2.6.sql
UTF-8
597
3.03125
3
[ "Apache-2.0" ]
permissive
-- Copyright (c) 2023 Digital Asset (Switzerland) GmbH and/or its affiliates. All rights reserved. -- SPDX-License-Identifier: Apache-2.0 CREATE TABLE pruning_schedules( -- node_type is one of "PAR", "MED", or "SEQ" -- since mediator and sequencer sometimes share the same db node_type varchar(3) collate "C" not ...
true
b5b2c778839d7bd02e4bc1035919798068352cbb
SQL
jakeaustin/wdi_2_sql_demo_joins
/directors_and_movies/data.sql
UTF-8
536
3.3125
3
[]
no_license
\c director_demo INSERT INTO directors(name) VALUES ('Steven Spielberg'), ('J.J. Abrams'), ('George Lucas'); WITH ins (director, title) AS (VALUES ('Steven Spielberg', 'E.T.'), ('Steven Spielberg', 'Raiders of teh Lost Ark'), ('Steven Spielberg', 'The land before time'), ('J.J. Abrams', 'Cloverfield')...
true
08796391439e969abd44346f48f5d55e8d9633c1
SQL
hqottsz/MXI
/assetmanagement-database/src/upgrade/plsql/lib/liquibase/8/1/0/0/sql/MTX-1011.sql
UTF-8
843
2.640625
3
[]
no_license
--liquibase formatted sql --changeSet MTX-1011:1 stripComments:false -- Add entry into utl_report_type -- MTX-1011 -- Add report configuration for Generate Draft Safety Report -- INSERT INTO utl_report_type (REPORT_NAME, REPORT_ENGINE_TYPE, REPORT_PATH, REPORT_DESC, ACTIVE_BOOL, SYSTEM_BOOL, RSTAT_CD, REVISION_NO, C...
true
ec227c699427907de76465a4b189a2074e7784f7
SQL
MadhavaAdiga/grpc-hrm-server
/db/migration/000003_payroll.up.sql
UTF-8
372
2.71875
3
[]
no_license
CREATE TABLE "payrolls" ( "id" uuid PRIMARY KEY DEFAULT uuid_generate_v4(), "employee" uuid NOT NULL, "ctc" integer, "allowance" integer, "create_by" uuid NOT NULL, "updated_by" uuid NOT NULL, "created_at" timestamptz NOT NULL DEFAULT (now()), "updated_at" timestamptz NOT NULL DEFAULT (n...
true
9506836c738b72393d90568f3ac682af46bc90bc
SQL
boudourm/ms-sql-server-dba
/labs/lab 3 - Récapitulatif sur les requêtes multi-tables et exercices/Exercice1.sql
ISO-8859-1
1,943
4.1875
4
[]
no_license
/*===================================================== REQUTE 1 : Afficher les societe avec leurs differentes commandes (No Commande , Date Commande) =====================================================*/ SELECT u.SOCIETE , v.NO_COMMANDE , v.DATE_COMMANDE FROM CLIENTS u , COMMANDES v WHERE u.CODE_CLIENT = ...
true
c4510d3ae45d3e8ca5fd45a27dfb457521caf749
SQL
Gustry/qgis-veloroutes_voies_vertes-plugin
/veloroutes_voies_vertes/test/data/install/sql/veloroutes/60_CONSTRAINT.sql
UTF-8
6,631
2.984375
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 10.10 -- Dumped by pg_dump version 10.10 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SE...
true
fb2bf0085ce5bf5df259aa1535515ebf5161b3d0
SQL
SMAMonisha/SessionHandlingWithNojeJS
/query.sql
UTF-8
1,671
4
4
[]
no_license
DROP DATABASE CartDB; CREATE DATABASE CartDB; USE CartDB; DROP TABLE CART ; CREATE TABLE CART ( session_id char(36) NULL, ItemName varchar(36) NULL, NumberOFItem INT ); DROP TRIGGER before_insert_cart; CREATE TRIGGER before_insert_cart BEFORE INSERT ON CART FOR EACH ROW BEGIN DECLARE ISession INT DEFAU...
true
2405cf59d609b71f9f7e048d37619d6a470a6459
SQL
NLeSC/3D_geospatial_risk_management
/apps/x3d_viewer/queries/bgt_bridgepilons.sql
UTF-8
2,355
3.578125
4
[]
no_license
declare _west decimal(7,1); declare _south decimal(7,1); declare _east decimal(7,1); declare _north decimal(7,1); declare _segmentlength decimal(7,1); set _west = 93816.0; set _east = 93916.0; set _south = 463891.0; set _north = 463991.0; set _segmentlength = 10; with bounds_ AS ( SELECT ST_MakeEnvelope(_west, _sout...
true
d009f6764f78d54d66c7138db95ef8f276ce5ea1
SQL
RafaMaesta/TicketTracker
/sql/ticket_control.sql
UTF-8
15,630
3.234375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
CREATE DATABASE IF NOT EXISTS `ticket_control` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `ticket_control`; -- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: ticket_control -- ------------------------------------------------------ -- Server version 5.7.16-log /*!40101 SET @OL...
true
af1268a4ea2db01fede1772d11ec206e2438604e
SQL
mdshahroufbd/PHP-Security-Check
/comments.sql
UTF-8
666
2.671875
3
[]
no_license
DROP TABLE IF EXISTS COMMENTS; CREATE TABLE COMMENTS( ID INT NOT NULL AUTO_INCREMENT, NAME VARCHAR (32) NOT NULL, EMAIL VARCHAR (32) NOT NULL, COMMENT VARCHAR (32) NOT NULL, PRIMARY KEY (ID) ); INSERT INTO COMMENTS VALUES (NULL, "Kent Austin", "ken@ticats.ca", "Tiger-Cats rule!"); DROP TABLE IF EXISTS IM...
true
7b65115ae6e4cdb0be6e574198925bce2eace331
SQL
arsene-03/ORACLE
/02.문제/08강_데이터조작_문제.sql
UHC
2,013
3.9375
4
[]
no_license
--1. Employee̺DZ ϿEMP_INSERT ̺弼. CREATE TABLE EMP_INSERT AS SELECT * FROM employee WHERE 1=0; --2. EMP_INSERT̺߰ϵSYSDATE ̿ؼԻ÷ Էϼ INSERT INTO EMP_INSERT VALUES(8001,'CHOIHAKJUN','STUDENT','',sysdate,300,'',''); --3. EMP_INSERT ̺߰ϵTO_DATEԼ ؼԻ Էϼ INSERT INTO EMP_INSERT VALUES(8002,'YOUNSUN','STUDENT','',TO_DATE(SYSDATE...
true
65207b75826765cd5aa51b5a92e76c4bad4ab63f
SQL
Sa4kovsky/Valentin
/BD.sql
UTF-8
4,378
3.6875
4
[]
no_license
--DROP TABLE Patient, Inoculations, ChronicDiseases,Ultrasonography,LaboratoryResearch,Diseases,DiseasesAndSymptoms,DiseasesAndLaboratoryResearch,DiseasesAndUltrasonography; CREATE TABLE Patient( idPatient SERIAL PRIMARY KEY, --идентифицирующий ключ photo text, --путь к фото пациента namePatient text, --имя пи...
true
882589381852056950d50e5c36831493d36f0e04
SQL
raulest50/ProyectosEjemploJava
/(viejo)VirtualAdministrator/sql_script_advanced_concepts.sql
UTF-8
1,318
3.671875
4
[]
no_license
select now(); select concat(unix_timestamp(),floor((rand()*500))); create database granero; show databases; show tables from granero; INSERT INTO `granero`.`ventas` (`id`,`idconjunto`,`codigo`,`N`,`time`,`cliente`,`tipoventa`) select 0, ifnull(max((`ventas`.`idconjunto`)+1), 1), 77012, 1 ,now(), 123, 2 from venta...
true
6865ce8bfa365a5c12ad27183133d6cec994acdb
SQL
grimm04/grimm04-siakad-uas-syahrilramdani
/database/dump/ex_akademik.sql
UTF-8
28,919
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 30 Jun 2021 pada 13.18 -- Versi server: 10.4.13-MariaDB -- Versi PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
0039c8ca4ab52aa9a0c744eb802e18386877845a
SQL
platinumcatgx/JSTY
/jstx.sql
UTF-8
3,407
3.390625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : MYSQL Source Server Type : MySQL Source Server Version : 80017 Source Host : localhost:3306 Source Schema : jstx Target Server Type : MySQL Target Server Version : 80017 File Encoding : 65001 Date: 12/12/2019 15:02:46 ...
true
e76e1336184c4e3aaa544cfaa409d41394ed9452
SQL
chuzasjota/ajax-crud
/bd/human.sql
UTF-8
2,059
3
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.4.15.9 -- https://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 08-12-2017 a las 21:44:04 -- Versión del servidor: 5.6.37 -- Versión de PHP: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
bdea472f2d415660c6d641d2992ab6d0b1f22ba6
SQL
sergionet17/codigoJava
/Movilidad/.svn/pristine/bd/bdea472f2d415660c6d641d2992ab6d0b1f22ba6.svn-base
UTF-8
1,526
3.109375
3
[]
no_license
--liquibase formatted sql --changeset converter:baseline dbms:mysql CREATE TABLE `documento` ( `id` varchar(36) NOT NULL, `asunto` varchar(255) DEFAULT NULL, `fecha_creacion` datetime NOT NULL, `fecha_radicacion` datetime DEFAULT NULL, `hash` varchar(255) NOT NULL, `mime_type` varchar(255) NOT NULL, `num...
true
501832645393cee97c480c8bfeddf8d99857543f
SQL
tim3426/EJ
/Step 41 Populate EJ_PROSPECT_PIPELINE_STATUS table - step 4 last move.sql
UTF-8
1,135
4.25
4
[]
no_license
SET QUOTED_IDENTIFIER ON SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED UPDATE EJ_PROSPECT_PIPELINE_STATUS set LASTMOVE = SUB.LASTMOVE from ( select distinct PIPELINE.PROSPECTID, LAST_MOVE.LASTMOVE [LASTMOVE] from EJ_PROSPECT_PIPELINE_STATUS PIPELINE left outer join ( select SUB.CONSTITUENTID, SUB.SUBCATEGOR...
true
09012a26866bbfab61eb636c899007abb3d2bf7a
SQL
Nphox/university-library
/libraryDB.sql
UTF-8
1,187
3.375
3
[]
no_license
CREATE DATABASE `libraryDB`; USE libraryDB; DROP TABLE `Books`; CREATE TABLE `Books` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `bookName` CHAR(100) NOT NULL, `publicationYear` CHAR(4) NOT NULL, `publisher` CHAR(100) NOT NULL, PRIMARY KEY(`id`) ); DROP TABLE `Store`; CREATE TABLE `Store` ( `id_book` INT(11) NO...
true
73d4427e1c7ad98b54255d8b112ed48adf7119de
SQL
hristopetkovv/SoftUni
/C#DB/Databases Basics - MS SQL Server/ExamPreparation2/09.NotSoInTheStudying.sql
UTF-8
202
3.8125
4
[]
no_license
SELECT CONCAT(s.FirstName, ' ', s.MiddleName + ' ', s.LastName) AS [Full Name] FROM Students s LEFT OUTER JOIN StudentsSubjects ss ON ss.StudentId = s.Id WHERE ss.StudentId IS NULL ORDER BY [Full Name]
true
f349f90e7d927f93228172f490487d60e99c7b59
SQL
pablobergna/TPDATOS
/TP/Stored_Procedures/SP_EP_LISTAR_PUBLICACIONES.sql
UTF-8
533
3.59375
4
[]
no_license
CREATE PROCEDURE LOS_GESTORES.EP_LISTAR_PUBLICACIONES(@id_usuario int) AS BEGIN SELECT P.id_publicacion, SUBSTRING(P.descripcion,0,30) descripcion, P.descripcion_tipo, ISNULL(P.fecha,'') fecha, ISNULL(P.fecha_venc,'') fecha_venc, V.descripcion visibilidad, E.descripcion estado FROM LOS_GESTORES.Publicacion P ,LOS_GE...
true
989d9d9b8d03ea79e6b486e4f59dc28a69f9da97
SQL
dangdungql/HeThongOnThiTHPTQuocGia
/database/webhoctap.sql
UTF-8
103,468
2.984375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th1 11, 2020 lúc 02:20 PM -- Phiên bản máy phục vụ: 10.1.37-MariaDB -- Phiên bản PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
true
d189c8b8e281f56b5adbf264738710cb8f75ae0d
SQL
AminFitri/labex5_dfp4063
/kedai_kasut.sql
UTF-8
3,166
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 18, 2021 at 04:42 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 7.3.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
79085ead9541b689d9f38856cca7125a38977f78
SQL
Reelshrimpboat/WeekendChallenge-React-Gallery
/database.sql
UTF-8
738
2.71875
3
[]
no_license
CREATE TABLE gallery ( id SERIAL PRIMARY KEY, path varchar(600) NOT NULL, description varchar(1000) NOT NULL, likes INTEGER NOT NULL ); INSERT INTO "gallery" ("path", "description", "likes") VALUES('images/goat_small.jpg', 'Photo of a goat taken at Glacier National Park.', 0 ); INSERT INTO "gallery" ("path", ...
true
6a9379b16dcee92843bacbad09b09422a63e6e5b
SQL
rashmi8105/Synapse
/app/SQL/FactorCalculation/StoredProcedures/Factor_Calc.sql
UTF-8
6,102
3.78125
4
[ "MIT", "BSD-3-Clause" ]
permissive
DELIMITER ** DROP PROCEDURE IF EXISTS `Factor_Calc`** CREATE DEFINER=`synapsemaster`@`%` PROCEDURE `Factor_Calc`(deadline TIMESTAMP, chunksize SMALLINT UNSIGNED) BEGIN DECLARE the_timestamp TIMESTAMP; SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; -- Finding the la...
true
56cdf2c7e13b4121bc74690e84d871073da42520
SQL
djones01/CHub
/CFG_ORGANIZATION_INFO_CONSTRAINT_1.sql
UTF-8
1,309
2.546875
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table CFG_ORGANIZATION_INFO -------------------------------------------------------- ALTER TABLE "HCM_ADMIN"."CFG_ORGANIZATION_INFO" MODIFY ("PER_ORG_INFO_EFF" NOT NULL ENABLE); ALTER TABLE "HCM_ADMIN"."CFG_ORGANIZATION_INFO" MODIFY ("SEQ...
true
27f15fe4d127939a65e7d27e48d9ee0cdccd2391
SQL
tcarrio/cse-notsosocialnetwork
/srv/setup_db2.sql
UTF-8
1,284
3.5625
4
[ "MIT" ]
permissive
drop table if exists messages; drop table if exists posts; drop table if exists profiles; drop table if exists accounts; create table accounts ( email varchar(255) not null, first_name varchar(255) not null, last_name varchar(255) not null, password char(64) not null, dob timestamp not null, ge...
true
384b04d37274a1f5ed17b9e2264f1a18b238d7f4
SQL
jariolaine/MailToJson
/Oracle/ORDS/ords_rest_module_mail.sql
UTF-8
1,866
2.625
3
[ "MIT" ]
permissive
declare l_roles owa.vc_arr; l_modules owa.vc_arr; l_patterns owa.vc_arr; begin ords.define_module( p_module_name => 'ords.rest.module.mail', p_base_path => '/mail/', p_items_per_page => 25, p_status => 'PUBLISHED', p_comments => null); ords.define_...
true
a24f329ff7c7d32cb3bbf55f5da9e436c60c9b24
SQL
AkitaSoftwareNL/qoding-challange-backend
/src/test/resources/DLL.sql
UTF-8
39,269
2.984375
3
[]
no_license
/*test for sprint review*/ /*delete from given_answer where PARTICIPANTID = 1*/ DELETE FROM given_answer; DELETE FROM given_answer_state; DELETE FROM participant_of_campaign; DELETE FROM amount_of_questions; DELETE FROM campaign; DELETE FROM employee; DELETE FROM campaign_type; DELETE FROM multiple_choice_question; DE...
true
a4b334662897fa63ea6a26d2fc0fb3ee7c44e820
SQL
manuelseromenho/inforshop
/tempo/inforshop.sql
UTF-8
8,761
3.609375
4
[]
no_license
CREATE DATABASE inforshop; CREATE TABLE admin( id INT(4) PRIMARY KEY AUTO_INCREMENT, user VARCHAR(10), pass VARCHAR(10) ); INSERT INTO admin VALUES ('1', 'admin', 'admin'); CREATE TABLE clientes( id_Cliente INT(4) PRIMARY KEY AUTO_INCREMENT, nomeCliente VARCHAR(50), moradaCliente VARCHAR(100), telefoneCl...
true
ca4f4dbf5c4f4a209374085fffeaf3a13f87f61c
SQL
aruhirin/aruhi
/membermst.sql
UTF-8
1,817
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 2017 年 2 朁E16 日 02:17 -- サーバのバージョン: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
true
4545cf32f700e31c1b9c2ab9931db494eeed8300
SQL
bnavalniy/geekbrains_db
/hm_2/Task_2.sql
UTF-8
1,354
3.671875
4
[]
no_license
/* 2. Добавить необходимую таблицу/таблицы для того, чтобы можно было использовать лайки для медиафайлов, постов и пользователей. */ -- Таблица медиафайлов CREATE TABLE media ( id INT UNSIGNED NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT "Идентификатор строки", user_id INT UNSIGNED NOT NULL COMMENT "Ссылка на поль...
true
14be35757897964302b6d7f8b95d2c1e7e0f56a8
SQL
Chand-11/Insight
/postgres-insight/src/db/create.sql
UTF-8
498
3.453125
3
[]
no_license
DROP TABLE IF EXISTS users CASCADE; DROP TABLE IF EXISTS purchases CASCADE; CREATE TABLE users ( userID SERIAL PRIMARY KEY NOT NULL, name VARCHAR(30) NOT NULL, balance BIGINT ); INSERT INTO users(name, balance) VALUES ('Elon', 199); CREATE TABLE purchases ( purchaseID SERIAL PRIMARY KEY NOT NULL, user_id I...
true
9cb8556f8757e48feba24425dfe59a750ab296ca
SQL
shlvam/Restaurant-Automation
/restaurant.sql
UTF-8
5,429
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 22, 2021 at 03:07 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
250e8fa1b9c57ca87a44ef278bf4f7568abf3fad
SQL
JonatasCV/bate_papo
/script_db.SQL
UTF-8
2,038
3.34375
3
[]
no_license
CREATE TABLE usuario ( codUsuario SERIAL NOT NULL, nome VARCHAR(100) NOT NULL, iPaddress VARCHAR(15), CONSTRAINT pk_usuario PRIMARY KEY (codUsuario) ); CREATE TABLE topico ( id SERIAL NOT NULL, nome VARCHAR(30) NOT NULL, CONSTRAINT pk_topico PRIMARY KEY (id) ); CREATE...
true
cda189e0b4ecd69292fe632311734abce383c483
SQL
t-ing56/prog
/06回目/SQL/db.sql
UTF-8
3,444
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- ホスト: localhost:8889 -- 生成日時: 2021 年 6 月 26 日 14:28 -- サーバのバージョン: 5.7.32 -- PHP のバージョン: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- データベース: `a_db` -- -- -----------------------------------------------------...
true
fc2da7635fa07074611102262d3c066f9cdcbb85
SQL
tang584168126/tyx
/c#语言和数据库技术基础/数据库/ST182/Select.sql
GB18030
7,617
4.1875
4
[]
no_license
use S1T182 --1.ͳƸĿܷ select a.courseId as Ŀ,a.courseName as Ŀ, SUM(b.witScore) as ܷ, SUM(b.labScore) as ܷ from Course as a inner join Score as b on b.courseId = a.courseId group by a.courseId,a.courseName --2.ͳƸĿƽ select a.courseId as Ŀ,a.courseName as Ŀ, AVG(b.witScore) as ƽ, AVG(b.labScore) as ƽ from Course as a inn...
true
9b6654f606841030978ee8865c5662aa32ebd78c
SQL
mobilejazz/harmony-typescript
/examples/backend/config/mariadb/init/000-init.sql
UTF-8
1,800
3.65625
4
[ "Apache-2.0" ]
permissive
create database if not exists harmonyexample; use harmonyexample; create table if not exists user_roles ( id int primary key, created_at timestamp(6) default current_timestamp(6) not null, updated_at timestamp(6) on update current_timestamp(6) not null, name varchar(50) ...
true
4f78ab08824f47ae50aae57e6d824c4fe1ce6ab8
SQL
thibautvs/assent-server
/sql_scripts/upgrade/07_experiences.sql
UTF-8
529
2.734375
3
[]
no_license
-- experience_type INSERT INTO experience_type (name) VALUES ('Student job'); INSERT INTO experience_type (name) VALUES ('Internship'); -- start_date and end_date stored as month/year ALTER TABLE experience DROP COLUMN IF EXISTS start_date; ALTER TABLE experience DROP COLUMN IF EXISTS end_date; ALTER TABLE experience ...
true
6a62560a409da0d806b1057e8d7123fd5983377b
SQL
cavenlo/siomassy2021
/src/main/java/fr/siomassy2021/dao/create-siomassy2021.sql
UTF-8
1,258
3.265625
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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema siomassy2...
true
ebc04c23d77c85797b00237f2c29648057f6e241
SQL
dariusz-popis/mssql
/landing-zone/D2-Ex02.sql
UTF-8
413
3.6875
4
[]
no_license
SELECT soh.CustomerID ,soh.OrderDate ,soh.SubTotal ,cust.AccountNumber FROM Sales.SalesOrderHeader soh RIGHT JOIN Sales.Customer cust ON soh.CustomerID = cust.CustomerID WHERE soh.SalesOrderID IS NULL AND soh.CustomerID IS NULL AND soh.OrderDate IS NULL --ORDER BY cust.Cu...
true
cc4ea13431395d845fa3ce8f1600135168fcedd1
SQL
blootix/new_migration
/approche migration total/ancien_approche_mig/migration/district/export_district/district25.sql
UTF-8
81,287
3
3
[]
no_license
------------------------------------------------------- -- Export file for user DISTRICT25@MIG12C -- -- Created by Administrateur on 28/03/2018, 09:58:42 -- ------------------------------------------------------- set define off spool district25.log prompt prompt Creating table ABONNEES prompt =============...
true
ad7dcd1fb18fa1e4d72d4b028820e9c0d1558f14
SQL
LiUGraphQL/LinGBM
/tools/example_dataset/dataset_mySQL/07graduateStudent.sql
UTF-8
1,005
3.546875
4
[ "MIT" ]
permissive
CREATE DATABASE IF NOT EXISTS `LinBenchmark` DEFAULT CHARACTER SET utf8; USE `LinBenchmark`; DROP TABLE IF EXISTS `graduateStudent`; CREATE TABLE `graduateStudent` ( `nr` int(11), `telephone` varchar(100) character set utf8 collate utf8_bin default NULL, `emailAddress` varchar(2000) character set utf8 collate u...
true
f5a792f9d065cf75e1d861fb064f33253279b073
SQL
michaelrmartinezm/sisppafut
/Diseño/Base de Datos/store procedures/spVerificarExistePronostico.sql
UTF-8
169
2.765625
3
[]
no_license
CREATE PROCEDURE spVerificarExistePronostico ( @codPartido int ) AS BEGIN SELECT COUNT(*) AS 'CANTIDAD' FROM Pronostico P WHERE P.CodPartido = @codPartido END
true
dcd79ffd79287f9f1dfa5b939f3a583a6fe7e602
SQL
kingsmiler/trainings
/jooq/jooq-manual/jooq-maven-plugin-sample/src/main/resources/db-mysql.sql
UTF-8
832
3.9375
4
[ "Apache-2.0" ]
permissive
DROP DATABASE jooq; CREATE DATABASE jooq COLLATE = 'utf8_general_ci' CHARACTER SET = 'utf8'; USE `jooq`; CREATE TABLE book ( id BIGINT PRIMARY KEY, title VARCHAR(255) ) ENGINE = InnoDB DEFAULT CHARSET = utf8; CREATE TABLE author( id BIGINT PRIMARY KEY, name VARCHAR(255) ) ENGINE = InnoDB DEFAU...
true
6c795cc45a8ae427b34667803815daf8a27c6a68
SQL
greatmaxix/tobacco_shop
/server/database/initial.sql
UTF-8
5,016
3.703125
4
[ "MIT" ]
permissive
-- public.images definition -- Drop table -- DROP TABLE public.images; CREATE TABLE public.images ( id SERIAL NOT NULL, imageable_type varchar(255) NOT NULL, imageable_id int4 NOT NULL, alt_text varchar(255) NOT NULL, image_blob bytea NOT NULL, CONSTRAINT images_pkey PRIMARY KEY (id) ); -- public.product_bra...
true
6aac69e87b52681f7bdaa5a374338df763c89b41
SQL
skyClutch/vape
/vape/default-schema/2017-07-11T20:34:00.627Z-pages.sql
UTF-8
1,327
3.328125
3
[ "MIT" ]
permissive
-- create page table create table %PSQL_SCHEMA%.page ( id serial primary key, route text not null check (char_length(route) < 2000), name text not null check (char_length(route) < 280), template text not null check (char_length(route) < 280), data jsonb...
true
7930f1ddc35867d7a6b5f4d4e6d2f1035d1221fa
SQL
antonioccdomingues/MIECT-Projects
/[EGS] Micro-Services Web App in kubernetes Registry/authentication/src/init.sql
UTF-8
211
2.71875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS users; USE users; CREATE TABLE users ( id int AUTO_INCREMENT PRIMARY KEY, email varchar(50) UNIQUE NOT NULL, username varchar(70) NOT NULL, password varchar(500) NOT NULL );
true
b5be1b0bc0d33f2477313fac998fa3c235dc1c43
SQL
tgy616/framework
/mybot-master/src/main/resources/SQL/master.sql
UTF-8
1,747
3.359375
3
[]
no_license
-- ---------------------------- -- 用户表 -- ---------------------------- CREATE TABLE `t_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `username` varchar(50) CHARACTER SET utf8mb4 NOT NULL DEFAULT '', `password` varchar(55) CHARACTER SET utf8mb4 NOT NULL DEFAULT '' CO...
true
056ab15947b5d59e853903b0763ef6b6526a7161
SQL
akocissa/canitoan-daycare
/canitoan_daycare/database/canitoan_daycare_sample.sql
UTF-8
7,083
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 23, 2019 at 03:03 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
f162ffa6fc93950c7c2100973ae171276c870757
SQL
BenjaminBruenau/DBSYS
/SQL-Files/create.sql
UTF-8
7,472
3.65625
4
[]
no_license
CREATE TABLE land ( land_name varchar2(56) NOT NULL, CONSTRAINT land_pk PRIMARY KEY(land_name) ); CREATE TABLE ausstattung ( au_name varchar2(30) NOT NULL, CONSTRAINT ausstattung_pk PRIMARY KEY(au_name) ); CREATE TABLE touristenattraktion ( attraktions_name varchar2(30) NOT NULL, beschr...
true
cad723ec97cf194cb690b02d983783e9976cf8e2
SQL
co1248/sql
/0528-3.sql
UHC
2,887
4.4375
4
[]
no_license
-- select dname -- from dept where deptno = ( select deptno -- from emp where ename = 'SMITH' ); select ename,sal from emp where sal = max(sal); --׷Լ where . --׷Լ Ʈ ׷Ҷ غ ִ. select ename,sal from emp where sal = ( select max(sal) ...
true
01efae06cb772bcbe29f8bd56c6cbea843b928f2
SQL
anhkhoa1408/multi-disciplinary-project
/database/multidisciplinaryproject.sql
UTF-8
4,523
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: May 27, 2021 at 12:22 PM -- Server version: 8.0.24 -- PHP Version: 8.0.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
fe0ff9258618119099c9333a0d2138724f3e8f70
SQL
NCAR/CESM_expdb2
/sql/t2_cmip6_DECK_types.sql
UTF-8
544
2.859375
3
[]
no_license
use csegdb; drop table if exists t2_cmip6_DECK_types; create table t2_cmip6_DECK_types( `id` INTEGER AUTO_INCREMENT NOT NULL, `name` VARCHAR(20), `description` VARCHAR(200), primary key (id)); insert into t2_cmip6_DECK_types (name, description) values ('piControl','Pre-industrial contr...
true
d3d8e8c55beb5f183c25bc114d02c8f30f1403f9
SQL
Tait4198/dameng-jooq
/table.sql
UTF-8
202
2.859375
3
[]
no_license
-- DM 建表 CREATE TABLE "DB_TEST"."TABLE_TEST" ( "ID" INT IDENTITY(3, 1) NOT NULL, "NAME" VARCHAR(255), "CONTENT" TEXT, NOT CLUSTER PRIMARY KEY("ID") ) STORAGE(ON "MAIN", CLUSTERBTR) ;
true
5df82eb748f4b5cd9864cef001f122b2acc7bafb
SQL
harmonycloud-cims2/cims2
/framework/src/test/resources/sql/data.sql
UTF-8
343
2.65625
3
[]
no_license
DROP TABLE IF EXISTS `PATIENT`; create table `PATIENT` ( ID NUMBER(20) default NULL not null primary key, IS_DELETED NUMBER(1) default 0 not null, GMT_CREATE TIMESTAMP(6), CREATOR VARCHAR2(64), GMT_MODIFIED TIMESTAMP(6), MODIFIER VARCHAR2(64), USERNAME VARCHAR2(100), ...
true
bb26773c17a5ba0f99a463becf880a7c9176dca4
SQL
joyde3382/Buginator
/New folder/buginatordb_ticket.sql
UTF-8
2,585
3.0625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.18, for Win64 (x86_64) -- -- Host: localhost Database: buginatordb -- ------------------------------------------------------ -- Server version 8.0.18 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
true
80fee86032fff60316746b8fd40e1f9b2ebf12a7
SQL
Jinseop95/Programmers_Algorithm
/Level4/Level4_JOIN_보호소에서중성화한동물.sql
UTF-8
207
3.09375
3
[]
no_license
-- 코드를 입력하세요 ORACLE SELECT A.ANIMAL_ID, A.ANIMAL_TYPE, A.NAME FROM ANIMAL_INS A , ANIMAL_OUTS B WHERE A.ANIMAL_ID = B.ANIMAL_ID AND A.SEX_UPON_INTAKE != B.SEX_UPON_OUTCOME ORDER BY ANIMAL_ID;
true
052f1a51581447071db1c88717a01bbc29102289
SQL
onap/oom
/kubernetes/holmes/components/holmes-engine-mgmt/resources/config/onap-holmes_engine-createobj.sql
UTF-8
1,577
3.171875
3
[ "Apache-2.0" ]
permissive
-- -- Copyright 2017 ZTE Corporation. -- -- 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 -- -- Unless required by applicable law or agree...
true
0a23e9a464f2debff217b93ef87561c67ba8f843
SQL
rcancino/sw2
/sw2-core/src/main/resources/sql/parches/comprobantes_fiscales_digitales_DDL.sql
UTF-8
1,595
3.09375
3
[]
no_license
create table SX_CFD ( CFD_ID varchar(255) not null , TIPO varchar(15) not null , SERIE varchar(15) not null , FOLIO varchar(20) not null , ANO_APROBACION integer not null , XML_PATH varchar(255) not null unique , XML_SCHEMA_VERSION varchar(5) not null , NO_APROBACION integer not null , NO_CERTIFICADO varchar(2...
true
f6276cbaccf1b0731824177a116bd8552f726084
SQL
Malek23923/fakoli
/cms/components/email/email_schema.sql
UTF-8
4,512
3.328125
3
[]
no_license
-- Fakoli Email Component Schema -- -- Each version update must begin with the following: -- START Version xx -- and end with -- END Version xx -- START Version 1.0 CREATE TABLE `contact_topic` ( `contact_topic_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `topic` varchar(100) NOT NULL, `recipien...
true
4d8bca0d0944de4b17dec4dd583c9ea6a60efbb5
SQL
AlexWuDDD/SelfSQL
/MySQL/DQL语言/sort_query.sql
UTF-8
1,356
4.6875
5
[]
no_license
#进阶3: 排序查询 /* 语法: SELECT 查询列表 FROM 表 [WHERE 筛选条件] ORDER BY 排序列表 []ASC/DECS] 特点: 1. ASC 升序 DESC 将序 2. 如果不写,默认升序 3. ORDER BY 支持单子/多个字段、表达式、函数、别名 4. ORDER BY 语句一般放在查询语句的最后面, limit除外 */ #案例1: 查询员工信息,要求工资从高到底排序 SELECT * FROM employees ORDER BY salary DESC; SELECT * FROM employees ORDER BY salary ASC; #案例2:查询部门编号>=90的员工信息...
true
829de1b159217d10ef114b04447a40adbcbdd97e
SQL
muhammeta7/Maven.Spring-EmployeeDirectory
/src/main/resources/schema-h2.sql
UTF-8
826
2.828125
3
[]
no_license
-- DROP TABLE EMPLOYEE; -- -- CREATE TABLE EMPLOYEE ( -- ID NUMBER(10,0) NOT NULL AUTO_INCREMENT, -- FIRST_NAME VARCHAR2(255) NOT NULL DEFAULT '', -- LAST_NAME VARCHAR2(255) NOT NULL DEFAULT '', -- TITLE VARCHAR2(255) NOT NULL DEFAULT '', -- PHONE_NUMBER VARCHAR2(255) NOT NULL DEFAULT '', -- EMA...
true
e2b64a34a38e9d9e6314cce1fd18249897c98035
SQL
xxcocoymlxx/Study-Notes
/CSC343/A3/fruits.ddl
UTF-8
3,804
4.6875
5
[]
no_license
--DROP TABLE IF EXISTS store; --DROP TABLE IF EXISTS membership; --DROP TABLE IF EXISTS beverage; --DROP TABLE IF EXISTS orders; --DROP TABLE IF EXISTS beverage_inventory; DROP SCHEMA IF EXISTS fruits CASCADE; CREATE SCHEMA fruits; SET SEARCH_PATH to fruits; --a Fresh Juice business with multiple stores around th...
true
39d4c68171a7f0d9f332a336cec902285aa506e7
SQL
svera/developer-test
/model.sql
UTF-8
3,022
4.09375
4
[]
no_license
-- I choose to use a traditional relational database approach. -- This way, I can take advantage on relationships management done by the DB engine, atomicity support, etc. -- -- ----------------------------------------------------- -- Table `hotels` -- ----------------------------------------------------- CREATE TAB...
true
beb7690df9379e6fecac35e2b52e7a8185886b6f
SQL
anandeka/my-project
/DBScripts/EODScripts/90_DDL_EODDB_ALTER_SCRIPT.sql
UTF-8
2,918
2.53125
3
[]
no_license
alter table PRP_PHYSICAL_RISK_POSITION add qp_period_type varchar2(50); alter table PRP_PHYSICAL_RISK_POSITION add contract_price_cur_id varchar2(15); alter table PRP_PHYSICAL_RISK_POSITION add contract_premium_cur_id varchar2(15); alter table PRP_PHYSICAL_RISK_POSITION add m2m_price_cur_id varchar2(15); al...
true
8b7181216210ccb655b183c74081a1669fc3df6b
SQL
albertojcvs/Loteria-server
/prisma/migrations/20210825000047_create_schema/migration.sql
UTF-8
1,251
3.984375
4
[]
no_license
-- CreateTable CREATE TABLE "User" ( "id" SERIAL NOT NULL, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "email" TEXT NOT NULL, "password" TEXT NOT NULL, "name" TEXT NOT NULL, PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "LotteryDraw" ( "id" SERIAL NOT NULL, "create...
true
534de90c120a197f58988ad6702f6674b64c48ef
SQL
brianmorningsmith/Portfolio
/Covid_Case_Study_Master.sql
UTF-8
12,840
3.15625
3
[]
no_license
/* Data validation https://www.youtube.com/watch?v=qfyynHBFOsM data from https://ourworldindata.org/covid-deaths4 https://github.com/owid/covid-19-data/tree/master/public/data cite: Hannah Ritchie, Esteban Ortiz-Ospina, Diana Beltekian, Edouard Mathieu, Joe Hasell, Bobbie Macdonald, Charlie Giatti...
true
3e15b0f191ca08a3a6d7cd11be9f258f151f380e
SQL
TroyFTW/dev.catalyst-data.dev
/completed-examples/sample-database/queries.sql
UTF-8
292
3.40625
3
[]
no_license
-- Example SQL Queries for Northwinds -- joining Orders, Employees, and Customers SELECT o.id, o.order_date, c.first_name, c.last_name, o.ship_city,e.email_address FROM orders o INNER JOIN customers c on o.customer_id = c.id INNER JOIN employees e on o.customer_id = e.id ORDER BY o.id ASC
true
9be0518916bf2de4daa71b2e42b7c70fcc3c02b6
SQL
serch3128/SQL-
/employee_sql/table_creation.sql
UTF-8
692
3.515625
4
[]
no_license
-- create each table create table deparment ( dept_no varchar(10) primary key, dept_name varchar(30) not null ); create table data_employees ( emp_no int primary key, birth_date date not null, first_name varchar(30) not null, last_name varchar(30) not null, gender varchar(1) null, hi...
true
aadcf04ede5ff14c6f47ae5f1645d491b39a290d
SQL
Qiuyingx/linjujj20150902
/doc/db.sql
UTF-8
20,518
3.375
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `t_activity_info` -- ---------------------------- DROP TABLE IF EXISTS `t_activity_info`; CREATE TABLE `t_activity_info` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `version` int(11) NOT NULL, `courtyard_id` bigint(20) NOT N...
true
155107d1d7aeecc3d350e6eb58c9e7d59bdeb0f1
SQL
malyshev-sergey/JD2017-09-20
/src/by/it/ali/jd03_01/sql/init_ali_v2.sql
UTF-8
4,507
3.578125
4
[]
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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema ali -- --...
true
eab0eccb8bb10d805ad4ad5216787b0ed7edaa45
SQL
rtsubaki00/mysite
/127_0_0_1 (1).sql
UTF-8
14,752
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- ホスト: 127.0.0.1 -- 生成日時: 2020-07-20 03:23:28 -- サーバのバージョン: 10.4.11-MariaDB -- PHP のバージョン: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
dee2cf46a418f212b734b9e8a407d3fb61f1e9ef
SQL
ashishkush/qiime_web_app
/database/packages/LOAD_OTU_FAILURES_ALL_PACKAGE.sql
UTF-8
724
2.71875
3
[]
no_license
create or replace PACKAGE "LOAD_OTU_FAILURES_ALL_PACKAGE" as /* This package loads the otu failures file from the otu_picking step into the OTU_PICKING_FAILURES table. */ -- Define the array tables input to the table insert. TYPE otu_seq_run_id_failures_tab IS TABLE OF OTU_PICKING_FAILURES.OTU_PICKING_RUN_...
true
619395bc6f08868254917f758fcc28d864cdd8d1
SQL
vijaydairyf/TimelyFish
/SolomonApp/dbo/Stored Procedures/dbo.IRRollup_Process.sql
UTF-8
3,170
3.4375
3
[]
no_license
 CREATE Procedure IRRollup_Process @CurrentPeriod VarChar(6) As -- VM, 9/7/01. This procedure will insert the data into the work table DELETE FROM IRWrkItemSite INSERT INTO IRWrkItemSite ( Crtd_DateTime, Crtd_Prog, Crtd_User, DemandQty, FromSiteID, InvtID, LUPD_DateTime, LUPD_Prog, LUPD_...
true
1ca873269bbccd8c80fc40158af63e53060b1920
SQL
bdyxshy/crmManage
/crmManage/crm.sql
UTF-8
2,384
3.34375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50540 Source Host : localhost:3306 Source Database : crm Target Server Type : MYSQL Target Server Version : 50540 File Encoding : 65001 Date: 2018-03-07 21:31:44 */ SET FOREIGN_KEY_CHECKS=0; -- ...
true
f2f3476245d4c8176cbb70f723a146c417cdf0f4
SQL
DepartmentCustomization/SBC
/CRM_TAXI/Conf/DataSources/System.Data.SqlClient/Default/All_Default/PartsArrival/SelectAllPartsArrival/SelectAllPartsArrival.sql
UTF-8
477
3.5
4
[]
no_license
SELECT pa.Id, invoice_number, pa.create_date, p.part_name, p.articul, p.manufacturer, pr.[provider], pa.part_price, pa.part_quantity, pa.part_price * pa.part_quantity AS sum_price FROM PartArrival pa JOIN Parts p ON p.Id = pa.part_id JOIN Providers pr ON pr.Id = pa.pr...
true
278c248b29fbf94249f2f84695a2a266c252449a
SQL
isabellaalv/SQLServeDataBase
/DQLs.sql
UTF-8
232
2.796875
3
[]
no_license
/* mostrar dados */ SELECT * FROM materia; SELECT *FROM aluno; /* ordenada por nome de alu, forma decrescente */ SELECT *FROM aluno ORDER BY Nome DESC; /* nome do aluno de forma ascendete */ SELECT *FROM aluno ORDER BY Nome ASC;
true
5d909266e2e9bfd845dd65f3adf04b5ee0ef8bfb
SQL
jgarzonext/paquetes
/PAC_MD_LIQUIDACOR.sql
ISO-8859-1
11,535
2.515625
3
[]
no_license
-------------------------------------------------------- -- DDL for Package PAC_MD_LIQUIDACOR -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE PACKAGE "AXIS"."PAC_MD_LIQUIDACOR" AS /****************************************************************************** NOMBRE: ...
true
05935b879a8eef5f3e32dfae3f0368d4f81128da
SQL
0xtceb/onetouch
/database/db_3177.sql
UTF-8
481
2.921875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `favorite_medical` ( `diagnosis_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `diagnosis` varchar(500) NOT NULL, `modified_timestamp` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP, `modified_user_id` int(11) NOT NULL DEFAULT '0', `user_id` int(11) NOT NULL DEFAULT '0', PRIMARY KEY ...
true
9518a0b58c519a463e942345e3547d396ab06b37
SQL
swapnilbais-iOrbit/Docker-compose-yml
/scripts/init copy.sql
UTF-8
40,169
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 06, 2021 at 12:06 PM -- Server version: 5.7.28-0ubuntu0.16.04.2 -- PHP Version: 7.3.12-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!...
true
1f864e2639e3b073ae1e0c4b8a6844f292a46b24
SQL
Jujhar/-International-Sales-Tax-VAT-
/sales_taxes.sql
UTF-8
8,121
3.015625
3
[]
no_license
-- ੴ ੨੦੧੭.੬.੪ ਸੁਭਮਸਤੁ -- phpMyAdmin SQL Dump -- version 4.4.15.8 -- https://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 05, 2017 at 12:49 AM -- Server version: 5.6.31 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
a0504ea86dd53a467142d723a7fe39a4e73a7fc1
SQL
Suganyapselvam1/SQL
/SQL Basis/003_SQL.sql
UTF-8
2,995
4.8125
5
[]
no_license
The SQL UNION Operator The UNION operator is used to combine the result-set of two or more SELECT statements. Each SELECT statement within UNION must have the same number of columns The columns must also have similar data types The columns in each SELECT statement must also be in the same order SELECT Cit...
true
8096100da04dfa705365082b59d61108a7d6194d
SQL
joonte/jbs
/patches/billing/db/1000376.sql
UTF-8
705
3.3125
3
[]
no_license
DROP TABLE IF EXISTS `TmpData`; -- SEPARATOR CREATE TABLE `TmpData` ( `ID` int(11) NOT NULL auto_increment, `CreateDate` int(11) default '0', `UpdateDate` int(11) default '0', `UserID` int(11) NOT NULL DEFAULT 100, `AppID` VarChar(32) NOT NULL, `Col1` VarChar(64) default '', `Col2` VarChar(64) default '', `C...
true
2f7623b42c04653048977bc8160b864e15818f8c
SQL
soojeong-DA/SQL
/SQL로 맛보는 데이터 전처리 분석/7장(UK 커머스 데이터).sql
UTF-8
13,501
4.6875
5
[]
no_license
describe dataset3; SELECT * FROM dataset3; SELECT distinct(country) FROM dataset3; /*국가별, 상품별 구매자 수 및 매출액*/ SELECT country, stockcode, COUNT(DISTINCT(CustomerID)) AS BU, ROUND(SUM(quantity*unitprice),2) AS sales -- 그룹별로 묶으니까, SUM해줘야!! 까먹지 말기! FROM dataset3 GROUP BY 1,2 ORDER BY 3 DESC, 4 DESC; /*특정...
true
efec2f0c1714681768b0126e91b004c9f819fa2e
SQL
CircuitBreaker437/MySQLQueries
/PROG2110_RDB_A03.sql
UTF-8
3,205
4.1875
4
[]
no_license
-- FILE: PROG2110_RDB_A03.sql -- -- PROJECT: PROG2110 A03 -- -- PROGRAMMER: Marcin Czajkowski -- -- FIRST VERSION: 2015-10-22 -- -- DESCRIPTION: Queries for -- -- Northwind database -- -- Question 1 -- SELECT CustomerID, ContactName, Country, City FROM customers; -- Question 2 -- SELECT DISTINCT Country...
true
4200b7a56c84fe9e99389b681687ec96cd3543d5
SQL
barb03/G5P2
/models/schema.sql
UTF-8
1,840
3.78125
4
[]
no_license
DROP DATABASE IF EXISTS goal_db; CREATE DATABASE goal_db; USE goal_db; CREATE TABLE teams( id int NOT NULL AUTO_INCREMENT, user_team VARCHAR(255), PRIMARY KEY (id) ); CREATE TABLE categories( id int NOT NULL AUTO_INCREMENT, category_name VARCHAR(255), PRIMARY KEY (id) ); INSERT INTO categories (category_name) VALUES ...
true
f3fd4a5efae05056d4616af1b5f79f4dfe4c2180
SQL
DamianMielcarek/zrozum_sql-homework
/moduł 4/M4L9_zadania_teoria-2-role-reporting_reporting_user.sql
UTF-8
878
3.46875
3
[]
no_license
-- M4L9_zadania_teoria-2-role-reporting_reporting_user.sql -- Moduł 4 Data Control Language – Zadania Teoria SQL -- 7. Będąc zalogowany na użytkownika reporting_user, spróbuj utworzyć nową tabele (dowolną) w schemacie training. DROP TABLE IF EXISTS training.casual; CREATE TABLE training.casual ( id integer PRIMARY...
true
a43094576a1729a0e64b368ae6a8d6f8743a28b4
SQL
Yusupxyz/perpustakaan
/database/db.sql
UTF-8
9,971
2.96875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.1.49, for debian-linux-gnu (i686) -- -- Host: localhost Database: db_perpustakaan -- ------------------------------------------------------ -- Server version 5.1.49-1ubuntu8.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C...
true