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
1f207e1afe86d11e4bfb589f0c0d8284daf4b64d
SQL
maranz/MuchMoneyDataBase
/table/MZ_IMPTABLE.sql
UTF-8
429
2.75
3
[]
no_license
/* * Tabella d'appoggio per l'importazione dei csv dei fogli single user */ DROP TABLE IF EXISTS MZ_IMPTABLE; CREATE TABLE `MZ_IMPTABLE` ( `USER` varchar(45) NULL, `ITEMCOST` varchar(255) NULL, `MONEY` decimal(16,2) NOT NULL DEFAULT '0.00', `VDATE` datetime DEFAULT NULL, `IDATE` datetime DEFAULT NUL...
true
905245e74790983cd159ea1e617e3faaad791ca9
SQL
matthewrpotter75/FantasyPremierLeagueDB
/FantasyPremierLeagueDB/dbo/Stored Procedures/GetPlayerGameweekHistory.sql
UTF-8
946
4
4
[]
no_license
CREATE PROCEDURE dbo.GetPlayerGameweekHistory ( @PlayerId INT = NULL, @FirstName VARCHAR(50) = NULL, @SecondName VARCHAR(50) = NULL ) AS BEGIN SELECT FirstName + ' ' + SecondName AS PlayerName FROM dbo.DimPlayer WHERE PlayerId = @PlayerId OR (FirstName = @FirstName AND SecondName = @SecondName); SELECT fph.Se...
true
5544920acc8699b191db95f62a031a6a1c740586
SQL
PaulStepanov/VSUTermWorkWinter2017
/sql/mydb.sql
UTF-8
3,211
3.5625
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 mydb -- -...
true
19f3aca228d0e724167472de5e1c9d0c999adc93
SQL
takenoco82/using-mysql-type
/type_int_zerofill.sql
UTF-8
1,228
3
3
[]
no_license
truncate table type_int_zerofill; insert into type_int_zerofill (foo) values ('1'); insert into type_int_zerofill (foo) values ('2'); insert into type_int_zerofill (foo) values ('3'); insert into type_int_zerofill (foo) values ('4'); insert into type_int_zerofill (foo) values ('5'); insert into type_int_zerofill (foo)...
true
201a4405a478be39d31896b77e53c4556012b921
SQL
5h0bh4nk/que-pasa
/sql/table-footer.sql
UTF-8
79
2.828125
3
[ "MIT" ]
permissive
FOREIGN KEY (tx_context_id) REFERENCES tx_contexts(id) ON DELETE CASCADE);
true
648a5ef7783652ceb85c94f6340cdf479db9e5e7
SQL
radtek/abs3
/sql/mmfo/bars/Table/cp_alien.sql
WINDOWS-1251
4,212
2.96875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/CP_ALIEN.sql =========*** Run *** ==== PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
7b48bbc700a8c6746eb6145edd1897d9bb3f3a24
SQL
m26416085/TekwebCafe
/admincafe.sql
UTF-8
1,830
2.59375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 08, 2018 at 03:17 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
a321619bef735f7add49f35d48979d467ecd16a8
SQL
LonelyTomb/HMS
/hms.sql
UTF-8
13,256
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 03, 2017 at 03:14 PM -- Server version: 5.7.14 -- 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_CLIENT */...
true
15cd5cdd6bfc28b0d9a9b2e1598b71eaa6d05816
SQL
MohitGhodasara/Megadrive
/megadrive.sql
UTF-8
2,852
3.125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 25, 2016 at 04:36 AM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
6c37410edc5ac425d616f3d98e63395245e7f5a9
SQL
fictionalparakeets/BootcampX
/2_queries_joins/0_rollover_students.sql
UTF-8
787
4.03125
4
[]
no_license
-- Get the student's name, student's start_date, cohort's name, and cohort's start_date. -- Alias the column names to be more descriptive. -- Order by the start date of the cohort. SELECT students.name as student_name, cohorts.name as cohort_name, cohorts.start_date as cohort_start_date, stude...
true
f7089a6e36d4b64a38b1bd8c3937ab0fc6491b85
SQL
nathan-p/echoppeDeDagobert
/bd/bd_echoppe.sql
UTF-8
12,745
3.390625
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Mer 04 Février 2015 à 16:37 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_...
true
2cb03024cdb97121f195934dea6653e016bd4cff
SQL
feihua/sys-parent
/doc/sql/simple_mall_sys_user_role.sql
UTF-8
872
2.953125
3
[]
no_license
create table sys_user_role ( id int(64) auto_increment comment '主键' primary key, user_id int(64) not null comment '用户id', role_id int not null comment '角色id', create_time date not null comment '创建时间', create_by int(64) not null comment '创建者', ...
true
50d2afd76605814b3186f46c12cc48039ca850e3
SQL
diegocamy/bdd2_ifsul
/ejercicios_3/4.sql
UTF-8
113
3.203125
3
[]
no_license
select count(c.name) as cantidad, c.Continent from country as c group by c.Continent having count(c.name) > 50
true
56faf5259320a4d44fb8d65d4c948fa9b1f17d8b
SQL
daorejuela1/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/14-my_genres.sql
UTF-8
283
3.171875
3
[]
no_license
-- displays all records of dexter -- dexter can have multiple genres SELECT tv_genres.name FROM tv_genres JOIN tv_show_genres ON tv_genres.id = tv_show_genres.genre_id JOIN tv_shows ON tv_shows.id = tv_show_genres.show_id WHERE tv_shows.title = "Dexter" ORDER BY tv_genres.name ASC;
true
9c521af24444c0f3e337e8258497c9bb90319fa7
SQL
AlexKehayov/BankApp
/bankappDB.sql
UTF-8
630
3.53125
4
[]
no_license
drop database if exists bankapp; create database bankapp; use bankapp; create table access( id int auto_increment primary key, name varchar(25) not null unique, password varchar(25) not null); create table accounts( id int auto_increment primary key, name varchar(100) not null, balance decimal(10,2) not null); creat...
true
999ec4733d4bcba3abc69489d774373644820695
SQL
amjbot/askgraph.com
/etc/schema.sql
UTF-8
1,730
3.171875
3
[]
no_license
SET SESSION storage_engine = "InnoDB"; SET SESSION time_zone = "+0:00"; ALTER DATABASE CHARACTER SET "utf8"; CREATE TABLE IF NOT EXISTS requests ( id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, contact TEXT NOT NULL, request TEXT NOT NULL, context TEXT NOT NULL, ts TIMESTAMP NOT NULL DEFAULT CURRENT_T...
true
770f6110e901f9b33a421e972cb3aca9972ea0e7
SQL
RIIDLEY/DUT-INFO
/1ere année/bdd/BDDFilm/GenBDCine.sql
UTF-8
1,055
3.375
3
[]
no_license
-- \i GenBDCine.sql SET datestyle TO "DMY" ; SET datestyle TO "SQL" ; drop table jouer; drop table projection; drop table film; drop table individu; drop table cinema; create table individu ( num_individu integer primary key, nom varchar(64), prenom varchar(64)); create table film ( num_film intege...
true
3a58b49dda7089d2bed8e7140bf69b0151f67b25
SQL
will-kent/BDE_AirBNB_Data
/4_adhoc_analysis_queries/a_population_differences.sql
UTF-8
6,925
3.765625
4
[]
no_license
WITH best_neighbourhood AS ( -- Find best performing neighbourhood based on est revenue per active listing SELECT f.listing_neighbourhood_id AS neighbourhood_id ,f.lga_id ,dn.neighbourhood_name ,SUM(f.num_of_stays * f.price) / COUNT(*) AS est_revenue FROM dwh.fact_airbnb_listings f JOIN dwh.dim_neighbourh...
true
c2c51cc56f61d3f2c52cab688834b688dc6624cc
SQL
complitex/flexpay
/common/etc/sql/update/2009_06_18.sql
UTF-8
695
3.1875
3
[]
no_license
alter table common_history_consumption_groups_tbl add column send_tries integer not null comment 'Number of tries group file was sent', add column group_status integer not null comment 'Number of tries group file was sent', add column file_id bigint comment 'History group data file reference', add column postpone_t...
true
7ee27bae538058832e90e03efc719bb90ed8e77f
SQL
mark-smith-nl/HvA-public
/src/main/resources/query.sql
UTF-8
445
3.578125
4
[]
no_license
-- noinspection SqlDialectInspection SELECT user_intresses.persoonID, COUNT(user_intresses.persoonID) AS hits FROM user_intresses WHERE user_intresses.persoonID != 3 AND u ser_intresses.interesseID in (SELECT i.interesseID FROM user_intresses AS i WHERE i.persoonID = 3) AND user_intresses.persoonID NOT IN (SELECT m.ma...
true
591c5cd2109a99a8a12396260e76251d9adcc85a
SQL
brave-intl/challenge-bypass-server
/migrations/0004_issuer_expiration.up.sql
UTF-8
508
2.90625
3
[ "BSD-3-Clause" ]
permissive
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; ALTER TABLE issuers ADD COLUMN id uuid NOT NULL DEFAULT uuid_generate_v4(); ALTER TABLE issuers ADD COLUMN created_at timestamp NOT NULL DEFAULT NOW(); ALTER TABLE issuers ADD COLUMN expires_at timestamp; ALTER TABLE issuers ADD COLUMN rotated_at timestamp; ALTER TABLE issue...
true
fb1cea27048bcaa7b3670c7c43ad4b560eea03e4
SQL
YazminYane/Querys
/terminado/1_Transacciones.sql
UTF-8
1,277
3.4375
3
[]
no_license
-- ---------------------------------------------------------------------------------------------------------- -- PROCEDIMIENTO TRANSACIONES -- ---------------------------------------------------------------------------------------------------------- -- PARA USAR TRANSACCIONES SE DEBE TENER LA INGENIERIA INNODB DROP PRO...
true
6c97ebecd226a2c1cd72a68ea93fac9a2a4461f6
SQL
irhadSaric/dokle.ba-spring-boot
/src/main/java/com/dokle/ba/demo/db/scripts/procedures/FILTER_PATHS_TEST_2.prc
UTF-8
2,050
3.921875
4
[]
no_license
create PROCEDURE "FILTER_PATHS_TEST_2" (starting_point_in IN PATHS.STARTING_POINT%TYPE, destination_in IN PATHS.DESTINATION%TYPE, departure_date_in IN varchar2, departure_time_in IN varchar2, country_in IN PATHS.COUNTRY_ID%TYPE, payment_in IN PATHS.PAYMENT_ID%TYPE, response OUT SYS_REFCURSOR ) IS CURSOR C...
true
cda98bbb9556e9eb637f803a53e45594caf3c1f4
SQL
samyan19/SQL-Scripts
/SAM - Date/DATE - Check if Date is valid.sql
UTF-8
1,234
2.984375
3
[]
no_license
/* Use these sessions settings. */ SET LANGUAGE us_english; SET DATEFORMAT mdy; /* Expression in mdy dateformat */ SELECT ISDATE('04/15/2008'); --Returns 1. /* Expression in mdy dateformat */ SELECT ISDATE('04-15-2008'); --Returns 1. /* Expression in mdy dateformat */ SELECT ISDATE('04.15.2008'); --Returns 1. /* Expr...
true
9c1586ae5bbea77c7656526d4190af327077cff5
SQL
KEY60228/tatsujin_sql
/8-3.sql
UTF-8
514
3.796875
4
[]
no_license
-- 問題 CREATE TABLE Class_A ( id int, name varchar(15) ); CREATE TABLE Class_B ( id int, name varchar(15) ); INSERT INTO Class_A VALUES ( 1, '田中' ), ( 2, '鈴木' ), ( 3, '伊集院' ); INSERT INTO Class_B VALUES ( 1, '田中' ), ( 2, '鈴木' ), ( 4, '西園寺' ); -- 解答 MERGE INTO Class_A A USING (...
true
a3c31a7d1e536dd6fbc62f9f3e192b07f45d240d
SQL
KenosSGI/org.kenos.idempiere.lbr
/org.kenos.idempiere.lbr.migration/migration-historic/201709/postgresql/201708311800_NT2014.002v1.02b.sql
UTF-8
1,267
2.640625
3
[]
no_license
-- 31/08/2017 18h22min23s BRT INSERT INTO AD_Ref_List (AD_Client_ID,AD_Org_ID,AD_Ref_List_ID,AD_Reference_ID,Created,CreatedBy,EntityType,IsActive,Name,Updated,UpdatedBy,Value) VALUES (0,0,1121822,1120218,TO_TIMESTAMP('2017-08-31 18:22:22','YYYY-MM-DD HH24:MI:SS'),100,'LBRA','Y','3 - Cancelled',TO_TIMESTAMP('2017-08-31...
true
cb49007230fff92f957e3e2f58e9ba8644e78455
SQL
BradBarrett/SQL-Challenge
/EmployeeSQL/DataTables.sql
UTF-8
1,382
3.875
4
[]
no_license
DROP TABLE IF EXISTS employees; CREATE TABLE employees ( emp_no INT NOT NULL, emp_title_id VARCHAR(50) NOT NULL, birth_date DATE NOT NULL, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, sex VARCHAR(5) NOT NULL, hire_date DATE NOT NULL, Primary key (emp_no) ); SELECT * ...
true
681991ef8df3bdbdb0dbf8299a861f729d9039d3
SQL
kalavhan/SQLzoo
/more-join.sql
UTF-8
1,853
4.25
4
[]
no_license
SELECT id, title FROM movie WHERE yr=1962 SELECT yr FROM movie WHERE title = 'Citizen Kane' SELECT id, title, yr FROM movie WHERE title LIKE '%Star Trek%' order by yr SELECT id from actor where name = 'Glenn Close' SELECT id FROM movie WHERE title = 'Casablanca' SELECT actor.name FROM casting JOIN actor ON actor....
true
732a45c07238f73c9d1950875f889d447af04758
SQL
jbballesteros/SQL_Zeuss
/2016/02 - Febrero/AJV.sql
UTF-8
426
3.921875
4
[]
no_license
SELECT * FROM ( SELECT T.nit,T.nombres, SUM(CASE WHEN M.cuenta='130510' THEN 1 ELSE 0 END) CUENTA1, SUM(CASE WHEN M.cuenta='130512' THEN 1 ELSE 0 END) CUENTA2 FROM movimiento M INNER JOIN terceros T ON (M.nit=T.nit) WHERE M.cuenta IN ('130510','130512') GROUP BY T.nit,T.nombres) AS P INNER JOIN movimiento M ON (P.n...
true
413c92d31fbe9164c2fc9ba88a21c6a19d2535e0
SQL
jhennieprado/WebtekFinals
/Database/bxbfin.sql
UTF-8
20,852
3.546875
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 12, 2017 at 02:25 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
c2d8fc2fd330ddf829eba0090d2ecee4c4206c2a
SQL
chifeng111/python_demo
/src/day06 MySQL/chap4-1-单表查询.sql
GB18030
1,610
4.625
5
[]
no_license
-- ѯ -- 1SQLһʽ select [all | distinct] бʽ [, бʽ] ... from where ʽ group by [having ʽ] order by [asc | desc] ; -- 2еѡ select * from student; select sno, sname, gender from student; -- ѯ select sno, sname, 2017-age from student; -- select sno, sname, 2017-age from student; -- ظ select distinct depart from s...
true
b51392c79996dc45b1ad4ef29b6341d084f54bc1
SQL
Shahad-Alharbi/Mobile-robot-base
/control.sql
UTF-8
1,675
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 11, 2021 at 04:09 PM -- Server version: 8.0.23 -- PHP Version: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
ba4b50cc8ac7ba283e28b62c63ae860510608f63
SQL
mohitsenapaty/altcoinBazzar
/sqlCodes/DBCreation.sql
UTF-8
11,346
3.734375
4
[]
no_license
CREATE TABLE user_login( user_id SERIAL UNIQUE NOT NULL, user_name VARCHAR(20) UNIQUE NOT NULL, name VARCHAR(50) NOT NULL, phone NUMERIC(10) UNIQUE NOT NULL, email VARCHAR(80) UNIQUE NOT NULL, password TEXT NOT NULL, PRIMARY KEY (user_id) ); CREATE INDEX user_id on user_login(user_id); CREAT...
true
2dbac92b418dacd9ef2dab5af18a4f5046b82bfe
SQL
HTTPArchive/almanac.httparchive.org
/sql/2021/media/bytes_and_dimensions_by_format.sql
UTF-8
5,469
2.640625
3
[ "Apache-2.0" ]
permissive
CREATE TEMPORARY FUNCTION getSrcsetInfo(responsiveImagesJsonString STRING) RETURNS ARRAY<STRUCT<imgURL STRING, approximateResourceWidth INT64, approximateResourceHeight INT64, byteSize INT64, bitsPerPixel NUMERIC, isPixel BOOL, isDataURL BOOL, resourceFormat STRING>> LANGUAGE js AS ''' function pithyType( { contentTyp...
true
3bab30cdb27746cb6aa3eefc7d4ccc43ab5169da
SQL
FroylanMtz/TAW
/Unidad01/Practica02/bd.sql
UTF-8
434
3.53125
4
[]
no_license
/*id, nombre, apellidos, genero*/ /*Comando que crea la base de datos, si no existe la crea*/ CREATE DATABASE IF NOT EXISTS Practica02; /*SE selecciona la bd*/ USE Practica02; /*Y se crea una nueva tabla para almacenar a los usuario*/ CREATE TABLE usuarios( usuario_id INTEGER PRIMARY KEY AUTO_INCREMENT, nom...
true
2ae6f67692fed511c30fd345c1cb1902ea479c5a
SQL
jgoodhcg/quantified
/resources/migrations/20170418112913-exercise-tables.up.sql
UTF-8
498
3
3
[]
no_license
create table exercise_types( id serial primary key, name varchar(255) not null, description json, unique(name) ); --;; create table exercises( id serial primary key, name varchar(255), description json, type_id integer references exercise_types (id), unique(name) ); --;; create table exercise_entries( id serial primary...
true
e9af18ab224b2fbb71573f120f2d0e18ab7480f9
SQL
Odra99/Proyecto-TS1
/Tiempo_Maya_Web/BaseDatos/TiempoMayaWebStructure.sql
UTF-8
8,806
3.1875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `tiempomaya` /*!40100 DEFAULT CHARACTER SET utf8 */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `tiempomaya`; -- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: tiempomaya -- ------------------------------------------------------ -- Server version...
true
a86de413c4a2d9707c9fafcf66f521012f7f86d1
SQL
Andres0919/cinema.com
/promocinal.sql
UTF-8
15,306
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 27-05-2017 a las 14:09:49 -- Versión del servidor: 5.7.18-0ubuntu0.16.04.1 -- Versión de PHP: 7.0.15-0ubuntu0.16.04.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; ...
true
3c4d523a8441e9a78a78a617ccc4134a936d6149
SQL
ConnorWeng/plsql-refactor
/init.sql
UTF-8
20,237
3.734375
4
[]
no_license
-- Create table create table DB_LOG ( id VARCHAR2(20), proc_name VARCHAR2(100), info VARCHAR2(4000), log_level VARCHAR2(10), time_stamp VARCHAR2(23), error_backtrace VARCHAR2(4000), err_stack VARCHAR2(4000), step_no VARCHAR2(20), log_da...
true
fddbccd26eb35f9f3b62a2bac3b3591d3dbc00e6
SQL
xeathen/book-library
/book-service-db-migration/src/main/resources/db/migration/R__reservations.sql
UTF-8
325
2.578125
3
[]
no_license
CREATE TABLE IF NOT EXISTS `reservations` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `user_id` BIGINT(11) NOT NULL, `book_id` BIGINT(11) NOT NULL, `reserve_time` TIMESTAMP(6) NOT NULL, PRIMARY KEY (`id`) ) ENGINE = InnoDB DEFAULT CHARACTER SET = ut...
true
09cd9c2b2839586ad10ce990ab7d9665ebea51ae
SQL
aalzehla/syncope
/fit/core-reference/src/main/resources/oracle/init.sql
UTF-8
1,472
2.953125
3
[ "Apache-2.0" ]
permissive
-- Licensed to the Apache Software Foundation (ASF) under one -- or more contributor license agreements. See the NOTICE file -- distributed with this work for additional information -- regarding copyright ownership. The ASF licenses this file -- to you under the Apache License, Version 2.0 (the -- "License"); you may...
true
fe87f494fe377dfa0085ab890e68d3ab9809e6cd
SQL
IrandyReyes/ReyesIrandy_M-dulo2
/Actividad6/respaldo.sql
UTF-8
4,948
2.609375
3
[]
no_license
-- MariaDB dump 10.19 Distrib 10.4.18-MariaDB, for Win64 (AMD64) -- -- Host: localhost Database: reyesirandyind -- ------------------------------------------------------ -- Server version 10.4.18-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHA...
true
42cb936c45c145034cbfc2c610969c11ab9a52ec
SQL
avinash431/snowflake
/temporary_table.sql
UTF-8
1,025
3.546875
4
[]
no_license
USE DATABASE PDB; // Create permanent table CREATE OR REPLACE TABLE PDB.public.customers ( id int, first_name string, last_name string, email string, gender string, Job string, Phone string); INSERT INTO PDB.public.customers SELECT t1.* FROM OUR_FIRST_DB.public.customers t1 SELECT * FROM PDB.pub...
true
787142acd465933e6368cc1ad3b6b5a9079c063c
SQL
tshortlidge/cse572work
/lab04/partB/lab04b_trevor.sql
UTF-8
3,536
4.25
4
[]
no_license
--Name: Trevor Shortlidge --ID: 006310209 --Lab 04B-Query SQLPLUS set linesize 200 set pagesize 200 SPOOL lab04BOutput_trevor.txt --P.1 Write a query to display the current System date. Label the column Date. SELECT sysdate "Date" FROM DUAL; --P.2 . Display employee ID, last name, first name, commission point for e...
true
cae5e5d2da93cd52e0c437b7c58b01539c4dd1a1
SQL
Daniel4lm/Zadaci-SQL
/StudentManagement.sql
UTF-8
258
2.546875
3
[]
no_license
DROP DATABASE IF EXISTS StudentManagement ; CREATE DATABASE StudentManagement; USE StudentManagement; CREATE TABLE student( ID_student INT primary key , firstName VARCHAR(20), lastName VARCHAR(20), dob DATE, indexNumber VARCHAR(20) ); SELECT
true
d028f4443fbf7a98db8555be007d1ecff7d9ec35
SQL
rrsilaya/bluetag-server
/src/database/entities/sale/triggers.sql
UTF-8
690
2.90625
3
[ "MIT" ]
permissive
-- On Addition DROP TRIGGER IF EXISTS newSale_log; DELIMITER $$ CREATE TRIGGER newSale_log AFTER INSERT ON sale FOR EACH ROW BEGIN CALL log( 'add_sale', NEW.id, NEW.employee ); END; $$ DELIMITER ; -- On Delete DROP TRIGGER IF EXISTS removeSale_log; DELIMITER $$ CREATE TRIGGER removeSale_l...
true
ae3c4a47d7ed0b6f9f606f0f590256a6ae8cbe5d
SQL
cadl272/civ6mods
/1720820463/Core/BetterEncampment_Localisation.sql
UTF-8
1,368
2.59375
3
[]
no_license
/* p0kiehl's Better Encampment Author: p0kiehl */ --======================================================================== -- BaseGameText --======================================================================== INSERT OR REPLACE INTO BaseGameText (Tag, Text) VALUES ('LOC_DISTRICT_ENCA...
true
9a82e75483e86b9ca71d5e8e76eebceeb98cd512
SQL
IT1050-KevinMoehring/KevinMoehringIT2351
/Lab1_4b.sql
UTF-8
422
2.90625
3
[]
no_license
/* ********************************************************************* Downloaded from GeeksEngine.com edited by Kevin Moehring, 9/15/19 ********************************************************************* */ Select CompanyName as "Customer", date_format(OrderDate, '%m/%d/%y') as 'Order Date', date_format(Shipped...
true
e8054e8aacf6393b402da18c30c0bf68b2f2cfe0
SQL
trangtynzi/trangphph03116_ass
/organic-1.sql
UTF-8
6,178
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 28, 2015 at 04:15 AM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
23ab15f560f1d6ac3f59a5aca903fe3d33b993af
SQL
bellmit/flexdb
/2.HOST/3.Procedure/mr4001.sql
UTF-8
6,112
3.203125
3
[]
no_license
CREATE OR REPLACE PROCEDURE mr4001( PV_REFCURSOR IN OUT PKG_REPORT.ref_cursor, PV_OPT IN VARCHAR2, BRID IN VARCHAR2, I_DATE IN VARCHAR2, P_REID IN VARCHAR2, P_BRGRP IN VARCHAR2, ...
true
b2cb4ea223d65d65a81d09ef023e3414b9a47a2b
SQL
Borntobehuman-Zhao/TourismSystem
/SQL/room.sql
UTF-8
824
3.078125
3
[]
no_license
CREATE TABLE `room` ( `id` int(11) NOT NULL AUTO_INCREMENT, `roomID` varchar(64) NOT NULL, `administrator` varchar(255), `member` float NOT NUll,/*折扣*/ `status` tinyint(1) NOT NULL,/*房间状态 0是空房间,1是预订了...
true
86b1880a0f9242956e127c712769fb7316b62e4c
SQL
wahyukhairina/POS_REACT_NATIVE
/pos.sql
UTF-8
6,340
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2020 at 11:17 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
ed497f6b25abb6b273d93607d48c07e26af3abf6
SQL
zinmyoswe/AGD-Bank-Report
/FIN_BALANCE_CONFIRMATION_SPBX.sql
UTF-8
7,526
3.0625
3
[]
no_license
CREATE OR REPLACE PACKAGE FIN_BALANCE_CONFIRMATION_SPBX AS PROCEDURE FIN_BALANCE_CONFIRMATION_SPBX( inp_str IN VARCHAR2, out_retCode OUT NUMBER, out_rec OUT VARCHAR2 ); END FIN_BALANCE_CONFIRMATION_SPBX; / CREATE OR REPLACE PACKAGE BODY ...
true
e25c912bba53b1fe49b7b4661cdbe60f818df2fd
SQL
wietseneven/simple-php-db-search
/sqlDbSetup.sql
UTF-8
1,026
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.10 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Gegenereerd op: 24 nov 2015 om 23:44 -- Serverversie: 5.5.42 -- PHP-versie: 5.6.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `simplesearch` -- -- -------------------------------...
true
ad94dda35798639afd31f663951a95c6e5a612bb
SQL
sogis/gretljobs
/agi_avdpool_ng_sogis/agi_dm01avso24_planeinteilungen_plan.sql
UTF-8
662
3.28125
3
[ "MIT" ]
permissive
SELECT plan.t_id AS tid, plan.nbident, plan.nummer, plan.techdossier, to_char(plan.gueltigereintrag,'YYYYMMDD') AS gueltigereintrag, CAST(plan.t_datasetname AS INT) AS gem_bfs, 0 AS los, aimport.importdate AS lieferdatum FROM agi_dm01avso24.planeinteilungen_plan AS plan LEFT ...
true
aa9b9671f5e31a51f7419d39166a2864fe4136a4
SQL
Serapbasaran/sql-challenge
/EmployeeSQL/query.sql
UTF-8
4,234
4.625
5
[]
no_license
--Create table schemas for each of the six CSV file --Specify data types, primary keys,foreign keys, and other constraints. CREATE TABLE Departments( Dept_No VARCHAR(30) NOT NULL PRIMARY KEY, Dept_Name VARCHAR(30) NOT NULL ); SELECT * FROM Departments; CREATE TABLE Titles( Title_ID VARCHAR(30) NOT NULL, ...
true
81b20eb50a4a80859d497902fdf51faceb36ad5d
SQL
yaogengzhu/Learning-notes
/note/mysql/基础/视图.sql
UTF-8
803
3.953125
4
[]
no_license
# 视图 # 视图是一种虚拟表,它是基于一个或多个表的查询结果集的虚拟表,视图中的数据并不真实存在,而是通过查询语句动态生成的。 # 视图也有列,数据来自基表 # 基表的改变也会影响视图,视图的改变也会影响基表 # 创建视图 # 语法:create view 视图名 as select语句 # 例子:创建一个视图,显示员工的姓名、工资、部门 create view emp_view as select name, salary, dept from emp; # 修改视图 # 语法:alter view 视图名 as select语句 # 例子:修改视图,显示员工的姓名、工资、部门、工龄 alter view emp_view ...
true
d1e60d28ece9272e91375bb77d2ddfbffbbe2ccb
SQL
cloas/cloasgit
/music.sql
GB18030
846
2.921875
3
[]
no_license
DROP TABLE IF EXISTS `music`; CREATE TABLE `music` ( `SONG_ID` INT (50) UNSIGNED NOT NULL auto_increment, `SINGER_ID` INT (20) UNSIGNED DEFAULT NULL, `NAME` VARCHAR (20) DEFAULT NULL, `LOCATION` VARCHAR (80) DEFAULT NULL, PRIMARY KEY (`SONG_ID`) ) ENGINE = INNODB DEFAULT CHARSET = gb2312 COMMENT = 'Ϣ'; INSERT I...
true
402fb52a44e8ac0badb71f2ec9cc77294bf21a5f
SQL
kTeaBear/STEPSascending
/install/db_init.sql
UTF-8
6,120
3.390625
3
[]
no_license
/* * db_tables.php - SQL script to generate all the STEPS tables * * @author $Author:$ * @version $Id:$ * @copyright */ set foreign_key_checks=0; drop table IF EXISTS access; drop table IF EXISTS user_external; drop table IF EXISTS career_category; drop table IF EXISTS major_category; drop table IF EXISTS resourc...
true
ab15fc9026de813cf108efa245e3d5350299751e
SQL
ruoyousi/MyFunds-sae
/application/models/schema.sql
UTF-8
2,032
3.546875
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS `fundcompany`; CREATE TABLE `fundcompany` ( `CompanyId` int(10) unsigned NOT NULL, `CompanyName` varchar(256) NOT NULL, `Website` varchar(256) DEFAULT NULL, `Telephone` varchar(256) DEFAULT NULL, PRIMARY KEY (`CompanyId`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TABLE IF EXISTS `fundp...
true
b633f5a08c96129c987671268f41a8d4fa364b3c
SQL
cumanadigital/sistemapermisos
/dump/old/bdpermisos_min.sql
UTF-8
7,230
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.5.1deb2 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 25-04-2016 a las 11:36:25 -- Versión del servidor: 5.6.28-1 -- Versión de PHP: 5.6.19-2+b1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
873681c14f65c96d7ae164fed5c7aa75c1ec1247
SQL
Cerdore/NestGPU
/test/tpch_test/tpch_like/typeJA.sql
UTF-8
1,019
3.4375
3
[ "LicenseRef-scancode-warranty-disclaimer", "BSD-3-Clause", "Apache-2.0" ]
permissive
-- Query (Type JA): TPC-H Q2 - No need for exaplanation. (Only avoid order by) -- With this query we control the size of the outer table by changing p_size! select s_acctbal, s_name, n_name, p_partkey, p_mfgr, s_address, s_phone, s_comment from part, partsupp, supplier, nation, region where ...
true
96b257864df77d47050592069c38e283142da6b5
SQL
beaniejoy/resetpw-outbox-scheduler
/sql/schema.sql
UTF-8
787
3.078125
3
[]
no_license
DROP TABLE IF EXISTS `user`; DROP TABLE IF EXISTS `reset_pw_key`; CREATE TABLE `user` ( `id` int NOT NULL AUTO_INCREMENT, `user_name` varchar(50) NOT NULL, `email` varchar(50) NOT NULL, `password` varchar(500) NOT NULL, `address` varchar(100) NOT NULL, `phone_number` varchar(11) NOT NULL, ...
true
a11397fb21df04be10135000e097972cf4d60daa
SQL
nunocx/projetouefstore
/Tutorial de Instalação/sql/u961758316_uefs.sql
UTF-8
11,958
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 10-Dez-2014 às 16:29 -- Versão do servidor: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
dec0b6ce7f2dd1fd43c25aa6fd2d31756a739508
SQL
vilumKris/osbb
/persistence/src/main/resources/db_scheame.sql
UTF-8
13,490
3.234375
3
[]
no_license
DROP DATABASE if EXISTS osbb; CREATE DATABASE osbb; use osbb; -- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: softserve -- ------------------------------------------------------ -- Server version 5.7.9-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
true
84c89a0a3154eba205c57ff4ab4383d8d4f59648
SQL
RimasR/PostgreSQL
/dbvs selects/sql2.sql
UTF-8
205
2.828125
3
[]
no_license
SELECT DISTINCT vardas, pavarde FROM Stud.Autorius, Stud.Egzempliorius WHERE Stud.Egzempliorius.paimta IS NOT NULL AND Stud.Autorius.isbn = Stud.Egzempliorius.isbn AND Stud.Autorius.pavarde LIKE '%yte';
true
ce111c3cbe7d985640c7d94a292a0d55316c43ca
SQL
aspear91/Week9
/customerDB.sql
UTF-8
1,359
4.03125
4
[]
no_license
create database if not exists customers; use customers; drop table if exists phonenumbers; drop table if exists product_orders; drop table if exists products; drop table if exists orders; drop table if exists customers; create table customers ( id int(11) not null auto_increment, first_name varchar(20) not null, ...
true
6e0c49e5f2d5340f8fc0a52c22c4629aa857dd32
SQL
fwarfa/prime-on-track-solo-project
/database.sql
UTF-8
942
3.34375
3
[]
no_license
-- Tables CREATE TABLE "user" ( "id" SERIAL PRIMARY KEY, "username" VARCHAR (80) UNIQUE NOT NULL, "password" VARCHAR (1000) NOT NULL, "first_name" VARCHAR(255) NOT NULL, "last_name" VARCHAR(255) NOT NULL, "bio" VARCHAR(1000), "email" VARCHAR(1000)NOT NULL ); CREATE TABLE "job_hunt" ( "i...
true
0c65c8e12c20b161944b91fd040afcba54e2828a
SQL
Ilya1510/mipt_programming
/dataBase/sql-ex/043.sql
UTF-8
145
3.296875
3
[]
no_license
WITH MyG AS (SELECT * FROM Ships) SELECT name from battles WHERE year(date) not in (select launched from ships WHERE launched is not NULL)
true
829d0ff38f1fceaa7a9152b7bf3b249ab4c437d6
SQL
gavinv/Database_Exercises
/albums_seeder.sql
UTF-8
386
2.8125
3
[]
no_license
USE codeup_test_db; TRUNCATE albums; INSERT INTO albums ( artist, name, release_date, sales, genre ) VALUES ('Nirvana', 'Nevermind', 1991, '16.7', 'Grunge'), ('Pink Floyd', 'The Dark Side of the Moon', 1973, '22.7', 'Progressive Rock'), ('The Beatles', 'Sgt. Pepper''s Lonely Hearts Club Band', 1967, '13.1', 'R...
true
aab6e3029bc78bcd62ebf0eb49809f3a4c0edd21
SQL
radtomas/Optymalizacja-baz-danych
/Database/trans.sql
UTF-8
228
2.8125
3
[ "MIT" ]
permissive
CREATE TABLE trans ( id_trans RAW(16) DEFAULT SYS_GUID() NOT NULL , trans_date DATE , customer_id_customer RAW(16) NOT NULL , item_id_item RAW(16) NOT NULL ) ; ALTER TABLE trans ADD CONSTRAINT trans_PK PRIMARY KEY ( id_trans ) ;
true
2db6f6c5493509f09f845d98f1905940a36ef660
SQL
hantys/fabrica
/relatorio.sql
UTF-8
1,117
4.0625
4
[]
no_license
select bud.id as pedido_id, bud.client_id, bud.employee_id, bud.user_id, bud.cod_name, bud.value, bud.discount_items, bud.discount, bud.discount_type, bud.value_with_discount, bud.status, bud.created_at at time zone 'utc' at time zone 'brt' as criado_em, bud.deadline at time zone 'utc' at time zone 'brt' as Entrega, (S...
true
83ea9dccf74631f07f1867d5c8a3496a8e8604d3
SQL
CityofToronto/bdit_prj_october_report
/wards/sql/timeofday_summary.sql
UTF-8
975
3.578125
4
[]
no_license
TRUNCATE analysis.timeofday_summary; INSERT INTO analysis.timeofday_summary SELECT TOD.year_bin, TOD.hour_bin, CASE WHEN ITT.road_type IS NULL THEN 'LOC' ELSE ITT.road_type END AS road_type, SUM(ITT.sum_miles*TOD.tti_avg)/SUM(ITT.sum_miles) AS tt_ind, SUM(ITT.sum_miles*(TOD.tti_95-TOD.tti_avg)/TOD.tti_avg)/S...
true
3290b268c8e08b97fc46be7dff8e8e20d08d4e0f
SQL
adamb5441/digidash
/db/master_seed.sql
UTF-8
2,466
3.265625
3
[]
no_license
-- IF WE NEED TO GIVE IT MORE OPTION VALUES, EDIT THE FOLLOWING TABLES: -- Table master, get widgets, edit widget settings DROP TABLE widgets; DROP TABLE master; DROP TABLE users; CREATE TABLE users ( user_id SERIAL PRIMARY KEY, user_name VARCHAR(100), user_email VARCHAR(100), auth_id TEXT, a...
true
e8181804689e25454c51a733a2d7b5b37ae62a59
SQL
r78v10a07/jbiowh-dbms
/src/main/resources/schema/mysql/updates/warehouse-2.0.2-to-2.0.3.sql
UTF-8
1,400
3.515625
4
[]
no_license
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; -- ----------------------------------------------------- -- Use this SQL script to update an existing JBioWH DB -- from version 2.0.2 to...
true
927fdc4bea695115738276281a49dcd1c38a45a3
SQL
gxlioper/ecology
/data/Oracle/sql201703130503.sql
UTF-8
940
2.609375
3
[]
no_license
create or replace procedure hrmcity_insert(cityname_1 varchar2, citylongitude_1 number, citylatitude_1 number, provinceid_1 integer, countr...
true
638b33e38554a16d2a98e3667a6fd224ed751a4d
SQL
Angiebolivar/POLI
/bd/estudiante.sql
UTF-8
2,790
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 23-08-2019 a las 21:28:31 -- Versión del servidor: 5.5.24-log -- Versión de PHP: 5.4.3 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
b5c27eb373244ba730785cc0c077814324fbf899
SQL
C-mmon/SQL
/2.sql
UTF-8
134
2.625
3
[]
no_license
select * from airbnb_search_details where cancellation_policy LIKE 'flexible'and city LIKE 'SF' order by review_scores_rating DESC;
true
c199d738371ea87a95a6f310519ebe233912f1e3
SQL
HenzoAF/NPDI-master
/ModeloDataBase/database.sql
UTF-8
1,731
3.328125
3
[]
no_license
CREATE TABLE administradores( id INT NOT NULL AUTO_INCREMENT, login VARCHAR(50) NOT NULL, senha VARCHAR(50) NOT NULL, primeiro_nome VARCHAR(50) NOT NULL, sobre_nome VARCHAR(50), email VARCHAR(100) NOT...
true
506afa4b6a685937784d79924e33a41c35f10d8f
SQL
feihongxiansen/springboot-demo-powermock
/src/main/resources/data/database.sql
UTF-8
3,869
2.828125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: test_mock -- ------------------------------------------------------ -- Server version 8.0.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /...
true
4b13e36854c8dab1be27a76f0f89887d65b78652
SQL
hqottsz/MXI
/assetmanagement-database/src/base/plsql/api/view/acor_fault_action_v1.sql
UTF-8
876
3.265625
3
[]
no_license
--liquibase formatted sql --changeSet acor_fault_action_v1:1 stripComments:false CREATE OR REPLACE FORCE VIEW acor_fault_action_v1 AS SELECT sched_stask.alt_id AS sched_id, first_name || ' ' || last_name AS action_by, action_ldesc AS action_description, action_dt ...
true
f1fcbc2cfb76ac36bae2c5e97fb7d9e92a3e9b68
SQL
lsim1447/nursing-home-desktop
/WindowsFormsApplication/Database/Querries.sql
ISO-8859-2
5,009
3.625
4
[]
no_license
select * from Napszakok select * from Felhasznalok delete from Felhasznalok where FelhasznaloID = 6 select * from Szemelyek select * from Gyogyszerek update Raktaron set Datum = '2016-09-23' where GyogyszerID = 1 select * from Raktaron select * from Adagok order by Datum select * from Pelenkak select * from Rakta...
true
bf51d4677584b058e7df0063727a966c6a9eea78
SQL
fairfield-university-is510-fall2017/is510-classnotes-EnguChen1993
/Schemas/DBP-e14-MySQL-QACS-CH07-Database/DBP-e14-IM-CH07-MySQL-QACS-DML-CH07.sql
UTF-8
1,061
3.25
3
[]
no_license
/***** Question J ***********************************************************/ SELECT * FROM ITEM WHERE ItemDescription LIKE 'Desk%'; UPDATE ITEM SET ItemDescription = 'Desk Lamps' WHERE ItemDescription = 'Desk Lamp'; SELECT * FROM ITEM WHERE ItemDescription LIKE 'Desk%'; /* To undo Question J: ...
true
c5dd1afb5f8c4add72272d35e7130768e26d0123
SQL
Cyantosh0/liquibase-mysql-docker
/migrations/000002_create_roles_table.sql
UTF-8
342
3.125
3
[]
no_license
--liquibase formatted sql -- changeset Cyantosh0:2 CREATE TABLE IF NOT EXISTS `roles` ( `id` INT NOT NULL, `role` VARCHAR(20) NOT NULL, `created_at` DATETIME NOT NULL, `updated_at` DATETIME NOT NULL, PRIMARY KEY (`id`), CONSTRAINT role_unique UNIQUE(role) )ENGINE = InnoDB DEFAULT CHARSET=utf8mb4; -- roll...
true
3290e77051febbe83c70052a4768681dbbf909f9
SQL
wguilen/secure-neighborhood
/DDL.sql
UTF-8
543
3.1875
3
[ "MIT" ]
permissive
CREATE EXTENSION postgis; CREATE TABLE bairro ( id SERIAL PRIMARY KEY, nome TEXT NOT NULL ); CREATE TABLE ocorrencia_tipo ( id SERIAL PRIMARY KEY, descricao TEXT UNIQUE NOT NULL ); CREATE TABLE ocorrencia ( id SERIAL PRIMARY KEY, bairro_id INTEGER REFERENCES bairro(id) NOT NULL, tipo_id INTEGER REFERENCES o...
true
c40bbe38b60fe1fc35e61fcb5b309e5a0cc2a615
SQL
PazhaniMurugesan/Scripts-collection
/wintel/sql/sql_blocks_find_table.sql
UTF-8
522
3.671875
4
[]
no_license
select distinct object_name(a.rsc_objid), a.req_spid, b.loginame from master.dbo.syslockinfo a (nolock) join master.dbo.sysprocesses b (nolock) on a.req_spid=b.spid where object_name(a.rsc_objid) is not null This script will show which table was locked, the process that locked the table and the login name used by...
true
6ceace6ce252592d11f4a2caabaf59d981133f87
SQL
bertzzie/PlayJournal-cms
/conf/evolutions/default/4.sql
UTF-8
212
2.65625
3
[]
no_license
# Add siteinfo for site name and about # --- !Ups CREATE TABLE siteinfo( id BIGINT PRIMARY KEY AUTO_INCREMENT, title VARCHAR(255) NOT NULL, about TEXT NOT NULL ); # --- !Downs DROP TABLE siteinfo;
true
992ba79af58eb562b5b58c4d0645438040782369
SQL
luicam/Tienda-Online
/BBDD PHPMYADMIN/INSERTS/tienda_online_INSERTS.sql
UTF-8
9,244
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 03-05-2021 a las 20:08:42 -- Versión del servidor: 10.4.18-MariaDB -- Versión de PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
6514b28a75e810179dbb27f3d8912879055e7f3e
SQL
Jooke-R/-
/虚拟开箱系统/开箱模拟用户表及库存表.sql
WINDOWS-1252
1,679
3.515625
4
[]
no_license
create database ģ create table Regist (num varchar(10) primary key not null, name varchar(20) not null, pwd varbinary(1024) not null, phone char(11), remain money CONSTRAINT ck_test_rowid check(remain>=0) not null, ) insert into Regist values ('1625121006','ٿ',pwdencrypt('chen'),'13385926029','100') select * from Regis...
true
733fc8f24112ece54c8d421b428b4c91e435bd13
SQL
tcjwj2008/K3SystemCollection
/A000002WISE开发同步源码(精品)/Z跟踪语句_基础资料_仓库类别_2018-4-2.sql
GB18030
2,137
2.6875
3
[]
no_license
INSERT INTO t_Item ( FItemClassID , FParentID , FLevel , FName , FNumber , FShortNumber , FFullNumber , FDetail , UUID , FDeleted ) VALUES ( 5 , 0 , 1 , '' , '999' , ...
true
ee73302d248889e4bd73a58dbb8fac93fdb1711c
SQL
imsat/washing_plant
/washing_plant.sql
UTF-8
7,204
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 19, 2018 at 11:36 PM -- Server version: 10.1.29-MariaDB -- PHP Version: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
b7c8618f03b583731395b97871fc07983bfbb542
SQL
NeboLej/TradeCompanyProject
/TradeCompany_DataBase/TradeCompany_DataBase/Stored Procedures/GetPotentialClientsByProductsIDs.sql
UTF-8
3,096
4.15625
4
[]
no_license
CREATE PROCEDURE [TradeCompany_DataBase].[GetPotentialClientsByProductsIDs] @IDs ntext, @DateTime DateTime, @GroupMatchNumber int, @ClientSearch nvarchar(255) AS select t1.ID, t1.ClientName, t1.ContactPerson, t1.Phone, t1.E_Mail, t1.Type, t1.LastOrderDate, t1.ProductID, t1.Name, t1.StockAmount, t1.MeasureUn...
true
b873aec8c7accfb9d724685d76ce1e71bacafc8b
SQL
bogdankuts/smart-final
/database/smart-12-20-11-11.08.16-08-2016..sql
UTF-8
12,588
3.34375
3
[ "MIT" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Версия 4499 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Адрес: localhost (MySQL 5.5.42) # Схема: smart # Время создания: 2016-08-11 09:20:25 +0000 # *****************************************************...
true
51cbaf714122e92ab8db964a1569c3a28e612e6d
SQL
amaraladil/Realtor-Website
/sql/washrooms.sql
UTF-8
575
2.84375
3
[]
no_license
--Group 13 --washrooms.sql --October 19, 2016 --WEBD3201 -- Dropping tables clear out any existing data DROP TABLE IF EXISTS washrooms; --Creates the table again CREATE TABLE washrooms( value INT PRIMARY KEY, property VARCHAR(30) NOT NULL ); --Inserts rows inside the table INSERT INTO washrooms (value, property)...
true
702a6a69d797b0270eb800361cf15cc9e155b969
SQL
MikelTozza/PL-SQL
/tp6/Formatif_isbn/menu.sql
UTF-8
731
2.890625
3
[]
no_license
CLEAR SCREEN PROMPT ************* MENU PRINCIPAL ************** PROMPT * 1: Executer creation des tables * PROMPT * 2: Executer insertion de donnees * PROMPT * 3: Executer mise a jour dans listevente * PROMPT * 4: Executer Suppression dans listevente * PROMPT * 5: Quitter * P...
true
64e9044aaccc1997bd0a6bd41681546695c35b55
SQL
popsbear1/InfraBid
/DB/infrabidtrackV2.sql
UTF-8
10,049
2.953125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Jun 20, 2018 at 11:16 PM -- Server version: 5.7.19 -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
3f208e8c2bfb2d491266c107c798bb8c6cc283ab
SQL
adamis/oracle_xe_11g
/dump/init.sql
UTF-8
464
2.734375
3
[]
no_license
CREATE TABLE "REGIONS" ( "REGION_ID" NUMBER NOT NULL, "REGION_NAME" VARCHAR2(25 BYTE), CONSTRAINT "REG_ID_PK" PRIMARY KEY ("REGION_ID"), CONSTRAINT "REGION_ID_NN" CHECK ("REGION_ID" IS NOT NULL) NOT DEFERRABLE INITIALLY IMMEDIATE NORELY VALIDATE ) TABLESPACE "USERS" LOGGING NOCOMPRESS PCTFREE 10 INITRANS 1 STOR...
true
bf2abe562be28d6b63b491e8c980777197f3d377
SQL
quincogdell/classwork
/w03/d3/hogwarts/practice_sql.sql
UTF-8
230
2.8125
3
[]
no_license
SELECT * FROM students INNER JOIN houses ON students.house_id = houses.id WHERE students.name = 'Harry Potter'; SELECT students.name FROM students INNER JOIN houses ON students.house_id = houses.id WHERE houses.name = 'Gryffindor';
true
f75b03854d4942538e888699de7b23972244e4aa
SQL
Ghost141/LeetCode
/sql/613.sql
UTF-8
302
3.859375
4
[]
no_license
CREATE TABLE If Not Exists point (x INT NOT NULL, UNIQUE INDEX x_UNIQUE (x ASC)); Truncate table point; insert into point (x) values ('-1'); insert into point (x) values ('0'); insert into point (x) values ('2'); SELECT MIN(ABS(p1.x - p2.x)) AS shortest FROM point p1 JOIN point p2 ON p1.x != p2.x ;
true
1fccdb583bb9c824b3fd4331c80f7173dd05c516
SQL
ganeshsawhney/BookManagementRetail-MavenNinja
/3 BookManagement/3b using annotations/1/stock.sql
UTF-8
1,654
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.3.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 08, 2017 at 08:11 AM -- Server version: 5.6.24 -- PHP Version: 5.6.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true