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
628e5589230f9baecc71b5c36c14028fe6e5fad4
SQL
HTTPArchive/almanac.httparchive.org
/sql/2022/javascript/dynamic_import.sql
UTF-8
285
3
3
[ "Apache-2.0" ]
permissive
# standardSQL # usage of dynamic import using blink features from usage counters SELECT client, pct_urls FROM `httparchive.blink_features.usage` WHERE yyyymmdd = '20220601' AND feature = 'DynamicImportModuleScript' GROUP BY pct_urls, client ORDER BY pct_urls, client
true
9f1ecc1863270e6de2d7a072444fc695404289e1
SQL
arvy/adjuster-hw
/schema.sql
UTF-8
449
3.34375
3
[]
no_license
CREATE DATABASE adjuster; USE adjuster; CREATE TABLE campaign ( id INTEGER UNSIGNED, name VARCHAR(255), cpm DECIMAL(5,2), start_date DATE, PRIMARY KEY (id) ) ENGINE=INNODB; CREATE TABLE creative ( id INTEGER UNSIGNED, parent_id INTEGER UNSIGNED, clicks BIGINT UNSIGNED, views BIGINT UNSIGNED, PRIM...
true
f5bd7e5add859048a61df79bc10f426008aa82b9
SQL
Marissa1999/Extra-Database-Exercises
/Exercise5/Exercise5_Script.sql
UTF-8
2,447
3.875
4
[]
no_license
--Exercise5_Script.sql --Name: Marissa Gonçalves --Date: October 2, 2018 CONNECT hr/hr; SET LINESIZE 180; SET PAGESIZE 60; SET ECHO ON; START "D:\Marissa\hr_schema\hr_schema\hr_Script.sql" SPOOL "D:\Semester III\Database I\Exercises\Exercise5\Exercise5_Spool.txt"; --A: Character: Upper, Lower, InitCap -...
true
d17b1e4db405cd814af253979efb417667937624
SQL
bsmith-a/testrepo
/sql tutorial/using clause multiple.sql
UTF-8
155
3.203125
3
[]
no_license
SELECT * FROM order_items oi JOIN order_item_notes oin -- ON oi.order_id = oin.order_id AND -- oi.product_id = oin.product_id USING (order_id, product_id)
true
8029382f5ddeb50553bba556e27b1272f468d851
SQL
OpenRouting/DataModel
/view_way_vertices.sql
UTF-8
622
3.25
3
[ "MIT" ]
permissive
-- View: routing.way_vertices -- DROP VIEW routing.way_vertices; CREATE OR REPLACE VIEW routing.way_vertices AS SELECT DISTINCT ways_vertices_pgr.id, ways_vertices_pgr.cnt, ways_vertices_pgr.chk, ways_vertices_pgr.ein, ways_vertices_pgr.eout, ways_vertices_pgr.the_geom FROM routing.ways_verti...
true
939e36cbfeb1c77954a27cbc97e430a9204f1700
SQL
radtek/abs3
/sql/mmfo/bars/Table/err$_br_normal_edit_update.sql
UTF-8
2,787
2.953125
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/ERR$_BR_NORMAL_EDIT_UPDATE.sql ======= PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
957700281f2b9a5edd728ca895ca1090576d2098
SQL
saphanaacademy/SAPHANACloud
/travel_OData.sql
UTF-8
1,109
3.78125
4
[]
no_license
CREATE SCHEMA travel; CREATE COLUMN TABLE travel."Customers" ( id INTEGER, name VARCHAR(30) NOT NULL, "City" NVARCHAR(100), gender CHAR(6), number_of_trips SMALLINT, loyalty_member BOOLEAN DEFAULT false, balance NUMERIC(6,2), PRIMARY KEY (id) ) ; INSERT INTO travel."Customers" VALUES (1, 'Jamie', ...
true
4560ec18b4718ff3f2bdad6bd90bb87c13d308f9
SQL
hdulqs/NC65_SCM_SO
/saleinvoice/script/dbcreate/ORACLE/00001/tb_nc_scm_so_32.sql
GB18030
11,395
3
3
[]
no_license
/* tablename: Ʊ */ create table so_m32trantype (pk_trantype char(20) not null /*Ʊ*/, ctrantypeid varchar2(20) null /**/, pk_group varchar2(20) null /*ID*/, vtrantypecode varchar2(20) null /*ͱ*/, fadjuster smallint null /**/, constraint pk_m32trantype primary key (pk_trantype), ts char(19) default to_char(sysdate...
true
72b21c5a911166a10b74ed8d71922c5a2d63c105
SQL
jeongseongjong/oracle_dbms
/사용자3(2019-10-11).sql
UTF-8
10,550
4.40625
4
[]
no_license
-- 여기는 user3 화면입니다. -- 현재 uiser3 사용자가 사용할 수 있는 Table 목록 SELECT * FROM TAB; -- TABLE 과 View의 차이 /* -------------------------------- TABLE VIEW -------------------------------- 실제 저장된 데이터 가상의 데이터 테이블로부터 SELECT 실행한 후 보여주는 형태 CRUD 모두 가능 R...
true
4d191dac99746eb99344b6014e0481bf0c83fdfd
SQL
yycdaizi/bwt4
/bjwt/tags/1.2/dbscript/bjwt_字典管理.sql
UTF-8
1,741
3.234375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50515 Source Host : localhost:3306 Source Database : bjwt Target Server Type : MYSQL Target Server Version : 50515 File Encoding : 65001 Date: 2013-01-06 22:48:13 */ SET FOREIGN_KEY_CHE...
true
4c6ca6296a3f82abf15a84fab5fa088edadfbfab
SQL
mthomas100/advanced-react
/backend/migrations/20210623133830_initial_schema/migration.sql
UTF-8
2,463
3.53125
4
[ "MIT" ]
permissive
-- CreateTable CREATE TABLE "User" ( "id" SERIAL NOT NULL, "name" TEXT, "email" TEXT, "password" TEXT, "passwordResetToken" TEXT, "passwordResetIssuedAt" TIMESTAMP(3), "passwordResetRedeemedAt" TIMESTAMP(3), PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Product" ( "id" SERIAL ...
true
2b2c6d9de4df8522d538fe2d22429e6371ecf511
SQL
mentaridewi/PROJECT-PBO-
/toko.sql
UTF-8
3,615
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 26 Des 2018 pada 16.36 -- Versi server: 10.1.36-MariaDB -- Versi PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
8126b800f40d77d96590ca9f2af3b3289757c6a5
SQL
CUBRID/cubrid-testcases
/sql/_12_mysql_compatibility/_09_table_related/cases/_005_create_like.sql
UTF-8
530
2.9375
3
[ "BSD-3-Clause" ]
permissive
create table tree(id int not null, parentid int, text varchar(32)); insert into tree values(1,null,'A'); insert into tree values(2,null,'B'); insert into tree values(3,1,'AA'); insert into tree values(4,1,'AB'); insert into tree values(5,2,'BA'); insert into tree values(6,2,'BB'); insert into tree values(7,3,'AAB'); ...
true
20ec4dcc8f2a81b35a6db082f4ffa4e137546076
SQL
noelsolyom/hostel
/hostel/src/main/resources/db/migration/V2__Room.sql
UTF-8
591
3.3125
3
[]
no_license
CREATE TABLE room( id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT, floor INT(3) NOT NULL, number INT(4) NOT NULL, capacity INT(2) NOT NULL, net_base_price DECIMAL(10,2) NOT NULL, description VARCHAR(255), hostel_id BIGINT UNSIGNED NOT NULL, CONSTRAINT FOREIGN KEY room_hostel_id (hostel_id) R...
true
0204659152e7372d9bcefad947ca1823c7e52f93
SQL
HenGuirelli/Clinica-Veterinaria-n2-POO
/Clinica VeterinariaCop/src/br/com/fatec/DAO/script.sql
UTF-8
2,160
3.53125
4
[]
no_license
create database clinica; use clinica; create table cliente( id int auto_increment, nome varchar(60), cpf varchar(50), rg varchar(60), sexo char, nascimento date, contato varchar(60), email varchar(60), endereco varchar(60), cep varchar(60), numero int, uf char(2), ...
true
5a959aa80e7c3be3bccb548d06232da25b83b683
SQL
akilakasun1996/paf_IT17051262
/FINAL/DB/product.sql
UTF-8
1,646
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 31, 2019 at 09:59 AM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
1518400a31e6defc6fee5ecf2316ff7c2912c75b
SQL
jonathan-ayala/Unidad-de-Salud
/respaldo/n260m_15572866_unidad_perquin.sql
ISO-8859-1
54,876
2.640625
3
[]
no_license
# +=================================================================== # | # | Generado el 03-12-2014 a las 08:12:46 AM # | Servidor: localhost:81 # | MySQL Version: 5.6.20 # | PHP Version: 5.5.15 # | Base de datos: 'n260m_15572866_unidad_perquin' # | Tablas: [0] => atencion_violencia; [1] => cola; [2] => consulta; ...
true
7d52cab2003ef579ba763f2915917a0c8661ea20
SQL
nurisakbar/parking-app
/images/mysql/init/parking.sql
UTF-8
4,109
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Waktu pembuatan: 10 Jul 2021 pada 10.24 -- Versi server: 5.7.26 -- Versi PHP: 7.4.2 CREATE DATABASE IF NOT EXISTS `lumen`; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
e548a27877655a577781d192a30a006a80f8505d
SQL
naqv/ProyectoBases2
/E4/MetodosTriggers.sql
UTF-8
1,887
3.734375
4
[]
no_license
------------------------------ METODOS ------------------------------ ------------ listarEvento ------------------------------------------- CREATE OR REPLACE PROCEDURE listarEventos (nombreHito VARCHAR) AS CURSOR evento_cursor IS SELECT nombre FROM evento_table e WHERE e.oc...
true
0b0ad1b67410ae701056f120d80d5a39f77d8c73
SQL
yuan-ru/su_blog
/day3/day5/sql/category.sql
UTF-8
1,138
3.078125
3
[]
no_license
-- 序号 数字,主键 不能为空 没有默认值 -- 排序 数字 不能为空 默认值为0 -- 名称 字符串 不能为空 没有默认值 -- 别名 字符串 不能为空 默认值为'' -- 父分类的id 数字 不能为空 默认值是0 CREATE TABLE `category` ( `id` INT PRIMARY KEY NOT NULL auto_increment, `sort` INT NOT NULL DEFAULT 0, `name` varchar(10) NOT NULL, `nickname` varchar(30) NOT NULL DEFAULT '', ...
true
6bd8ef92b589dcb706a92c9f40dab253ae2a9489
SQL
59364202/test
/tools/installer/initdata/database/001_public/schema/3027_rainfall_24h.sql
UTF-8
4,459
4.0625
4
[]
no_license
-- Table: public.rainfall_24h -- DROP TABLE public.rainfall_24h; CREATE TABLE public.rainfall_24h ( id bigserial NOT NULL, -- รหัสข้อมูลปริมาณน้ำฝนจากสถานีโทรมาตรอัตโนมัติ rainfall number tele_station_id bigint, -- รหัสสถานีโทรมาตร tele station number rainfall_datetime timestamp with time zone NOT NULL, -- วันท...
true
5c4cb4313174da04206b4ba96d6ea151dc1d4dba
SQL
MohamedAlhgoush/MyGene
/mygene.sql
UTF-8
24,684
2.71875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 20, 2020 at 09:22 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
69f4be2942f80b0a257d452e63aea7a5d338a21e
SQL
Vulnerator/Vulnerator
/Resources/DdlFiles/Tables/Create/StepOneQuestionnaireUserCategories.ddl
UTF-8
462
4
4
[ "CC-BY-SA-3.0", "CC-BY-ND-3.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-proprietary-license", "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS StepOneQuestionnaireUserCategories ( StepOneQuestionnaireUserCategory_ID INTEGER PRIMARY KEY, StepOneQuestionnaire_ID INTEGER NOT NULL, UserCategory_ID INTEGER NOT NULL, UNIQUE (StepOneQuestionnaire_ID, UserCategory_ID) ON CONFLICT IGNORE, FOREIGN KEY (StepOneQuestionnaire...
true
03e1dac2b6e94d50460052d45eff5b06b4269804
SQL
zizibujuan/teach
/server/bundles/com.zizibujuan.teach.server.sql/static/mysql/TABLE/DRIP_CLASS.sql
UTF-8
760
3.46875
3
[]
no_license
-- 班级信息 -- ----------------------------------------------------- -- Table `DRIP_CLASS` 班级信息 -- ----------------------------------------------------- DROP TABLE IF EXISTS `DRIP_CLASS`; CREATE TABLE IF NOT EXISTS `DRIP_CLASS` ( `DBID` BIGINT UNSIGNED NOT NULL AUTO_INCREMENT COMMENT '主键' , `CLASS_NAME` VARCH...
true
a21420ee2a582021da669470e64138a0d97ea679
SQL
yutechnet/Services.Course
/Services.Course.Databases/Databases/Parabola/002-Add_Description_to_CourseLearningActivity.sql
UTF-8
994
3.3125
3
[]
no_license
 IF EXISTS (Select 1 From INFORMATION_SCHEMA.COLUMNS c Where c.COLUMN_NAME = 'Description' and c.TABLE_NAME = 'CourseLearningActivity') BEGIN RAISERROR( '-----------------------------' , 0 , 1 )WITH NOWAIT; RAISERROR( 'NO CHANGE: Column (Description) Already Exists on Table (CourseLearningActivity)' , 0 , 1 )WIT...
true
86ab6471e8a7d3df2dfba0da24566d9d3adfca04
SQL
chlee2103/semiGoBack
/src/member.sql
UTF-8
286
2.8125
3
[]
no_license
CREATE TABLE MEMBER( ID VARCHAR2(50) NOT NULL, PWD VARCHAR2(50) NOT NULL, NICKNAME VARCHAR2(50) PRIMARY KEY, BIRTH VARCHAR2(10), GENDER VARCHAR2(6), EMAIL VARCHAR2(50) UNIQUE, AUTH NUMBER(1) NOT NULL ); DROP TABLE MEMBER CASCADE CONSTRAINTS; select * from MEMBER;
true
c53ab1a9e8a09eb94c4f5fec128619cfd0eecf6f
SQL
Wilczek01/alwin-projects
/alwin-middleware-grapescode/db-schema/src/main/dbschema/1.6.0/dml/004_add_default_direct_debt_collection_activities.sql
UTF-8
3,877
2.734375
3
[]
no_license
INSERT INTO activity_type (name, may_be_automated, charge_min, charge_max, may_have_declaration, specific, can_be_planned, customer_contact, key) VALUES ('Wizyta terenowa', FALSE, 0, NULL, FALSE, FALSE, FALSE, FALSE, 'FIELD_VISIT'); INSERT INTO activity_type (name, may_be_automated, charge_min, charge_max, may_have_de...
true
4b24c0c97a3ac201a3cba19db9c3a29998d8016f
SQL
ll9/DotnetDataTableEditroExample
/DataTableSample/query.sql
UTF-8
201
2.640625
3
[]
no_license
CREATE TABLE IF NOT EXISTS features( id integer primary key, name varchar(30), age decimal ); INSERT INTO features(name, age) values ("Peter", 22), ("Hans", 14), ("Josef", 28);
true
f85bf656c7645184560931308b9cf45d97f372d6
SQL
NanoMax/MyProjects
/data_base/select1.sql
WINDOWS-1251
603
3.921875
4
[]
no_license
use lab3 -- select top(1) with ties TEAM.[NAME], avg(cast(ABOUT_GAME.PLACE as float)) as res, count(ABOUT_GAME.PLACE) as quant from ABOUT_GAME, GAME, TEAM, GAMETYPE, [OBJECT] where GAME.GAME_ID = ABOUT_GAME.GAME_ID and TEAM.TEAM_ID = ABOUT_GAME.TEAM_ID and GAMETYPE.GAMETYPE_ID = GAME.GAME_ID and [O...
true
f89d40129a87c437190b716d81590b20e01238a2
SQL
1astkiss/wizardofwords
/sql/question_weight.sql
UTF-8
3,782
3.59375
4
[]
no_license
CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`localhost` SQL SECURITY DEFINER VIEW `question_weight` AS SELECT `qcbl`.`question_id` AS `question_id`, `q`.`word` AS `word`, `q`.`selection1` AS `selection1`, `q`.`selection2` AS `selection2`, `q`.`selection3` AS...
true
b2236d50cb34f56b1a46142edd2f0a9674086421
SQL
seanjosephokeefe/alsBargainBin
/sql/CreateABBOrdersDB.sql
UTF-8
10,189
3.859375
4
[]
no_license
USE abbordersdb; DROP TABLE IF EXISTS customers, products, orders, order_products; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; CREATE TABLE IF NOT EXISTS customers ( customer_id INT(4) NOT NULL AUTO_INCREMENT, first VARCHAR(20) NOT NULL, last VARCHAR(30) NOT NULL, state ENUM('CT','MA','...
true
bb2e893ae64f13b5516fca3335ffdbfbdf72613e
SQL
gwrippee/SQL-SSRS
/Warehouse/Manager/KPI/Loc4/Details/KPIchart_InvAdj4_CurrentDetails4.sql
UTF-8
192
2.578125
3
[]
no_license
CREATE PROC [KPIchart_InvAdj4_CurrentDetails] AS SELECT * FROM InventoryAdjustmentsWH_KPI WHERE CONVERT(date,[Date]) BETWEEN '01/01/2014' AND '01/31/2014' AND Loc IN (4,44,64)
true
ecef5c27135fa73b94c640ad1ffefd19e248f1ba
SQL
Randy96/ejercioBaseDatos
/Randy Cabrera -- MARKET.sql
UTF-8
932
3.671875
4
[]
no_license
CREATE DATABASE Market; USE Market; CREATE TABLE Productos( idProducto INT PRIMARY KEY NOT NULL AUTO_INCREMENT, nombre VARCHAR(30), precio DECIMAL ); CREATE TABLE TipoProducto( idTipo INT PRIMARY KEY NOT NULL AUTO_INCREMENT, nombre VARCHAR (30), idProducto INT, FOREIGN KEY (idProducto) REFERENCES Productos(idProducto)...
true
8fc07c90da4847a4c0d1b88faf38914115b36e92
SQL
yaolianghu/RestfulAPI1
/datatabase/procs/dz_getCldUnmappedQuestionAnswers.sql
UTF-8
723
3.203125
3
[]
no_license
DELIMITER $$ DROP PROCEDURE IF EXISTS dz_getCldUnmappedQuestionAnswers$$ CREATE PROCEDURE dz_getCldUnmappedQuestionAnswers(in preferenceId int,in versionNum int, in questionSetId int) begin select a.question_id as questionId, q.supplier_text as sellerQuestion,ifnull(a.supplier_text,a.label) as answerOption, q.type ...
true
d9fd52c2c401ce3d0f8f3bca5eb2655776953f4d
SQL
matosjoaops/MIEIC_BDAD
/Interrogações/Faculdade/criar.sql
UTF-8
3,358
3.390625
3
[]
no_license
-- -- File generated with SQLiteStudio v3.2.1 on quarta abr 15 02:08:59 2020 -- -- Text encoding used: UTF-8 -- PRAGMA foreign_keys = off; BEGIN TRANSACTION; -- Table: aluno DROP TABLE IF EXISTS aluno; CREATE TABLE aluno (nr INTEGER PRIMARY KEY, Nome TEXT); INSERT INTO aluno (nr, Nome) VALUES (100, 'Joao'); INSERT INT...
true
df119ee3c09b0a24c992d2d226dc0058f94960ec
SQL
iuvopoint/T-SQL-AsyncAgent
/tSQLt/tSQLt/Stored Procedures/Private_GetSetupProcedureName.sql
UTF-8
304
2.71875
3
[ "MIT" ]
permissive
 CREATE PROCEDURE tSQLt.Private_GetSetupProcedureName @TestClassId INT = NULL, @SetupProcName NVARCHAR(MAX) OUTPUT AS BEGIN SELECT @SetupProcName = tSQLt.Private_GetQuotedFullName(object_id) FROM sys.procedures WHERE schema_id = @TestClassId AND LOWER(name) = 'setup'; END;
true
a70dfed2a99bb82277ef451ce7e3f93a2a337b4c
SQL
paullewallencom/php-978-1-8495-1252-7
/_src/chapter-01/chapter-01.sql
UTF-8
2,391
2.96875
3
[ "Apache-2.0" ]
permissive
-- MySQL dump 10.13 Distrib 5.1.44, for redhat-linux-gnu (i386) -- -- Host: localhost Database: cmsdb -- ------------------------------------------------------ -- Server version 5.1.44-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
true
6ff9eb00046e8a9f5e07f1105f9a4b3e41ec4271
SQL
nss-day-cohort-19/chinook-arock
/total_sales_{year}.sql
UTF-8
278
3.71875
4
[]
no_license
/*What are the respective total sales for each of those years?*/ SELECT SUM(i.total) AS "# of Invoices", SUBSTR(i.invoicedate, 0, 5) AS "Year" FROM invoice i WHERE SUBSTR(i.invoicedate, 0, 5) = "2009" OR SUBSTR(i.invoicedate, 0, 5) = "2011" GROUP BY SUBSTR(i.invoicedate, 0, 5)
true
fb79c9d154623d6d6fcbae7fb491168079136be0
SQL
dohaibac/mms
/db_change/11.add_province_to_candidate.sql
UTF-8
3,939
2.875
3
[]
no_license
ALTER TABLE `m_candidates` ADD `province_id` INT NOT NULL ; update m_candidates set province_id = 1 where system_code=06; INSERT INTO `m_candidates` (`province_id`, `display_name`, email, addr, created_at) VALUES (1,'Nguyễn Hà Nội','1abc@aaa.com','1 nguyen trai',now()), (2,'Trần TP HCM','2abc@aaa.com','2 nguyen trai...
true
95de5dbb81ce6065b8e2e1384894b7dc7681261a
SQL
FabioPita18/PostgreSQL
/Data.db/data.db.sql
UTF-8
451
3.140625
3
[]
no_license
-- Database: data.db -- DROP DATABASE "data.db"; CREATE DATABASE "data.db" WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'English_United States.1252' LC_CTYPE = 'English_United States.1252' TABLESPACE = pg_default CONNECTION LIMIT = -1; CREATE TABLE users (first_name TEXT, surnam...
true
5ee711a7d1e65e7d8e3cb153bda02899d38669fb
SQL
OHDSI/FeatureExtraction
/inst/sql/sql_server/ConceptCounts.sql
UTF-8
8,689
4.09375
4
[ "Apache-2.0" ]
permissive
-- Feature construction {@aggregated} ? { IF OBJECT_ID('tempdb..#concept_count_data', 'U') IS NOT NULL DROP TABLE #concept_count_data; IF OBJECT_ID('tempdb..#concept_count_stats', 'U') IS NOT NULL DROP TABLE #concept_count_stats; IF OBJECT_ID('tempdb..#concept_count_prep', 'U') IS NOT NULL DROP TABLE #concept_coun...
true
9ac7a89846b13f96b7e7707aac2068798791496a
SQL
mwana/mwana
/mwana/apps/reports/utils/rawsql/fn_get_clinic.sql
UTF-8
312
2.96875
3
[]
no_license
CREATE OR REPLACE FUNCTION "clinic"(character varying(6)) RETURNS character varying(100) AS $BODY$ select "name" from locations_location where type_id<>8 and (slug in (select regexp_split_to_table($1, E'\\s+')) or slug||'0' in (select regexp_split_to_table($1, E'\\s+'))) $BODY$ LANGUAGE 'sql' STABLE
true
3b71a146c13544cabd59690ce73c5d80c2f76deb
SQL
toransahu/yfni-repo
/mdlz-misc/rounding-rules/CanadaMicro1.sql
UTF-8
3,194
3.296875
3
[]
no_license
FUNCTION CanadaMicro1 (anvalue IN NUMBER) RETURN iapitype.string_type IS --------------------------------------------------------------------------- -- Abstract: -- Kraft Custom Rounding Rule CanadaMicro1 -- -- Canada Micro 1 -- The rule rounds up. ...
true
ed98a4fd215915872c0fe49674a75a859b031580
SQL
jperez4432/database-exercises
/functions_exercises.sql
UTF-8
1,113
3.96875
4
[]
no_license
USE employees; SELECT CONCAT(first_name, ' ', last_name) FROM employees WHERE first_name = 'Maya' ORDER BY last_name; SELECT hire_date FROM employees WHERE first_name = 'Maya'; SELECT DAYOFMONTH(hire_date) FROM employees WHERE first_name = 'Maya' ORDER BY DAYOFMONTH(hire_date); SELECT MONTH(hire_date) FROM employee...
true
9df0b41604f3fc6c574d511350bef33074150e86
SQL
hankatjac/DB_MySQL
/Queries/12_EmployeeLongevity.sql
UTF-8
368
3.75
4
[]
no_license
select E.EmpID, concat(E.EmpFirst, ' ', E.EmpLast) as `Full Name`, E.StartDate, year(Now())-year(E.StartDate) as EmployeeLongevity, W.WarehouseID, P.Title from tblemployee as E inner join tblWarehouse as W on E.WareHouseID = W.WarehouseID inner join tblposition as P on E.PositionID = P.PositionID where E.En...
true
1224fde409ccea8da5967129832cb86b615ae5b0
SQL
vincentwardhana33/simple-api-structure
/products.sql
UTF-8
1,363
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 04, 2021 at 02:04 PM -- Server version: 5.6.13 -- PHP Version: 5.4.17 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
e732b632b71bc913b72f67a53649d0503f540ab1
SQL
Ares7/2013-JUL-Module-7
/Task 05/Anzhela_Papova_labwork05/dw/tables/t_countries/w_countries.sql
UTF-8
559
3.125
3
[]
no_license
--drop view dw.w_countries; --============================================================== -- View: w_countries --============================================================== CREATE OR REPLACE VIEW dw.w_countries AS SELECT geo_id , country_id FROM t_countries; COMMENT ON TABLE dw.w_countries IS 'W...
true
10917566eeb11f5a3871a4f633d824fe9d18f733
SQL
Ankur-014/Bank-Managemnet
/Project.sql
UTF-8
4,617
3.9375
4
[]
no_license
drop table loan; drop table account; drop table employee; drop table customer; drop table branch; create table branch( branch_name varchar(20), city varchar(20), primary key(branch_name) ); create table customer( account_no integer , name varchar(20) not null, date_of_birth date, gender varchar...
true
f1543c5f0cba45f9f5f434287eb3e94d2187981d
SQL
yshinoha/scala_play2
/conf/evolutions.bak/default/1.sql
UTF-8
466
3
3
[]
no_license
# --- !Ups create table User ( id int(10) not null auto_increment, name varchar(100), email varchar(100), password varchar(100), createDate timestamp default current_timestamp(), primary key(id)); # --- !Downs drop table User; ## --- !Ups #create table foo ( # id int(10) not null auto_increment, # name v...
true
03e95ee044dc37a83923d1dad4edc54e4257969f
SQL
99003606/SQL_queries
/tsql/SQLQuery1.sql
UTF-8
3,959
4.46875
4
[]
no_license
SELECT * FROM HR.Employees; /* selecting the data from the table hr employee*/ SELECT COUNT(empid) AS empid,city FROM HR.Employees GROUP BY city HAVING COUNT(empid)<3; /*It lists the no of customers in each country. I have used to display the countries which has less than 3 employees*/ SELECT COUNT(empid) ...
true
13216d55484e632fdc994a84f635c82f6caea04e
SQL
nikolasrakryan/Medium.com_Contents
/SQL/partBsql_script.sql
UTF-8
2,340
3.65625
4
[]
no_license
------------------ SQL Window Functions Part B ----------------------------- CREATE TABLE public.retails ( record_id integer NOT NULL, order_id integer NOT NULL, name character varying(50) COLLATE pg_catalog."default", gender character varying(50) COLLATE pg_catalog."default", product_id integer, ...
true
e58fab784d0510186b8945e874400d7e88ec2ed8
SQL
qmulosoft/nimbus-store
/db/sqlite/migrations/0000-init.up.sql
UTF-8
827
3.875
4
[]
no_license
CREATE TABLE local_file ( id CHAR(32) PRIMARY KEY, path VARCHAR NOT NULL ); CREATE TABLE bucket ( id INTEGER PRIMARY KEY AUTOINCREMENT, name VARCHAR NOT NULL, desc VARCHAR ); CREATE TABLE file ( id CHAR(36) PRIMARY KEY, name VARCHAR NOT NULL, mime VARCHAR NOT NULL, path VARCHAR NOT...
true
16cf4a6bf159e4e31ff9ffde85cbd3fe3a92a6e2
SQL
u2wangzhen/wise
/wise/src/main/resources/sql/classRecord.sql
UTF-8
2,445
4.3125
4
[]
no_license
##学生课时统计 #sql("student_CH") SELECT ss.`name` as student_name,SUM(c.class_hour) as total from t_class_record c,t_curriculum_student s,t_student ss WHERE s.student_id=ss.id and c.cid=s.cid #if(start_time!="")and c.start_time > '#(start_time)' and c.start_time < '#(end_time)' #end GROUP BY ss.`name` #end #### #sql("te...
true
c971a8b48d14f87b3eb225ae1dc71723fe741e85
SQL
giovannibianco/Hydra-Service
/config/schema/mysql/mysql-schema.sql
UTF-8
3,103
3.734375
4
[ "Apache-2.0" ]
permissive
-- -- The MySQL schema for the Metadata Catalog database backend -- -- -- Table holding item entries -- entry_id: internal identifier -- entry_name: string referencing the entry in the catalog (lfn, guid, ...) -- user_name: string with the individual owner of the entry (normally its DN) -- group_name: string ...
true
31c704724fedd9a1a8d5893be5171b9b8ceb43b3
SQL
Emperatorr/pgp
/sql/pgp.sql
UTF-8
4,044
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le : Ven 07 Avril 2017 à 17:01 -- Version du serveur: 5.5.16 -- Version de PHP: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
daa97d0ae622a5dbd13a4ff547f38f328cdd0ffa
SQL
jongrim/mysql_node
/departments.sql
UTF-8
496
3.390625
3
[]
no_license
CREATE TABLE departments ( department_id INT(11) UNSIGNED AUTO_INCREMENT NOT NULL, department_name VARCHAR(30) NOT NULL, over_head_costs DECIMAL(12, 2) NOT NULL, PRIMARY KEY(department_id) ); INSERT INTO departments (department_name, over_head_costs) VALUES ('Classics', 1489.54), ('Computer Science', 1283.22),...
true
693e42fa5fd94634a6def4f95e00b9fd0d88bf02
SQL
hwedwin/DRP_Pro
/init-data.sql
UTF-8
3,370
2.765625
3
[]
no_license
delete from t_user; delete from t_data_dict; delete from t_client; delete from t_temi_client; delete from t_table_id; --初始化系统管理员 insert into t_user(user_id, user_name, password) values('root', '系统管理员', 'root123'); --初始化物料类别 insert into t_data_dict(id, name, category) values('a01', '医疗器械', 'C'); insert into t_dat...
true
368f1b7163440ab297c1648b09a7f225f9cd45dd
SQL
ekabudiatmono/projrct-akhir-pi
/adventure_tat.sql
UTF-8
7,765
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 07 Jan 2016 pada 11.09 -- Versi Server: 10.1.9-MariaDB -- PHP Version: 5.6.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
58315ae35248708b96414e287c7e3a65eb5e0166
SQL
LockDown69/pkkprod
/sarpras (2).sql
UTF-8
4,770
3.015625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 14 Des 2020 pada 23.30 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
3785be36c19fd19f64ccd5c55b933cb97695d498
SQL
philippedeoliveira/sportsbet
/sql/migration.sql
UTF-8
828
3.625
4
[ "MIT" ]
permissive
'Add the new Id colmumn referencing the business unit id' alter table users add column buId integer; 'make the join based on previous values of bu_code and the matching table' update users u,businessUnitCodeToId bu set u.buId=bu.id where bu.buCode=u.businessUnit; 'break the relation' update users set businessUnit=null;...
true
162bcccf6e44bf3e2b321766ea02f22a63981a91
SQL
AlexKarpov1902/webapp_rt
/sql/create.sql
UTF-8
532
3.328125
3
[]
no_license
drop table if exists auto; drop table if exists city cascade; drop table if exists person; create table city ( id serial primary key not null, name varchar(50), population int ); create table person ( id serial primary key not null, lastname varchar(50), firstname varchar(50), m...
true
f362b441588a0ad84aa9d660667727c04f12f084
SQL
axelsheva/experience
/SQL-Tuning/ifi.uzh.ch/vn/ThucHanhCoSoDuLieu/N04_55354/LeVanTuan_20092982_N0355554.sql
UTF-8
1,744
4.21875
4
[]
no_license
--1---- use AdventureWorks select P.ProductNumber, P.ListPrice, P.Name from Production.Product as P, Sales.SalesOrderDetail as SOD where P.ProductID = SOD.ProductID and MONTH(SOD.ModifiedDate)=5 and YEAR(SOD.ModifiedDate)=2002 --2--- select Per.FirstName, Per.MiddleName, Per.LastName, E.EmailAddress, SO...
true
2f57010c1978ef890c7092e8f4b30a283960ae63
SQL
Goncalo-Chambel/BDpart3
/final.sql
UTF-8
8,463
3.65625
4
[]
no_license
USE ist425352; SET foreign_key_checks = 0; drop TABLE if exists employee; drop TABLE if exists phone_number_employee; drop TABLE if exists receptionist; drop TABLE if exists doctor; drop TABLE if exists nurse; drop TABLE if exists client; drop TABLE if exists phone_number_client; drop TABLE if exists permanent_doctor; ...
true
d20352aab130a63dfa301013094c63d13f6de6c8
SQL
Shuaib-8/PDSND-SakiliaDB-SQL
/SQL sakila db queries.sql
UTF-8
2,413
4.53125
5
[]
no_license
/* Query 1 - which countries did customers purchase the the most DVD rental (Top 10) */ SELECT country AS country_name, SUM(payment.amount) AS payment_amount FROM customer JOIN payment ON payment.customer_id = customer.customer_id JOIN address ON address.address_id = customer.address_id JOIN city ON city.city_id = add...
true
d5befe28af42aa91c9186722b5260fc05f86e220
SQL
HomeIncorporated/openiz
/OpenIZ.Warehouse.ADO/Data/SQL/PSQL/openiz-dw-core.sql
UTF-8
27,002
3.859375
4
[ "Apache-2.0", "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-warranty-disclaimer" ]
permissive
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE EXTENSION IF NOT EXISTS TABLEFUNC; -- REPRESENTS A SINGLE EXECUTION OF AN ETL EXECUTION CREATE TABLE WHSE_ETL_TBL ( ETL_ID UUID NOT NULL DEFAULT uuid_generate_v4(), START_UTC TIMESTAMPTZ NOT NULL DEFAULT CURRENT_TIMESTAMP, -- TIME THE PROCESS STARTED STOP_UTC TIME...
true
5100e2ca8ad0ea0281224e26dd6db81ab18d2255
SQL
JMazurkiewicz/BD-hotel-database
/tests/various_queries/select_cheap_rooms.sql
UTF-8
200
2.953125
3
[]
no_license
-- Zakładamy, że "tani pokój" to pokój, którego o cenie 220zł lub mniejszej. SELECT * FROM (ROOMS JOIN ROOM_TYPES ON ROOMS.TYPE_ID = ROOM_TYPES.TYPE_ID) WHERE ROOM_TYPES.DAILY_COST <= 220;
true
974672de0a85c2949190288d95d9b155190081dc
SQL
iladner/vds-mpa-paper
/scripts/1_collection/01_ssvids_displaced_and_not_displaced.sql
UTF-8
4,060
3.875
4
[]
no_license
#################################################################################### # This query will extract all vessels that evr fished # in the PNA, and then assign them to groups based on # when and where they fished. There are two groups: # - "displaced": vessels that fished inside PIPA before Jan, 2015 and conti...
true
133644faa7108c36b7d87d1ee735d15eaf14e7f1
SQL
dwillis-iu/CIT-304-master
/midterm_project/use_insert_all_item_16.sql
UTF-8
650
3.265625
3
[]
no_license
--Item 16, Use Insert All CREATE TABLE INSERT_ALL_EX ( anime_id VARCHAR2(10), members_voted NUMBER, ranked NUMBER, score NUMBER ); CREATE TABLE NINE_SCORE AS SELECT * FROM INSERT_ALL_EX; CREATE TABLE EIGHT_SCORE AS SELECT * FROM INSERT_ALL_EX; CREATE TABLE SEVEN_SCORE AS SELECT * FROM INSER...
true
90b4778b8bb12b8d98ca6e0b9861d39ec8f4f7db
SQL
mjh1583/BigDataEducation
/workspace-query/query-7(대용량데이터,수정,삭제,조건부입력).sql
UTF-8
3,596
4.28125
4
[]
no_license
select * from employees.employees; use sqldb; drop table if exists test4; create table test4( id int, fname varchar(20), lname varchar(20) ); -- test4에 대용량 데이터 바로 입력 insert into test4 select emp_no, first_name, last_name from employees.employees; select * from test4; -- 테이블을 만들면서 바로 select...
true
735d9623288cdd0e1a34b70375466f3b3ef07fb3
SQL
kangzhenkang/retz
/retz-server/src/main/resources/db/migration/legacy/retz-ddl.sql
UTF-8
2,366
3.171875
3
[ "Apache-2.0" ]
permissive
-- -- Retz -- Copyright (C) 2016-2017 Nautilus Technologies, Inc. -- -- 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 --...
true
01aec3f291bcd40343bfe0d161a06bb9c4d110f2
SQL
SuperDronster/is-sql
/is/test/is_global_test.sql
UTF-8
4,939
2.8125
3
[]
no_license
/* select core.new_pool(NULL, 'rc-sides','facility', 'Resource Facility Sides.', 0); -- Rc Layout Names select core.new_tag('names','rc-layout', NULL, 'all','All Items'); select core.new_tag('names','rc-layout', NULL, '9-red','9 Red Group'); select core.new_tag('names','rc-layout', NULL, '9-green','9 Green Group'); s...
true
0269f62f0d20ee26bbf09a7cc3db39f82c4b146a
SQL
rbensassi/Recommendation_voyageurs
/Requests/Requete5.sql
UTF-8
452
3.234375
3
[]
no_license
SET foreign_key_checks = 0; DROP VIEW IF EXISTS MinNote; SET foreign_key_checks = 1; create view MinNote as Select pseudoUser,note,idCommentVoy from NoteCommentUser where note >= 3; select distinct nomEtab from MinNote, Restaurant, CommentVoy, AvisVoy ,Etablissement where typeCuisine="Indien" && MinNote.idCom...
true
1664a9e45df35f80665f032a05070e283bc1ae39
SQL
i-sshrq/DBMS_ProjectMedica
/inititalize_entities.sql
UTF-8
490
2.6875
3
[]
no_license
drop table Patient; create table Patient ( Patient_id varchar2(15)CONSTRAINT Patient_PATIENT_ID_pk PRIMARY KEY, Birth_reg varchar2(25) NOT NULL, CONSTRAINT Patient_Birth_reg UNIQUE(Birth_reg), patient_Name VARCHAR2(50), passport_number varchar2(15), CONSTRAINT Patient_PASSPORT_NUMBER UNIQUE(passport_number), blood_gr...
true
c8f94386053a3e39b10b15eb049f93114ebff4ad
SQL
borisgr04/ByA_Sircc
/wfSircc/Migracion/ScriptsSirccOrden/82-CREATE-INT_PPLANTILLAS_URL.sql
ISO-8859-1
1,332
3.1875
3
[]
no_license
CREATE TABLE INT_PPLANTILLAS_URL ( IDE_PLA NUMBER, URL_FORM VARCHAR2(200 BYTE), URL_RPTE VARCHAR2(200 BYTE), URL_EST VARCHAR2(2 BYTE), URL_DESC VARCHAR2(200 BYTE), URL_FECREG DATE, URL_USAP VARCHAR2(20 BYTE), URL_USMD VARCHAR2(20 BYTE), URL_FECMD DATE ); COMMENT ON TABLE INT...
true
7a69414bc4e4fe30ec7db6a28d94e022bbb24316
SQL
SuperDean369/NewTry
/HospitalTableSql.sql
UTF-8
28,909
3.921875
4
[]
no_license
Create Database Hospital_Database1; --PatientNextToKin-- Create table PatientNextToKin( PatientKinID int Not Null Identity(1,1), FirstName Char(25) Not Null, LastName Char(25) Not Null, MiddleName char(25) Null Default 'Unknow_MName', Address Varchar(1000) Null Default 'Unknow_Address', Telphone ...
true
882bdd863a4aca7c9787259adea51e446d65df6b
SQL
Infoworks/watchman
/watchman/datasets/rdbms_end_to_end_query_based_cdc/mdars/fullload.sql
UTF-8
3,319
2.859375
3
[]
no_license
delete from t_rec_hist where prcs_gid=998877 and rec_hist_gid in(111,112,113,114,115,116); delete from cat_two_demo; insert into CAT_TWO_DEMO values ('Test1','Test1','Testing1','CALIFORNIA',111,'2015-11-01','2999-12-31'); insert into T_REC_HIST values(111,998877,'2015-11-01 16:50:00'); insert into CAT_TWO_DEMO values...
true
1b832ee134625eaa44b29cfe81071e2fb1f9f804
SQL
halilayyildiz/miner-guard
/backend/app/db/migrate/001.sql
UTF-8
164
2.515625
3
[ "MIT" ]
permissive
-- historical btc daily price table CREATE TABLE `BITCOIN_PRICE` (`DATE` TEXT, `PRICE_USD` REAL, `LAST_UPDATE` TEXT DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY(`DATE`));
true
6f6c61abdc1b87e47c4baa4b0cf63abde44a7706
SQL
Shmyg/tt
/sql/refnum_fix.sql
UTF-8
2,074
3.296875
3
[]
no_license
/* || Script to fix reference numbering for everything || Created by Serge Shmygelskyy aka Shmyg || mailto: serge.shmygelskyy@gmail.com || || $Log: refnum_fix.sql,v $ || Revision 1.1 2016/04/08 21:16:53 shmyg || Script for reference numbers added || */ DECLARE c_filename CONSTANT VARCHAR2(100) := 'refnum_fix.sql';...
true
6a0533e3113a0a456472383633f2c65202a2989c
SQL
behind2/repository
/Mysql/udf/udf.sql
UTF-8
1,032
3.78125
4
[]
no_license
-- 创建自定义函数 create function function_name returns {string|integer|real|decimal} routine_body -- routine_body 1. 函数体由合法的sql语句构成. 2. 函数体可以是简单的select或insert语句. 3. 函数体如果为复合结构则使用begin...end语句. 4. 复合结构可以包含声明, 循环, 控制结构. -- demo 不带参数的函数 create function f1() returns varchar(30) return date_format(now(), '%Y年%m月%d日 %H点:%i分:%s秒'...
true
53a3bdee57bb66bedd70cc1fb1c5c5b69c8145ab
SQL
SangeethaC-PEC/pec
/clge.sql
UTF-8
10,129
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 01, 2019 at 08:32 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
ce53b25fa536808b500d2ec70f5f9fd673e58e58
SQL
nuke2015/nuke2015.github.io
/php/geo/mysql-geo.sql
UTF-8
2,096
3.859375
4
[]
no_license
-- 删除表示 drop table geotest; -- 建表 CREATE TABLE `geotest` ( `userid` int(10) NOT NULL, `geoaddr` geometry NOT NULL, `create_time` datetime DEFAULT NULL, UNIQUE KEY `unq_uid` (`userid`), SPATIAL KEY `spa_geo` (`geoaddr`) ) ENGINE=MyISAM DEFAULT CHARSET=utf8; -- 入数据 insert geotest values(10000, POINT(116.41...
true
00a4b9d251c6a8a0533c80ff693fbc7cd2c7d49f
SQL
Tronyel/gaode_pois_scraping
/doc/createtable.sql
UTF-8
768
2.796875
3
[]
no_license
CREATE TABLE public.YOUR_TABLE_NAME ( id varchar COLLATE pg_catalog .default NOT NULL, biz_type varchar COLLATE pg_catalog.default, name varchar COLLATE pg_catalog.default, type varchar COLLATE pg_catalog.default, address varchar COLLATE pg_catalog.default, tel varchar COLLATE pg_catalog.default, lo...
true
41c56dcad20ecd40c78f4384ba837312fda44f17
SQL
elias890420/Oracle-EBS-SQL
/INV Item Relationships/INV Item Relationships.sql
UTF-8
1,763
3.515625
4
[]
no_license
/*************************************************************************/ /* */ /* (c) 2010-2021 Enginatics GmbH */ /* www.enginatics.com */ /* ...
true
4c81e5c5ba0d5ebc8e5aa9205ef296db155399aa
SQL
aiemelyanov/RedGate
/TEST3/APEX_030200/PackageBodies/WWV_FLOW_ASFCOOKIE.sql
UTF-8
3,873
2.796875
3
[]
no_license
CREATE OR REPLACE package body apex_030200.wwv_flow_asfcookie as Procedure validate_session IS l_owacookie owa_cookie.cookie; l_x NUMBER; l_y NUMBER; l_length NUMBER; l_key VARCHAR2(80); l_value VARCHAR2(240); l_upper_key VARCHAR2(80); l_cookie_...
true
b05b345807458888b6b9b8a5e5ec6fe1ae3ecb83
SQL
GordinV/buh70
/sql/aruanned/eelarve/eelarve.eelarve_andmik.sql
UTF-8
3,271
3.59375
4
[]
no_license
DROP FUNCTION IF EXISTS eelarve.eelarve_andmik(DATE, INTEGER, INTEGER ); CREATE OR REPLACE FUNCTION eelarve.eelarve_andmik(l_kpv DATE, l_rekvid INTEGER, l_kond INTEGER) RETURNS TABLE( rekv_id INTEGER, tegev ...
true
cec5807c70456472f9d01b347e32d99bf9faeda9
SQL
llukanov/SoftUni-Database-Basics
/03.TableRelationships/UniversityDatabase.sql
UTF-8
893
3.609375
4
[ "MIT" ]
permissive
CREATE DATABASE University USE University CREATE TABLE Majors ( [MajorID] INT IDENTITY NOT NULL PRIMARY KEY, [Name] NVARCHAR(50) NOT NULL, ) CREATE TABLE Students ( [StudentID] INT IDENTITY NOT NULL PRIMARY KEY, [StudentNumber] INT NOT NULL, [StudentName] NVARCHAR(50) NOT NULL, [MajorID] INT NOT NULL FOREIGN K...
true
7a54e6dcba20d3b0d04372d8c72217ac70c9e0b0
SQL
zhonghua001/SQLServer
/Admin Tools/bookmark.sql
UTF-8
308
2.90625
3
[]
no_license
SELECT session_id [SessionID] , [text] [QueryText] , wait_type [CurrentWait] , last_wait_type [LastWaitType] , blocking_session_id [BlockingSessionID] , [status] [QueryStatus] ---- Seconds: , (total_elapsed_time)/1000 FROM sys.dm_exec_requests CROSS APPLY sys.dm_exec_sql_text(sql_handle)
true
36d41e3753b540bb598364be17f4ab691dd14cc7
SQL
sreikanth/open-swamp
/directory-server/opt/swamp/sql/upgrades/8.sql
UTF-8
2,009
3.640625
4
[ "Apache-2.0" ]
permissive
use project; drop PROCEDURE if exists upgrade_8; DELIMITER $$ CREATE PROCEDURE upgrade_8 () BEGIN declare script_version_no int; declare cur_db_version_no int; set script_version_no = 8; select max(database_version_no) into cur_db_version_no from project.database_version; if cur_db_v...
true
f26947660c98dd247315ba17609887f5f3eb07cd
SQL
diego8159/Tp_Estacionamiento
/db_parking.sql
UTF-8
6,760
2.859375
3
[]
no_license
-- -- Base de datos: `db_parking` -- -- -------------------------------------------------------- -- -- Estructura de tabla para la tabla `empleados` -- CREATE TABLE `empleados` ( `id` int(11) NOT NULL, `nombre` varchar(45) COLLATE utf8_spanish2_ci NOT NULL, `apellido` varchar(45) COLLATE utf8_spanish2_ci NOT N...
true
9a599d9c88f11be40685d16e245b83fa452bbd16
SQL
griffithmichael/hearthome
/sql/highest_education.sql
UTF-8
617
2.9375
3
[]
no_license
DROP TABLE IF EXISTS highest_education; CREATE TABLE highest_education (value SMALLINT PRIMARY KEY, property VARCHAR (30) NOT NULL); INSERT INTO highest_education (value, property) VALUES (0, 'Prefer Not To Say'); INSERT INTO highest_education (value, property) VALUES (1, 'High School'); INSERT INTO highest_educati...
true
8994c4805c0b882af5c3b10ec2451b8d89022a0a
SQL
Sveta1798/Sveta1798.github.io
/sql/flowers.sql
UTF-8
2,105
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Июн 25 2017 г., 23:15 -- Версия сервера: 5.5.25 -- Версия PHP: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
true
1b10c38c2eb601a97161d54633224249a9635b2d
SQL
brunoRogacheski/EstoquePHP
/estoque.sql
UTF-8
2,528
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.3.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 21, 2016 at 11:11 PM -- Server version: 5.7.9 -- PHP Version: 5.5.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
e233aabd95b1be8d70cb945defbfe36f3338015d
SQL
jknopping/SQL-Work
/SQL_foundations_1_drill.sql
UTF-8
4,334
4.6875
5
[]
no_license
--1) 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 --2) Write a query that returns all the records in the vehicles table. SELECT * FROM vehicles; --3) Write a query that returns the id, ma...
true
fce9ebb58f84f917d9e09daeac2f5c1fa3036595
SQL
walkstudio/Anagrafica-Dealer
/AnagraficaDealerDatabase/Import/Stored Procedures/SP_DeleteEntities.sql
UTF-8
556
3.109375
3
[]
no_license
CREATE PROCEDURE [Import].[SP_DeleteEntities] AS BEGIN SET NOCOUNT ON; -- Logically Delete Point UPDATE Dealer.Dealer SET Attivo = 0 FROM Dealer.Dealer D INNER JOIN Import.PointToHide P ON D.IDDealer = P.IDDealer -- Logically Delete Pos & Pod UPDATE Dealer.Dealer SET Attivo = 0 FROM Dealer.Deal...
true
0fffb23955faf1581720b3b000d15c0de0ffebc5
SQL
nativi95/RRHH
/employee.sql
UTF-8
7,934
3.640625
4
[]
no_license
DROP DATABASE IF EXISTS employees; CREATE DATABASE IF NOT EXISTS employees; USE employees ; SELECT 'CREATING DATABASE STRUCTURE' as 'INFO'; DROP TABLE IF EXISTS emp_emp_employee, emp_dep_department, emp_dmr_dept_manager, emp_pay_payroll, ...
true
78390387ace7a8178ad1f84c64ff6e3c553322de
SQL
soullover135/WaterRefillingInformationSystem
/wateris2.sql
UTF-8
6,297
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 01, 2019 at 12:19 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
bbeaa2657327422318b38c95ea362d7cada313ce
SQL
Petrozza/CSharp-Fundamentals
/DATABASE/Additional Exercises/All Items with Greater than Average Statistics.sql
UTF-8
323
3.5625
4
[]
no_license
SELECT i.Name, i.Price, i.MinLevel, s.Strength, s.Defence, s.Speed, s.Luck, s.Mind FROM Items i JOIN [Statistics] s ON i.StatisticId = s.Id WHERE s.Mind > (SELECT AVG(Mind) from [Statistics]) AND s.Luck > (SELECT AVG(Luck) from [Statistics]) AND s.Speed > (SELECT AVG(Speed) from [Statistics]) ORDER BY i.Na...
true
7a20815f1d93a9fe1f79fb756857435ac57bd99f
SQL
sd-2017-30233/db-operations-revision-kittymatei
/DataBase.sql
UTF-8
3,280
3.734375
4
[]
no_license
drop database if exists university; create database if not exists university ; use university; create table STUDENT (id int unique auto_increment primary key, nume char(50), data_nasterii date, adresa char (50)); create table CURS (id int unique auto_increment primary key, nume char(50), profesor char(50), ...
true
b4a5b75e5613e56c55efc408a2c8b4359d92fb52
SQL
ethanfi/bell-db
/ea/ea-view.sql
UTF-8
2,686
4.25
4
[ "Apache-2.0" ]
permissive
-- 菜单 create or replace view ea.dv_menu as with recursive r as ( select m.id, m.name, m.label_cn, m.label_en, m.id as root, 1 as path_level, to_char(m.display_order, '09') as display_order from ea.menu m where array_length(regexp_split_to_array(m.id, E'\\.'), 1) = 1 union all ...
true
116869f37fb14196d2f81bb0e6fe1d3038605e56
SQL
johnbentleyii/Announce
/cakephp/cakeannouncedb.mysql
UTF-8
3,901
3.078125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: CakeAnnounceDB -- ------------------------------------------------------ -- Server version 5.5.37-0ubuntu0.14.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESU...
true