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
36c8e7b5cea3b6c7be4b05bb94151d605ec3b174
SQL
1newstar/KKDiveIntoMysqlBook
/ch17/13--reorganizeList.sql
UTF-8
922
4.1875
4
[]
no_license
#### #List 分区管理——重新组织分区 ### #创建表 expenses DROP TABLE IF EXISTS expenses; CREATE TABLE expenses( expense_date DATE NOT NULL, category INT, amount DECIMAL(10,3) ) PARTITION BY LIST(category) ( PARTITION p0 VALUES IN (3,5), PARTITION p1 VALUES IN (1,10), PARTITION p2 VALUES IN (4,9), PARTITION p3 VALUES IN (2), PA...
true
37e88bd9412d0dd8c5bfc3354dae8ed7500e15af
SQL
OlafMd/MedCon1.0
/mm-libs/dbaccess/Level 3/CL3_SupplierSelectionArea/Atomic/Retrieval/SQL/cls_Get_SupplierSelectionAreas_for_Tenant.sql
UTF-8
404
2.65625
3
[]
no_license
Select log_reg_supplierselectionareas.LOG_REG_SupplierSelectionAreaID, log_reg_supplierselectionareas.SupplierSelectionArea_Name_DictID, log_reg_supplierselectionareas.SupplierSelectionArea_Description_DictID From log_reg_supplierselectionareas Where log_reg_supplierselectionarea...
true
6668d83cb9c245c92e6e3f3ecebf2cf3c165d188
SQL
nixin72/HC-Semester-3
/420-D10 (Databases I)/Assignments/pdumaresq_D10_A05/pdumaresq.sql
UTF-8
147,925
2.6875
3
[]
no_license
--DROP TABLE iu_course CASCADE CONSTRAINTS; --DROP TABLE iu_crssection CASCADE CONSTRAINTS; --DROP TABLE iu_departement CASCADE CONSTRAINTS; --DROP TABLE iu_faculty CASCADE CONSTRAINTS; --DROP TABLE iu_location CASCADE CONSTRAINTS; --DROP TABLE iu_major CASCADE CONSTRAINTS; --DROP TABLE iu_registration CASCADE CO...
true
6409ecd20a9383614b814bc6f69e09b39c2788a2
SQL
jichigo/test
/terasoluna-gfw-web-blank/src/main/resources/database/ORACLE-schema.sql
UTF-8
1,107
3.6875
4
[]
no_license
drop sequence seq_article; drop sequence seq_article_class; drop table article; drop table article_class; drop table id_mng; commit; create table article_class ( article_class_id number(10) not null, name varchar(64) not null, constraint pk_article_class primary key (article_class_id) ); cr...
true
e22f893f8144f48372a893a75e9071c4dd75e5ff
SQL
zabbonat/Data-Management
/FINAL.sql
UTF-8
3,350
4.625
5
[]
no_license
#1) How many total point have users having id ≥0 (-1 is server)? create view stats.totalPoints(`User Id` , `Number of posts`, Votes , Reputations , Views , `Total Point`) as (SELECT owneruserId as Id, count(*) as `Number of posts`, (UpVotes-DownVotes) as votes, reputation, views, (views + reputation + (UpVotes-Do...
true
cc6d1a14e93296728d94bfbf6c34de5691b45f71
SQL
adrienrouquet/cpe-2018
/JavaEE/asi2-tp/SQL/table_users.sql
UTF-8
274
3.28125
3
[]
no_license
CREATE TABLE users ( id INT(11) PRIMARY KEY NOT NULL AUTO_INCREMENT, login VARCHAR(50) NOT NULL, password VARCHAR(50) NOT NULL, first_name VARCHAR(50), last_name VARCHAR(50), birthdate DATE ); CREATE UNIQUE INDEX users_login_uindex ON users (login);
true
8d76f473198046d434f477da01ab0f5ff03cd18e
SQL
sundusseif93/Capstone_Mortality
/mySQL_scripts/loadtables_shared.sql
UTF-8
5,125
3.609375
4
[]
no_license
-- SET GLOBAL wait_timeout = 28800; -- SET GLOBAL interactive_timeout = 28800; -- Notes: ------------------------------------------------------------------- -- 1. YOUR PATH should be written as 'C:/rawdata/mort_2017.csv' etc -- 2. Set foreign, unique checks to 0 and 1 afterwards -- 3. Blank strings aren't handled in...
true
03800daebc28b14755f4822829b2dfff1b02c970
SQL
cdeluna95/itec4200-assignments-oracle
/Ch6/Ch6_Sample_Problems.sql
UTF-8
542
3.71875
4
[]
no_license
SELECT MAX(last_name), MIN(first_name) FROM employees; SELECT COUNT(employee_id) FROM employees; SELECT department_id, job_id, TO_CHAR(SUM(salary), '$9999,999') "Average Salary" FROM employees GROUP BY department_id, job_id HAVING SUM(salary) >= 50000 ORDER BY 1, 2; SELECT job_id, TO_CHAR(SUM(salary), '$...
true
ec845b7d842c316fd00c65a5b0fffb3d5c153dcd
SQL
RcBuilder/Scripts
/SQL/PivotSample-KeyValueToColumns.sql
UTF-8
986
3.890625
4
[]
no_license
CREATE TABLE dbo.Temp ( Id int, [Key] VARCHAR(50), [Value] VARCHAR(200) ) INSERT INTO Temp VALUES (1, 'Key1', 'Value1'), (1, 'Key2', 'Value2'), (1, 'Key3', 'Value3'), (2, 'Key1', 'Value1'), (2, 'Key2', 'Value2'), (3, 'Key1', 'Value1'), (4, 'Key1', 'Value1'), (4, 'Key2', 'Value2'), (4, 'Key3', 'Value3'), ...
true
f95b8c83e21f02d3bd5b3fca36e5e194b78776b9
SQL
tyrc94/schedulr
/src/db/schema.sql
UTF-8
1,056
3.765625
4
[]
no_license
CREATE TABLE IF NOT EXISTS `users` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT UNIQUE, `username` TEXT NOT NULL UNIQUE, `password` TEXT NOT NULL, `forename` TEXT NOT NULL DEFAULT ' ', `surname` TEXT NOT NULL DEFAULT ' ' ); CREATE TABLE IF NOT EXISTS `priority` ( `id` INTEGER NOT NULL PRIMARY KEY AUTOINCREM...
true
84648c927f973b2758ea5f16b3114c8c27e68e28
SQL
jamayfieldjr/iem
/database/upgrade/iem/15.sql
UTF-8
1,350
4
4
[ "MIT" ]
permissive
-- Create the 2019 tables while we are messing around here create table hourly_2019( CONSTRAINT __hourly_2019_check CHECK(valid >= '2019-01-01 00:00+00'::timestamptz and valid < '2020-01-01 00:00+00'::timestamptz)) INHERITS (hourly); CREATE INDEX hourly_2019_idx on hourly_2019(station, network, valid); CR...
true
745c220d534d6cd8405e9f6656c06acf843078a7
SQL
Beryl1020/SQL
/30link/data require/data require-后端用户交易额变化.sql
UTF-8
2,063
3.78125
4
[]
no_license
SELECT aa.date1, sum(CASE WHEN cc.trade_time >= aa.submit_time AND cc.fdate BETWEEN to_char(aa.submit_time, 'yyyymmdd') AND to_char(aa.submit_time, 'yyyymmdd') THEN nvl(cc.contqty,0) END) AS 流转当天交易额, sum(CASE WHEN cc.trade_time >= aa.submit_time AND cc.fdate BETWEEN to_char(aa....
true
3529b8f613a34851638c90947bc8e682a38eb7c9
SQL
ketuker/oil-palm-cultivation-thesis
/sql/factors_average_geometric.sql
UTF-8
906
3.0625
3
[ "MIT", "BSD-3-Clause" ]
permissive
CREATE TABLE factors_avarage_geometric ( id integer NOT NULL, climate_land double precision, climate_accessibility double precision, land_accessibility double precision, bobot_climate double precision, bobot_land double precision, bobot_accessibility double precision, cr double precisi...
true
cee3c6bc4191495b15b76fbca7318ffd97bfda17
SQL
fenago/Oracle12cCourse
/ora12labs/CDISPA~4.SQL
UTF-8
184
2.9375
3
[]
no_license
SELECT decode(SUM(TOTALQ),0,'No Responses'), (SUM(WAIT)/SUM(TOTALQ)) "Average Wait Time" FROM V$QUEUE Q, V$DISPATCHER D WHERE q.type = 'DISPATCHER' AND q.paddr = d.paddr /
true
91881831e767722d258b59f0ad2decc4de0cb2d5
SQL
gebremedhin85/hyf-homework
/databases/week2/part4clubDatabase.sql
UTF-8
1,831
3.8125
4
[]
no_license
-- Part 4: Creating a club database CREATE DATABASE football_club; USE football_club; -- Creating tables SET NAMES utf8mb4; -- Players CREATE TABLE `player` ( `id` int (10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar (255) NOT NULL, `age` int (3) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT...
true
d7416528c0c6603d0c693139054999e699449a8a
SQL
shobes572/DSI_Module-6
/Assignment_6-5.sql
UTF-8
3,819
4.65625
5
[ "MIT" ]
permissive
-- How many records are in the vehicles table? Provide the query you’d use to determine this as well as the answer to the question. SELECT COUNT(*) FROM vehicles; -- ANSWER: 33442 -- Write a query that returns all the records in the vehicles table. SELECT * FROM vehicles; -- Write a query that returns the id, make,...
true
a8ba0b3f185d797da84ad614e274e61c33d831a5
SQL
raffaellomarchetti/Uri-Sql
/2622.sql
UTF-8
114
3.109375
3
[]
no_license
select customers.name from customers where customers.id in (select legal_person.id_customers from legal_person)
true
6551935aee142176f4ffd24d5cf0642906667fb4
SQL
ambientlight/puppylog
/sql/logstreams.sql
UTF-8
532
3.609375
4
[]
no_license
CREATE TABLE IF NOT EXISTS logstreams ( id INT PRIMARY KEY GENERATED ALWAYS AS IDENTITY, -- log stream source (filepath prefixed with file:// or stream url) source_uri TEXT NOT NULL, loggroup_id INT NOT NULL, -- byte offset after last read from the source stream (when applicable) stream_boffset ...
true
6a2bc18b5cc30b355e78bddcf08737f1744d5bd8
SQL
otcshare/chromium-src
/tools/perf/core/tbmv3/metrics/janky_time_per_scroll_processing_time.sql
UTF-8
12,750
3.984375
4
[ "BSD-3-Clause", "Zlib", "LicenseRef-scancode-unknown-license-reference", "LGPL-2.1-only", "LGPL-2.0-or-later", "APSL-2.0", "MIT", "Apache-2.0", "LGPL-2.0-only", "LicenseRef-scancode-unknown" ]
permissive
-- -- A collection of metrics related to GestureScroll events. -- -- We compute a couple different metrics. -- -- 1) GestureScrollMilliseconds -- The time spent scrolling during the trace. Measured as the timestamp of -- the GestureScrollBegin to the end timestamp of the last event (either -- GestureScro...
true
ce634cb9de6740bdfc0a487ac99c34d223b4da79
SQL
PawanPatil19/CS50--Introduction-to-Computer-Science
/pset7/movies/13.sql
UTF-8
264
3.546875
4
[]
no_license
SELECT people.name FROM people WHERE people.id in (SELECT person_id FROM stars WHERE stars.movie_id IN (SELECT stars.movie_id FROM stars WHERE stars.person_id IN (SELECT id FROM people WHERE people.name='Kevin Bacon' AND birth=1958))) AND people.name NOT IN ('Kevin Bacon');
true
28d35ca3c730c39f8ec4bcd2bfe353a101bc32b0
SQL
ouyangjunfei/SSMIntegration
/sql/books.sql
UTF-8
1,760
3.234375
3
[ "Apache-2.0" ]
permissive
/* Navicat Premium Data Transfer Source Server : local Source Server Type : MySQL Source Server Version : 50731 Source Host : localhost:3306 Source Schema : mybatis Target Server Type : MySQL Target Server Version : 50731 File Encoding : 65001 Date: 26/05/2021 00:18:...
true
78eb55af3140f76dddc1eaaf5ba9d04d5b323b2b
SQL
radtek/abs3
/sql/mmfo/bars/Package/bars_error.sql
WINDOWS-1251
69,093
2.59375
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/package/bars_error.sql =========*** Run *** PROMPT ===================================================================================== CREATE OR REPLACE PACKAGE BAR...
true
71abd4cc5eb87ab9e53480c2fff32d335827a651
SQL
mebelousov/antlr_psql
/src/test/resources/sql/select/ae93c909.sql
UTF-8
194
2.890625
3
[ "MIT" ]
permissive
-- file:oidjoins.sql ln:104 expect:true SELECT ctid, atttypid FROM pg_catalog.pg_attribute fk WHERE atttypid != 0 AND NOT EXISTS(SELECT 1 FROM pg_catalog.pg_type pk WHERE pk.oid = fk.atttypid)
true
d741049c218fe2ca99fcaae9a46758cbd776efab
SQL
doansonlam/KanKook-by-The-Kooks
/database/kankook.sql
UTF-8
4,669
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Nov 30, 2018 at 05:52 AM -- Server version: 5.7.23 -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
7eb45047e2b32e74727dde36e5cba2a3474ed433
SQL
mumer29/oracle-press
/plsql-11g-programming/chapter-06/create_pipelined2.sql
UTF-8
2,829
3.734375
4
[]
no_license
/* * create_pipelined2.sql * Chapter 6, Oracle Database 11g PL/SQL Programming * by Michael McLaughlin * * ALERTS: * * This script creates the pipelined package specification, a * pipelined function that uses the collection from the package * specification, and an implementation of the same pipelined...
true
718b171db70355b5e75ee5acaa8e94f218906302
SQL
omar-nema/info-aesthetics-visuals
/info-aesthetics-assignment-time/data cleanse.sql
UTF-8
2,355
4.0625
4
[]
no_license
IF OBJECT_ID('tempdb..#parsed') IS NOT NULL DROP TABLE #parsed select [Complaint Type] as complaint, [incident zip] as zip, Borough , cast([created date] as date) as [dt] , cast([created date] as time) as [time] into #parsed from dbo.[311text2] where month(cast([created date] as date)) = 8 select cast('19:00...
true
b7b8b68b8438819df01a4616497c292395a33189
SQL
MarcoFerreiraofc/SENAI-Sprint1-BD
/Exercícios/1.2-exercicio-locadora/locadora_03_DQL.sql
ISO-8859-1
920
3.84375
4
[]
no_license
USE Locadora; SELECT * FROM Empresas; SELECT * FROM Veiculos; SELECT * FROM Clientes; SELECT * FROM Alugueis; -- SELECT coluna1, coluna 2... FROM tabela1 -- TIPO JOIN tabela2 -- ON tabela1.PK = tabela2.FK SELECT Alugueis.dataInicio AS Retirada, Alugueis.dataFim AS Devoluo, Clientes.nomeCliente AS Cliente, Modelos....
true
ea95c3ea28c373abd68c74dc702e8dae510c838e
SQL
Sasinda98/libraryapp-auth
/src/main/resources/schema.sql
UTF-8
4,115
3.328125
3
[]
no_license
create table if not exists oauth_client_details ( client_id varchar(255) not null, client_secret varchar(255) not null, web_server_redirect_uri varchar(2048) default null, scope varchar(255) default null, access_token_validity int default null, refresh_token_validity int default null, reso...
true
bb06051093243418e9adeb10191387581b05ea37
SQL
NathanRodriguez04/database-exercises
/subqueries_exercises.sql
UTF-8
383
4.03125
4
[]
no_license
SELECT e.first_name as first_name, e.first_name as last_name, (SELECT CONCAT(first_name, ' ', last_name) FROM employees manager_emp WHERE dm.emp_no = manager_emp.emp_no) as Manager FROM employees e JOIN dept_emp de on e.emp_no = de.emp_no JOIN dept_manager dm on de.dept_no = dm.dept_no W...
true
b028704f4777b7a19a9fa7792b5869cecbf8769a
SQL
SeanPan712/web_trial1
/shadowdb.sql
UTF-8
6,896
2.59375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 18, 2020 at 05:18 PM -- 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
67ec7359f1c49082f0894a133eab52f2b47cc2d4
SQL
volodymyrfuchedzhy/testask
/testtask.sql
UTF-8
7,365
3.125
3
[ "BSD-3-Clause" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 06, 2018 at 02:01 PM -- Server version: 5.5.56-MariaDB -- PHP Version: 7.1.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
b384a8645ed3453d3432e8ddc32551d7977606bf
SQL
robiratnomazumder/API-in-Laravel
/db/api.sql
UTF-8
5,290
3.03125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 02, 2020 at 12:59 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
8f0779275b6946b845be300c410c9948436e6002
SQL
swishcloud/goblog
/migrations/2_friendlyLink.up.sql
UTF-8
649
2.921875
3
[ "MIT" ]
permissive
-- Table: public.friendly_link -- DROP TABLE public.friendly_link; CREATE TABLE public.friendly_link ( id uuid NOT NULL, description character varying COLLATE pg_catalog."default" NOT NULL, website_url character varying COLLATE pg_catalog."default" NOT NULL, friendly_link_page_url character varying CO...
true
a03380bd8f9eec6e2135321b02c748bb9c4bdfb3
SQL
josuepr2/magic-portal-api
/migrations/staticFiles/create_tables.sql
UTF-8
982
3.796875
4
[]
no_license
create table role ( id uuid primary key, role_name varchar(80) unique not null ); create table account ( id uuid primary key, first_name varchar(80) not null, last_name varchar(80) not null, nickname varchar(20), email varchar(180) unique not null, password varchar (10) not null, c...
true
734fe35fe6d88c260d6ce94fe4916ecd13d6219d
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day21/select1231.sql
UTF-8
260
3.046875
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='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['4086','2051','2074','4091','5013','5219','4221','3002','4048','3042'])
true
ee7d4207bb994393dbb166e214fcfde8ad70ff47
SQL
Ardiyan16/sanggar
/sanggar_new.sql
UTF-8
16,381
3.234375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 11, 2021 at 03:48 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
28d9adb702e96884f4ee53e7f1ed6d046907636c
SQL
gbueno1291/fiscalizacao
/src/main/resources/db/migration/V037__Create_Table_config.sql
UTF-8
264
2.859375
3
[]
no_license
CREATE TABLE config( id INT AUTO_INCREMENT NOT NULL, emitente_id INT NOT NULL, descricao_config VARCHAR(50) NOT NULL, ano_vigente VARCHAR(4) NOT NULL, PRIMARY KEY(id), CONSTRAINT fk_emitente_config FOREIGN KEY (emitente_id) REFERENCES emitente(id) )ENGINE=INNODB;
true
e054191de5e41b8c81a5d9e13b0361c5958d934f
SQL
VicR/A01022462_BDA18
/Actividades/A9.1.Cursor/A9cursor.sql
UTF-8
629
3.84375
4
[]
no_license
drop procedure if exists concat_film_category; delimiter // CREATE PROCEDURE concat_film_category() BEGIN DECLARE ids int; DECLARE done INT DEFAULT FALSE; DECLARE cursor1 CURSOR FOR SELECT film_id FROM film; DECLARE CONTINUE HANDLER FOR NOT FOUND SET done = TRUE; OPEN cursor1; read_loop: LOOP IF done...
true
0fba3dff13d22779a05f0eeb256d76e64d3fc750
SQL
RammsteinAM/tournament-management-app-server
/prisma/migrations/20210507095114_tournament_share_id/migration.sql
UTF-8
336
2.9375
3
[]
no_license
/* Warnings: - A unique constraint covering the columns `[shareId]` on the table `Tournament` will be added. If there are existing duplicate values, this will fail. */ -- AlterTable ALTER TABLE "Tournament" ADD COLUMN "shareId" TEXT; -- CreateIndex CREATE UNIQUE INDEX "Tournament.shareId_unique" ON "Tourname...
true
c042759cccfd6c36c5acfee621fb8ae6e2dd83c9
SQL
LudmilaPojoga/tekwill_sql
/lc7.sql
UTF-8
11,520
4.40625
4
[]
no_license
--teme pt acasa --ex4 SELECT MAX(salary) Maximum, MIN(salary) Minimum, SUM(salary) SUMM, ROUND(AVG(salary)) Average FROM employees; --ex5 SELECT job_id, MAX(salary) Maximum, MIN(salary) Minimum, SUM(salary) SUMM, ROUND(AVG(salary)) Average FROM employees Group By job_id...
true
e1ec35513757988931c1ffc185e8516976b7b34f
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day16/select2331.sql
UTF-8
260
3
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='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['3228','3084','4069','6210','3099','2219','5074','3048','6086','4214'])
true
67866e3e70826320ded2a1407cd1294055d99ef0
SQL
mcgidev/mPortal
/Portal/WebSystem/WCMS.Framework.SqlDabase/dbo/Stored Procedures/MenuItem_Del.sql
UTF-8
133
2.671875
3
[ "MIT" ]
permissive
CREATE PROCEDURE dbo.MenuItem_Del ( @Id int ) AS SET NOCOUNT ON IF(@Id > 0) DELETE FROM MenuItem WHERE Id=@Id; RETURN
true
67320389ff704c08d53447cd2ee7a334277891e6
SQL
bellmit/origin
/family_order/sql/.svn/pristine/67/67320389ff704c08d53447cd2ee7a334277891e6.svn-base
UTF-8
615
3.046875
3
[]
no_license
SELECT to_char(trade_id) trade_id,to_char(user_id) user_id,notice_content,trade_attr,enable_tag,remark,to_char(start_date,'yyyy-mm-dd hh24:mi:ss') start_date,to_char(end_date,'yyyy-mm-dd hh24:mi:ss') end_date,update_staff_id,update_depart_id,to_char(update_time,'yyyy-mm-dd hh24:mi:ss') update_time FROM tf_f_user_inf...
true
4c7eddf39ed9c510b5b031034f1bd232ac71ac21
SQL
rtdevlin/Franklin
/Comp281/9-1/part3_trig3.sql
UTF-8
1,881
3.234375
3
[]
no_license
set echo on; set serveroutput on; CREATE OR REPLACE TRIGGER trg_prod_QOH_on_line_update AFTER UPDATE ON LINE FOR EACH ROW BEGIN UPDATE PRODUCT SET P_QOH = P_QOH + (:new.LINE_UNITS - :old.LINE_UNITS) where P_CODE = :old.P_CODE; END; / COMMIT; SELECT P_CODE, P_QOH FROM PRODUCT WHERE P_CODE='54778-2T'; SELECT * FROM LI...
true
3ba34a6fbc206ea8e01a2a51d880d2b66eb8a29c
SQL
bopjesvla/logrep
/pkey.sql
UTF-8
701
4.25
4
[]
no_license
SELECT t.table_catalog, t.table_schema, t.table_name, kcu.constraint_name, kcu.column_name, kcu.ordinal_position FROM INFORMATION_SCHEMA.TABLES t LEFT JOIN INFORMATION_SCHEMA.TABLE_CONSTRAINTS tc ON tc.table_catalog = t.table_catalog AND tc.table_schema = t.table_schema AND tc.table_name = t.table_name AND tc.constrain...
true
5bdf132e5a9690da7e026eb59c3335a229bbaac5
SQL
takagotch/phplib
/phpmook/phpmook.sql
UTF-8
7,720
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2014 年 5 朁E08 日 21:52 -- サーバのバージョン: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 ...
true
696cab24d6a7ec823d73dc34b35a929945b80408
SQL
read247247/MedicalSystem
/Database Stuff/test.sql
UTF-8
12,592
3.25
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Wed Nov 28 07:47:33 2018 -- Model: New Model Version: 1.0 -- 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; -- --------------------------------------...
true
fe2c917448ef0d783988b53677d9ab9c2100db69
SQL
JeffersonVang/Main1
/ms_test_data (1).sql
UTF-8
6,023
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 05, 2021 at 04:00 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
f93a4cd40b4d96b2ea68edd7d6202c7c17ba01a8
SQL
AdiYuniCandra/Tugas-UAS1
/adi.sql
UTF-8
4,174
3.28125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 30, 2018 at 04:29 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
3c6fa48b1043957cac0940d7e58edad20c783be1
SQL
Arose-Niazi/Database-1
/20-07-06.sql
UTF-8
1,277
3.484375
3
[]
no_license
-- 1) SELECT * FROM branch WHERE branchNo = 'B005'; -- 2) SELECT * FROM staff WHERE salary > 18000; -- 3) SELECT staffNo,branchNo FROM staff WHERE salary <= 24000; -- 4) SELECT * FROM staff WHERE salary != 30000; -- 5) SELECT * FROM branch WHERE city = 'London'; -- 6) SELECT * FROM staff WHERE YEAR(DOB) < 1965; -...
true
93397719f0c4145bc0239ebfb854e11324010f9d
SQL
liu946/hitshop
/hitshop.sql
UTF-8
21,627
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.1 -- http://www.phpmyadmin.net -- -- 主机: 127.0.0.1 -- 生成日期: 2014 年 07 月 15 日 14:54 -- 服务器版本: 5.5.32 -- PHP 版本: 5.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER...
true
a868c4286e298a54e8a37d7b8dff1300c19fd1d8
SQL
vdelarosa210/database_exercises
/update_exercises.sql
UTF-8
487
3.203125
3
[]
no_license
USE codeup_test_db; select 'All albums in your table.' as ''; select name, sales from albums; UPDATE albums set sales = sales * 10; select name, sales, from albums; select 'All albums released before 1980.' as ''; select name, release_date from albums where release_date < 1980; UPDATE albums set release_date = releas...
true
c0b982569e3ab28dc934b842dc594b82fdc5ec39
SQL
kishoref22/SoftUni-Homework-Projects
/Databases Fundamentals/Databases Basics/04. BuiltInFunctons/PeaksRiversCombined.sql
UTF-8
227
3.953125
4
[]
no_license
USE Geography SELECT p.PeakName, r.RiverName, LOWER(CONCAT(LEFT(p.PeakName,LEN(p.PeakName)-1),r.RiverName)) AS 'Mix' FROM Peaks AS p INNER JOIN Rivers AS r ON RIGHT(p.PeakName,1) = LEFT(r.RiverName,1) ORDER BY Mix
true
6b2e627e3a592bb67aa6155540aa32c6752bafd4
SQL
Diego-PA/DB_Seeding_Laravel_7
/BD_portafolio.sql
UTF-8
1,060
3.5
4
[]
no_license
/* AUTOR: Diego Puebla Aldama (diego.loge@comunidad.unam.mx) DROP TABLE prioridad; DROP TABLE abogado; DROP TABLE empresa_abogado; DROP TABLE empresa; */ CREATE TABLE prioridad ( id SERIAL PRIMARY KEY, nombre VARCHAR(30) NOT NULL ); CREATE TABLE abogados ( id SERIAL PRIMARY KEY, nombre VARCHAR(250) ...
true
33736f9312208f25a94e55789032299dfa9977fd
SQL
iJasonCui/big_database
/MySQL/sproc/Accounting/wsp_wcsCreditCardByNameOnCard.mysql
UTF-8
545
2.84375
3
[]
no_license
DELIMITER ;; DROP PROCEDURE IF EXISTS wsp_wcsCreditCardByNameOnCard; CREATE DEFINER='root'@'10.10.26.21' PROCEDURE wsp_wcsCreditCardByNameOnCard ( at_rowcount INT ,at_nameOnCard VARCHAR(40) ) BEGIN SET at_nameOnCard = UPPER(at_nameOnCard); SELECT userId ,replicate('*',12) + right(rtrim(partialCa...
true
320c27ca8f6ccadd90dfb3860856dfab9c6eb320
SQL
vstrizhakov/itstep_works
/EXAMINATIONS/Чемпионат мира по футболу SQL/TablesCreation.sql
UTF-8
1,690
3.671875
4
[]
no_license
CREATE TABLE Coachs ( Id INT NOT NULL PRIMARY KEY IDENTITY(1, 1), Firstname VARCHAR(64), Lastname VARCHAR(64) ); CREATE TABLE Stadiums ( Id INT NOT NULL PRIMARY KEY IDENTITY(1, 1), Name VARCHAR(64), City VARCHAR(64) ); CREATE TABLE Teams ( Id INT NOT NULL PRIMARY KEY IDENTITY(1, 1), Name VARCHAR(64), Id_Coac...
true
b0431f0f381b55bc0118340d24b6b89001fcfaae
SQL
MaximDascalasu/Database-Development
/3.c.sql
UTF-8
247
3.1875
3
[]
no_license
SELECT F.FlatpackID,Name,Colour, Type, Unitprice,C.ComponentNo,Description FROM Flatpack_MD F Inner Join FLatpackComponent_MD fc on F.FlatpackID = FC.FlatpackID Inner Join Component_MD C on FC.ComponentNo=C.ComponentNo order by F.FlatpackID;
true
635cd8f995224d0b010149e7d1e4730d475b945b
SQL
colathurv/epos_automation
/scripts/etl/epos_create_bookstore_cr_report.sql
UTF-8
1,106
3.671875
4
[]
no_license
################################################################# # This placeholder script will create the constant rememberance # subscription report based on the user variables # - store_code and date_string. # Author - Colathur Vijayan [VJN] ################################################################# ### ...
true
df810a90c3085a322facbb99e53b768f69ac806e
SQL
andrewharvey/bts-nsw2pgsql
/pg-schemas/train-station-barrier-counts.sql
UTF-8
645
3.546875
4
[]
no_license
-- To the extent possible under law, the person who associated CC0 -- with this work has waived all copyright and related or neighboring -- rights to this work. -- http://creativecommons.org/publicdomain/zero/1.0/ -- Can't do this is a range, as a range won't loop round midnight CREATE DOMAIN bts.timerange AS text CHE...
true
f7130d8ff7cec97ec5216787f49361992250fafd
SQL
garysgoy/jj3m
/dump/jj3m_Start_2017-12-15.sql
UTF-8
22,493
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 15, 2017 at 01:32 PM -- Server version: 5.6.35 -- PHP Version: 7.1.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
3e4d1df19a311eafed58110ab45a2a275cc79c0f
SQL
John3791/Samee
/database/scripts/createtablepackage.sql
UTF-8
2,200
3.125
3
[]
no_license
DROP TABLE Package IF EXISTS; CREATE TABLE Package (Id UUID not null primary key, Name varchar(128) not null, ShortDescription varchar(128) null, LongDescription varchar(1024) null, ParentId UUID null, FOREIGN KEY(ParentId) REFERENCES Package(Id)); Insert into Package values ('de420727-1a29-4b58-8a94-67ba0a09590b', '...
true
9fa95a4aabdeb4e72fd870af1bf652ee8e8b1d72
SQL
CUBRID/cubrid-testcases
/sql/_27_banana_qa/issue_5765_timezone_support/_13_invalid_time/cases/03.sql
UTF-8
3,094
2.875
3
[ "BSD-3-Clause" ]
permissive
--+ holdcas on; --'Indian/Antananarivo' has problem --sql/_27_banana_qa/issue_5765_timezone_support/_09_timezone_rules/cases/africa.sql has reflected this error set timezone 'Africa/Cairo'; set @a=(select timestamptz'2010-9-9 23:59:59'); select timestamptz'2010-9-9 23:59:59'; select timestampltz'2010-9-9 23:59:59'; s...
true
a9e984c34653d968e872b8ce134a01de10c06cfe
SQL
jxdm-dmoreau/ldcgit
/utils/dump.sql
UTF-8
4,996
3.03125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.1.37, for debian-linux-gnu (i486) -- -- Host: localhost Database: ldc -- ------------------------------------------------------ -- Server version 5.1.37-1ubuntu5.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
true
015aee568e9c4323032bd186e5292325ce95cb77
SQL
DWB-eHealth/mart-hospital-query-library
/ht-indicators/data-verification-queries/HAITI_dataVerification_admissionsParService.sql
UTF-8
1,812
4.1875
4
[]
no_license
/*ABOUT * The data verification for admissions per service should be used to verify data entered in the EMR with data entered in the hospital registers. * Each row of the query represents the admission of a patient to a particular department or service. * If a patient is admitted to multiple services during the vi...
true
c0c82db2393d822cd88a58940aba3448607c886c
SQL
trangruo/Inventorymanagement
/managementSystem/src/main/resources/sql/goods.sql
UTF-8
753
3.5
4
[]
no_license
create database TYDK; use TYDK; drop table if exists goods; CREATE TABLE goods( id INT (5) NOT NULL PRIMARY KEY , name VARCHAR (20) NOT NULL , number INT (5) NOT NULL, w_id INT(5) NOT NULL )ENGINE=InnoDB DEFAULT CHARSET=utf8; drop table if exists warehouse; CREATE TABLE warehouse ( id INT (5) NOT NULL PRIMARY KE...
true
6d0c1052400d7062a61a74975980e2315fda795d
SQL
IsuruNWeerasinghe/SL-Jobs-job-finding-web-site
/sl jobs/Database/job_portal_db.sql
UTF-8
3,285
3.34375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 24, 2018 at 08:41 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
d5bbaf64fdd0e69ce979e8329220a1a272c58b59
SQL
rodricadaval/sirge3
/queries_guardadas/af_001.sql
UTF-8
1,907
3.109375
3
[ "MIT" ]
permissive
--DESDE SUMARDW INSERT INTO estadisticas.uf_001(periodo,id_provincia,rubro,subrubro,monto) ( SELECT * FROM dblink('dbname=sirge host=192.6.0.118 user=postgres password=PN2012\$', 'select replace(periodo , ''-'' , '''') ::int as periodo , id_provincia , codigo_gasto as rubro , subcodigo_gast...
true
390c28b4b43c3fd4c8482b15a7511e976fea5ca2
SQL
OlafMd/MedCon1.0
/mm-libs/dbaccess/Level 5/CL5_APOProcurement_ProcurementOrder/Atomic/Retrieval/SQL/cls_Get_Discounts_for_ProcurementOrderPositions.sql
UTF-8
973
3.203125
3
[]
no_license
SELECT ORD_PRC_ProcurementOrder_Position_Discounts.ord_prc_procurementOrder_Position_RefID ,ORD_PRC_ProcurementOrder_Position_Discounts.IsDiscountRelative ,ORD_PRC_ProcurementOrder_Position_Discounts.IsDiscountAbsolute ,ORD_PRC_ProcurementOrder_Position_Discounts.DiscountValue ,ORD_PRC_ProcurementOrder_Posi...
true
1e1569df123d5107609eabb7842b312a536e1fc9
SQL
brooksquil/sqlite-assignment-chinook
/total_invoices_{year}.sql
UTF-8
324
3.109375
3
[]
no_license
--8) total_invoices_{year}.sql: How many Invoices were there in 2009 and 2011? --InvoiceDate --2009 # of Total Invoices SELECT COUNT(*) FROM Invoice WHERE InvoiceDate BETWEEN '2009-01-01' AND '2009-12-31'; --2011 Total # of Invoices SELECT COUNT(*) FROM Invoice WHERE InvoiceDate BETWEEN '2011-01-01' AND '2011-12-...
true
c525cc0bd8e609a7e19d4873674f8057851595e3
SQL
smithjam1025/projWeather
/schemaWeather.sql
UTF-8
610
3
3
[]
no_license
CREATE TABLE weather( id INT NOT NULL, timeId INT NOT NULL, latitude VARCHAR(100) NOT NULL, longitude VARCHAR(100) NOT NULL, location VARCHAR(100) NOT NULL, summaryForcast VARCHAR(100) NOT NULL, curTemp INT NOT NULL, PRIMARY KEY(id) ); -- CREATE TABLE report( -- id INT NOT NULL, -- lat VARCH...
true
2483459a770ba75e4df49b077b14a591a16363bd
SQL
maxsad1/SQL
/tuning/ck_index.sql
UTF-8
1,065
3.640625
4
[]
no_license
SET VERIFY OFF TTITLE "Information about the table &1" SET LINES 160 SET PAGES 60 COL owner FORMAT a15 COL table_owner FORMAT a15 COL index_name FORMAT a30 COL index_type FORMAT A15 COL column_name FORMAT a30 COL object_name FORMAT a30 COL degree for a7 COL status for a12 col clustering_factor for 99999999999 COL bleve...
true
b9060ca98f487e6b2f269d0edd0e16d33a6637aa
SQL
aislingnorris/SQL
/Vans.sql
UTF-8
879
2.796875
3
[]
no_license
CREATE TABLE Vans ( VanID int PRIMARY KEY CHECK (LENGTH(VanID) > 5) ON DELETE CASCADE, Name varchar(45) NOT NULL CHECK (LENGTH(Name) <= 45), Registration varchar(45) NOT NULL, LastService date NOT NULL, Capacity int, Seats int ); INSERT INTO Vans (VanID, Name, Registration, LastService) VALUES (04054, 'Iveco', '12 ...
true
ad6d2f727f6999e1455c0838ed01460116ca175b
SQL
leuchtboje72/Karteikasten
/datenanzahl.sql
UTF-8
168
2.96875
3
[]
no_license
USE learnbox; SELECT karte.id, frage, antwort, titel AS karten_id FROM karteikarten karte JOIN kategorien kat ON karte.unterkategorie_id=kat.id WHERE kat.id>0;
true
bd773c02d1ceb2f51692b471dd8994c27bb6a7d1
SQL
ldseinhardt/ds
/database/create.sql
UTF-8
4,049
3.96875
4
[]
no_license
-- Script de criação do banco de dados DROP DATABASE IF EXISTS oraculo; CREATE DATABASE oraculo; USE oraculo; -- Tabela de países CREATE TABLE IF NOT EXISTS `countries` ( `id` INT NOT NULL AUTO_INCREMENT, `country` VARCHAR(64) NOT NULL UNIQUE, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=ut...
true
088a7710a7af8b58c5e93b10c0bd14aedaa79bcd
SQL
urothis/nwn-module-DungeonEternalX
/database/statistics.sql
UTF-8
1,618
2.75
3
[]
no_license
-- -------------------------------------------------------- -- Host: nwn.dungeoneternalx.com -- Server version: 5.5.62 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 9.4.0.5125 -- ----------------------------------------------...
true
c674ca8dfe63ba0f2c6af381dc19597c99bf80f0
SQL
BattleRoyel/SQL-Homework
/SQL Homework.sql
UTF-8
2,021
4.5625
5
[]
no_license
USE sakila; -- 1a show table SELECT * FROM actor; SELECT first_name, last_name FROM actor; -- 1b use alter to add column SELECT CONCAT(first_name, ' ', last_name) AS 'Actor Name' FROM actor; -- INSERT INTO Actor_Names SELECT concat(FIRST_NAME, LAST_NAME); -- INSERT INTO actor(Actor Name) VALUES CONCAT(first_name, last...
true
c9add11b62e8e3e0034eed72a04fa0dbc58ce501
SQL
devpuck/wms-core
/src/main/script/pandian.sql
UTF-8
3,790
3.453125
3
[]
no_license
create table WMS_INVENTORY_WAREHOUSE_BILL ( ID NUMBER(32) GENERATED BY DEFAULT AS IDENTITY constraint WMS_IN_WAREHOUSE_BILL primary key, BILL_CODE VARCHAR2(32), WAREHOUSE_CODE VARCHAR2(32), INVENTORY_TYPE VARCHAR2(8), STATUS VARCHAR2(32), VERSION VARCHAR(3...
true
53e3c50287659017aa33ae4e3a5557f2a8c6f814
SQL
dsaqp1516g2/sql
/database-schema.sql
UTF-8
3,526
3.90625
4
[]
no_license
drop database if exists projectdb; create database projectdb; use projectdb; CREATE TABLE users ( id BINARY(16) NOT NULL, loginid VARCHAR(15) NOT NULL UNIQUE, password BINARY(16) NOT NULL, email VARCHAR(255) NOT NULL, fullname VARCHAR(255) NOT NULL, github_auth varchar(255) NOT NULL, PRIMA...
true
4176338c2cf557255640e146e81531ddc3843799
SQL
skukucka98/Java-Project
/create_tables.sql
UTF-8
1,372
3.4375
3
[]
no_license
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema Java-Project -- ---------------------------------...
true
eeadc313b62be533f79e5a3f3c6c3f45bf79f33e
SQL
hugdru/LDSO
/database/sql/examples/4.0audit_subgroup.sql
UTF-8
503
3.453125
3
[]
no_license
SET SCHEMA 'places4all'; INSERT INTO audit_subgroup(id_audit,id_subgroup) VALUES(1,1),(1,2),(1,3); INSERT INTO audit_criterion(id_audit,id_criterion,value) VALUES (1,1,10), -- 1 (1,2,30), -- 2 (1,3,20); -- 3 -- UPDATE audit_criterion -- SET value = ac.value -- FROM ( ...
true
a3f45ceaa3ef03bcc96f23a84e4b03165d5b13cd
SQL
sm634/weekly_work_Sparta
/Week_3/SQL/assess_qes_2_trial_fail.sql
UTF-8
2,238
3.859375
4
[]
no_license
-- 2.1. Design and build a suitable set of fully normalised tables to store information. ----- Table 1: Course ----- DROP TABLE Course CREATE TABLE Course ( Course_id INT NOT NULL IDENTITY PRIMARY KEY, [Course Name] VARCHAR(20), ) ; INSERT INTO Course VALUES ('BA-Test'), ('Engineering') ; SELECT * FROM...
true
cb511a27d794c293e40d9768a78647d3a31e0e3d
SQL
soitun/taiga
/OpenSim/Data/MSSQL/Resources/004_RegionStore.sql
UTF-8
1,592
3.578125
4
[ "BSD-3-Clause" ]
permissive
BEGIN TRANSACTION CREATE TABLE Tmp_primitems ( itemID varchar(36) NOT NULL, primID varchar(36) NULL, assetID varchar(36) NULL, parentFolderID varchar(36) NULL, invType int NULL, assetType int NULL, name varchar(255) NULL, description varchar(255) NULL, creationDate varchar(255) NULL, creatorID varchar(36) N...
true
cda0a89c0ef2132160b008b992ba4a6ca962ce68
SQL
niuniu617418/yd
/上线SQL脚本/V1.0.1_FIX/DML/20180306/liujinping_DML.sql
UTF-8
2,132
3.40625
3
[]
no_license
#第一步:检查看标的是否结清,4003是未结清,5004是结清 select t.projectId, t.projectStatus from sd_trade.trd_project t where t.projectId in (89712166696931328,89088942548209664); #第二步:生成代扣资金流水 SELECT CONCAT( 'INSERT INTO sd_account.tac_withholdorder (orderNo, outerOrderNo, borrowUserId, plateformId, projectId, amount, bankAccount, bankC...
true
1a6728f3cc63097df155dac39696f6b781eb7642
SQL
jongtix/MySQL_jongtix
/MySQL/171128 q2.sql
UTF-8
5,756
4.4375
4
[]
no_license
# 데이터 조회시 행수 제한 select * from stock; # 조회된 데이터 중에서 상위 5개만 출력 # select * from 테이블명 limit n [offset 시작행] - 1부터 n까지 (offset이 있으면 시작행 + 1부터) select * from stock limit 5; select * from stock limit 5 offset 3; select * from stock limit 5 offset 0; SELECT goods.id '상품코드', goods.name '상품명', maker.name '제조사명', ...
true
5c3863c5cb39baff708c6ea4957ac94a43810edc
SQL
KirillRnd/JsonReader
/assets/php/Voprosy_json.sql
UTF-8
231
3.078125
3
[]
no_license
SELECT interview_fields.interview_id, interview.`name`, interview_fields.id, interview_fields.question FROM interview INNER JOIN interview_fields ON interview_fields.interview_id = interview.id WHERE interview_fields.type = 'json'
true
9b1fdb9a3171482d3016bc8b469be9f322bd29b8
SQL
szarbartosz/pbd-lab
/kolos_sql/podstawy_cw_koncowe.sql
UTF-8
3,471
3.96875
4
[]
no_license
/*powtorka - kolos sql 2019*/ /*podstawy_cw_kocowe - lab1*/ --cwiczenie 1 - wybieranie danych use library --1. Napisz polecenie select, za pomocą którego uzyskasz tytuł i numer książki select title, title_no from title --2. Napisz polecenie, które wybiera tytuł o numerze 10 select title from title where title_no ...
true
40f62adba58513d5802e8da613649c9e5f8dc40e
SQL
rkang626/LightBnB
/1_queries/property_listings_by_city.sql
UTF-8
238
3.890625
4
[]
no_license
select p.* , avg(rating) as average_rating from properties p left join property_reviews r on p.id = r.property_id where city ilike '%ancouve%' group by p.id having avg(rating) >= 4 order by cost_per_night asc limit 10
true
24a1c14eb3884c7f9e10548db3cb02ccd91daaa2
SQL
ofnullable/sharebook
/server/module-api/src/main/resources/data.sql
UTF-8
16,357
3.1875
3
[]
no_license
INSERT INTO share_jpa.account(email, password, name, created_at, created_by, modified_at, modified_by) VALUES ("test1@asd.com", "{noop}test", "test user1", now(), "test1@asd.com", now(), "test1@asd.com"), ("test2@asd.com", "{noop}test", "test user2", now(), "test2@asd.com", now(), "test2@asd.com"), ...
true
78374629084eec785d0d037beca50f553609aad9
SQL
toriqpriad/depousaha
/assets/database/arduino_sensor (1).sql
UTF-8
4,891
2.75
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.3.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 22, 2017 at 06:49 PM -- Server version: 5.6.22 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
f6892dd7f7f1e8cdd85c1866e53a234db8eb6d78
SQL
kssak9691/Archives
/Java-Full-Stack-Master/Lab Book Assingnments (DBMS-SQL)/3. J&S/J&S 3.sql
UTF-8
196
3.46875
3
[]
no_license
SELECT Student_Code, Student_name, Book_Code, Book_Name FROM Student_Master natural join Book_Master natural join Book_Transactions WHERE Book_expected_return_date=to_char(sysdate);
true
bbef496caf1fbad96c2087a106b65211d4f9f3b7
SQL
pde-maul/42
/Piscine_PHP/Piscine_42/Day05/ex03/ex03.sql
UTF-8
198
2.734375
3
[]
no_license
INSERT INTO ft_table (login, groupe, date_de_creation) SELECT nom, 'other', date_naissance FROM `db_pde-maul`.fiche_personne WHERE CHAR_LENGTH(nom) < 9 AND nom LIKE '%a%' ORDER BY nom ASC LIMIT 10;
true
cda84bfc48bb78122592bcca4e9134c293f33d45
SQL
Currycurrycurry/JavaWebProject-1
/sql/item.sql
UTF-8
7,548
3.15625
3
[]
no_license
-- 创建展品数据表 CREATE TABLE `item`( `itemID` INT(11) NOT NULL , `name` VARCHAR(255) NOT NULL, `imagePath` VARCHAR(255) NOT NULL, `description` longtext NOT NULL, `year` varchar(255) NOT NULL, `address` varchar(255) NOT NULL, `view` int(11) NOT NULL DEFAULT '0', `videoPath` VARCHAR(255) NOT NULL, `timeRe...
true
c3dfb28fa4c3935460861991d44ac1f8700b26f6
SQL
j7ng/CLFY_SA
/SA/Tables/X_PROGRAM_DISCOUNT_HIST.sql
UTF-8
1,107
2.671875
3
[]
no_license
CREATE TABLE sa.x_program_discount_hist ( objid NUMBER, x_discount_amount NUMBER(10,2), pgm_discount2x_promo NUMBER, pgm_discount2pgm_enrolled NUMBER, pgm_discount2prog_hdr NUMBER, pgm_discount2web_user NUMBER ); ALTER TABLE sa.x_program_discount_hist ADD SUPPLEMENTAL LOG GROUP dmtsora1478512248_0 (...
true
5c1df3774faf738e6690a1d556776f08044704d4
SQL
jinshengyuanok/jinshengyuan
/springBoot-jsp/src/main/resources/sql/DLLSql/com_consume_type.sql
UTF-8
302
2.5625
3
[]
no_license
create table com_consume_type ( consume_type_code char(2) not null comment '消费类型编码' primary key, consume_type_name varchar(50) null comment '消费类型名称', valid_flag char null comment '有效标志,1:有效;0:无效' ) comment '消费类型表';
true
d21b25ac27bbf32fe59ab4a6fd805a46c95aa354
SQL
aguvilte/db_crekings
/11dev_crekings (2).sql
UTF-8
5,820
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost:5432 -- Tiempo de generación: 21-03-2019 a las 20:41:39 -- Versión del servidor: 5.7.25-0ubuntu0.16.04.2 -- Versión de PHP: 7.0.33-5+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET tim...
true
b550e7eed5ad6bd019fb43650b1a933cae7de307
SQL
mofari/team6
/src/main/webapp/WEB-INF/doc/dbms/qna.sql
UHC
5,646
3.875
4
[]
no_license
--ȸ SELECT qnacategory_no, qnacategory_name, qnacategory_ids FROM qnacategory; SELECT qna_no,qna_visible, qna_title, qna_ansnum, qna_grpno, qna_indent FROM qna; SELECT* FROM qna; QNA_NO QNA_TITLE QNA_ANSNUM QNA_GRPNO QNA_INDENT ------ -------------- ---------- --------- ...
true
cb9adf26374fff66b1ec587eb90938ce99868bd4
SQL
murakumo512/DB-FoodOnline
/ta_c09.sql
UTF-8
10,488
2.984375
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 07, 2020 at 03:54 PM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
c34589873bf2f09b622b2f71696539044951b619
SQL
guptanamannn/WiproPjpTraining
/PBLWiproDotNet/Microsoft SQL Server/q27.sql
UTF-8
69
2.8125
3
[]
no_license
select Title ,SUM(Convert(int,Salary)) from Employees group by Title
true
b6b021a579f76dacc686b32934885b0cee0af30a
SQL
ou5y/SpringCloud
/ssstcjava/dbscript/sql_v_1.0.2/alter.sql
UTF-8
1,271
3.109375
3
[]
no_license
ALTER TABLE `c_pay_info` ADD COLUMN `description` VARCHAR(200) NULL DEFAULT '' AFTER `order_fee`; ALTER TABLE `c_pay_info` CHANGE COLUMN `create_time` `create_time` DATETIME NULL DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间' ; ALTER TABLE `order_form` CHANGE COLUMN `ranli_money` `ranli_money` DECIMAL(10,2) NULL DEFA...
true
5e4c459e875ea7af898e789716bbd0623d00cef6
SQL
robertlockard/privilege_analysis
/object_privs.sql
UTF-8
1,589
3.5
4
[]
no_license
-- rlockard, initial version. -- this will create a pivot table of object privileges. -- to fine tune this, add a where clause to dba_tab_privs SELECT grantee_to, GRANTEE_from, GRANTABLE, OWNER, TABLE_NAME, TYPE, "'SELECT'" SEL, "'UPDATE'" UPD, "'INSE...
true