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
ccd54b80b614665d9a536910511b85ab6b1cbdac
SQL
hymsly/RadioAnalyzer
/radioAnalyzerBackend/sql/init.sql
UTF-8
560
2.9375
3
[]
no_license
use radioanalyzer; create table audio( id int primary key AUTO_INCREMENT, name varchar(50) not null, location varchar(100) not null, estado int not null, duracion int, created_at datetime ); create table particion( id int primary key AUTO_INCREMENT, idaudio int not null, numeroparti...
true
3d4c00f89c4776b1552d2f9dc807e7042850d41f
SQL
bambidarra/FeedReader
/FeedReader/Models/DB.sql
ISO-8859-9
1,466
3.734375
4
[]
no_license
USE FeedReader; -- CLEANUP DROP TABLE UserFeedItem; DROP TABLE UserFeed; DROP TABLE FeedItem; DROP TABLE Feed; DROP TABLE [User]; -- TABLES CREATE TABLE [User] ( ID INT IDENTITY PRIMARY KEY, Email VARCHAR(130) NOT NULL UNIQUE, PasswordHash CHAR(40) NOT NULL, Registered DATETIME NOT NULL DEFAULT GETDATE() ); CREA...
true
392771c1b2b7ce805aff77900c5dd6b16dbe9aff
SQL
fraleyjoseph/samples
/dbmgmt/hockey/create-db.sql
UTF-8
349
3.0625
3
[]
no_license
\pset pager off \set ON_ERROR_STOP SET client_min_messages='warning'; CREATE USER fred UNENCRYPTED PASSWORD 'fred123' SUPERUSER; CREATE DATABASE hockey_db OWNER fred; \connect hockey_db fred localhost; CREATE SCHEMA nhl AUTHORIZATION fred; CREATE TABLE nhl.teams ( name text PRIMARY KEY, year_fou...
true
405fa89cd579d3728f0e37f7cf10de1afbf3e3b3
SQL
Ivashkin/av
/avanta26-7-17.sql
UTF-8
10,131
3.0625
3
[ "MIT" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.16) # Database: avanta # Generation Time: 2017-07-26 18:27:59 +0000 # ************************************************...
true
a65dee08dfd278fa89e66758b37725b583573169
SQL
MuWiCodingCrew/MuWi_Demo
/CreateDatabase.sql
UTF-8
13,397
3.546875
4
[]
no_license
DROP database MuWi; CREATE database MuWi; CREATE table MuWi.tUser (UserID int NOT NULL AUTO_INCREMENT, EMail varchar(255), Surname varchar(255), Prename varchar(255), isStudent binary, UNIQUE(UserID), PRIMARY KEY(UserID)); CREATE table MuWi.tBook (BookID int NOT NULL AUTO_INCREMENT, Title varchar(255) NOT NULL, UserID ...
true
73417bb7916769e33df7355cf580f38230c23976
SQL
milandashara/smp-vms-prototype-final
/conf/evolutions/default/1.sql
UTF-8
4,924
3.625
4
[]
no_license
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table access_right ( id bigint auto_increment not null, access_right varchar(255), constraint pk_access_right primary key (id)) ; create table camera (...
true
b9b09c8b3a0695284a389fb0b23e2eeaaa51510f
SQL
vitorcradi/radiflix
/assets/db/create-tables.sql
UTF-8
473
3.09375
3
[]
no_license
CREATE TABLE `movies` ( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100), genre_id INTEGER, genre VARCHAR(100), detail VARCHAR(255), watched INTEGER, to_watch BINARY ); CREATE TABLE `likes` ( id INTEGER NOT NULL AUTO_INCREMENT PRIMARY KEY, movie_id INTEGER, liked BINARY ); C...
true
fab5901fe45c3fe747969f0ec22a325d3914e384
SQL
cyruslhh/Personal-Website
/stats/stats_database.db.sql
UTF-8
5,875
2.859375
3
[]
no_license
BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "responses" ( "user_id" INTEGER NOT NULL, "learning_mode" INTEGER NOT NULL, "word" TEXT, "actual_definition" TEXT, "user_definition" TEXT ); CREATE TABLE IF NOT EXISTS "words" ( "id" INTEGER, "word" TEXT, "definition" TEXT, PRIMARY KEY("id") ); CREATE TABLE IF NOT ...
true
748dd7c59296e83ba882ab1b67ee901c0d3c3c4f
SQL
LaCreArthur/lebontroc
/db/testmysql.sql
UTF-8
1,144
3.0625
3
[ "MIT" ]
permissive
create table note ( ID INT not null, etu_ID INT not null, matiere varCHAR(50) not null, note NUMBER not null ); /*==============================================================*/ /* Table : ARCHIVE ...
true
c9f5e87419047bcc3ab4db07b61d9b7cb41287bf
SQL
muklasr/blog
/tokoku.sql
UTF-8
8,967
2.875
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.27, for Linux (x86_64) -- -- Host: localhost Database: tokoku -- ------------------------------------------------------ -- Server version 5.7.27-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
true
4d92a77be07235aab3901d51062e7f7c4431629c
SQL
radtek/abs3
/sql/mmfo/bars/Procedure/m_accp.sql
WINDOWS-1251
7,480
2.984375
3
[]
no_license
CREATE OR REPLACE PROCEDURE m_accp ( mod_ INT ,nd_ INT ,accz_ INT ,tip_ INT ) IS custtype_ INT; l_ob22_old accounts.ob22%TYPE; l_ob22_new accounts.ob22%TYPE; l_nbs accounts.nbs%TYPE; L_IN_ND NUMBER; --MPIVanova /* 10-11-2016 LUDA / 9510 : 'DEP','DEN' + ND_A...
true
1c32c802066909c0a4df05d2c33c4e686fb36db1
SQL
HieuVuMinh/My_SQL
/3. Thao tác với CSDL/Thao tac voi CSDL Quan ly ban hang.sql
UTF-8
1,967
4.53125
5
[]
no_license
use quanlybanhang; create table Customer( CustomerId int not null primary key, CustomerName varchar(20) not null, CustomerAge date null ); create table Orders( OrdersId int not null primary key, CustomerId int, OrdersDate date not null, OrdersTotalPrice float null, foreign key (CustomerId) ...
true
5d5c2b7203020cae7a3bc800220db807e5e29855
SQL
naghost/cine-programacion-miguel-francisco
/BBDD/proyecto.sql
UTF-8
9,570
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-06-2017 a las 23:05:27 -- Versión del servidor: 10.1.21-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_CL...
true
50d71fb9dba29273b19fa9656f1eacd49123a4e4
SQL
computerpunc/demo-website-with-play
/conf/evolutions/default/1.sql
UTF-8
2,159
3.375
3
[ "MIT" ]
permissive
-- The MIT License (MIT) -- Copyright (c) 2012 Ram Hardy & Elad Hemar -- -- 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 ri...
true
1e2525fa4e99e3620749c648fb51af2b122d1cc6
SQL
Freheims/SemanticMusic
/resources/database.sql
UTF-8
1,084
3.609375
4
[]
no_license
CREATE TABLE IF NOT EXISTS artist ( id char(22) NOT NULL, name varchar(60) NOT NULL, PRIMARY KEY(id) ); CREATE TABLE IF NOT EXISTS album ( id char(22) NOT NULL, name varchar(120) NOT NULL, type varchar(20), PRIMARY KEY(id) ); CREATE TABLE IF NOT EXISTS track ( id char(22) NOT N...
true
6edacfc437a2d659e85674360befb8737438fd07
SQL
oscar1992/lunchDiagrams
/DDL/foraneas/CLI_TTARJ.SQL
UTF-8
397
3.546875
4
[]
no_license
/* Create Primary Keys, Indexes, Uniques, Checks */ ALTER TABLE CLI_TTARJ ADD CONSTRAINT PK_CLI_TTAR PRIMARY KEY (TARJ_TARJ) ; CREATE INDEX IXFK_CLI_TTARJ_CLI_TPADR ON CLI_TTARJ (TARJ_PADR ASC) ; /* Create Foreign Key Constraints */ ALTER TABLE CLI_TTARJ ADD CONSTRAINT FK_CLI_TTARJ_CLI_TPADR FOREIGN KEY (TARJ_PAD...
true
0d518fdc31dead00fe41016320c3a6cc50005d83
SQL
sorianoribalda/gestion-pedidos
/db/querys.sql
UTF-8
1,234
3.703125
4
[]
no_license
-- 1 insertamos productos INSERT INTO productos VALUES (1, 'margarita',61.50), (2, 'caprichosa',31.50), (3, 'cuatro quesos',20.50), (4, 'puttanesca',51.50), (5, 'barbacoa',3.50); -- 2 comprobamos productos SELECT * FROM productos; -- 3 insertamos usuarios INSERT INTO usuarios VALUES (NULL,'Pepe','pepe@gmail.com'); SELE...
true
a421dc240ce902038b4a722cce5ffb763a1b27a8
SQL
CrossfireCurt/NestPHP
/support/2011_03_22-site.sql
UTF-8
1,274
3.734375
4
[]
no_license
CREATE SEQUENCE site_id_seq INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; ALTER TABLE site_id_seq OWNER TO postgres; CREATE TABLE site ( id bigint NOT NULL DEFAULT nextval('site_id_seq'::regclass), "name" character varying, base_url character varying NOT NULL, "desc" te...
true
17ed1bbf3839d7eb0cbc7d2d024438a17fbc944f
SQL
katshamai/sql-challenge
/EmployeeSQL/Queries.sql
UTF-8
6,074
4.53125
5
[]
no_license
-- 1. List the following details of each employee: employee number, last name, first name, sex, and salary -- Join Employees with Salaries SELECT public."Employees".emp_no, last_name, first_name, sex FROM public."Employees" INNER JOIN public."Salaries" ON public."Employees".emp_no=public."Salaries".emp_no; -...
true
e8c4f0a1e361188b967ff60ab88987081288b937
SQL
JohnDoeo/interview
/target/classes/com/johndoeo/parseImg/ttt.sql
UTF-8
560
4.28125
4
[]
no_license
SELECT  t3.id, t3.country, t3.score    FROM  ( SELECT  t1.*, ( SELECT  count( * )   FROM  tb_score t2  WHERE  t1.score <= t2.score  AND  t1.country = t2.country )   AS  rownum                 FROM  tb_score t1 )   t3    WHERE  rownum  <= 3  ORDER BY  country, score  DESC;   select a.id,a.country,a.name,a.score from t...
true
b874ac12e6d3a0cd726d67a1968f89d9bae5f8a8
SQL
kranthi003/Lib_Pers
/sql/51645-20_create_CORRECTION_STATUS_TYPE.sql
UTF-8
2,707
3.203125
3
[]
no_license
-- SQLRV: -- Release: Isolated Releases Q1 2013 -- Feature: 51645-20 -- Database Host: TXN -- Object(s): CORRECTION_STATUS_TYPE -- Author(s): Salim Faneeband -- eMail: sfaneeband@ebay.com -- Contact Num: +918884493457 -- Manager: Rahul Dutta -- Manager's Email: radutta@paypal.com -- Description: A ...
true
38c5b22a7f7bb18b306436e78d306992f2a5a069
SQL
luizfelipers19/PostgreSQL-studies
/Fundamentals of SQL/subqueries.sql
UTF-8
4,955
4.40625
4
[]
no_license
-- for this repo, use the database and tables populated in https://github.com/luizfelipers19/PostgreSQL-studies/blob/main/Fundamentals%20of%20SQL/populatetables.sql -- MOVIE_DATA -- SUBQUERIES -- subqueries are nested queries, where the inner query is executed first and the results of the inner query are passed to...
true
b912e157affe82e76f727fb002cd28f57bd56f7c
SQL
quanqiang-li/knowledge
/knowledge/src/main/resources/db.sql
UTF-8
2,412
2.765625
3
[]
no_license
Source Server : 172.16.16.36 Source Server Version : 50627 Source Host : 172.16.16.36:3306 Source Database : ixinnuo_financial_v2 Target Server Type : MYSQL Target Server Version : 50627 File Encoding : 65001 Date: 2017-09-11 18:31:50 */ SET FOREIGN_KEY_CHECKS=0; -...
true
04fe7a5abd026bc6e77b421565474d264e6a4a7b
SQL
Marius961/tour_API
/src/main/resources/db/migration/V1__Init_DB.sql
UTF-8
2,022
3.609375
4
[]
no_license
create table hibernate_sequence ( next_val bigint ) engine = InnoDB; insert into hibernate_sequence values (1); insert into hibernate_sequence values (1); insert into hibernate_sequence values (1); insert into hibernate_sequence values (1); create table hotel ( id bigint not null, country var...
true
0e05d739534937044af5817a6e25ea517add91c6
SQL
Sligowebworks/datacruncherdownload
/DataCruncherSQL/EnrollmentGradesDataCrunch.sql
UTF-8
6,909
3.390625
3
[]
no_license
select --gradecode, racecode, sexcode, year, 'agency_key' = AgencyKey, CESA, 'district_number' = [District Number],'school_number' = [School Number], 'agency_type' = left(right(fullkey,6),2), --'school_type' = (case when right(fullkey,1) <> 'X' then --(case schooltype when 3 then 'High' when 4 then 'Mid/Jr ...
true
08c02beac0d5b84608d37872146fb8cefcabedb1
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day21/select1031.sql
UTF-8
191
2.78125
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-20T10:31:00Z' AND timestamp<'2017-11-21T10:31:00Z' AND SENSOR_ID='9de3623e_8200_4328_a6cf_7336322ecde2'
true
5b8c3e708744431500148ba79e2c774c5bba3cd4
SQL
gunbladeiv/MVC-3
/Database PLDB SQL/Pest_MY.sql
UTF-8
11,730
3
3
[]
no_license
USE [ProLine] UPDATE SGM SET UGC='' WHERE GID=73 UPDATE SGM SET Abbrev='Svc_JobListPest' WHERE SID=40 AND [Desc]='Daily Job Listing' INSERT INTO SGM(GID,SID,UGC,[Desc],Abbrev,Val,SCC) SELECT MAX(GID)+1,40,NULL,'Job Listing (Compact)','Svc_JobListPest_c',86,'SJ' FROM SGM WHERE SID=40 AND GID<41000 DELETE FROM SGM WHE...
true
fe92979ad430ef3ebd90a2ca64b86814928e9147
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day09/select0125.sql
UTF-8
412
3.5625
4
[]
no_license
SELECT obs.sensor_id, avg(counts) FROM (SELECT sensor_id, date_trunc('day', timestamp), count(*) as counts FROM WiFiAPObservation WHERE timestamp>'2017-11-08T01:25:00Z' AND timestamp<'2017-11-09T01:25:00Z' AND SENSOR_ID = ANY(array['3141_clwa_1427','3141_clwa_1500','3144_clwa_4209','3143_clwa_3099','3143_clwa_...
true
96b3ecb5667f812393487e7fd652e6bbb3297e8e
SQL
kgtdbx/oracle-cd-demo
/app/tables/books.sql
UTF-8
884
3.15625
3
[]
no_license
begin for i in (select * from dual where not exists (select * from all_tables where owner = 'LIBRARY' and table_name = 'BOOKS')) loop execute immediate ' create table library.books ( book_seq_nbr number generated by default on null as identity (start with 1 incremen...
true
1c54e87a88230c25c80d9845aad8b15e7f9e8ae6
SQL
karhodes/Full_Sail
/201506_DBS/Day4/example1506-day4lab.sql
UTF-8
5,254
4.59375
5
[]
no_license
-- Question 1: -- Select the population (count) of users, grouped by state. -- Only use the ‘home’ address to determine the user’s home state. -- If a user has 2 home addresses, count both of them. select state, count(*) from users join userAddress on userAddress.userId = users.userId where userAddressTypeId = 1 gro...
true
4d97e4cef81273a857cfc0817806632df03a99c3
SQL
rizkyki32/absen
/sql/pangansari_absen.sql
UTF-8
6,943
3.25
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 05 Apr 2021 pada 11.18 -- Versi server: 10.4.11-MariaDB -- Versi PHP: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
bd29b6eb997cea26c45493bebb2f686242b026ee
SQL
nk1877/PUI2015_nkishore
/Citibile/PUI2015_htv210_hw7_2.sql
UTF-8
600
3.5
4
[]
no_license
SELECT start_station_id, start_station_name as start_station_location, CDB_TransformToWebmercator(CDB_LatLng( start_station_latitude, start_station_longitude) ) as the_geom_webmercator, COUNT(tripduration) as trip_count FROM nk1877.citibike WHERE ST_DWithin( CDB_LatLng( end_station_latitude, end_station_l...
true
5b6248b9d06318460a637f2c0312fd986528cfa8
SQL
prasadkoganti/v1arss
/4.Database Build/0.CodeUnits/SQLWorkSheet.sql
UTF-8
2,705
3.421875
3
[]
no_license
select * from all_users where username like 'VB%'; select * from all_tables where owner='ADMIN';--VB_VB_BZUHYLUZKAZ select * from VB_VB_ISTVPKFGK4J.INVOICEHEADER; select * from VB_VB_ISTVPKFGK4J.INVOICELINE; select * from VB_VB_ISTVPKFGK4J.TAXCODE; select c.code from VB_VB_ISTVPKFGK4J.currency c where c.id = h.cur...
true
10c6263bfe00c674e554470fe6ee1ea15f114910
SQL
seguracarlos/cetec
/cetecreloadedapp/docs/1B_enlasa/7B_db_script_populate_enlasa.sql
UTF-8
1,335
3
3
[]
no_license
-- -- Volcado de datos para la tabla `days` -- INSERT INTO `days` (`id_days`, `days_name`) VALUES (0, 'Domingo'), (1, 'Lunes'), (2, 'Martes'), (3, 'Miércoles'), (4, 'Jueves'), (5, 'Viernes'), (6, 'Sábado'); -- -- Volcado de datos para la tabla `keys` -- INSERT INTO `keys` (`id_key`, `k_name`, `k_amount`, `k_descript...
true
e8491522585aca9f0ff424787282b695d8ce00e1
SQL
alldatacenter/alldata
/lake/amoro/ams/server/src/main/resources/mysql/upgrade-0.3.0-to-0.3.1.sql
UTF-8
2,401
3.546875
4
[ "Apache-2.0", "BSD-3-Clause", "MIT" ]
permissive
CREATE TABLE `api_tokens` ( `id` int(11) NOT NULL AUTO_INCREMENT, `apikey` varchar(256) NOT NULL COMMENT 'openapi client public key', `secret` varchar(256) NOT NULL COMMENT 'The key used by the client to generate the request signature', `apply_time` datetime DEFAULT NULL COMMENT 'apply t...
true
433bcaab1ec4fc7e18419aaf293d05d05f5cccb6
SQL
edisonv19/WCFService
/sql/DDL/1_SCHEMA_20170627_1828_CREATE_REL_Persona.sql
UTF-8
936
3.75
4
[]
no_license
--========================================================= -- Author: Edison Vidal -- Date: 27/05/2017 -- Description: Creación de tabla REL_Persona --========================================================= IF NOT EXISTS (SELECT 1 FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_NAME = N'REL_Persona') BEGIN CREATE ...
true
9eabca79bf4296dbf5ec763d3db89cfb41bf26ce
SQL
torandi/dodtool
/migrations/20120805122847_initial_migration.sql
UTF-8
2,152
3.578125
4
[ "MIT", "Beerware" ]
permissive
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; -- -------------------------------------------------------- -- -- Table structure for tab...
true
262b9fa170636722f38623effdfcd2ab9e919ac1
SQL
NortonLight/gik2f8
/SQLite.sql
UTF-8
1,086
3.5
4
[]
no_license
-- SQLite DROP TABLE IF EXISTS users; CREATE TABLE IF NOT EXISTS users ( email VARCHAR(32) UNIQUE NOT NULL, firstname VARCHAR(32) NOT NULL, lastname VARCHAR(32) NOT NULL, password VARCHAR(128) NOT NULL, accounttype INTEGER(3) NOT NULL, block INTEGER(2), id INTEGER PRIMARY KEY AUTOINCREMENT...
true
9502c9f89ba377d72dadfbb4c35db392873d14af
SQL
eulertech/backup
/EAA_Dataloader/src/Applications/SampleData/CreateSampleResultsTablesTemplate.sql
UTF-8
1,057
3.59375
4
[]
no_license
--Script to create SampleResults Tables DROP TABLE IF EXISTS {schemaName}.SampleResults; DROP TABLE IF EXISTS {schemaName}.{tableName}_attributes; DROP TABLE IF EXISTS {schemaName}.{tableName}_data; CREATE TABLE {schemaName}.SampleResults ( valuationdate character varying(10), GLM_value double prec...
true
9183d3ef71b8366714533c69eb611982311fbb10
SQL
hennySinaga/gideon
/db_mysql/db_mysql.sql
UTF-8
10,551
3.265625
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.5.27 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.3.0.4984 -- -------------------------------------------------------- /*...
true
2be7a9cdf71f83865809c48e10ebfcccdf54b781
SQL
snehal1900/sn
/form1.sql
UTF-8
1,655
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Aug 15, 2017 at 05:35 PM -- Server version: 5.5.39 -- PHP Version: 5.4.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
bf5c47177a3ff0774a13c115232f8fc717c960b0
SQL
JesusZelayaG/prueba
/db_files/data_inventory.sql
UTF-8
1,434
2.90625
3
[]
no_license
use inventory; /*Insert Users*/ insert into users( first_name, second_name, last_name, second_last_name, user_email, user_password, user_type ) values( 'Jesus', 'Ernesto', 'Zelaya', 'Garcia', 'jesus.zelayag@gmail.com', 'jezg123456', 'Administrador' ); insert into users( ...
true
9fbe67a0823f01ff7f5ac066ba232c212db60f72
SQL
Mendiolac/BootCampPortfolio
/Sql/homework10.sql
UTF-8
4,728
4.5
4
[]
no_license
USE sakila; SELECT first_name, last_name FROM actor; ALTER TABLE actor ADD column ActorName VARCHAR(75); SELECT CONCAT(first_name, ', ' , last_name) AS ActorName FROM actor; SELECT actor_id, first_name, last_name FROM actor WHERE first_name = 'Joe'; SELECT actor_id, first_name, last_name FROM actor WHERE last_...
true
cd6334b0a5f11d949cc6a329dd447d34f57c65d9
SQL
lozanovictor/bd_2019
/selects_2019.sql
UTF-8
755
3.171875
3
[]
no_license
SELECT * FROM PACIENTE; SELECT id_paciente, nome, CPF FROM PACIENTE; SELECT nome, cargo FROM PROFISSIONAL; SELECT * FROM PROFISSIONAL, SECRETARIA WHERE PROFISSIONAL.id_profissional = SECRETARIA.id_profissional; SELECT PACIENTE.nome, PROFISSIONAL.nome, PROFISSIONAL.id_profissional, SECRETARIA.id_profissional FROM ...
true
e5fcd730c85805d03107b93be259046529331a23
SQL
MayneKeen/db-labs
/lab3/individual_task/q2.sql
UTF-8
1,608
4.3125
4
[]
no_license
--нужна для подсчета количества уникальных посещенных магазинов по каждому покупателю as quantity WITH shop_count(bid, quantity) AS (SELECT "order".buyer_id, COUNT(DISTINCT "order".shop_id) FROM "order" GROUP BY "order".buyer_id ORDER BY "order".buyer_id), --промежуточная конструкция, служит для вычисления суммарной с...
true
e7b8ff79cbceb8c75a19c86361a8564c069d6d00
SQL
krzysztofkogut/Database_lab
/lab04/zad-4-2.sql
UTF-8
833
3.53125
4
[]
no_license
/* baza danych: cukiernia Napisz zapytanie w języku SQL wyświetlające informacje na temat zamówień (data realizacji, idzamowienia), które: */ /* zostały złożone przez klienta, który ma na imię Antoni, */ select nazwa, datarealizacji, idzamowienia from cukiernia.klienci natural join cukiernia.zamowienia where nazwa li...
true
2cb96e5b69cd680b0c94ae7684a3fe32ce4a97fe
SQL
PPNeri/Residencia
/Banco de Dados/Exercicios/EX02/Script-4.sql
UTF-8
3,870
4.28125
4
[]
no_license
select nome from artista where nome like 'a%'; select * from artista; select nome,id,seguidores from artista where nome like '%a'; select nome from musica where nome like 'a%' ; --Criar views create view pesquisa_dinamica as select nome from musica where nome like 'a%'; -- update artista set nome='Larissa' where nom...
true
643fb64f95240d97837d89d5b3d8f3139c75a58e
SQL
richardgutkowski/EDMC-CDMC-v1-14-Control_Mapping
/Ret_01_Init.sql
UTF-8
3,226
3.234375
3
[ "Apache-2.0" ]
permissive
------- -- Ret_01_Init.sql ------- use role useradmin; create role RET_DBA; grant role RET_DBA to user <YOUR_USERNAME>; -- you need this role to continue set up create role RET_BIZ_OWNER; grant role RET_BIZ_OWNER to user <YOUR_USERNAME>; -- you need this role to continue set up create role RET_BIZ_USER; use role a...
true
2ebc1be15818fda7d732a37130dc9cb85c922434
SQL
1214568110/ddf-common
/ddf-common-mq/src/main/resources/init.sql
UTF-8
2,766
3.3125
3
[]
no_license
CREATE TABLE `log_mq_listener` ( `id` bigint(20) NOT NULL, `message_id` varchar(32) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NOT NULL COMMENT '消息的唯一标识符', `current_thread_name` varchar(64) CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci NULL DEFAULT NULL COMMENT '处理线程', `creator` varchar(32) CHARACTER ...
true
e7e6a6a2262ff87ad810bace18eaa935c0fc7211
SQL
rhassuncao/TopicosEmergentesEmBancosDeDados
/04/Q1.sql
ISO-8859-1
1,124
3.65625
4
[]
no_license
-- PASSO (1) -- (1.1) Cria Relao Rel CREATE TABLE Rel ( att1 INTEGER NOT NULL, -- 4 bytes preenchidos 8 bytes fixo att2 INTEGER NOT NULL, -- 4 bytes preenchidos att3 INTEGER null, -- 4 bytes 20% att4 VARCHAR(300) NOT NULL -- 0 - 300 bytes variaveis ) with (fillfactor = 95); -- PASSO (...
true
880c4e9d278b207e419091e0aef86f2774f8b543
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day15/select1056.sql
UTF-8
266
2.859375
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['5026','2032','5091','4019','1433','3100_2','4211','5011','5100_3','6024'])
true
752ec0100b2229560fa09d34051b66e9e84b476d
SQL
samuelbearman/cmsc-495
/src/database/newschema.db.sql
UTF-8
2,333
3.53125
4
[]
no_license
BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS "users" ( "userID" integer, "firstName" varchar NOT NULL, "lastName" varchar NOT NULL, "emailAddress" varchar NOT NULL, "password" varchar NOT NULL, "userType" varchar, "homeAddress" varchar, "city" varchar, "state" varchar, "zipCode" number, PRIMARY KEY("userID"...
true
44e2844d2106a5cecec72a3ec3955f65d8c20e84
SQL
Filizbrln/IH_RH_DA_FT_AUG_2021
/Class Materials/SQL_MySQL/SQL_Code_Along_Relational_Databases_Joins_Structure.sql
UTF-8
1,172
3.9375
4
[]
no_license
/* DATABASE & TABLES CREATION */ CREATE DATABASE IF NOT EXISTS dummy_tables; USE dummy_tables; DROP TABLE IF EXISTS products; CREATE TABLE IF NOT EXISTS products ( id INT PRIMARY KEY, prod_name VARCHAR(15), price FLOAT(6), categ_id INT ); INSERT INTO `products` VALUES (635, 'Dell XPS', 1500, 1), (9...
true
a370a8d89c2e1897d1e7da8e1760f1c7dbb4ae94
SQL
r0bis/acc_caseloads
/sql/qmak_Into_PatientPDTWLPairing.sql
UTF-8
658
3
3
[]
no_license
SELECT DISTINCT main.ClientID, main.ClientName, main.AllocatedHCPName INTO tbl_PatientPDTWLPairing FROM tbl_Clinician INNER JOIN main ON tbl_Clinician.AllocatedHCPName = main.AllocatedHCPName WHERE tbl_Clinician.isTWLPD = TRUE ; /* Recreates Patient and PD Treatment-Waiting List ...
true
32a4419f73d7ef208b226527ae7cc53884620d8f
SQL
mjombanorman/lifestyle
/db/lifestyledb1.sql
UTF-8
7,913
3.265625
3
[ "BSD-3-Clause" ]
permissive
/* SQLyog Professional v12.09 (64 bit) MySQL - 10.1.24-MariaDB : Database - lifestyle ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOR...
true
4da6fa59959cf85e640eb4a6a9e15a7dc23b294e
SQL
jadson-ti/prod_kls
/Tables/MDL/mdl_role_allow_override.sql
UTF-8
1,474
2.828125
3
[]
no_license
-- -------------------------------------------------------- -- Servidor: cm-kls.cluster-cu0eljf5y2ht.us-east-1.rds.amazonaws.com -- Versão do servidor: 5.6.10-log - MySQL Community Server (GPL) -- OS do Servidor: Linux -- HeidiSQL Versão: 10.1.0.5484 -- ---------...
true
f88cf663a508d6cecaeccf1752a5924efb246a7c
SQL
juxuny/data-utils
/cmd/scripts/init.sql
UTF-8
1,169
3.421875
3
[]
no_license
create schema split_video collate utf8mb4_general_ci charset 'utf8mb4'; CREATE TABLE eng_movie ( id int(11) auto_increment primary key, name varchar(100) not null, parent_id int(11) not null default 0, create_time timestamp not null default current_timestamp, index(name), index(parent_id), i...
true
b03c7bf38402886e86ddf85758cb71f2b091cd83
SQL
ggpgutierrez/Sistema_De_Gerenciamento_De_Deposito
/deposito_bd.sql
UTF-8
3,865
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: 02-Jan-2020 às 17:23 -- Versão do servidor: 5.7.26 -- versão do PHP: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
2798f56497d707d83cbe4597b1c1ded77e27930b
SQL
Rome1317/Programacion-Web
/MySql/Procedures/proc_guardadas.sql
UTF-8
770
3.265625
3
[]
no_license
DROP procedure IF EXISTS `prc_guardadas`; DELIMITER $$ USE `ct_db`$$ create procedure `prc_guardadas`( in _id_guardadas int, in _etiqueta varchar(50), in _fk_usuario varchar(50), in _fk_noticia int, in accion varchar(20) ) begin case accion when 'nuevo' then insert into Tbl_Guardadas (etiqueta, fk_usuari...
true
8c8992dfab2cd8a91f43edaaeada4d3bc441112d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day18/select0242.sql
UTF-8
266
2.84375
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['2074','4038','2061','3204','3100_7','3065','4059','4208','3100_2','5004'])
true
ba27ea5823ee644c218b21c9a71a6d982784458f
SQL
mambax7/xcl
/xoops_trust_path/modules/xelfinder/sql/mysql.sql
UTF-8
1,714
2.9375
3
[ "BSD-2-Clause", "GPL-2.0-only", "BSD-3-Clause", "GPL-1.0-or-later" ]
permissive
CREATE TABLE `file` ( `file_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `parent_id` int(10) unsigned NOT NULL DEFAULT '0', `name` varchar(191) NOT NULL DEFAULT '', `size` bigint(20) unsigned NOT NULL DEFAULT '0', `ctime` int(10) unsigned NOT NULL DEFAULT '0', `mtime` int(10) unsigned NOT NULL DEFAULT '0',...
true
20eca3ed8238a1c5c474c6e24be1f32e64540a5d
SQL
hronograf/Messenger
/backend/src/test/resources/sql/message/initMessageTests.sql
UTF-8
2,465
2.734375
3
[]
no_license
insert into users (id, username, password, full_name, bio, role) values ('9f6a075e-a4c5-44da-b7c5-5f22bb64b352', 'user', '$2y$12$ixe4Lh4uQVncJDzPJWckfeyTXPMkuVZm55miqLdnn/TjH0FoF8HOq', 'Full Name', 'My info', 'USER'), ('dacee9b4-6789-4f03-9520-dc97b0b9470b', 'user2', '$2y$12$ixe4Lh4uQVncJDzPJWckfeyTXPMku...
true
d62887ec7606d8eeef52005b412cc1ee869f98de
SQL
micheleandreoli12/epjp
/scripts/s48.sql
UTF-8
245
3.5
4
[]
no_license
select department_id, trunc(avg(salary)) from employees group by department_id order by 1; SELECT DISTINCT department_id FROM EMPLOYEES ORDER BY 1; SELECT department_id, MAX(salary) FROM EMPLOYEES GROUP BY DEPARTMENT_ID ORDER BY 1;
true
995fe938a97e7d443128434d4b2f2b6e30f8a2bd
SQL
kingces/SQLscript_SHH
/NOTICE ADMITTED PATIENT.sql
UTF-8
7,334
2.859375
3
[]
no_license
SELECT f.registrydate AS RegistryDate, f.registryno as RegistryNo, a.FK_psPatRegisters as PatientID, g.FK_psRooms as Room, i.Department as NurseStation, d.fullname as PatientName, ---TOTAL HB (SELECT ISNULL(Sum(renprice * renqty),0) From psPatitem HMO W...
true
9f78fe540a900784d9bad08c931a96e440791aaa
SQL
tymoria172/MYSQL
/exercicios21-9/db_pizzaria_legal.sql
UTF-8
2,641
3.609375
4
[]
no_license
create database db_pizzaria_legal; use db_pizzaria_legal; create table tb_categoria ( id bigint auto_increment , tamanho varchar(20) not null, tipo varchar(20) not null, primary key(id) ); insert into tb_categoria (tamanho, tipo) values ("grande","doce"); insert into tb_categori...
true
2af62b984bb588c00d583fa0b3813db5c42588ad
SQL
eh8491/data-models
/mobile/v1/redshift/sql-runner/sql/standard/02-screen-views/01-main/04-screen-views.sql
UTF-8
2,724
3.3125
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
/* Copyright 2021 Snowplow Analytics Ltd. All rights reserved. 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 a...
true
395149b3044d3dfea2781caeed229725f0d264f6
SQL
djw1149/cougaar-delta-blackjack
/deltaopen/install/sql/qual_rule_tables.sql
UTF-8
2,626
3.5625
4
[]
no_license
CREATE SEQUENCE RULE_ID_SEQ INCREMENT BY 1 START WITH 1000; CREATE SEQUENCE RULE_TEST_ID_SEQ INCREMENT BY 1 START WITH 1000; -- -- TABLE: QUAL_RULE -- CREATE TABLE TEMP_QUAL_RULE( RULE_ID NUMBER(10, 0) NOT NULL, RULE_NAME VARCHAR2(60), ACTION VARCHAR2(30), T...
true
c2b7188ee3ea8272e5167c9193cc47a1b74da78e
SQL
boltonmark/dev
/SQL/BMI.BI/BMI_BI_DW.tests/etl-ModuleTests/test CheckForDuplicateQlikViewTransactions excludes inactive invoices.sql
UTF-8
882
2.53125
3
[]
no_license
create procedure [etl-ModuleTests].[test CheckForDuplicateQlikViewTransactions excludes inactive invoices] as begin exec tSQLt.FakeTable @TableName = N'qvstg.Invoice' ; exec tSQLt.FakeTable @TableName = N'qvstg.OrderBacklog' ; exec tSQLt.FakeTable @TableName = N'qvstg.OrderShippedNotInvoiced' ; insert qvstg.Invoi...
true
75302f3f055211b7e4ffcdc816d770c43e170b66
SQL
vaishnavi65/FSD
/DB Scripts Used/Table Update Script.sql
UTF-8
1,455
3.75
4
[]
no_license
/*project table*/ insert into project values(1, 'Project1',STR_TO_DATE('15-06-2019', '%d-%m-%Y'),STR_TO_DATE('24-06-2019', '%d-%m-%Y'),5,'Completed'); insert into project values(2, 'Project2',STR_TO_DATE('15-06-2019', '%d-%m-%Y'),STR_TO_DATE('24-06-2019', '%d-%m-%Y'),5,'In Progress'); insert into project values(3, 'Pro...
true
de922ccbb219ac13e543473309e217cca83bc0af
SQL
starcling/wiki
/resources/account-db/stored-procedures/get_mnemonic.sql
UTF-8
176
2.796875
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`db_service`@`localhost` PROCEDURE `get_mnemonic`( IN id VARCHAR(255) ) BEGIN SELECT mnemonic FROM mnemonics WHERE id = id; END $$ DELIMITER ;
true
2ebc4a7860f4f6b010b3963f36e5ea72b237a195
SQL
f-z-d/FutureGadgetLabs
/src/main/resources/db/migration/V1.1__Creating_Lot_Table.sql
UTF-8
196
2.71875
3
[ "MIT" ]
permissive
CREATE TABLE LOT ( Lot_ID INT, Pricing_Scheme_Number INT NOT NULL, Lot_Name VARCHAR(255), Lot_Address VARCHAR(255), Lot_Capacity INT NOT NULL, CONSTRAINT PK_LOT PRIMARY KEY (Lot_ID) );
true
62e1599f171955ebd2245dc5125fb6ed40c09c6a
SQL
Tshamp7/App_Academy_Classwork
/AA_questions_sqlite3_exercise/import_db.sql
UTF-8
2,506
4.03125
4
[]
no_license
DROP TABLE IF EXISTS question_likes; DROP TABLE IF EXISTS replies; DROP TABLE IF EXISTS questions_follows; DROP TABLE IF EXISTS questions; DROP TABLE IF EXISTS users; PRAGMA foreign_keys = ON; CREATE TABLE users ( id INTEGER PRIMARY KEY, fname VARCHAR(20) NOT NULL, lname VARCHAR(40) NOT NULL ); INSERT...
true
b40246fc87f273bfceb2e07dd36ddaa39e2cee7b
SQL
ProfDema/uam
/pam/examples/anon_data/group_0069/q4.sql
UTF-8
281
3
3
[]
no_license
truncate query4; INSERT INTO Query4 (SELECT t1.pid, p.pname, (t1.totalsold * p.cost) AS totalcost FROM (SELECT pid, SUM(quantity) AS totalsold FROM orders WHERE status = 'S' GROUP BY pid) AS t1, product AS p WHERE t1.pid = p.pid ORDER BY totalcost ASC); select * from query4;
true
e553b11f0390ea9fcae6a6e48400d80df6575972
SQL
razanHamzeh/Test2
/TABLES/MD_DERIVATIVES.sql
UTF-8
1,019
2.734375
3
[]
no_license
-------------------------------------------------------- -- Constraints for Table MD_DERIVATIVES -------------------------------------------------------- ALTER TABLE "HISRHAMZEH"."MD_DERIVATIVES" ADD CONSTRAINT "MIGRDREIVATIVES_PK" PRIMARY KEY ("ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATI...
true
2287112cdaa365115d0885d9bbef0e9db08ff9ee
SQL
juin/e-vent-br
/utilidades/dados/1.8/e-Vent1.6 - físico-create.sql
ISO-8859-1
5,596
3.515625
4
[]
no_license
-- ========================= -- Banco de Dados e-event-br (Create) -- ========================= DROP DATABASE IF EXISTS e_event_br; CREATE DATABASE e_event_br; USE e_event_br; CREATE TABLE Configuracao ( data_evento_visivel DATE NOT NULL ); CREATE TABLE Cidade ( cod_cidade SMALLINT UNSIGNED AUTO_INCRE...
true
4e51192e2ee5a7065135976502670d80f5248612
SQL
AndrewZapotochnyi/BootcampX
/4_queries/avg_request_duration.sql
UTF-8
119
2.671875
3
[]
no_license
SELECT AVG(assistance_requests.completed_at - assistance_requests.created_at) AS duration_avg FROM assistance_requests;
true
b1b4233eeed80e86992f68dcd5f5a33f4fc821e4
SQL
Connor406/file-manager
/prisma/migrations/20211008195505_cascade_file_delete/migration.sql
UTF-8
265
3.03125
3
[]
no_license
-- DropForeignKey ALTER TABLE "file_versions" DROP CONSTRAINT "file_versions_fileId_fkey"; -- AddForeignKey ALTER TABLE "file_versions" ADD CONSTRAINT "file_versions_fileId_fkey" FOREIGN KEY ("fileId") REFERENCES "files"("id") ON DELETE CASCADE ON UPDATE CASCADE;
true
3699da6192b9b0e4988c0800b03e973e3375441b
SQL
artcom1/test
/#DB/struct/constraint.sql
UTF-8
49,343
2.578125
3
[]
no_license
ALTER TABLE ONLY tb_ecod ADD CONSTRAINT ecod_index1 UNIQUE (ecod_symbol); -- -- ALTER TABLE ONLY kh_deferredkh ADD CONSTRAINT kh_deferredkh_pkey PRIMARY KEY (dkh_id); -- -- ALTER TABLE ONLY kh_dziennik ADD CONSTRAINT kh_dziennik_index_u1 UNIQUE (dz_kod); -- -- ALTER TABLE ONLY kh_dziennik ADD C...
true
6495396dfb63bd2209deb5239b7638881f9b3de2
SQL
E1eventh/Oracle-PL-SQL
/CREATE.sql
UTF-8
2,133
3.265625
3
[]
no_license
DROP TABLE SAL; DROP TABLE CUST; DROP TABLE ORD; create table SAL (SNUM number(4), SNAME varchar2(10) NOT NULL, CITY varchar2(10) NOT NULL, COMM number(7,2) NOT NULL); create table CUST (CNUM number(4), CNAME varchar2(10) NOT NULL, CITY varchar2(10) NOT NULL, RATING number(3) NOT NULL, ...
true
81d512af90ccf4afd4b2f71c58a53a078c80e0eb
SQL
radtek/abs3
/sql/mmfo/bars/Function/np_bdate.sql
WINDOWS-1251
1,340
2.765625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/function/np_bdate.sql =========*** Run *** = PROMPT ===================================================================================== CREATE OR REPLACE FUNCTION BA...
true
20a9816c19840e898a9cc04d7e79a9fb6fa4a4aa
SQL
snailsmail/snailsmail
/restaurant/tables.sql
GB18030
17,770
3.703125
4
[]
no_license
create database mydb; #--Ա create table emp( empno varchar(10) primary key, jobno varchar(10) not null, ename varchar(20) not null, sex char(10), age int, pwd varchar(10) default '666666' not null, sal float(10,2), hiredate date, tel varchar(11), email varchar(20), address varchar(4...
true
62224930422c6a41b502c5dd3fc2ddc280670e56
SQL
Uturi/oracle
/uturi0304.sql
UHC
5,685
4.5
4
[]
no_license
--μȣ 50̰ų 90 --޿ 5000̻ --,̸,޿,μȣ --union ϰ , orѰŶ select employee_id, first_name, salary, department_id from employees where department_id in (50, 90) union select employee_id, first_name, salary, department_id from employees where salary >=10000; --union all ϰ , ߺ͵ select employee_id, first_name, salary, depart...
true
644f44d3eb8bd017b167e9d1831c6a8458a067a9
SQL
htlim/timescaledb
/test/sql/create_table.sql
UTF-8
469
3.375
3
[ "Apache-2.0", "LicenseRef-scancode-free-unknown" ]
permissive
-- Test that we can verify constraints on regular tables CREATE TABLE test_hyper_pk(time TIMESTAMPTZ PRIMARY KEY, temp FLOAT, device INT); CREATE TABLE test_pk(device INT PRIMARY KEY); CREATE TABLE test_like(LIKE test_pk); SELECT create_hypertable('test_hyper_pk', 'time'); \set ON_ERROR_STOP 0 -- Foreign key constrai...
true
e2c11f933f5f04812583f8dcd79fac009b950601
SQL
kicaj29/sql
/Oracle/Docs/Oracle 9i. Programowanie w jezyku PL/SQL - przyklady/rozdz11/Mutujace.sql
WINDOWS-1250
2,500
3.625
4
[]
no_license
REM Mutujace.sql REM Rozdzia 11., Scott Urman - Oracle9i Programowanie w jzyku PL/SQL REM Ten skrypt pokazuje w jaki sposb unikn bdu tabeli mutujcej. CREATE OR REPLACE PACKAGE DaneStudenta AS TYPE t_Specjalnosci IS TABLE OF studenci.specjalnosc%TYPE INDEX BY BINARY_INTEGER; TYPE t_ID IS TABLE OF studenci.ID%TY...
true
a4c87aec72a657978c0a3505109b0598f3472290
SQL
mochiute/fast-parking-front
/sql/sqlFastParking.sql
UTF-8
4,300
3.453125
3
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTI...
true
b947653f32fa50d88ff1ef67cadc8e7222e39bfe
SQL
jbballesteros/SQL_Zeuss
/2018/12/Referencias_Cambio_SubeCosto.sql
UTF-8
467
3.421875
3
[]
no_license
SELECT * FROM Precios_SubeCost SELECT R.codigo,R.descripcion,RS.valor,RP.VALOR,RS.id_referencia FROM referencias R INNER JOIN referencias_SubeBajaCosto RS ON (R.id=RS.id_referencia) INNER JOIN Precios_SubeCost RP ON (R.codigo=RP.Codigo) WHERE R.clase=1 UPDATE referencias_SubeBajaCosto SET valor=RP.VALOR FROM refer...
true
6df853012d45086fac7a3e28dbd3853b5c2d84f7
SQL
worgelabolg/notepad
/oracle/研究实验/Expert_Oracle test_data/book/ch11/demo13.sql
UTF-8
520
3.203125
3
[]
no_license
create table t as select decode(mod(rownum,2), 0, 'M', 'F' ) gender, all_objects.* from all_objects / create index t_idx on t(gender,object_id) / begin dbms_stats.gather_table_stats ( user, 'T', cascade=>true ); end; / set autotrace traceonly explain select * from t t1 where object_id = 42; update t ...
true
a8ffc5cfe39d2683689c55b11e7db4c81fbaace5
SQL
UAMS-DBMI/PosdaTools
/posda/posdatools/queries/sql/FailedFilesBySubprocessInvocationId.sql
UTF-8
306
2.78125
3
[ "Apache-2.0" ]
permissive
-- Name: FailedFilesBySubprocessInvocationId -- Schema: posda_files -- Columns: ['file_id'] -- Args: ['subprocess_invocation_id'] -- Tags: ['counts'] -- Description: Find ids of failing files in ApplyDispositions -- select file_id from public_copy_status where subprocess_invocation_id = ? and not success
true
6438dccb12b47ec4e3c2374618d785aaf4e33bf6
SQL
stinaan/CS157A-Team35_Search4House
/mySQLDatabase/search4houses_Favorites.sql
UTF-8
2,988
2.59375
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.17, for macos10.14 (x86_64) -- -- Host: localhost Database: search4houses -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
true
e347664cbef1c6020586bbe413f7c2968a286c6c
SQL
mariotun/Sistemas-de-Base-de-Datos-1
/[BD1]Proyecto1_201602942/Enunciado4/BD_Enunciado4.sql
UTF-8
3,775
3.171875
3
[]
no_license
CREATE DATABASE Enunciado4; USE Enunciado4; CREATE TABLE IF NOT EXISTS Empleado( ID_Empleado INT NOT NULL AUTO_INCREMENT, Nombre_Empleado VARCHAR(40) NOT NULL, DPI INT NOT NULL, NIT INT NOT NULL, Telefono INT NOT NULL, Sueldo INT NOT NULL, PRIMARY KEY(ID_Empleado) )ENGINE=InnoDB;'sólo existe soporte para claves forán...
true
ea2dbfae4a81f3b028a421207677de6b99bc9346
SQL
itsshaikaslam/SQL-Server-Practice-scripts
/SQLQuery5.sql
UTF-8
235
3.03125
3
[]
no_license
select * from tbl_persontbl sp_helptext spGetEmployeesByGenderAndDepartment select * from tbl_persontbl Create Index IX_tblPerson_Salary ON tbl_persontbl (Salary ASC) --How to Create an Index on a Table? sp_Helpindex tbl_persontbl
true
c90204f32fba65bf368292c26691127137ec7f22
SQL
gabsw/campus-monitoring
/docker/postgresql/sql/03_create_view_weatherstats.sql
UTF-8
566
3.5625
4
[]
no_license
CREATE VIEW campus_monitoring.weather_stats_view AS SELECT DATE(date_time) as "date", name AS local_name, MAX(temperature) AS temp_max, MIN(temperature) AS temp_min, ROUND(AVG(temperature), 2) AS temp_avg, MAX(humidity) AS hum_max, MIN(humidity) AS hum_min, ROUND(AVG(humidity), 2) AS hum_avg, MAX(co2) AS co2_max, MIN(c...
true
2bae033a8403bb9d9a82ff019bbda51600c63a16
SQL
Jean-ChristopheGagnon/inf3080-automne2020
/zeta2.labunix.uqam.ca.sql
ISO-8859-1
30,948
3.453125
3
[]
no_license
SET ECHO ON SPOOL output.txt --Jean-Christophe Gagnon GAGJ01099503 --Mbadinga Auxence Maury MBAA12089905 --Anas Yaci YAIA20559707 ----------------------Creation de tables---------------------- CREATE TABLE Adresse ( idAdresse INTEGER NOT NULL, codePostal VARCHAR(6), numeroCivique INTEGER, ...
true
13669a23860ad1884c4f093a95c0954b002164fb
SQL
subhajournal/Cloud-Based-Airline-Reservation-System
/airline.sql
UTF-8
1,981
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 05, 2019 at 03:07 PM -- Server version: 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=@@CHARACTER_SE...
true
2854d0826075bbc4116bef0b484a5831cdf48f36
SQL
OctopusLian/SQL-Advanced-Tutorial
/ch1/1-10/Sample/p169.txt
GB18030
216
3.265625
3
[]
no_license
/* üϱȫ⣨1 */ SELECT team_id FROM Teams GROUP BY team_id HAVING COUNT(*) = SUM(CASE WHEN status = '' THEN 1 ELSE 0 END);
true
51eced75ba1324e237a43d18c4347d9b3babdcac
SQL
viniciusxyz/LikePeople-Simple-Go-MSSQL
/db/LikePeople.sql
UTF-8
1,124
3.78125
4
[]
no_license
USE master; IF EXISTS(SELECT * FROM SYS.DATABASES WHERE NAME = 'LIKEPEOPLE') DROP DATABASE LIKEPEOPLE CREATE DATABASE LIKEPEOPLE USE LIKEPEOPLE CREATE TABLE PESSOAS ( ID_PESSOA INT IDENTITY(1,1), NOME VARCHAR(255), SOBRENOME VARCHAR(255), APELIDO VARCHAR(50), LI...
true
0b0df8e045da2a0313a52f8e2e28a407da006d52
SQL
lgjlife/micro-blog
/mysql/points.sql
UTF-8
894
3.546875
4
[]
no_license
/*积分信息表*/ DROP TABLE IF EXISTS `points`; CREATE TABLE `points`( `points_id` BIGINT AUTO_INCREMENT COMMENT "积分ID", `user_id` BIGINT DEFAULT NULL COMMENT "用户ID", `points` BIGINT DEFAULT 0 COMMENT "总积分" , PRIMARY KEY (`points_id`), UNIQUE user_id_index (`user_id`) )ENGINE=InnoDB DEFAULT CHARSET=utf8 C...
true
6930b8146b5a1d6e9fde829d2a988fbbd1eb6afd
SQL
djmjm/Banco-de-dados-Escrit-rio-Contabilidade-SQL
/insert2.sql
UTF-8
4,168
2.859375
3
[]
no_license
-- INSERT -- Algumas instâncias fictícias feitas no banco de dados -- Foi utilizado o SGBD MysSQL -- -- -- -- -- use escritorio; insert into cliente (nome, sobrenome, telefone, cidade, rua, numeroCasa) values ('Douglas', 'Macedo Pereira', '5123432123', 'Camaqua','Jorge Machado', '332'), ('Joao', 'Silveira', '5123...
true
c05b22b6c7b272711a183b7b4f3bd6ab618e78f1
SQL
rrighetti/cscripts
/sql/fs.sql
UTF-8
3,284
3.6875
4
[]
no_license
SET HEA ON LIN 500 PAGES 100 TAB OFF FEED OFF ECHO OFF VER OFF TRIMS ON TRIM ON TI OFF TIMI OFF; PRO 1. Enter SQL Text Piece. DEF sql_text_piece = '&1.'; COL current_time NEW_V current_time FOR A15; SELECT 'current_time: ' x, TO_CHAR(SYSDATE, 'YYYYMMDD_HH24MISS') current_time FROM DUAL; COL x_host_name NEW_V x_host_n...
true
e2d9b63aae0e9d32fc6f176e32acfc71499ac9fb
SQL
uuuzombie/web_demo_multi_tenant_separate_schema
/depoly/shiro/role_permissions.sql
UTF-8
236
2.796875
3
[]
no_license
create table role_permissions( id bigservial not null primary key, role_name varchar(255) not null, permission varchar(255) not null ); create unique index uniq_idx_role_permission on role_permissions(role_name, permission);
true