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
2f041c0053bf8a68c7d7fe7ef0fec88c5c269e26
SQL
pepamonsegur/housekeeping-api
/application/task.sql
UTF-8
839
3.15625
3
[]
no_license
/*--------------------------------------------- TABLE CREATION ---------------------------------------------*/ CREATE TABLE IF NOT EXISTS useraccess ( useraccess_id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, acceshash VARCHAR(32), fecha_registro DATE ) ENGINE=InnoDB; CREATE TABLE IF NOT EXISTS task ...
true
4a16b7b82f519bc586f41a5f58ec8b64ac7dc931
SQL
flexagon9/flextest
/APEX/CustomerTracker/application/pages/page_00024.sql
UTF-8
77,832
2.515625
3
[]
no_license
--application/pages/page_00024 prompt ...PAGE 24: Data Load Results -- begin wwv_flow_api.create_page ( p_flow_id => wwv_flow.g_flow_id ,p_id => 24 ,p_user_interface_id => 1573006194470354318 + wwv_flow_api.g_id_offset ,p_tab_set => 'TS1' ,p_name => 'Data Load Results' ,p_step_title => 'Data Load Results' ...
true
a1125189102f7e983b813048d5647be6cbd93690
SQL
pablobergna/TPDATOS
/PRACTICA/Gestion de Datos - Ejercicios/PracticaSQL/10.sql
UTF-8
629
4.15625
4
[]
no_license
--Punto 10 SELECT r.d_rubro AS 'Rubro', sr.d_subrubro AS 'Subrubro', COUNT(DISTINCT e.id_elemento) AS 'Cantidad de articulos diferentes', SUM(rd.precio_unitario_sin_impuestos) AS 'Monto total' FROM dbo.RUBRO r JOIN dbo.SUBRUBRO sr ON r.id_rubro = sr.id_rubro JOIN dbo.ELEMENTO e ON sr.id_subrubro = e.id_subrubro JO...
true
562fe68a7f5ed7a8399a72b2cf4169944d99422c
SQL
mertyusufkutlu/TurkiyeSehirlerBolgeler
/sql/SadeceSehirler.sql
UTF-8
4,699
2.578125
3
[]
no_license
CREATE TABLE Sehirler ( Id INT PRIMARY KEY, SehirAd NVARCHAR(50) NOT NULL ); INSERT INTO Sehirler(Id, SehirAd) VALUES(1, 'Adana'); INSERT INTO Sehirler(Id, SehirAd) VALUES(2, 'Adıyaman'); INSERT INTO Sehirler(Id, SehirAd) VALUES(3, 'Afyonkarahisar'); INSERT INTO Sehirler(Id, SehirAd) VALUES(4, 'Ağrı'); INSERT INTO S...
true
e2038fe18fdc162c4b94f1c0f21cfc12206c4aa8
SQL
rcdevgames/pygql-boilerplate
/pygql.sql
UTF-8
370
2.6875
3
[]
no_license
-- Table Definition ---------------------------------------------- CREATE TABLE post ( id uuid PRIMARY KEY, title text NOT NULL, content text NOT NULL, created_at timestamp without time zone NOT NULL DEFAULT timezone('utc'::text, CURRENT_TIMESTAMP), updated_at timestamp without time zone NOT NULL D...
true
24017cf66bc6739c384a40002e7965387b5ae50c
SQL
jossrc/Oracle-Clases
/semana 05/cnxhr.sql
UTF-8
965
3.78125
4
[]
no_license
SELECT * FROM tab; SELECT * FROM departments; -- Crear tabla copia usando select CREATE TABLE TBEspecial30 AS SELECT * FROM employees WHERE department_id = 30; ------------------------------------- -- Usando la tabla creada SELECT * FROM TBEspecial30; -- Agregar un nuevo campo a la tabla ALTER TABLE TBEspec...
true
1d2de0e0004683f239375b98840a8ae75375c6fa
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/tables/RIE_NIVELRIESGO.sql
WINDOWS-1250
1,958
2.890625
3
[]
no_license
-------------------------------------------------------- -- DDL for Table RIE_NIVELRIESGO -------------------------------------------------------- CREATE TABLE "AXIS"."RIE_NIVELRIESGO" ( "SNIVRIESGO" NUMBER, "PRANGOINI" NUMBER, "PRANGOFIN" NUMBER, "PPORNIVEL" NUMBER, "NRIESGOFIN" NUMBER, "TDESRIESGO" ...
true
19e6147d63881a67ebe7bf32f952bd4ac8cd6cc5
SQL
jletroui/tbz-migration
/src/main/resources/migration.sql
UTF-8
6,699
3.796875
4
[]
no_license
-- Inspiration: http://contrib.spip.net/Export-Spip-vers-Wordpress (mais très incomplet) -- http://codex.wordpress.org/Function_Reference/wp_upload_dir UPDATE @PREFIX@options SET option_value='@UPLOAD_DIR@' WHERE option_name='upload_path'; -- Imports authors (only one real author, so just adjust admin user) UPDATE @P...
true
f8f37edb8449c3dd7d4ba3fde93bd88606d9149f
SQL
liuyuhao001/wzq2
/wzq.sql
UTF-8
2,279
2.96875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 本地 Source Server Version : 50612 Source Host : localhost:3306 Source Database : wzq Target Server Type : MYSQL Target Server Version : 50612 File Encoding : 65001 Date: 2014-06-29 13:10:02 */ SET FOREIGN_KEY_CHECKS=0; -- ------------...
true
517ea8b205ae64da8bc074b2d48d2bbdae106d95
SQL
tfmertz/mediawiki-extensions-Poll
/archives/Poll.sql
UTF-8
837
2.78125
3
[]
no_license
-- (c) Jan Luca, 2009, CC by-sa 3.0 or later -- Table structure for table `Poll` -- Replace /*$wgDBprefix*/ with the proper prefix -- Replace /*$wgDBTableOptions*/ with the correct options CREATE TABLE /*$wgDBprefix*/poll ( `id` INT( 10 ) NOT NULL AUTO_INCREMENT PRIMARY KEY , `question` VARCHAR( 255 ) NOT NULL , `alte...
true
7170016641bd226909de2941edae9faa45fd39db
SQL
DanmarksAdresser/Dawa
/packages/server/psql/schema/navngivenvejkommunedel_mat.sql
UTF-8
1,100
3.4375
3
[ "MIT" ]
permissive
DROP VIEW IF EXISTS navngivenvejkommunedel_mat_view; CREATE VIEW navngivenvejkommunedel_mat_view AS SELECT nvk.id, kommune AS kommunekode, vejkode AS kode, COALESCE(vejnavn, '') AS vejnavn, COALESCE(vejadresseringsnavn, '') AS adresse...
true
5ceb1c1e4c9921a9ad9f991dab2299dea741111e
SQL
mrafael12/API-com-ASPNET-Core
/APIWithASPNETCore Using Diferent Verbs/APIWithASPNETCore/db/migrations/old_V1_0_6__Create_Table_Users.sql
UTF-8
216
2.65625
3
[]
no_license
CREATE TABLE IF NOT EXISTS `users`( `Id` int(10) NOT NULL AUTO_INCREMENT, `Login` VARCHAR(50) UNIQUE NOT NULL, `AccessKey` VARCHAR(50) NOT NULL, PRIMARY KEY(`ID`) ) COLLATE=`latin_swedish_ci` ENGINE=InnoDB;
true
5d861d7801e0e1497eb0c68e3acd38732995c246
SQL
Danuoke/Tugas-Akhir-OktavianDanuarta
/pengirim.sql
UTF-8
1,864
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 27, 2019 at 06:01 AM -- Server version: 10.1.36-MariaDB -- 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 @OL...
true
09b8f4e03f0e3747475ee2dbb74b2756d11a078d
SQL
crossvalley/ukklistrik
/listrik.sql
UTF-8
8,917
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 01 Apr 2019 pada 02.55 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
1e8bd48ca984fe56cdb0847c4cb858ae6f71cf5b
SQL
jeypips/yessamin
/yessamin.sql
UTF-8
8,826
2.578125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.4.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 23, 2018 at 11:18 AM -- Server version: 5.7.11 -- PHP Version: 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
61611f2d8db34bee63e30088191ae18c24cf35fb
SQL
zaghir/eShopper
/eShopperBack/src/main/java/data.sql
UTF-8
2,923
2.90625
3
[]
no_license
insert into acriss_car_code1(code ,categorie ) values("M","Mini") , ("N","Mini Elite") , ("E","Economy"), ("H","Economy Elite"), ("C","Compact"), ("D","Compact Elite"), ("I","Intermediate"), ("J"," Intermediate Elite"), ("S","Standard"), ("R","Standard Elite"), ("F","Fullsize"), ("G","Fullsize Eli...
true
61c0f4254eec0d62eadd4de9c0cc759792055399
SQL
DanielAverman/auto-ml-creator
/src/main/resources/db/migration/V0__init.sql
UTF-8
1,133
3.375
3
[]
no_license
-- ----------------------------------------------------- -- Table USERS -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS USERS ( id SERIAL PRIMARY KEY, email VARCHAR(45) NULL UNIQUE, username VARCHAR(45) NULL UNIQUE, password VARCHAR(65) NOT NULL ); -- ------...
true
6d3b48a065f800fe218902faa06e6ffd7d3ea3d6
SQL
yudistirachma/dataMining
/mining/datamining.sql
UTF-8
1,782
2.828125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 27 Jan 2020 pada 15.23 -- 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
a973fa81c9e8596424a55e2bcf6cde2db27e029d
SQL
vantung7992/mydocument
/PMNV/ModuleTaiTucBH/bh_hd_goc_ttuc_lh.sql
UTF-8
1,329
3.21875
3
[]
no_license
drop table bh_hd_goc_ttuc_lh; create table bh_hd_goc_ttuc_lh( ma_dvi varchar2(20), so_id number, so_id_lh number, t_gian date, n_dung nvarchar2(500), t_trang varchar2(1), --1,2,3,4,5 nsd varchar2(20) ); --LKE create or replace procedure pbh_hd_goc_ttuc_lh_lke (b_ma_dvi varchar2,b_nsd varchar2,b_pas varchar2...
true
0597e04fa6bf358a768269c53802b1b911503f28
SQL
pengfen/learn17
/be/php/blog/shop_160305.sql
UTF-8
33,830
2.640625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50612 Source Host : localhost:3306 Source Database : shop Target Server Type : MYSQL Target Server Version : 50612 File Encoding : 65001 Date: 2016-03-05 09:51:08 */ SET FOREIGN_KE...
true
73254840b30c74fe9b6073abc5dee174c39b6706
SQL
xinlc/elasticsearch-learning
/demos/spring-boot-demo/demo-orm-beetlsql/src/main/resources/db/schema.sql
UTF-8
839
3.140625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
DROP TABLE IF EXISTS `orm_user`; CREATE TABLE `orm_user` ( `id` INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY COMMENT '主键', `name` VARCHAR(32) NOT NULL UNIQUE COMMENT '用户名', `password` VARCHAR(32) NOT NULL COMMENT '加密后的密码', `salt` VARCHAR(32) NOT NULL COMMENT '加密使用的盐', `email` VARCHAR(32) NOT NULL UNIQUE COMMEN...
true
c25c542ee50bfbbdacb91f43f53d18e7a2a28189
SQL
Heriptik/FlexibleLogin
/src/main/resources/create.sql
UTF-8
440
2.859375
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `{TABLE_NAME}` ( `UserID` INTEGER PRIMARY KEY AUTO_INCREMENT, `UUID` BINARY(16) NOT NULL, `Username` VARCHAR(16), `Password` VARCHAR(64) NOT NULL, `IP` BINARY(32) NOT NULL, `LastLogin` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, `Email` ...
true
abf0a813901a345ba3df8e792cf01e1b50b4c582
SQL
m4nzm333/sisfo-kaset
/sisfo-kaset.sql
UTF-8
3,159
3.15625
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 27, 2019 at 03:02 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
bcdf7e0b80d9a70b37a6619793985af1a1c78956
SQL
azamatbekmurat/ToDoList-Csharp-DBJoinTables
/todo_test.sql
UTF-8
3,259
3.5
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: May 08, 2018 at 07:23 PM -- Server version: 5.6.35 -- PHP Version: 7.0.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
f3628a92e054ad1ea6f09e67777c3682960c5299
SQL
ben83pete/SQL
/link 3 tables.sql
UTF-8
177
3.3125
3
[]
no_license
-- see all orders for nationwide select c.*, o.*, ol.* from Customers c join orders o on o.CustomerId = c.Id join OrderLines ol on ol.OrdersId = o.Id where name = 'nationwide'
true
7f80e61a2bd42f5cacfb07c8a89398d75399ec08
SQL
ChimpanG/CIVITAS-CSE-Release
/CIVITAS City-States/Core/City-States/Base/CSE_Taos.sql
UTF-8
2,350
2.90625
3
[]
no_license
/* Taos ~ Quarried resources yield +2 Science and +1 Production Authors: thecrazyscotsman */ ----------------------------------------------- -- TraitModifiers ----------------------------------------------- INSERT INTO TraitModifiers (TraitType, ModifierId ) VALUES ('MINOR_CIV_CSE_TAOS_TRAIT', 'CSE_...
true
5e58ba7e13bb39b2fb057eef24dc99f4e5fa9b73
SQL
ybg345/sql-hands-on
/SQL-Zoo/1_SELECT names/06_SELECT names.sql
UTF-8
132
2.625
3
[]
no_license
/* Problem Statement: Greece has a double e - who has a double o? */ -- Solution: SELECT name FROM world WHERE name LIKE '%oo%';
true
39ef3ac94800f1e33a85f2e130f2414268e68f98
SQL
uroborus/synapse
/synapse/storage/schema/pdu.sql
UTF-8
3,330
3.484375
3
[ "Apache-2.0" ]
permissive
/* Copyright 2014 OpenMarket Ltd * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to i...
true
90297a42bc8de4c8598ed996f55213494715dc34
SQL
meetuparchive/jira-stats
/mysql-schema.sql
UTF-8
745
3.390625
3
[]
no_license
CREATE TABLE `story` ( `key` varchar(12) NOT NULL, `created` timestamp NOT NULL, PRIMARY KEY (`key`) ); CREATE TABLE `version` ( `version` varchar(40) NOT NULL, `completed` timestamp NOT NULL, PRIMARY KEY (`version`) ); CREATE TABLE `issue` ( `key` varchar(12) NOT NULL, `type` varchar(40) NOT NULL, ...
true
7e354e074b22a685dcceab817b5804f3c7f243c2
SQL
RidhaAF/rekweb2020_183040083_ci4app
/ci4.sql
UTF-8
15,075
2.90625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 13, 2020 at 04:46 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
c30e4a7883cba09f2e4405ecec5c9f3acab0e5aa
SQL
gurpreet19/ec198392_wht
/Database/configuration/03_02_headless_tool/Delta_WST/SourcePackageDefinitions/ECDP_STREAM_VENTFLARE_HEAD.sql
UTF-8
2,136
2.65625
3
[]
no_license
CREATE OR REPLACE PACKAGE EcDp_Stream_VentFlare IS /**************************************************************** ** Package : EcDp_Stream_VentFlare ** ** $Revision: 1.5 $ ** ** Purpose : This package is responsible for supporting business functions ** related to Daily Gas Str...
true
7f58a35203130948b4dfc4e7e0da63780dd18b74
SQL
inasafe/inasafe-fba
/fixtures/schema/02_fbf/00_tables/00_references/05_hazard_type.sql
UTF-8
786
3.484375
3
[ "MIT" ]
permissive
-- -- Name: hazard_type; Type: TABLE; Schema: public; Owner: - -- CREATE TABLE IF NOT EXISTS public.hazard_type ( id integer NOT NULL, name text, CONSTRAINT hazard_type_pkey PRIMARY KEY (id) ); -- -- Name: hazard_type_id_seq; Type: SEQUENCE; Schema: public; Owner: - -- CREATE SEQUENCE IF NOT EXISTS publ...
true
8c6e4e8f816027ff0ef8279edecbb76aa130bad8
SQL
alexkup/ais
/renew_1c_data.sql
UTF-8
733
3.140625
3
[]
no_license
truncate table object_org; truncate table stalls; truncate table emp_obj; truncate table objects; truncate table obj_type; truncate table stalls_type; exec sync.add_stalls_type; insert into dbo.stalls_type(id_stall_type,name) select 0,'Неизвестно'; exec sync.add_obj_type; insert into dbo.obj_type(id_obj_type,...
true
c4c388fd2e9a61f614cef0b1d729fe0d7354e72c
SQL
hungngo95nt/InternetBanking
/document/internet_banking(Dũng).sql
UTF-8
15,821
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th8 16, 2020 lúc 11:20 AM -- Phiên bản máy phục vụ: 10.4.11-MariaDB -- Phiên bản PHP: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
true
84a4dfb26bb7c9bedbcc6a0871e611cbb601b5fd
SQL
Osmel1999/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/9-cities_by_state_join.sql
UTF-8
236
3.375
3
[]
no_license
-- lists all cities contained in the database hbtn_0d_usa -- lists all rows of a particular column in a database SELECT cities.id, cities.name, states.name FROM cities LEFT JOIN states ON states.id = cities.state_id ORDER BY cities.id;
true
26e6a12cd780a1fc06712493f9b2950b7df2b29d
SQL
aledj2/FeatureExtraction
/Create_featextr_db_130215.sql
UTF-8
13,896
2.9375
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.6.21-log - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.1.0.4867 -- --------------------------------------------------------...
true
227ee4a0a230f927ad3c38efe77281f75e3dfe5d
SQL
bandulan/maudy
/reklame.sql
UTF-8
5,185
2.9375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 14, 2020 at 01:40 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
53d1ebbb0235066875af99ed8192d1fd3201040a
SQL
bellmit/origin
/family_order/sql/TD_S_CPARAM/ExistsBrandTradeEnabled.sql
UTF-8
485
2.796875
3
[]
no_license
SELECT count(1) recordcount FROM tf_f_user a WHERE user_id=to_number(:USER_ID) AND partition_id=mod(to_number(:USER_ID),10000) AND exists (select 1 from td_s_commpara where subsys_code='CSM' and param_attr=135 and param_code=a.brand_code and par...
true
f0e9f8c394a1fba2999dd7eb3b482fc77aed4d21
SQL
elcioishizuka/serviceorder-api
/src/main/resources/db/migration/V003__create-table-service-order.sql
UTF-8
412
3.609375
4
[]
no_license
CREATE TABLE IF NOT EXISTS service_order ( id BIGINT NOT NULL AUTO_INCREMENT, customer_id BIGINT NOT NULL, description TEXT NOT NULL, price DECIMAL(10,2) NOT NULL, status VARCHAR(20) NOT NULL, open_date DATETIME NOT NULL, close_date DATETIME, PRIMARY KEY (id) ); ALTER TABLE service_order ...
true
8a02f8d6b598a591e7881a4cbc0ec4616ba6a05e
SQL
jeremy-farnault/FitBook
/fitbook/src/main/resources/sql/exercise_create.sql
UTF-8
363
3.15625
3
[]
no_license
DROP TABLE public.exercise; CREATE TABLE public.exercise ( id integer NOT NULL DEFAULT nextval('exercise_id_seq'::regclass), name character varying(100) COLLATE pg_catalog."default" NOT NULL, CONSTRAINT exercise_pkey PRIMARY KEY (id) ) WITH ( OIDS = FALSE ) TABLESPACE pg_default; ALTER TA...
true
a2b2b846056271d6f484eefd6f8a3727c2881f66
SQL
yuanluoji/purestart-springboot-data-jdbc
/src/main/resources/sql/h2/schema.sql
UTF-8
778
2.953125
3
[]
no_license
CREATE TABLE `goods_basic` ( `id` int unsigned NOT NULL AUTO_INCREMENT, `code` varchar(255) NOT NULL DEFAULT '' COMMENT '编码,不可重复;', `barcode` varchar(255) NOT NULL COMMENT '69开头的13位标准码', `short_name` varchar(255) NOT NULL COMMENT '商品名称', `photos` json DEFAULT NULL COMMENT '商品图片', `properties` json NOT NULL...
true
111f51f0ba5875f4092101a510dcf3ead9d3e0fb
SQL
aaronsapa1/big-data
/alumnos/felipegerard/proyecto2/gdelt/process/create_gdelt_clean_mex.sql
UTF-8
4,312
2.671875
3
[]
no_license
DROP TABLE IF EXISTS clean.gdelt_mex; CREATE TABLE clean.gdelt_mex ( GLOBALEVENTID varchar, SQLDATE integer, MonthYear integer, Year smallint, FractionDate float, Actor1Code varchar, Actor1Name varchar, Actor1CountryCode varchar, Actor1KnownGroupCode varchar, Actor1EthnicCode varchar, Actor1Religion1Code va...
true
ee3f4ea4b1902b916b767534af14a9b80a80240e
SQL
JQuispeLuyo/book
/BOOK/Tables/OFFERINGS.sql
UTF-8
383
3.09375
3
[]
no_license
CREATE TABLE book.offerings ( course VARCHAR2(6 BYTE) NOT NULL, begindate DATE NOT NULL, trainer NUMBER(4), "LOCATION" VARCHAR2(8 BYTE), CONSTRAINT pk_course PRIMARY KEY (course,begindate), CONSTRAINT offerings_courses FOREIGN KEY (course) REFERENCES book.courses (code), CONSTRAINT offerings_employ...
true
93bfa2f94a51f759b07b86e4bffa702981da1726
SQL
j7ng/CLFY_SA
/SA/Triggers/X_RAF_REPLIES_B_U.sql
UTF-8
824
2.796875
3
[]
no_license
CREATE OR REPLACE TRIGGER sa.X_RAF_REPLIES_B_U BEFORE UPDATE OF CARD_OBJID_CUSTOMER, CARD_OBJID_FRIEND ON sa.X_RAF_REPLIES REFERENCING OLD AS OLD NEW AS NEW FOR EACH ROW DECLARE l_cust_part_inst_no table_part_inst.part_serial_no%TYPE; l_friend_part_inst_no table_part_inst.part_serial_no%TYPE; BEGIN IF ( NVL(:...
true
be8e5f99d46470e79b06970c4f3273980926e239
SQL
kechkibet/crp_v2
/modules/core/db/import/crpv2/sectioncollectors.sql
UTF-8
629
2.578125
3
[]
no_license
-- Create new columns alter table sectioncollectors add column CREATE_TS datetime(3) ; alter table sectioncollectors add column CREATED_BY varchar(50) ; alter table sectioncollectors add column VERSION integer ; alter table sectioncollectors add column UPDATE_TS datetime(3) ; alter table sectioncollectors add column UP...
true
2eb2cb6621e439bf3351d47d519b2e4c22fbc1f4
SQL
DmitryKholodok/admission_committee
/src/main/resources/db/migration/V4__basic_certificate.sql
UTF-8
729
3.609375
4
[]
no_license
-- ----------------------------------------------------- -- Table `adcom`.`basic_certificate` -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS `adcom`.`basic_certificate` ( `user_id` INT(10) UNSIGNED NOT NULL, `bc_id` INT UNSIGNED NOT NULL, `point` TINYINT(3) UNSIGNED NOT ...
true
ddd1647da380eb54df329b4378afe48ac8896ab8
SQL
kkaragiannis/DVG-profiler
/vlib/db/sp_type_get_v6.sql
UTF-8
5,101
3.59375
4
[]
no_license
DROP PROCEDURE IF EXISTS `sp_type_get_v6`; DELIMITER // CREATE PROCEDURE `sp_type_get_v6`( IN p_group_id BIGINT UNSIGNED, IN p_member_sql VARCHAR(65535), IN p_where_fetch_sql VARCHAR(65535), IN p_where_full_fetch_sql VARCHAR(65535), IN p_type_type_domain BIGINT UNSIGNED, IN p_type_type_id BIG...
true
6f93e108b01b3f6b864d6db276670f20d9f3e8bf
SQL
jhuang292/SQL-II
/619.sql
UTF-8
186
3.515625
4
[]
no_license
# Write your MySQL query statement below SELECT MAX(tb.num) AS num FROM ( SELECT * FROM my_numbers n GROUP BY n.num HAVING COUNT(n.num) = 1 ) tb;
true
7a578c698bab12894d1867fd530575c8d1089d90
SQL
mobilemelody/board-at-home
/scripts/init.sql
UTF-8
14,873
2.953125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 12.3 -- Dumped by pg_dump version 12.3 -- Started on 2020-07-04 13:17:05 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalo...
true
e9a90f3c9ccd70c38086eff9c1a4fca8093dbd24
SQL
amandeepst/charge-upload-engine
/charge-upload-engine-db/src/main/database/migrations/oracle/CBE_CUE_OWNER/scripts/R/R__recreate_vw_bcu_account.sql
UTF-8
769
3.59375
4
[]
no_license
CREATE OR REPLACE FORCE EDITIONABLE VIEW VW_BCU_ACCOUNT ("LEGALCOUNTERPARTY", "CURRENCYCODE", "SUBACCOUNTTYPE", "BILLCYCLECODE", "PARTYID", "SUBACCOUNTID", "ACCOUNTID") AS SELECT substr(TRIM(acct1.lcp),-5) AS lcp, acct1.currency_cd AS currency, sa1.sub_acct_type AS sa_type, acct...
true
fe41ca61d566ea4611865b5b3b754569f28164c8
SQL
danstoyanov/CSharp-Databases
/01 - [MS SQL Problems]/12 - [Indices And Data Aggregation - Exercise]/P08_DepositCharge.sql
UTF-8
217
2.984375
3
[ "MIT" ]
permissive
SELECT wd.DepositGroup, wd.MagicWandCreator, MIN(wd.DepositCharge) AS MinDepositCharge FROM WizzardDeposits AS wd GROUP BY wd.DepositGroup, wd.MagicWandCreator ORDER BY wd.MagicWandCreator, wd.DepositGroup
true
f566f3e2e12c802883d63c82bc4ee90f955b8851
SQL
Vitra-Veri-Bilimi-Bootcamp/Yagmur_Uzun
/Patika/Week1_SQL/hw_12.sql
UTF-8
1,006
4.5
4
[]
no_license
--1.Film tablosunda film uzunluğu length sütununda gösterilmektedir. Uzunluğu ortalama film uzunluğundan fazla kaç tane film vardır? SELECT COUNT(*) FROM film WHERE length>(SELECT AVG(length) FROM film) --2.Film tablosunda en yüksek rental_rate değerine sahip kaç tane film vardır? SELECT COUNT(*) FROM film WHERE renta...
true
bce4178c322cae85c37c31325541cf4c3b2af910
SQL
Bl4X/PC-Bazar
/PC-Bazar/Dateien/Datenbank/pcBazar_DDL.SQL
UTF-8
4,832
3.15625
3
[]
no_license
/* Created: 15.02.2017 Modified: 01.03.2017 Model: Oracle 11g Release 1 Database: Oracle 11g Release 1 */ -- Create tables section ------------------------------------------------- -- Table Benutzer CREATE TABLE "Benutzer"( "BenutzerID" Integer NOT NULL, "Benutzername" Varchar2(30 ) NOT NULL, "E...
true
d3c9401080a07bc6d3ac65164b266a05b6ee21d8
SQL
lucoadam/blogij
/cms.sql
UTF-8
12,126
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 27, 2018 at 12:07 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 5.6.37 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
5a4970dca9f73e11acbf7d268fce96b615af6bd6
SQL
ji-myeung-Kim/OrderSystem
/sql/foodorderDML.sql
UHC
1,201
2.953125
3
[]
no_license
-- Customer table INSERT INSERT INTO customer VALUES('jm123', '', '01055236548', '⵵ õ'); INSERT INTO customer VALUES('kh345', '̱ȯ', '01099548765', '⵵ '); INSERT INTO customer VALUES('js4545', '', '01085465215', 'õ '); -- Store table INSERT; INSERT INTO store VALUES('߾߽', 'õ ', '0323245875'); INSERT INTO store VALUES('...
true
1fd29b528021d95143c46987d5f5822664c9f3ab
SQL
freddyf7/office-repo
/java/invoice-manager-jsf/customer_db_creates.sql
UTF-8
3,219
3.921875
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'; CREATE SCHEMA IF NOT EXISTS `customer_db` ; USE `customer_db` ; -- ----------------------------------------------------- -- Table `cust...
true
45940fb50a99e58888dff3f0bc454e1dd086dd31
SQL
WillZWL/project
/database/change script/shop.eservicesgroup.com/20160314_2.sql
UTF-8
4,424
3.390625
3
[]
no_license
ALTER TABLE `balance_status_action` ADD COLUMN `name` varchar(128) NULL AFTER `type`; ALTER TABLE `balance_transaction` ADD INDEX `idx_type` USING HASH (`type`) ; ALTER TABLE `balance_status_action` ADD UNIQUE INDEX `idx_type` USING HASH (`type`) ; update balance_status_action set name='Adjustment Bal Up' ...
true
331f57d98f1ec8e7688fa176277e00097f9479a2
SQL
rodrigo-osorio/prueba_modulo_db
/prueba_bd.sql
UTF-8
4,961
3.765625
4
[]
no_license
--PARTE 2 --creando base de datos: CREATE DATABASE prueba; --ingresando a base de datos \c prueba --CREACION DE TABLAS --creando tabla DIRECCIONES CREATE TABLE addresses( address_id SERIAL PRIMARY KEY, street VARCHAR(50), street_number INT, precinct VARCHAR(25), city VARCHAR(25) ); --creando tabl...
true
edb583665a08a91ead317d87ac67429e6c467f46
SQL
fbrute/pm_aot_tfeuilla
/gen/aot_pm10_daily_average_2009_v2.sql
UTF-8
327
3.578125
4
[]
no_license
select year, month, day, nday, avg(pm10) as pm10, avg(aot1020) as aot1020 from aot_pm10_hourly_average where (year,month,day) not in (select year(date),month(date) ,day(date) from ex_dates) and (year,month,day,heure) not in (select year,month, day, hour from ex_date_hour) group by year,month,day order by year,mon...
true
3bf022cb77370b50498e3b6b37e68533b66f8f4d
SQL
mattalexanderhill/thetakemachine
/migrations/2020-07-03-133103_create_demographics/up.sql
UTF-8
1,207
3.484375
3
[]
no_license
CREATE TABLE gender ( id INTEGER PRIMARY KEY, text VARCHAR NOT NULL ); INSERT INTO gender ( id, text ) VALUES (1, 'Woman'), (2, 'Man'), (3, 'Other') ; CREATE TABLE age_group ( id INTEGER PRIMARY KEY, text VARCHAR NOT NULL ); INSERT INTO age_group ( id, text ) VALUES (1, '<18'), (2, '18-...
true
abff788a1922fc76f11383f627fc25547521e017
SQL
pratcurve/socialNotification
/database.sql
UTF-8
886
3.96875
4
[ "BSD-2-Clause" ]
permissive
-- create database notify create database notify; -- //create User table in notify database create table user (user_id int(10) NOT NULL AUTO_INCREMENT, email text, fcm text, PRIMARY KEY(user_id)) -- //create subscribe table in notify database create table subscribe (subscribe_id int NOT NULL AUTO_INCREMENT, user_id...
true
866a1d79acdfaefffce3dceeb36257663abc94a6
SQL
jycpark95/FullStack_Info_HW07
/schema.sql
UTF-8
414
3.0625
3
[]
no_license
DROP TABLE if exists users; DROP TABLE if exists trips; CREATE TABLE users ( user_id INTEGER PRIMARY KEY AUTOINCREMENT, username TEXT not null, password TEXT not null ); CREATE TABLE trips ( trip_id INTEGER PRIMARY KEY AUTOINCREMENT, trip_name TEXT not null, destination TEXT not null, travel_pal TEXT no...
true
203cd5c82f92a82729c3934b294826c760ad3f36
SQL
anjkrish2608/employee-tracker
/seed.sql
UTF-8
542
3.34375
3
[]
no_license
USE employee_DB; INSERT INTO departmentTable(name) VALUES("IT"),("Accounting"),("Construction"); INSERT INTO roleTable(title,salary,department_id) VALUES("Head of IT",50000,1),("Head of Accounting",100000,2),("Head of Construction",70000,3); INSERT INTO employeeTable(first_name,last_name,role_id,manager_id) VALUES("...
true
8b5789e1cc478b03c3249f60b8ad5d8f488ed00f
SQL
morganism/perl
/agg/MODULE/files/hotfixes/14/bin/sql/jobs/JOBS_UPDATE.sql
UTF-8
3,701
2.703125
3
[]
no_license
PROMPT Adding JOBS.MULTI_JOB_REF insert into jobs.multi_job_ref (MULTI_JOB_REF_ID, DESCRIPTION, PARAMETERS, JOB_CATEGORY_ID) values (105154, '(M) MSS vs GSM (count) - ST_ONXP_VOICE_POSTPAID_HOME_MO - EDR Count', '-mrec_id 100054 -num_days 21 -offset 28', 35005); insert into jobs.multi_job_ref (MULTI_JOB_REF_ID, DE...
true
ac2d08b73b6f69b6aaa303dd01857c4c9b6f9661
SQL
ematedev/fitav-issues
/esf-organization-portlet/docroot/WEB-INF/sql/indexes.sql
UTF-8
1,665
2.734375
3
[]
no_license
create index IX_F7E4D301 on ESF_ESFAddress (groupId); create index IX_BC50B716 on ESF_ESFAddress (longitude, latitude); create index IX_746531CB on ESF_ESFAddress (uuid_); create unique index IX_14A4173F on ESF_ESFAddress (uuid_, groupId); create index IX_F1FA4E7B on ESF_ESFField (groupId); create index IX_598F7196 on...
true
2d204418f7248cb1a80e5c95f632c6ef5ad1a33b
SQL
jjiy01/renton
/renton/src/main/resources/database/h2/schema.sql
UTF-8
1,169
3.90625
4
[]
no_license
create table tb_users ( user_id varchar(10) primary key, user_name varchar(256) not null, email varchar(256) not null unique, password varchar(256) not null, ); create table tb_groups ( group_id bigint generated by default as identity(start with 1) primary key, group_name varchar(256) not null, desc...
true
b8d9397b70623c97b9b36b7fb72af160cbb67060
SQL
gcoronelc/SISTUNI-PLSQL-005
/TRABAJOS/TALAVERA/fcSCRIPTs Guillermo Talavera/fcPROC.sql
UTF-8
6,904
3.34375
3
[]
no_license
CREATE OR REPLACE PROCEDURE prCRUD (sentencia VARCHAR2, obj VARCHAR2, nombre VARCHAR2, apellido VARCHAR2, nombre_cambio VARCHAR2, apellido_cambio VARCHAR2) IS resultCRUD VARCHAR2(150); conta NUMBER; nombreentrenador VARCHAR2(150); nombreentrenador_cambio VARCHAR2(150); nombreposicion VARCHAR2(150); nombreposicion_ca...
true
f886dbcc0a8be37427d7a1912fa74990d7ead689
SQL
adminiitbact/cov2-graphql
/hasura/migrations/1589101158371_set_fk_public_patient_test_detail_lab_confirming/up.sql
UTF-8
246
2.640625
3
[ "MIT" ]
permissive
alter table "public"."patient_test_detail" add constraint "patient_test_detail_lab_confirming_fkey" foreign key ("lab_confirming") references "public"."lab" ("key") on update cascade on delete cascade;
true
9d74558c170753853e715f7736edfd4d67ee90b8
SQL
delphi1977/NewDicomPACS
/Database/oracle/tables/vnaz_calc_limit_add.sql
WINDOWS-1251
2,015
3.21875
3
[]
no_license
DROP TABLE ASU.VNAZ_CALC_LIMIT_ADD CASCADE CONSTRAINTS / -- -- VNAZ_CALC_LIMIT_ADD (Table) -- CREATE GLOBAL TEMPORARY TABLE ASU.VNAZ_CALC_LIMIT_ADD ( FK_REASON NUMBER, FD_CALC DATE, FD_CLOSED DATE, FD_NAZ DATE, FD_RUN DATE, NAZ_ID NUMBER(15), FK_SMID ...
true
c7e5350cd6af5761dec49f94bb0298d49d4db811
SQL
jbothma/municipal-data
/sql/incexp.sql
UTF-8
383
2.828125
3
[ "MIT" ]
permissive
-- Table: public.incexp -- DROP TABLE public.incexp; CREATE TABLE public.incexp ( demarcation_code text NOT NULL, period text NOT NULL, function_cde text NOT NULL, incexp_cde text NOT NULL, act_or_bud bigint, CONSTRAINT primary_key PRIMARY KEY (demarcation_code, period, function_cde, incexp_cde) ) WITH ( ...
true
a1c9d97b3c53f543b04921bcff5e36e60fc66d33
SQL
Daniel-Tilley/College
/Year2/Sem_1/Databases/Week 6/Daniel-DIT-Oracle.sql
UTF-8
1,529
3.40625
3
[ "MIT" ]
permissive
DROP TABLE pCustomer CASCADE CONSTRAINTS PURGE; DROP TABLE County CASCADE CONSTRAINTS PURGE; DROP TABLE Courier CASCADE CONSTRAINTS PURGE; DROP TABLE Parcel CASCADE CONSTRAINTS PURGE; CREATE TABLE pCustomer ( cNo NUMBER(6) NOT NULL , cName VARCHAR2(30) NOT NULL , street ...
true
9405f66524a0fe52d769efb8aba27e81db1dcb04
SQL
jugvale/jugvale-app-inscricoes
/jugvale-app-inscricoes/src/main/resources/banco-app-inscricoes.sql
ISO-8859-1
592
3
3
[]
no_license
/* * Script do banco de dados da aplicao de inscries para eventos do JUG-Vale * * Esse script pode estar incompleto e dever ser feito e testado no cdigo Java */ /* * Criao do banco de dados. * */ CREATE database IF NOT EXISTS `jugvale_app_inscricoes` CHARACTER SET utf8 COLLATE utf8_general_ci; USE `jugvale_app...
true
a0528010cd0b11aa9a1073570e241a334bc6b4e9
SQL
Muph0/vv-protokoly
/pohled_opatreni.sql
UTF-8
468
3.578125
4
[ "MIT" ]
permissive
SELECT Nazev, Vlivy, ( SELECT GROUP_CONCAT( ( SELECT GROUP_CONCAT(masky.Mask SEPARATOR ', ') FROM Opatreni masky WHERE masky.TextID = uniq_id.TextID AND Vlivy LIKE CONCAT('%', masky.Mask, '%') ), ' - ', uniq_id.TextID SEPARATOR '\n...
true
4bac417dd0a3e38d4c7829b28d043898b53ada52
SQL
rmuraglia/SmashViz
/stage_advantage/stage_adv_query.sql
UTF-8
4,306
3.78125
4
[]
no_license
-- stage_adv_query.sql -- usage: mysql < ../stage_adv_query.sql > games_record.tsv use anthers_12_21_2016; -- set a date cutoff for games to be considered in analysis. choose to focus on games after patch 1.1.6 set @GAMES_CUTOFF = '2016-05-20'; select p1.*, p2_id, p2_rating, p2_sigma, p2_charid, p2_bans from ( ...
true
4c8ac78a116cabf09fd55c8b7dfbbac75f1ce526
SQL
tychkov-maxim/shop
/init.sql
UTF-8
2,563
4.09375
4
[]
no_license
CREATE TABLE ROLES ( ID INTEGER AUTO_INCREMENT PRIMARY KEY NOT NULL, NAME NCHAR(255) NOT NULL ); CREATE UNIQUE INDEX "roles_name_uindex" ON ROLES (NAME); CREATE TABLE USERS ( ID INTEGER AUTO_INCREMENT PRIMARY KEY NOT NULL, LOGIN NCHAR(50) NOT NULL, PASSWORD NCHAR(50) NOT NULL, FIRST_NAME NCHAR(255) NOT NUL...
true
7dec630d5fcd4249d2b1e74d84aeda720909c43a
SQL
jabearis/erp_SCM
/SYSTEM/inventory v2/db/pos.sql
UTF-8
9,755
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 18, 2017 at 10:51 AM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
fb6ddc6bf7ff33b20c958747a1b8814f4913d11e
SQL
cghnassia/BD50_TourDeFrance
/Conception/Scripts/710_create_pqb_db_inscription.sql
ISO-8859-1
3,285
3.390625
3
[]
no_license
-------------------------------------------------------- -- Fichier cr - mardi-juin-17-2014 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Package Body DB_INSCRIPTION -------------------------------------------------------- CREATE OR ...
true
5f52d465493fc7fac954006bc649b7ae97f09329
SQL
jungle0127/SpringBootLearning
/mybatis-demo/docs/batis-demo.sql
UTF-8
2,016
3.59375
4
[]
no_license
use sys; DROP DATABASE IF EXISTS `batis`; CREATE DATABASE batis; use batis; DROP TABLE IF EXISTS `proc_demo`; CREATE TABLE proc_demo( id BIGINT PRIMARY KEY AUTO_INCREMENT NOT NULL, username varchar(30) NOT NULL, password varchar(30) NOT NULL, image_url varchar(120) NOT NULL, role_name varchar(120) ...
true
a80e797c725ecf3d18282864a2ad019eec50c1bc
SQL
Subbareddyg/PEP-App
/Phase2_PROD_Script/11_update_adse_item_catalog.sql
UTF-8
1,283
2.953125
3
[]
no_license
create or replace procedure VENDORPORTAL.update_adse_item_catalog as cursor c_data is select mdmid from adse_item_catalog where entry_type = 'SKU'; l_count NUMBER := 0; l_row c_data%rowtype; mdmid adse_pet_catalog.mdmid%type; errordtl varchar2(250); begin open c_data; loop fetch c_d...
true
e1287882ff94110ffc2310ab0efc032d779f47c3
SQL
DwardTiro/-MOBAPDE--EnlistmentApp
/MiniChallenge2/schema/user.sql
UTF-8
1,464
2.734375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 04, 2017 at 01:56 PM -- Server version: 10.1.10-MariaDB -- PHP Version: 7.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
74dd3653d3798de50597a0cf4cbcad86c6406127
SQL
studyerer/MyLibrary
/java src/tools/LibraryAutomation.sql
UTF-8
4,193
3.53125
4
[]
no_license
drop database libraryautomation; create database libraryautomation; use libraryautomation; -- insert into `book` VALUE('1','hlm','12','qq','3_dong','12341231','available','science'); -- insert into `book` VALUE('2','xyj','13','ww','3_dong','12341232','available','sciadadaw'); create table book( BookId int(6) unsigned...
true
12c14f92fff91ee32faca31a298014d098a818c4
SQL
fsoto1/api-camel
/src/main/resources/data.sql
UTF-8
696
2.8125
3
[]
no_license
DROP TABLE producto; CREATE TABLE producto( id BIGINT AUTO_INCREMENT PRIMARY KEY, nombre VARCHAR(250) NOT NULL, img VARCHAR(250) NOT NULL, descripcion VARCHAR(250) NOT NULL, precio INT AUTO_INCREMENT NOT NULL, descuento DECIMAL(10,2), creacion TIMESTAMP, modificacion TIMESTAMP ); INSERT INTO pr...
true
8d986e180de3f515660fbf9690d7c8cc0fc93d63
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day10/select1415.sql
UTF-8
178
2.609375
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-09T14:15:00Z' AND timestamp<'2017-11-10T14:15:00Z' AND temperature>=36 AND temperature<=49
true
9d47394b6ba4d370f89f05edc5a1002b940dbdfa
SQL
krameroliver/SenacorBankModel
/transfer/sql/CreateTable/card.sql
UTF-8
754
3.0625
3
[]
no_license
CREATE TABLE SRCSCHEMA_ID.s_card( card_id VARCHAR(10 ), disp_id VARCHAR(10 ), card_type VARCHAR(100 ), year integer, month integer, day integer, fulldate DATE, creation_date DATE, modification_date DATE, record_source varchar(255), card_hk CHAR(32), effectiv_timerange tstzrange, PRIMARY KEY(card_hk,effectiv_timerange)...
true
06d97254d1eee6ed29e736c53662c5f0851d8015
SQL
kalebtesfay/Mechanic-Shop-Database
/database/P4_03.sql
UTF-8
384
3.75
4
[]
no_license
/* Produce a table that lists all the vehicles that have the same type as Toyota. This is useful because if there is more then one vehicle that has the same type, you can search for it like this. */ SELECT id, type FROM VEHICLES WHERE type = 'Toyota' ORDER BY id; /* Test Output: id type ...
true
024b6261466b0666506f5614bd155ac94ab7c0d8
SQL
noslin005/Ops
/mysql.sql
UTF-8
9,282
3.5625
4
[]
no_license
--登录 mysql --带密码登录 mysql -u root -h 127.0.0.1 -p password --查询当前用户 select user(); --显示所有数据库 show databases; --切换数据库 use mysql; --显示所有数据表 show tables; --查看表结构 describe user; --查询 select * from user; --建库 create database aaa; --建表 create table students( name varchar(60), course varchar(120), score int(3) ...
true
fac1710d08feba393c36aa8c8165c379c8ec9761
SQL
jairx/BolaNaRede
/FISICO.sql
UTF-8
2,373
2.84375
3
[]
no_license
-- Gera��o de Modelo f�sico -- Sql ANSI 2003 - brModelo. CREATE DATABASE jairneto_bolanarede; USE jairneto_bolanarede; CREATE TABLE TIPO_FALTA ( ID_TIPO_FALTA int(4) PRIMARY KEY auto_increment, CARTAO varchar(10) not null ); CREATE TABLE SELECAO ( ID_SELECAO int(4) PRIMARY KEY auto_increment, NOME varchar(40) not n...
true
cf1ba4aef1f8dccff5b7af40a3cc1e7d82fe744d
SQL
EvanFrostone/Relational-Databases-Class
/InClass Work/SelectQuery Work.sql
UTF-8
2,902
4.34375
4
[]
no_license
--This is a single line comment /*This here is a bonified multi line comment */ SELECT * FROM Vendors; --Selects all off the columns from the Vendors Table. SELECT InvoiceNumber FROM Invoices; --Selects the InvoiceNumber column from the Invoices Table. SELECT InvoiceNumber, InvoiceDate, InvoiceTotal FROM Invoices; ...
true
6e7cfd7022fdeb1f4472d24e8a82560b86751b4b
SQL
davidavm/ebill
/doc/sql/03_aud_log_procesos.sql
UTF-8
1,953
3.859375
4
[]
no_license
-- Volcando estructura para tabla aud_log_procesos CREATE TABLE aud_log_procesos ( id_log int(11) NOT NULL AUTO_INCREMENT, nombre_proceso text NOT NULL, fecha_inicio datetime DEFAULT NULL, fecha_fin datetime DEFAULT NULL, comentario text, cantidad int(11) DEFAULT NULL, correcto varchar(1) DEFAULT NULL, ...
true
96f6d85849bdb2a9f6def2cedbaca1963d01de6b
SQL
gabrielos307/BasesDatosAvanzadas
/BDA/proyecto-final/s-07-crea-usuarios.sql
UTF-8
894
3.125
3
[]
no_license
--@Autor: FLores García Karina --@Autor: Herrera Gandarela Gabriel Alejandro --@Fecha Creacion: 04/02/2021 --@Descripcion: Creacion de usuarios whenever sqlerror exit rollback set serveroutput on connect sys as sysdba create user admin_objects identified by aobjects quota unlimited on users; create user ad...
true
774b4934624945f41c3d34716d1cd227c4d28138
SQL
hidalgoseba/sincronizando
/BD/uptask.sql
UTF-8
2,811
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 08-01-2021 a las 17:01:17 -- Versión del servidor: 5.6.43 -- Versión de PHP: 5.6.40 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
9cc4a4f099e3a2d798b42fd7f5a83e8ec649fe29
SQL
mkostek/ticaret
/ticari.sql
UTF-8
6,523
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.4 -- http://www.phpmyadmin.net -- -- Anamakine: 127.0.0.1 -- Üretim Zamanı: 17 Ara 2016, 19:32:57 -- Sunucu sürümü: 5.6.15-log -- PHP Sürümü: 5.4.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
110790a67c76a7bc4556f877fd2c190c33840fc1
SQL
JBorigin/DesarrolloWeb
/lab2.sql
UTF-8
2,155
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 29-07-2020 a las 20:06:13 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
3acec2ea81dea6c36abfa7460974d78e55ca8d90
SQL
Ex-Soft/test
/CBuilder/Tests/IB/TestIB.#1/sql/TOVData.sql
UTF-8
593
3.640625
4
[]
no_license
select sum(T2.CNT) from TOV T2 group by T2.ID order by 1 desc select distinct sum(T2.CNT) from TOV T2 group by T2.ID order by 1 desc select first 2 distinct sum(T2.CNT) from TOV T2 group by T2.ID order by 1 desc select T1.ID, sum(T1.CNT) from TOV T1 group by T1.ID having sum(T1.CNT) in ...
true
3e3aea9e733601f0a3e7d92791db0111652fd249
SQL
rtdohe01/CIS-420
/420 Project Code/Stored Procedure - Create Employee.sql
UTF-8
2,780
3.84375
4
[]
no_license
--This is a stored procedure for entering a new Employee into the database. --This makes entering new Employees much more efficient and easier. CREATE PROC EmployeeCreate --This creates the procedure and names it "EmployeeCreate" @EMP_ID varchar(50), --This tells the proceudre to accept the EMP_ID...
true
263f9f18e35b5ba65b77cba76eb713b135d96017
SQL
kyawhtut-cu/MMExchange
/kyawhtut_mmcurrency.sql
UTF-8
4,939
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 24, 2019 at 04:51 PM -- Server version: 5.6.44-log -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
25601628108499eef24682e2b4d2e1c3f7b806d0
SQL
charles-wangkai/leetcode
/bank-account-summary.sql
UTF-8
791
4.3125
4
[]
no_license
SELECT u.user_id, u.user_name, u.credit + coalesce(t2.income, 0) - coalesce(t1.expense, 0) AS credit, IF( u.credit + coalesce(t2.income, 0) - coalesce(t1.expense, 0) < 0, 'Yes', 'No' ) AS credit_limit_breached FROM Users u LEFT OUTER JOIN ( SELECT ...
true
f2be74ff69376f921349e80fcfbdf33062cbf6d2
SQL
MariusDinu/Lucru-in-echipa
/FacultyOfComputerScience/Anul II/Semestrul II/SGBD/plsql9/Dinu_Marius_Lab9_UTL_FILE.sql
UTF-8
4,226
3.78125
4
[]
no_license
--Dinu Marius,grupa A5 --am creat un script pentru a exporta intr-un fisier de format csv CREATE OR REPLACE PROCEDURE export_to_csv as v_fisier UTL_FILE.FILE_TYPE; --initializam fisierul cursor info is select * from note; table_to_string varchar(100); --un string pe care-l vom folosi pentru a adauga valorile in f...
true
bea49ffae00a6dc2e0a8fa91d5c8c6ce259341c3
SQL
EmilienCocherel/projetfilm
/BD/Requetes.sql
UTF-8
468
3.4375
3
[]
no_license
/*Obtenir tous les id des films*/ select code_film from films; /*Obtenir tous les id des films*/ select code_indiv from individus; /*Obtenir le nombre de films */ select count(code_film) from films; /*Obtenir le nombre d'acteurs */ select count(code_indiv) from individus; /* Affiche tous les films de la base ain...
true
6ee4e64979802d414f857766f0c87c504f62bd7e
SQL
vickyarun143/sql1
/test.sql
UTF-8
438
3.046875
3
[]
no_license
create procedure stp_employee_insert(@id int,@name varchar(20),@adid int) as begin if exists(select empid from employee where empid=@id ) begin raiserror('employee id already exists',1,1) end else begin if exists(select adid from address where adid=@adid) begin insert into employee values(@id,@n...
true