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
6fb4fd9f9366895bcac9ee4e7536145361985880
SQL
sanchezz94/verliqps
/sql_script/phonecalls/phonecalls.sql
UTF-8
14,580
2.78125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.6.6 -- Dumped by pg_dump version 9.6.6 -- Started on 2018-02-06 12:37:00 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_func...
true
1d2dcb43de6581c9a60853897f30925772877395
SQL
ChristianGrimberg/mysql-fundamentals
/db/modulos/2-laboratorio-adicional.sql
UTF-8
1,508
4
4
[]
no_license
-- LABORATORIO 2 ADICIONAL -- 1- Seleccionar todos los registros de la tabla Articulos. SELECT * FROM laboratorio.articulos; -- 2- Mostrar los artículos con precio menor o igual a 50. SELECT * FROM laboratorio.articulos WHERE precio >= 50; -- 3- Seleccionar los artículos cuyo precio sea mayor o igual a 500. SELECT *...
true
8973a0e128fc7a1a6ca7bcc4a26a86ad769f0952
SQL
abd96/GDW
/SQL/sql_preparation.sql
UTF-8
4,179
3.890625
4
[]
no_license
/* Legende: https://raw.githubusercontent.com/lbynum/machine-bias-criminal-risk/master/compas_report.pdf */ SELECT COUNT(*) -- Auswahl der Spalten: /*Allg. Infos: name, */ id, sex, race, age, marital_status, /*Jugendstrafen: */ juv_fel_count, juv_misd_count, juv_other_count, /*Anazahl vorheriger Vergehen:*/ pri...
true
9ac48ed63d08779f1fdc11cc4a26852faedc63a5
SQL
linkRachit/Instamojo-php-curl
/final.sql
UTF-8
2,918
3.34375
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -------------------------------------------------------- -- -- Table structure for table `fill_form` -- CREATE TABLE IF NOT EXISTS `fill_form` ( `id` int(16) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT NULL, `email` varchar(50) NOT NULL, ...
true
9b25745093eb6bf272ca67a751f22c38302b451e
SQL
leroyakg/yiitest
/protected/data/schema.mysql.sql
UTF-8
2,220
3.34375
3
[]
no_license
CREATE TABLE tbl_user ( seqNo INT NOT NULL AUTO_INCREMENT, name CHAR(30), PRIMARY KEY(seqNo) ) ENGINE=INNODB; INSERT INTO tbl_user (name) VALUES ('Billy Davis'); INSERT INTO tbl_user (name) VALUES ('Sam Jones'); INSERT INTO tbl_user (name) VALUES ('Tom Michaels'); CREATE TABLE tbl_client ( seqNo INT...
true
af3a95e6f4f5313b3168e2a5e46c897865cbdaca
SQL
nsparks-sym/dbt-learn-public
/models/staging/jaffle_shop/stg_payments.sql
UTF-8
880
3.15625
3
[]
no_license
WITH payments AS ( SELECT id AS payment_id , orderid AS order_id , paymentmethod AS payment_method , status AS payment_status , {{ centsDoll...
true
014a02c8977cb4c6600f02499264a99841839d63
SQL
ILYASSBENHADDA/portfolio
/admin_panel/sql/db_code.sql
UTF-8
1,183
3.484375
3
[]
no_license
-- Creation of Database CREATE DATABASE portfolio; -- Creation of table Admin Key CREATE TABLE admin_key ( password varchar(250) not null ); -- Insert data into table Admin Key INSERT INTO admin_key (password) VALUES (MD5('me.ily#06')); -- Creation of table infos to Edit Info's CREATE TABLE infos ( id in...
true
b8a92ca0677350c7e65e683184aa866c69b3dab6
SQL
txteam/tsc
/dbscript/mysql/01basisScript/mainframe/tables/MAINFRAME_LOGIN_LOG.sql
UTF-8
403
2.53125
3
[]
no_license
drop table MAINFRAME_LOGIN_LOG; create table MAINFRAME_LOGIN_LOG( CLIENTIPADDRESS varchar(255), SYSTEMID varchar(64), ORGANIZATIONID varchar(64), MESSAGE varchar(255), CREATEDATE datetime default now(), VCID varchar(64), LOGINTYPE smallint not null, ID varchar(64) not null, OPERATORID varchar(64), ...
true
01e89ba9a35c7daf315edc048705084630b7f5f2
SQL
ShahakBH/jazzino-master
/bi/bi-dbdw/src/main/resources/deltas/81.sql
UTF-8
6,715
4.125
4
[]
no_license
CREATE TABLE IF NOT EXISTS rpt_invites_activity ( PLAYER_ID bigint(20) not null, AUDIT_DATE date not null, INVITES_SENT int(11) not null, primary key (PLAYER_ID, AUDIT_DATE), key IDX_AUDIT_DATE (AUDIT_DATE) )# DROP PROCEDURE IF EXISTS fillInvitesSummary# CREATE PROCEDURE fillInvitesSummary() BEGIN declare r...
true
4d9d396a406127d577b6a0c0ec8b6a3b5a7df9a8
SQL
Martin-Stamenkov/Csharp-SoftUni
/C# Database/C# DB Basic/CRUD/GeographyDatabase.sql
UTF-8
374
3.6875
4
[ "MIT" ]
permissive
USE [Geography] SELECT PeakName FROM Peaks ORDER BY PeakName SELECT * FROM Countries SELECT TOP(30) CountryName, [Population] FROM Countries WHERE ContinentCode LIKE 'EU' ORDER BY [Population] DESC , CountryName ASC SELECT CountryName, CountryCode, CASE WHEN CurrencyCode = 'EUR' THEN 'Euro' ELSE 'Not Euro' E...
true
7247aaa2ec328c125a5191ca8fd5eb1713e9a148
SQL
Sherimov/dbdevdesign
/SQLHOMEWORK/SQLQueryHomework02.sql
UTF-8
2,256
4.375
4
[ "MIT" ]
permissive
USE [SEDC.Homework] --1/6 SELECT * FROM Student WHERE FirstName = 'Antonio' SELECT * FROM Student WHERE DateOfBirth > '1999.01.01' SELECT * FROM Student WHERE Gender = 'M' SELECT * FROM Student WHERE LastName like 'T%' SELECT * FROM Student WHERE EnrolledDate >='1998.01.01' and EnrolledDate <= '...
true
8df0599093431fc85457a8a70454a5d6ec302be4
SQL
eniware-org/org.eniware.central
/eniware-db-setup/postgres/updates/NET-9-calc-avg-watt-hours.sql
UTF-8
642
2.90625
3
[ "Apache-2.0" ]
permissive
CREATE OR REPLACE FUNCTION eniwarenet.calc_avg_watt_hours(real, real, real, real, double precision, double precision, interval) RETURNS double precision AS $BODY$ SELECT CASE WHEN /* Wh readings available, so use difference in Wh */ $5 IS NOT NULL AND $6 IS NOT NULL AND $5 > $6 THEN $5 - $6 WHE...
true
3fccaf310169f986ac209b05996f307a0853d743
SQL
DiceWrangler/Newton_SQL
/view_customer_tags.sql
UTF-8
462
3.734375
4
[]
no_license
-- -- view_customer_tags.sql -- -- View: vcustomer_tags DROP VIEW IF EXISTS vcustomer_tags; CREATE VIEW vcustomer_tags AS select at.id as "agent_tag_id", a.customer_id as "customer_id", t.source as "source", t.tag as "tag" from agent a inner join agent_tag at on at.agent_id = a.id and at.hide is false inn...
true
7f445a0609d4d7c43faa43c13a9b51c99dac838a
SQL
wujungit/seenda_project
/basic-payment-service/src/main/resources/sql/payment.sql
UTF-8
825
2.84375
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : dev Source Server Type : MySQL Source Server Version : 50722 Source Host : localhost:3306 Source Schema : payment Target Server Type : MySQL Target Server Version : 50722 File Encoding : 65001 Date: 27/09/2020 00:25:53...
true
382aeaacf57c8f20130830b7a41a89b0029b23e8
SQL
AdrianPrendas/laboratorio_5
/db.sql
UTF-8
7,473
4
4
[]
no_license
spool db.log grant all privileges to tor identified by root; conn tor/root set LINESIZE 32000; set PAGESIZE 40000; set LONG 50000; DROP TABLE carritos cascade constraint; DROP TABLE productos cascade constraint; DROP TABLE usuarios cascade constraint; CREATE TABLE productos( id int, nombre varchar(30), imageUri v...
true
32808d447d37dac06b9a527e673c33cac938f041
SQL
sunshineuoow/leetcode
/Database/183.sql
UTF-8
117
2.890625
3
[ "MIT" ]
permissive
-- CUstomers Who Never Order SELECT Name AS Customers FROM Customers WHERE Id NOT IN(SELECT CustomerId FROM Orders);
true
cd9af4e700df632be62ee8ef02579e58fc9884d0
SQL
larazan/biken
/admin/db/tbl_basket.sql
UTF-8
2,535
3.046875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.37-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 11.0.0.5919 -- -----------------------------------------------...
true
06202f017bc8fbb77c84835c4277e7a6c74f2a20
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Triggers/T_MOTOTXTIPTRA_AUID.sql
UTF-8
1,945
3.234375
3
[]
no_license
create or replace trigger operacion.t_mototxtiptra_auid after insert or delete or update on operacion.mototxtiptra referencing old as old new as new for each row /********************************************************************************************* NOMBRE: OPERACION.T_MOTOTXTIPTRA_AUID PROP...
true
2c5dd907adfc679b5a4bc87ae46e27e177f314ed
SQL
vennekilde/GuildWars-2-Integration
/src/Persistence/mysql/setup.sql
UTF-8
6,794
3.390625
3
[ "MIT" ]
permissive
/* * The MIT License * * Copyright 2016 Jeppe Boysen Vennekilde. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to u...
true
ae003380e2c05881185cf09ce9a284e11586792b
SQL
erwinmacaraig/perl-cig-prj
/db_setup/tblRegistrationItem.sql
UTF-8
2,640
3.546875
4
[]
no_license
DROP TABLE IF EXISTS tblRegistrationItem; CREATE TABLE tblRegistrationItem ( intItemID int(11) NOT NULL AUTO_INCREMENT, intRealmID int(11) NOT NULL DEFAULT '0', intSubRealmID int(11) NOT NULL DEFAULT '0', intOriginLevel INT DEFAULT 0, /* ORIGIN LEVEL (See Defs) of the record. 0 = ALL */ strRuleFor...
true
420a2d5791c0afff919851c68487fe4c473b44c6
SQL
pavanjuttada/golang-web-app
/db-info.sql
UTF-8
414
2.53125
3
[]
no_license
sudo apt-get update sudo apt-get install mysql-server mysql -u root -p show databases; create database demodb; use demodb; CREATE TABLE `users` ( `id` int(6) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(30) NOT NULL, `email` varchar(30) NOT NULL, `address` varchar(30) NOT NULL...
true
49f47b42e92189e3639cf44aaf57eae3b1d851f1
SQL
iicc/go2o
/docs/data/upgrade_v0.2.1.sql
UTF-8
4,147
3.53125
4
[ "GPL-2.0-only" ]
permissive
CREATE TABLE pay_sp_trade ( id int(10) NOT NULL AUTO_INCREMENT, trade_sp varchar(20) NOT NULL comment '交易SP', trade_no varchar(45) NOT NULL comment '交易号', trade_orders varchar(512) NOT NULL comment '合并的订单号,交易号用"|"分割', trade_state int(1) NOT NULL comment '交易状态', trade_result int(1) NOT ...
true
002f8f78a63eb35085d45c63c4f1f6f645369b37
SQL
vkscorpio3/atg_training
/workspace/modules/ClothingStoreCA/build/atgsql/DCS/Versioned/sql/db_components/oracle/versioned_priceLists_ddl.sql
UTF-8
4,671
2.84375
3
[]
no_license
-- @version $Id: //product/DCS/version/11.2/templates/DCS/sql/priceLists_ddl.xml#2 $$Change: 1179550 $ create table dcs_price_list ( asset_version number(19) not null, workspace_id varchar2(40) not null, branch_id varchar2(40) not null, is_head number(1) not null, version_deleted number(1) not null, version_...
true
707a700194fb1cfa91f9b3ad9fd276291dc31403
SQL
markpairdha/MYSQL
/595. Big Countries.sql
UTF-8
307
3.203125
3
[ "Apache-2.0" ]
permissive
# Write your MySQL query statement below SELECT name,population,area FROM World WHERE population > 25000000 UNION SELECT name,population,area FROM World WHERE area > 3000000; # Write your MySQL query statement below SELECT name,population,area FROM World WHERE population > 25000000 OR area > 3000000;
true
a24f07bc1857905bb09e9d226d70abcc37fe8a8a
SQL
alexmercertomoki/CodingTraining
/Man2/WebContent/sql/1007.sql
GB18030
1,616
3.625
4
[]
no_license
create table usertest( id int identity(1,1) primary key not null, name varchar(100), password varchar(100) ) select * from usertest; insert into usertest (name,password) values('','123456'); insert into usertest (name,password) values('10','123456'); create table myuser( id int identity(1,1) pr...
true
a299b36c0ef06456e32d837f93ccb348274353d8
SQL
ljw0730/koitt_jsp
/Oracle sql/20200413 Oracle sql/20200413_ora_user_05.sql
UHC
1,523
4.28125
4
[]
no_license
select * from employees where hire_date >= '2007/01/01'; -- ¥ 񱳰 ϴ. select * from employees where emp_name >= 't'; -- ڸ 񱳰 Ұϴ. -- μ id 50̸鼭 job_id "MAN" select * from employees where department_id=50 and job_id like '%MAN%'; -- ̸ T ̰ų Ǵ S ̰ų Ǵ A select * from employees where emp_name like 'T%' or emp_name like '...
true
acda12e22720526c3967bfe9c133cb63274ed484
SQL
jpramirez/epicFDA
/extras/database/02TableFoodEvent.sql
UTF-8
909
3.140625
3
[ "Apache-2.0" ]
permissive
DROP TABLE epicfda.Product; DROP TABLE epicfda.Consumer; DROP TABLE epicfda.FoodEventReactions; DROP TABLE epicfda.FoodEventOutcomes; DROP TABLE FoodEvent; CREATE TABLE epicfda.Product( FoodEventID UUID Primary Key ,NameBrand VARCHAR ,IndustryCode VARCHAR ,Role ...
true
d23bb7c10a869f5df02a515948502bc24cd951ec
SQL
mihospedaje/mihospedaje-backend-lodging
/db/database.sql
UTF-8
1,886
3.296875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS lodging; USE lodging; CREATE TABLE IF NOT EXISTS location ( location_id int(10) NOT NULL AUTO_INCREMENT PRIMARY KEY, country varchar(255) NOT NULL, city varchar(255) NOT NULL, state varchar(255) NOT NULL )ENGINE=InnoDB DEFAULT CHARACTER SET = utf8; Describe location; CREATE TABLE IF NOT ...
true
db80737b78dddf2c4b9bb7770de054a311d420a4
SQL
avalsa/perl
/habr/bin/scripts/posts.sql
UTF-8
381
3.046875
3
[]
no_license
-- Table: public.posts -- DROP TABLE public.posts; CREATE TABLE public.posts ( id integer NOT NULL, author character varying(30) NOT NULL, stars integer NOT NULL, title character varying(100) NOT NULL, views integer NOT NULL, ranking integer NOT NULL, CONSTRAINT posts_pkey PRIMARY KEY (id) ) WITH ( O...
true
9d8ad51da96bc3208d12d1ffc050c0696df642e2
SQL
bkpADM2018/principal
/JAS/SQLs/SQL_Analisis.sql
UTF-8
1,784
3.21875
3
[]
no_license
--PROCESADOS /* Select count(*) from ( Select distinct fanaca, cPORCA from MERFL.MER591CA where FANACA >= 20140401 and FANACA <= 20140531 ) T */ /* Select CDESR6, count(*) from merfl.mer311f6 where FECDR6 >= 20140401 and FECDR6 <= 20140430 group by CDESR6 */ /* Select COSTR6, count(*) from MERFL.MER3...
true
12348b0df0e0f84009bda30aaaf1067b0923e403
SQL
rookenthusiast/hogwartsdb
/db/hogwarts.sql
UTF-8
267
2.609375
3
[]
no_license
DROP TABLE IF EXISTS students; DROP TABLE IF EXISTS houses; CREATE TABLE houses ( name VARCHAR(255), url TEXT, id SERIAL8 primary key ); CREATE TABLE students ( first_name VARCHAR(255), last_name VARCHAR(255), house VARCHAR(255), age INT2, id SERIAL8 primary key );
true
db051f7b764edd6e52e25b2068615c00a9582405
SQL
hurdad/datawarehouse-benchmark
/ssb/query/alenka/star_queries_no_bitmaps/ss22.sql
UTF-8
993
3.15625
3
[]
no_license
PF := FILTER part BY (p_brand1 == "MFGR#2221") OR (p_brand1 == "MFGR#2222") OR (p_brand1 == "MFGR#2223") OR (p_brand1 == "MFGR#2224") OR (p_brand1 == "MFGR#2225") OR (p_brand1 == "MFGR#2226") OR (p_brand1 == "MFGR#2227") OR (p_brand1 == "MFGR#2228"); SF := FILTER supplier BY s_region == "ASIA...
true
59080b25a6141a711146ae7e1a4bf7f43b747135
SQL
LikoGuan/code_guns
/guns-admin/sql/foundation.sql
UTF-8
13,956
3.078125
3
[ "Apache-2.0" ]
permissive
-- ---------------------------- -- Table structure for client_rank -- ---------------------------- DROP TABLE IF EXISTS `client_rank`; CREATE TABLE `client_rank` ( `id` INT NOT NULL AUTO_INCREMENT COMMENT '主键id', `client_id` INT NOT NULL COMMENT '客户编号', `rank_name` VARCHAR(100) NOT NULL COMMENT '等级名称', `discou...
true
750fea8107fb9915a0e5cfac148617bdb1ac5361
SQL
SonuShaikh/Oracle-DBA
/Admin/Redo_Logs_SYS.sql
UTF-8
1,427
3.609375
4
[]
no_license
-- Redo Logs -- Data Dictionary Table to view Redo Logs SELECT * FROM V$LOGFILE ORDER BY GROUP#; SELECT * FROM V$LOG; SELECT * FROM V$LOG_HISTORY; -- ADD Member to Redo Logs groups ALTER DATABASE ADD LOGFILE MEMBER 'C:\app\redo_demo\REDO01b.LOG' TO GROUP 1 ; ALTER DATABASE ADD LOGFILE MEMBER 'C:\app\redo_demo\REDO...
true
2e17e7e5c8b402b9b81c5a3e4e9e061c6de48419
SQL
vcd94xt10z/zionphp
/artifacts/dump/01-histdata.sql
UTF-8
564
2.703125
3
[ "MIT" ]
permissive
CREATE TABLE `zion_histdata_object` ( `mandt` int(11) NOT NULL DEFAULT 0, `name` varchar(45) NOT NULL, `title` varchar(45) NOT NULL, `value_label` varchar(45) NOT NULL, `sequence` int(11) DEFAULT 0, PRIMARY KEY (`mandt`,`name`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `zion_histdata_valu...
true
8df2f684833a1aefa924af1fdae9b2b30860bb87
SQL
MaximilianoCaba/prodeRusia2018
/src/main/resources/schema-mysql.sql
UTF-8
13,445
3.453125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `user` ( `ID` INT NOT NULL AUTO_INCREMENT PRIMARY KEY, `NAME` VARCHAR(50) NOT NULL, `MAIL` VARCHAR(50) NOT NULL, `AVATAR` VARCHAR(255), `ROLE_ADMIN` BOOLEAN NOT NULL DEFAULT FALSE ) ENGINE = InnoDB; CREATE TABLE IF NOT EXISTS `team` ( `ID` ...
true
f157791447f33f678e81545c464b1458d5b62568
SQL
diegolem/Parcial-BDD
/b.Tablas.sql
UTF-8
10,286
3.5625
4
[]
no_license
USE CollegeCentralAmerica_LaLibertad --Creacion de tablas CREATE TABLE departamento( idDepartamento INT PRIMARY KEY IDENTITY(1,1) NOT NULL, nombre VARCHAR(100) NOT NULL, descripcion VARCHAR(250) NOT NULL ) CREATE TABLE procesos( idProceso INT PRIMARY KEY IDENTITY(1,1) NOT NULL, nombre VARCHAR(30)...
true
13110ca7fa38e6eb99dd22ade7bc3beb73856b0a
SQL
Mariuusz/JavaSDA
/024Hibernate/hibernate/src/main/resources/mysql.sql
UTF-8
350
2.71875
3
[]
no_license
CREATE SCHEMA `hibernate` DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_polish_ci; use `hibernate` ; CREATE USER 'user_hibernate'@'localhost' IDENTIFIED BY 'hibernate01'; GRANT USAGE ON hibernate.* TO 'user_hibernate'@'localhost' identified BY 'hibernate01'; GRANT ALL PRIVILEGES ON hibernate.* TO 'user_hibernate'@'...
true
c615f9d747a2257a6743a18bab878f6003657c70
SQL
h-abokhadra/.NET
/Week10/BooksDB_Stored_Procedures.sql
UTF-8
892
3.28125
3
[]
no_license
use BooksDB /*-----------------------------------------*/ /*Stored Procedure*/ CREATE OR ALTER PROCEDURE spGetTitle AS BEGIN Select * from Titles END /* Test the spGetTitle Stored Procedure*/ spGetTitle /*-----------------------------------------*/ /*Stored Procedure with one parameter*/ CREATE OR ALTER PROCEDU...
true
78df8fe3f20bacb39afa7ab13e05caa1bc59c51a
SQL
longhorn2000/sql-challenge
/Question_2_hire_data.sql
UTF-8
223
3.28125
3
[]
no_license
SELECT m.dept_no, dept_name, m.emp_no, first_name, last_name, m.from_date, m.to_date FROM dept_manager m LEFT JOIN departments on m.dept_no = departments.dept_no LEFT JOIN employees on m.emp_no = employees.emp_no;
true
dc7de0dda96c9161fb5d4fdf6c568e25cf4a52c0
SQL
rage-your-dream/baibaiba
/AppCNumCreate/db/DDL/channel/T_promotion_team.sql
UTF-8
586
2.828125
3
[]
no_license
USE `channel`; CREATE TABLE `promotion_team` ( `id` int(11) NOT NULL AUTO_INCREMENT, `promotion_number` char(2) DEFAULT NULL, `team_name` varchar(16) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8; /* 初始化数据 */ INSERT INTO `promotion_team` (`promotion_number`,`team_name...
true
4d22aef1a529e2102b37875f87c48aad47e1ff48
SQL
radtek/Database-3
/oracle/admin/scripts/memory_usage_v2.sql
UTF-8
2,938
3.5
4
[]
no_license
ALTER SESSION SET nls_date_format = 'DD/MM/YYYY HH24:MI:SS'; set pages 900 set lines 300 COL COMPONENT FORMAT A25 COL INITIAL_SIZE FORMAT A10 COL FINAL_SIZE FORMAT A10 select * from V$MEMORY_DYNAMIC_COMPONENTS; select component, current_size/1024/1024 current_size, min_size/1024/1024 min_size , max_Size/1...
true
6746e992bac12eb6a3ca6669494550a390fb41de
SQL
bravesoftdz/sgts
/sql/oracle/patch_15.01.2009/procedures/2/257_U_ROUTE.prc
WINDOWS-1251
589
3.265625
3
[]
no_license
/* */ CREATE OR REPLACE PROCEDURE U_ROUTE ( ROUTE_ID IN INTEGER, NAME IN VARCHAR2, DESCRIPTION IN VARCHAR2, DATE_ROUTE IN DATE, IS_ACTIVE IN INTEGER, OLD_ROUTE_ID IN INTEGER ) AS BEGIN UPDATE ROUTES SET ROUTE_ID=U_ROUTE.ROUTE_ID, NAME=U_ROUTE.NAME, DESCRIPTION=U_...
true
2cce5d8ad78380a08cf38ecca0c4deeffddbe188
SQL
SylvainZ/SKLUBS
/PieceLogement&SQL/homemate.sql
UTF-8
3,028
3.515625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1 -- Généré le : ven. 18 mai 2018 à 16:37 -- Version du serveur : 10.1.31-MariaDB -- Version de PHP : 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
true
9b5b88e4b6ed7e20fb5f3bd0ec3ecdc7131e1e11
SQL
drtorpin/ds_timerange
/mysql_dump.sql
UTF-8
6,242
2.953125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.35, for FreeBSD10.3 (amd64) -- -- Host: 127.0.0.1 Database: ds -- ------------------------------------------------------ -- Server version 8.0.0-dmr-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
af312db8fa91ee971b7c0cf1948e1d412d23970a
SQL
JuniorCristian/cadastro_de_aluno_trabalho_java_3_2021-1
/banco.sql
UTF-8
587
3.078125
3
[]
no_license
create database registro_aluno_trabalho_pratico; use registro_aluno_trabalho_pratico; create table cursos( id_curso int not null auto_increment, nome varchar(100), professor varchar(100), foto_professor varchar(100), PRIMARY KEY (id_curso) ); create table alunos( id_aluno int not null auto_incre...
true
ac8789888a37255d79e84fed5ebd16b7209bbdde
SQL
rongfengliang/ent-pet-user-group
/sql/demo2.sql
UTF-8
731
3.90625
4
[]
no_license
SELECT DISTINCT `pets`.`id`, `pets`.`name` FROM `pets` WHERE `pets`.`owner_id` IN ( SELECT `id` FROM `users` WHERE `users`.`id` IN ( SELECT `user_friends`.`user_id` FROM `u...
true
81c3e28dfcaf0d1d97c9ecbe8def73fd81e5a324
SQL
opitzconsulting/orcas
/orcas_integrationstest/tests/test_sequence/erzeuge_zielzustand.sql
UTF-8
1,131
2.5625
3
[ "Apache-2.0" ]
permissive
create table tab_dummy ( col1 number(5) ); create sequence seq_test_create start with 12 increment by 20; create sequence seq_test_default increment by 1; create sequence seq_ignore; /* 4 ist eigentlich egal, wird aber durch das update erzeugt */ create sequence seq_test_update increment by 10 start with 4; ...
true
06ae1d784c90ebc75d9da33cff358f7f702c952a
SQL
rom85/cv
/db/cvtracker_resume_letter_patterns.sql
UTF-8
2,746
3.03125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `cvtracker` /*!40100 DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci */; USE `cvtracker`; -- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86) -- -- Host: localhost Database: cvtracker -- ------------------------------------------------------ -- Server version 5.5.28 /*!40101 SET @...
true
1c66151ec8efdfcb09bfaa26607d9feb46ed9f9e
SQL
myfaves/myfaves-proj
/db/init.sql
UTF-8
972
3.71875
4
[]
no_license
CREATE TABLE IF NOT EXISTS users (user_id SERIAL PRIMARY KEY, email VARCHAR(250), hash VARCHAR(2500), first_name VARCHAR(250), last_name VARCHAR(250), age INTEGER); CREATE TABLE IF NOT EXISTS categories (category_id SERIAL PRIMARY KEY, category_name VARCHAR(250)); CREATE TABLE IF NOT EXISTS user_categories (user_ca...
true
712a3722c5718f54e7e3ff2357ec5e81d9e639bb
SQL
chiranjitengineer/learngit
/OfficeWorks/Birla/Birla PIS Reports Query/PROC_RPT_VARIABLECHECKLST_EXL.prc
UTF-8
12,377
2.828125
3
[]
no_license
CREATE OR REPLACE PROCEDURE BIRLANEW.PROC_RPT_VARIABLECHECKLST_EXL ( P_COMPANYCODE VARCHAR2, P_DIVISIONCODE VARCHAR2, P_YEARCODE VARCHAR2, P_YEARMONTH VARCHAR2, P_UNIT VARCHAR2 DEFAULT NULL, P_CATEGORY VARCHAR2 DEFAULT NULL ) AS LV_SQLSTR VARCHAR2(32000); REPMONTH V...
true
735e5f1be5e25f8d1f831cec578befa605fe4ac5
SQL
raciv65/SQL-Challenge
/EmployeeSQL/Shemata.sql
UTF-8
2,580
4.125
4
[]
no_license
-- In practice to drop tables while testing DROP TABLE IF EXISTS Employees CASCADE; DROP TABLE IF EXISTS Department CASCADE; DROP TABLE IF EXISTS Department_Employees; DROP TABLE IF EXISTS Department_Manager; DROP TABLE IF EXISTS Salaries; DROP TABLE IF EXISTS Titles; -- Create the tables for the data (six cvs files)...
true
8ab4ad580c89ef3fd741788b7b7d75abf91900a8
SQL
calumchater/PHP-Website
/tablesProjet.sql
ISO-8859-2
2,220
3.71875
4
[]
no_license
DROP TABLE Catgorie CASCADE; DROP TABLE Tuteur CASCADE; DROP TABLE Projet CASCADE; DROP TABLE Etudiant CASCADE; DROP TABLE Binme CASCADE; DROP TABLE Choisit CASCADE; CREATE TABLE Catgorie( numCat INTEGER NOT NULL PRIMARY KEY, nomCat VARCHAR(20) ); CREATE TABLE Tuteur( numT INTEGER NOT NULL PRIMARY KEY, nom VARCH...
true
97db9b945f632fc1d7de1e23c175db73dcb9808b
SQL
karhander/oved185
/oved185/docs/p4.sql
UTF-8
2,814
4.125
4
[]
no_license
-- departments locations on location_id SELECT d.department_id, d.department_name, l.location_id, l.city FROM departments d, locations l where d.location_id = l.location_id; -- same, w/ natural join SELECT department_id, department_name, location_id, city FROM departments NATURAL JOIN locations; -- employees...
true
c2f556c1c0d7f94d8eccc06fc9f4fdba13ecd5e9
SQL
Adigit/mycampaign
/db/.svn/text-base/structure.sql.svn-base
UTF-8
44,859
2.953125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: getuzer -- ------------------------------------------------------ -- Server version 5.5.37-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@C...
true
8fa8368d87466c54dc32b7cd8979e3e61622d860
SQL
mullerj/PineValleyFurniture
/Scripts/Setup/CreateOrderWithData.mysql
UTF-8
642
2.609375
3
[]
no_license
CREATE TABLE Order_t ( Order_ID INTEGER, Order_Date DATE, Customer_ID INTEGER, PRIMARY KEY (Order_ID)); INSERT INTO Order_t VALUES (1001, "2004-10-21", 1); INSERT INTO Order_t VALUES (1002, "2004-10-21", 8); INSERT INTO Order_t VALUES (1003, "2004-10-22", 15); INSERT INTO Order_t VALUES (1004, "2004-10-22", 5...
true
de2c488c18960291475de14c0996dc2ccf4ddf20
SQL
NicoAntonelli/MySQL-2019
/workspace/Others/SQL Mode (Add and Remove).sql
UTF-8
426
2.890625
3
[]
no_license
/* # Adding only one mode to sql_mode without removing existing ones: SET sql_mode=(SELECT CONCAT(@@sql_mode, ',<mode_to_add>')); # Example: SET sql_mode=(SELECT CONCAT(@@sql_mode, ',ONLY_FULL_GROUP_BY')); # Removing only a specific mode from sql_mode without removing others: SET sql_mode=(SELECT REPLACE(@@sql_mode,'<...
true
2c8bc28b5684418998c49b2d7edeb62f8b24f4cd
SQL
SethaReno/sql-project
/average-professor-grade.sql
UTF-8
203
3.6875
4
[]
no_license
SELECT professor_name AS "Professor", AVG(grade_value) FROM course JOIN professors ON course.course_professor_id = professors_id JOIN grades ON course.course_id = grade_course_id GROUP BY professor_name;
true
c0a70d52e61bd5972a2b2612b89f7c22774ce010
SQL
Eranity/freelance-qu
/database/backup/laravel.sql
UTF-8
33,356
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 16, 2020 at 07:56 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
780e4638f0cef53e27444f98c68474d176bbbc2b
SQL
AneesQureshi/Abstract
/asp.net new/Asp.net/Database/sp.sql
UTF-8
1,069
3.25
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `Details`(IN con CHAR(20) ) BEGIN SELECT * FROM `tbl_empdetails` WHERE DeptId = con; END$$ DELIMITER ; DELIMITER $$ CREATE DEFINER=`root`@`localhost` PROCEDURE `insertd`(IN dept varchar(20), CreatedBy varchar(20)) BEGIN INSERT INTO `company`.tbl_empquality ( ...
true
cc435de2f9e784940e7850a5c03bf7051c6044f7
SQL
mmezic/fksdb
/sql/ref58/pi.sql
UTF-8
554
3.578125
4
[]
no_license
update login set email = null where email = ''; update login set fb_id = null where fb_id = ''; update login set linkedin_id = null where linkedin_id = ''; update person_info set linkedin_id = null; update person_info set fb_id = null; INSERT INTO person_info(person_id, email, fb_id, linkedin_id) select person_id, ...
true
d7c631516f10de3ac658263da02787ebc648d1e2
SQL
white55opennewbee/MicroQBS
/doc/sql/phlink_demo_public_t_user_role.sql
UTF-8
1,757
2.859375
3
[ "Apache-2.0" ]
permissive
create table t_user_role ( id varchar(255) not null constraint t_user_role_pkey primary key, create_by varchar(255) default NULL::character varying, create_time timestamp, del_flag integer, update_by varchar(255) default NULL::character varying, update_time timestamp, role_id ...
true
8ca50d49b55cd73e2c0cc384e97bde4cd5534f84
SQL
OHSU-FM/edna
/db/data-migrations/2010_create_clinics_table.sql
UTF-8
209
2.671875
3
[]
no_license
create table source.p4_clinics ( id serial primary key, p4_program_id varchar not null, p4_clinic_id varchar not null, clinic_abbreviation varchar, constraint u_p4_clinic_id unique (p4_clinic_id) );
true
11729e71b137b3c7fef69d125daf361b68a0cfbb
SQL
Riturajcse/base
/migrations/post_install/v5.2.4-post_install.sql
UTF-8
511
3.234375
3
[ "MIT" ]
permissive
do $$ begin if exists (select 1 from information_schema.columns where table_name = 'projects' and column_name = 'isOrphaned') then update projects set "isOrphaned" = false where "isOrphaned" is NULL; create temp table temp_pa as select id from projects; delete from temp_pa using "projectAccounts...
true
9b357ada254f2905b27d9f8d51cc9beb88f7a791
SQL
zk101/nixie
/opt/sql/telemetry.sql
UTF-8
1,338
3.40625
3
[]
no_license
-- -- Database: `nixie_telemetry` -- CREATE DATABASE IF NOT EXISTS `nixie_telemetry` DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci; USE `nixie_telemetry`; -- -- Table structure for table `telemetry` -- DROP TABLE IF EXISTS `telemetry`; CREATE TABLE `telemetry` ( `telemetry_id` bigint(20) unsigned NOT ...
true
3f7f716a9180aae5209eb0555ef964bb9a4e3190
SQL
gwcms/gwcms
/sql/old/2015-06-04 diary.sql
UTF-8
1,473
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 04, 2015 at 12:57 PM -- Server version: 5.5.41-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `gw_cms` -- -- --------...
true
cd74b7822b16ad2bbbf779fa4d0d31bb00532a9d
SQL
antoniocanaveral/galapagos
/Update/Scripts/1.0-2.0/2016_06_14_cgg_res_documentacion_solicitada.sql
UTF-8
1,173
2.875
3
[]
no_license
-- Table: sii.cgg_res_documentacion_solicitada -- DROP TABLE sii.cgg_res_documentacion_solicitada; CREATE TABLE sii.cgg_res_documentacion_solicitada ( crdcsl_codigo character varying(20) NOT NULL, -- IDENTIFICATIVO UNICO DE REGISTRO DE DOCUMENTO crdcsl_descripcion character varying(250), --DESCRIPCION DEL DOCUME...
true
4d6f13410fabbd30c30c3f533a9577fbe65dd624
SQL
Towsif824/Fianl_LabExam_ATP3
/final_exam.sql
UTF-8
3,248
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 08, 2020 at 10:28 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
6fdeacf659f28e806ebe492392aecf1f55adb0cf
SQL
TT881/Database-Management
/A2/dbCreateTruck-2020SP20.sql
UTF-8
37,982
3.21875
3
[]
no_license
spool dbCreateTruckSpool.lst SET ECHO OFF -- Drop all previously created tables drop table TRKEMPLOYEE cascade constraint purge; drop table DRIVER cascade constraint purge; drop table MECHANIC cascade constraint purge; drop table TRUCK cascade constraint purge; drop table TRIP cascade constraint purge; drop table TRIPL...
true
bb37c715a781985354f7f4460e4a996a1f8a7cea
SQL
nervsysAz/dongqi
/sql/company.sql
UTF-8
1,577
3.578125
4
[]
no_license
-- 活动资讯表 DROP TABLE IF EXISTS `dq_activity`; CREATE TABLE IF NOT EXISTS `dq_activity`( `activity_id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键', `aid` INT(10) UNSIGNED NOT NULL DEFAULT 0 COMMENT '管理员主键', `title` VARCHAR (20) NOT NULL DEFAULT '' COMMENT '标题', `image` VARCHAR (120) NOT NULL DEFAU...
true
a523e4bd20dd50dad59c1080bfc19af70b3ce2a6
SQL
tiberiu-patrascu/Php
/flipquizz/test/flipquiz_DML_Mike.sql
UTF-8
3,779
3.109375
3
[ "MIT" ]
permissive
-- USE flipquizz; INSERT INTO fp_quizzes (`quiz_id`, `quiz_theme`) VALUES (1, 'Quiz Test 1'), (2, 'Quiz Test 2'); INSERT INTO fp_categories (category_id, category_name, category_description, quiz_id) VALUES (1, 'C#', 'Questions about c#', 1), (2, 'ASP.NET', 'ASP.NET attacks !', 1), (3, 'Javascript', 'Javascript ...
true
6d2ce54758ebc96798872eac161fa852ad878cf4
SQL
asritcaceres/sql-challenge
/Queries/AnalyzingData.sql
UTF-8
2,225
4.65625
5
[]
no_license
--List the following details of each employee: employee number, last name, first name, sex, and salary. Select e.emp_no, e.last_name, e.first_name, e.sex, s.salary FROM employees as e JOIN salaries as s ON (e.emp_no = s.emp_no); --List first name, last name, and hire date for employees who were hired in 1986. Select f...
true
f1fc456482ba8338853d875e224e59bb369972af
SQL
jyothi14691/AppSafe
/src/main/resources/Stores.sql
UTF-8
1,303
3.3125
3
[]
no_license
CREATE TABLE STORES_DETAILS( id int not null primary key, store_name varchar(255), store_location varchar(255) ); CREATE TABLE TIMINGS( timings_id int not null primary key, store_id int not null, start_hour varchar(25), end_hour varchar(25), num_of_people int not null, CONSTRAINT storeId_Fk FOREIGN KEY (store_id) REFE...
true
6c7245e007b594d4923ee6ab5c68c34309d1b789
SQL
AlejoMoreno/intersoft
/database/famcnetc_intersoft.sql
UTF-8
24,396
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 01-07-2017 a las 00:53:38 -- Versión del servidor: 10.0.31-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
true
e55df2451109d232741bc0bc939845ea4964a537
SQL
RVTretyakov/Yaratam.space
/modules/core/db/init/hsql/20.create-db.sql
UTF-8
5,572
3.15625
3
[]
no_license
-- begin ZXC_EMPLOYEE alter table ZXC_EMPLOYEE add constraint FK_ZXC_EMPLOYEE_ON_CUBA_USER_ID foreign key (CUBA_USER_ID_ID) references SEC_USER(ID)^ alter table ZXC_EMPLOYEE add constraint FK_ZXC_EMPLOYEE_ON_CHIEF foreign key (CHIEF_ID) references ZXC_EMPLOYEE(ID)^ alter table ZXC_EMPLOYEE add constraint FK_ZXC_EMPLOYE...
true
3ab38a5fc3eaacd4152f3a5bc627872eb0a89b67
SQL
RodrigoBlue/db_teste_usuarios
/Loja.sql
UTF-8
2,350
3.484375
3
[]
no_license
create database Loja; use Loja; drop database loja; create table Aluno( idAluno INT AUTO_INCREMENT, PRIMARY KEY(idAluno), nomeAluno VARCHAR(50), CPFAluno INT, idadeAluno INT, sexoAluno VARCHAR(1), datanascAluno DATE ); create table Produto( id_produto INT auto_increment, PRIMARY KEY(id_produto), nome_produto varchar...
true
602d00c6ae9398ed33de36891c6a6c4c8f3caf1a
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day19/select1035.sql
UTF-8
177
2.609375
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-18T10:35:00Z' AND timestamp<'2017-11-19T10:35:00Z' AND temperature>=2 AND temperature<=10
true
2cdc2d22c6f724b44530733ff118ca0bb7cffd56
SQL
charlt/edy
/databases/estudydg/cat_estado.sql
UTF-8
3,088
2.671875
3
[]
no_license
CREATE TABLE `cat_estado` ( `estado_id` int(11) NOT NULL AUTO_INCREMENT, `clave_estado` varchar(255) DEFAULT NULL, `nombre_estado` varchar(255) DEFAULT NULL, `fecha_creacion` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP, `fecha_actualiza` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP...
true
a3fa516aad151ddf0be6bd4e78142494cc584ed3
SQL
padilr1/DNAme_k27me3_project
/docs/samples.sql
UTF-8
1,033
2.71875
3
[]
no_license
CREATE DATABASE `K27M_samples`; USE `K27M_samples`; CREATE TABLE `samples` ( `sample_name` VARCHAR(30), `condition` VARCHAR(30), `path` VARCHAR(100), PRIMARY KEY (`sample_name`) ); SELECT* FROM `samples`; -- add record to table using select columns INSERT INTO `samples` (`sample_name`,`condition`,`...
true
5e4c1eb2253581834269c4f0f55d821afc6a88a1
SQL
tanchonglim/CRAS-Angular
/college_application.sql
UTF-8
5,781
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2021 at 05:10 AM -- Server version: 10.1.10-MariaDB -- PHP Version: 5.6.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
52b3083fe4528ad7e95377821c4b1e54fe1a6d24
SQL
manoel-ats/atsfinanceiro
/script/spestoqueproduto.sql
UTF-8
6,342
3.328125
3
[]
no_license
CREATE OR ALTER PROCEDURE SPESTOQUEPRODUTO ( dta1 date, dta2 date, prod1 integer, prod2 integer, grupo varchar(50), subgrupo varchar(50), marca varchar(50), pccusto integer) returns ( cod integer, codprod varchar(20), produto varchar(200), saldoini double precision, e...
true
f026fc8604edb86b5784ac02452ebd28b6fd2f9b
SQL
hanYijin/MysecondRepository_20210402
/mysql 백업/covibbs_post.sql
UTF-8
3,051
2.703125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.24, for Win64 (x86_64) -- -- Host: localhost Database: covibbs -- ------------------------------------------------------ -- Server version 8.0.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!...
true
1149d8608125bcb13ff875379a15e91d2284855f
SQL
meogol/laba
/SQLQuery30.sql
UTF-8
571
3.53125
4
[]
no_license
 /*10) Увеличить на 1 количество всех товаров на складах с именем товара «фисташка» и которые обслуживают магазины с именем «мир пустоты».*/ update stock_product set count=count+1 from stock_product inner join product on product.ID=stock_product.product_ID inner join stock_magazine on stock_product.stock_ID=stoc...
true
dc231b225de578bbed9b7976c28122289787f674
SQL
ksby/ksbysample-webapp-lending
/src/main/resources/META-INF/ksbysample/webapp/lending/dao/UserInfoDao/selectApproverMailAddrList.sql
UTF-8
126
2.71875
3
[]
no_license
select ui.mail_address from user_role ur , user_info ui where ur.role = 'ROLE_APPROVER' and ui.user_id = ur.user_id
true
994381b951c37d615cfe34bc0c211de5b2444f0b
SQL
iNouvellie/pl-sql-oracle
/testcurso/06_Arreglos.sql
UTF-8
913
3.21875
3
[]
no_license
set serveroutput on; DECLARE --Definicion de los arreglos. type alumnosArray is varray(5) of nvarchar2(100); type notasArray is varray(5) of number; --Ahora se puede crear items de ese tipo contenido en el arreglo. alumnos alumnosArray; notas notasArray; BEGIN alumnos := alumnosArray ('Rober...
true
4a50e444c7216cafae0fa52731504201032fbd7d
SQL
tpsaitwal/ticket-booking-system
/src/configuration/sqls/MOVIE.sql
UTF-8
495
2.625
3
[]
no_license
CREATE TABLE MOVIE ( M_ID VARCHAR2(100), M_NAME VARCHAR2(200), M_DURATION NUMBER(4), PRIMARY KEY (M_ID) ); INSERT INTO MOVIE VALUES ('M_1001', 'Ashiqui', 200); INSERT INTO MOVIE VALUES ('M_1002', 'Dabang', 214); INSERT INTO MOVIE VALUES ('M_1003', 'Dream Girl', 190); INSERT INTO MOVIE VALUES ('M_1004', 'Badhai...
true
0d6171e9c2cadb4661752aebecb3d45be84e958c
SQL
T-Ford/Java-w-Apache-Derby-embedded-database
/music.sql
UTF-8
1,542
3.640625
4
[]
no_license
-- music.sql -- Written by Tyler Ford for CS 455 @ RIC -- This file contains SQL information for creating and populating -- a database of musicians and their band CONNECT 'jdbc:derby:music;create=true'; CREATE TABLE Musician ( Id int, Fname varchar(20), Lname varchar(20), CurrentBand varchar (40), PRIMARY KEY(I...
true
1d2dae185557809b931f2993fd8dbe81123692cf
SQL
pleszkan/hive-benchmark
/ddl-tpch/bin_partitioned/supplier.sql
UTF-8
191
2.65625
3
[]
no_license
create database if not exists ${DB}; use ${DB}; drop table if exists supplier; create table supplier stored as ${FILE} as select * from ${SOURCE}.supplier cluster by s_nationkey, s_suppkey;
true
ccc13c1b02b81bf683d9190b7799c6c0150de779
SQL
JimBeam2019/full-terra
/back/sql/init.sql
UTF-8
915
3.703125
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS members; DROP TYPE IF EXISTS member_gender; CREATE TYPE member_gender AS ENUM ( 'FEMALE', 'MALE', 'UNKNOWN' ); CREATE TABLE members ( id SERIAL PRIMARY KEY, -- id "username" varchar(15) NOT NULL, -- User Name "fullname" varchar(25), -- Full Name "dob" date, -- D...
true
84d7ed6460401bbde690a265849e4f830d845a69
SQL
bingbing233/news-background
/src/main/resources/migration/news_db.sql
UTF-8
2,892
3.59375
4
[]
no_license
create table admin ( admin_id int auto_increment, admin_name varchar(50) null, admin_contact varchar(50) null, admin_password varchar(50) null, admin_type varchar(50) null, constraint admin_admin_id_uindex unique (admin_id) ); create table apartment ( apartment_id i...
true
4f7ff7d93322df2776f12cd6082630efa48e9816
SQL
1UC1F3R616/Flask-and-DB-Projects
/Question & Answer App/schema.sql
UTF-8
349
2.859375
3
[ "MIT" ]
permissive
create table users ( id serial primary key, name text not null, password text not null, expert boolean not null, admin boolean not null ); create table questions ( id serial primary key, question_text text not null, answer_text text, asked_by_id integer not null, e...
true
7b6af5a8e5ed423d20e6707aa23c739308f52ed9
SQL
MrBlue-lab/Desafio1
/desafio1.sql
UTF-8
9,450
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5deb2 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 16-10-2020 a las 18:24:28 -- Versión del servidor: 8.0.21-0ubuntu0.20.04.4 -- Versión de PHP: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_...
true
8d29a7394d747cdb2fa9582f8c7746b0851dd1b2
SQL
ramakrishna-namburu/vhcbcloud
/VHCB.Database/dbo/Stored Procedures/PCR_FundName_Commitments.sql
UTF-8
262
2.890625
3
[]
no_license
CREATE procedure PCR_FundName_Commitments as begin select distinct name, f.FundId from fund f(nolock) join Detail d(nolock) on d.FundId = f.FundId join trans tr (nolock) on tr.TransId = d.TransId where tr.LkTransaction = 238 order by f.FundId end
true
5cb3f10264c1b475a8fabeabbef9d53e2c0d31e2
SQL
Davi-Alencar/Bancodd
/SQL/Exercicios/MusicaEx4.sql
ISO-8859-1
1,503
3.5
4
[]
no_license
CREATE DATABASE Optus_Tarde; USE Optus_Tarde CREATE TABLE Artistas ( IdArtista INT PRIMARY KEY IDENTITY, NomeArtista VARCHAR(200) NOT NULL DtNasc DATE, Nacionalidade VARCHAR(200), QtdMinTotais BIGINT ); CREATE TABLE Albuns ( IdAlbum INT PRIMARY KEY IDENTITY, NomeAlbum VARCHAR(200) NOT NULL UNIQUE, Dt...
true
2b036da45161affbd0039e51ed874e33e5b95ede
SQL
HannahSchott/Endprojekt-Anastasia
/anastasia.sql
UTF-8
17,306
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Feb 26, 2018 at 12:16 AM -- Server version: 5.6.28 -- PHP Version: 7.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
17efc5ef329ae9b493948f1c745e41c9fd19d8a9
SQL
DepartmentCustomization/SBC
/CRM-AVR/Conf/DataSources/System.Data.SqlClient/Default/All_Default/Routes/AreaParam/SelectAreaParamRow/SelectAreaParamRow.sql
UTF-8
109
2.515625
3
[]
no_license
SELECT Id, AreaId, Lenght AS [length], DiametersID AS diameter FROM AreaParam WHERE Id = @Id ;
true
0f5c952da596d6fd9603f4dd59b6f10b6f0504cd
SQL
mmadala95/db2
/src/q3b.sql
UTF-8
604
3.375
3
[]
no_license
with zpopulation as( select cast(sum(ZPOP) as float) as pop,ZIP from ZIPPOP group by ZIP having not cast(sum(ZPOP) as float)=0 ), joinrecords as (select DEA_NYC.MME,DEA_NYC.BUYER_ZIP as ZIP,zpopulation.pop,DEA_NYC.MME/zpopulation.pop as mme_normalized from DEA_NYC inner join zpopulation on DEA_NYC.BUY...
true
917caaf6d2bf6788aeb1652579cec0f870f67aca
SQL
ean-maloney/sports_revenue
/Database/db_struct.sql
UTF-8
2,118
3.1875
3
[]
no_license
-- Adapted from export from QuickDBD: https://www.quickdatabasediagrams.com/ -- Link to schema: https://app.quickdatabasediagrams.com/#/d/GAwvkn -- NOTE! If you have used non-SQL datatypes in your design, you will have to change these here. CREATE TABLE eada( "unitid" VARCHAR(6) PRIMARY KEY, "institution_nam...
true
7b2137f8b0e7ee29cfd9e4f5afc87509535d945a
SQL
TSchaeken/SQL_Homework
/database.sql
UTF-8
891
3.109375
3
[]
no_license
-- creates table DROP DATABASE IF EXISTS `bamazon`; CREATE database `bamazon`; USE `bamazon`; CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(100) NOT NULL, price INT(10) NOT NULL, stock_quantity INT(10), PRIMARY KEY (item_id) ); ...
true
e8e68fcb36a521babe8742fa713733284cd46bef
SQL
AlexanderGranhof/ramverk1-projekt
/sql/ddl.sql
UTF-8
2,123
4.125
4
[]
no_license
DROP TABLE IF EXISTS comment_votes; DROP TABLE IF EXISTS comments; DROP TABLE IF EXISTS post_votes; DROP TABLE IF EXISTS posts; DROP TABLE IF EXISTS users; CREATE TABLE users ( id INT AUTO_INCREMENT, username VARCHAR(191) UNIQUE NOT NULL, email VARCHAR(191) NOT NULL, created DATETIME DEFAULT CURRENT_TI...
true