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
b0093970f444967d9dd8a591f3135b10727a1aa3
SQL
newbotong/botong-application
/botong-notice/db/db.sql
UTF-8
1,782
3.546875
4
[]
no_license
DROP TABLE IF EXISTS notice; CREATE TABLE `notice` ( `id` varchar(32) NOT NULL COMMENT '公告id', `issue_user_id` varchar(32) DEFAULT NULL COMMENT '发布人成员id', `title` varchar(200) DEFAULT NULL COMMENT '公告标题(5-10字)', `content` longtext COMMENT '公告内容(2000字)', `org_id` varchar(32) DEFAULT NULL COMMENT '企业id', `co...
true
42407b534d069cbbac28fcd0ae139dd531add21b
SQL
JavaTrain/CodeExample
/Users/Dump20150617-1.sql
UTF-8
4,750
3.390625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `chrisdb` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `chrisdb`; -- MySQL dump 10.13 Distrib 5.5.43, for debian-linux-gnu (x86_64) -- -- Host: 127.0.0.1 Database: chrisdb -- ------------------------------------------------------ -- Server version 5.5.43-0ubuntu0.14.04.1 /*!40101 S...
true
77125fa18040bd7ee5fa7f0eba27b5c1c758b750
SQL
rychtovy24/diplomova_praca
/Ontology/sparql-examples.sql
UTF-8
2,926
3.109375
3
[]
no_license
PREFIX main: <http://www.semanticweb.org/rycht/ontologies/cyber_security_ontology#> PREFIX platform: <http://www.semanticweb.org/rycht/ontologies/cyber_security_ontology/platform#> PREFIX cve: <https://cve.mitre.org/about/terminology.html#> PREFIX oval:<https://oval.mitre.org/language/version5.11/OVAL> SELECT ?cve ?ti...
true
22c7713ac76f5041577cb70550cc0b3c64ecb51b
SQL
CaptainJRoy/Oracle-SQL-Monitor
/Modelo Fisico/create_monitorDB.sql
UTF-8
2,786
3.84375
4
[]
no_license
--MEMORY CREATE TABLE MEMORY ( TIMESTAMP DATE NOT NULL , SGA NUMBER NOT NULL , PGA NUMBER NOT NULL , CONSTRAINT MEMORY_PK PRIMARY KEY ( TIMESTAMP ) ); --CPU CREATE TABLE CPU ( TIMESTAMP DATE NOT NULL , NUM_CPU_CORES NUMBER NOT NULL , IOWAIT_TIME NUMBER NOT NULL , NICE_TIME NUM...
true
c311bfabc33d2ea58af4da554d082a5bf913cb73
SQL
alldatacenter/alldata
/studio/micro-services/SREWorks/paas/appmanager/APP-META-PRIVATE/db/44_add_component.up.sql
UTF-8
1,959
3.578125
4
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "EPL-1.0", "LGPL-2.0-or-later", "BSD-3-Clause", "MIT", "MPL-2.0", "GPL-2.0-only", "JSON", "EPL-2.0" ]
permissive
CREATE TABLE `am_component` ( `id` bigint NOT NULL AUTO_INCREMENT, `component_type` varchar(32) NOT NULL COMMENT '组件类型,全局唯一', `component_adapter_type` varchar(16) NOT NULL COMMENT '适配类型,可选 core, groovy', `component_adapter_value` longtext DEFAULT NULL COMMENT '适配...
true
c5870b1a5642cce2d38f5e2265aeba880126afc0
SQL
KevinMorning/Teradata-CustomSQLQueries
/LSE - Open Orders + Contracts Data v1.sql
UTF-8
3,482
3.359375
3
[]
no_license
SELECT -- CAST(PROD_EDW_VIEWS.SV_OTC_ORDER_SIZE.SALESORG AS CHAR(10)) AS SalesOrg, PROD_EDW_VIEWS.SV_OTC_ORDER_SIZE.PLANT AS Plant, CAST(NULL AS CHAR(10)) AS Season, PROD_EDW_VIEWS.SV_OTC_ORDER_SIZE.MATERIAL AS PC9, /* , CASE WHEN POSITION('-' IN PROD_EDW_VIEWS.SV_OTC_ORDER_SIZE.AF_GRDVAL) >...
true
0906babd05f2a2c7a5b062cf5aecb58677a9ed2f
SQL
arun2pratap/employeeSurvey-1
/src/main/resources/templates/emptydb.sql
UTF-8
2,425
3.125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `engagement_survey`; CREATE TABLE `aspects` ( `aspect_id` int(11) NOT NULL AUTO_INCREMENT, `aspect` varchar(255) DEFAULT NULL, `aspectdetails` varchar(255) DEFAULT NULL, PRIMARY KEY (`aspect_id`) ) ENGINE=InnoDB AUTO_INCREMENT=17 DEFAULT CHARSET=utf8 CREATE TABLE `employee_feed...
true
a9849eb9e4f6d4b293d44b1c41caa577f4b8937d
SQL
tockata/Databases
/07-Database-Performance/Problem03.sql
UTF-8
1,193
4.59375
5
[]
no_license
-- create table with partitions: CREATE TABLE IF NOT EXISTS test ( id INT NOT NULL AUTO_INCREMENT, date DATETIME, text TEXT, UNIQUE KEY (id, date) ) PARTITION BY RANGE ( YEAR(date) ) ( PARTITION p0 VALUES LESS THAN (1990), PARTITION p1 VALUES LESS THAN (2000), PARTITION p2 VALUES LESS THAN (...
true
09fff4b2fdf246145a95f50f6901774d8958b473
SQL
SteffenKong/draw
/docs/draw.sql
UTF-8
1,758
3.65625
4
[ "MIT" ]
permissive
create database if not exists draw charset=utf8; use draw; -- 管理员表 create table if not exists draw_admin( id mediumint unsigned auto_increment, account varchar(191) not null comment '账号', password varchar(191) not null comment '密码', status tinyint default 1 comment '管理员状态 0 - 禁用 1 - 启用' login_setti...
true
4ffedbfe4bba974459da4611a8e35dc96ea05496
SQL
vwgs94/csc370
/project/project_insert_table.sql
UTF-8
3,305
2.65625
3
[]
no_license
INSERT INTO Airlines(acode, name, website) VALUES(1234,'Emirates','www.emirates.com'); INSERT INTO Airlines(acode, name, website) VALUES(5678,'Air Canada','www.aircanada.com'); INSERT INTO Airlines(acode, name, website) VALUES(9876,'Lufthansa','lufthansa.com'); INSERT INTO Routes(rnum, airlineID, planemodel) V...
true
6bd93210df5e4fd710de71f3de26410aeb0990b6
SQL
gilmarte/isgSecPro
/ife_exported/build/config/db/scripts/test_data.sql
UTF-8
13,729
2.859375
3
[]
no_license
/* Test Data */ -- REF_COUNTRIES Insert into IFREND.REF_COUNTRIES (CO_COUNTRY_CODE_PK,CO_COUNTRY_DESC) values ('PH','Philippines'); Insert into IFREND.REF_COUNTRIES (CO_COUNTRY_CODE_PK,CO_COUNTRY_DESC) values ('AU','Australia'); Insert into IFREND.REF_COUNTRIES (CO_COUNTRY_CODE_PK,CO_COUNTRY_DESC) values ('SG','Singap...
true
d50fdd3905b8bd95c82c1451a5591986a8559ba1
SQL
FirebirdSQL/x-cvs-vulcanj
/VulcanJ/ddl/view/view99.sql
UTF-8
624
3.390625
3
[]
no_license
set names ascii; create database 'test.fdb' default character set iso8859_1; -- CORE-831 backport for SAS defects -- s0513575, CAN'T USE FUNCTIONS ON VIEW COLUMNS CREATE TABLE T1( X INTEGER ) ; CREATE TABLE T2 (X INTEGER, Y INTEGER); CREATE VIEW V2 AS SELECT AVG(X) AS AA FROM T1 ; DROP VIEW V2; -- s0513476, create...
true
86006eea91063e184055bb1d82a2fe2d2485227c
SQL
kiryl-baryshnikau/repos
/Solution26/Database1/Locale/LocaleIdentifier.sql
UTF-8
1,032
3.171875
3
[]
no_license
CREATE TABLE [Locale].[LocaleIdentifier] ( [LocaleIdentifierKey] INT NOT NULL, [CultureName] NVARCHAR (5) NOT NULL, [CultureDisplayName] NVARCHAR (64) NOT NULL, [ActiveFlag] BIT NOT NULL, [DefaultFlag] BIT NOT NULL, [Created] ...
true
1461b4be7cbffb48221ead6f859dc91aaa0fcd76
SQL
mawei0053/yadi
/login_1808.sql
UTF-8
1,766
2.921875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50612 Source Host : localhost:3306 Source Database : login_1808 Target Server Type : MYSQL Target Server Version : 50612 File Encoding : 65001 Date: 2018-10-18 20:43:16 */ SET FOREIGN_KEY_CHECKS=...
true
f4cc8219515b8683d2a8d6cf6ddd3a57678050b3
SQL
Mikael639/TP_BDD_SQL
/TP1/Exercice 6/ex_06_01.sql
UTF-8
135
2.71875
3
[]
no_license
SELECT l.LOCATION_ID, l.STREET_ADDRESS, l.CITY, l.STATE_PROVINCE, c.COUNTRY_NAME FROM LOCATIONS l NATURAL JOIN COUNTRIES c ;
true
c5f8fef35eb9973ca29a563b749470d42dd78429
SQL
LinkedList/spring-jooq-multitenancy
/src/main/resources/data.sql
UTF-8
933
3.21875
3
[]
no_license
TRUNCATE table tenants.tenants, cust_jane.notes, cust_john.notes, shared.note_type RESTART IDENTITY CASCADE; INSERT INTO tenants.tenants (schema, login, password) VALUES ('cust_john', 'john', 'john'); INSERT INTO tenants.tenants (schema, login, password) VALUES ('cust_jane', 'jane', 'jane'); INSERT INTO shared.note_t...
true
f23b887cc3b7ccaa8c19c66b4bb9af810dfae8a7
SQL
aidanr67/wazimap-za
/sql/youth_household_employment.sql
UTF-8
36,283
3.0625
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET search_path = public, pg_catalog; ALTER TABLE IF EXISTS ONLY public.youth_household_employme...
true
c0d85888ec9248c3c2bc9f9a4264b013eaeb7e69
SQL
unnatRevo/schoolNew
/db_school_OLD.sql
UTF-8
13,645
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 16, 2015 at 07:51 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
328715654acc824b89123e64640ebf7d8055cf79
SQL
CHAOS-Community/CHAOS.Portal.MCM
/sql/3.storedprocedures/Label_Set.sql
UTF-8
369
3.1875
3
[]
no_license
CREATE PROCEDURE `Label_Set` ( Id int unsigned, ProjectId int unsigned, Name varchar(255) ) BEGIN insert into `Label` (`Id`,`ProjectId`,`Name`,`DateCreated`) values (Id, ProjectId, Name, utc_timestamp()) on duplicate key update Label.Name = Name; -- Return currect Id if Id is null then select LA...
true
3b57918bde3ba15c9c2753e98e09789388e97bb5
SQL
RPmorning/article
/krcmf.sql
UTF-8
22,200
3.34375
3
[ "Apache-2.0" ]
permissive
-- ----------------------------- -- Table structure for `krcmf_member` -- ----------------------------- DROP TABLE IF EXISTS `krcmf_member`; CREATE TABLE `krcmf_member` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '用户ID', `username` char(16) NOT NULL COMMENT '用户名', `password` char(32) NOT NULL COMMENT ...
true
07947a4a55822ec7e6c4a2887ae681c9266b6d7a
SQL
raviess/stores
/stores.sql
UTF-8
3,637
3.40625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jul 17, 2015 at 09:55 AM -- Server version: 5.5.43-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
9953785204998526c2e7794f0cc6b73e23c9341c
SQL
luizoliveiramartins/Modelo_MYSQL_CETRUS
/cetrus_modelo_simples_mysql.sql
UTF-8
1,972
4.0625
4
[]
no_license
CREATE DATABASE CETRUS; USE CETRUS; CREATE TABLE ALUNO( CODIGO INT auto_increment NOT NULL, NOME VARCHAR(80) NOT NULL, CPF VARCHAR(14) NOT NULL, RG VARCHAR(9) NULL, SEXO CHAR(1) NULL, ENDERECO VARCHAR(80) NULL, NUMERO INT NULL, TELEFONE VARCHAR(20) NULL, CELULAR VARCHAR(20) NULL, EMAIL VARCHAR(80) NULL, CEP VARCHAR(9)...
true
ceb705ece5c6d716fc47dadcb76bf6437beeeb58
SQL
emilia98/SoftUni-CSharp-DB
/DB-Basics-MSSQL-Server/Exercises/02.Data_Definition_And_Datatypes-Exe/SoftUni/Problem 20/Select_All_Order.sql
UTF-8
216
3.0625
3
[ "MIT" ]
permissive
/* ****** Problem 20 -> Select all and order ****** */ USE "SoftUni"; SELECT * FROM "Towns" ORDER BY "Name" ASC; SELECT * FROM "Departments" ORDER BY "Name" ASC; SELECT * FROM "Employees" ORDER BY "Salary" DESC;
true
672c51567e0682cf2de03a7e18f69625167e8ba8
SQL
Nicolazz92/sql-ex
/sql_learn_pg/57.sql
UTF-8
818
4.1875
4
[]
no_license
with all_ships as ( select name, class from ships union select ship, ship from outcomes ), classes_and_ships as (select cl.class, all_ships.name from classes cl inner join all_ships on cl.class = all_ships.class), classes_wit...
true
ce92ba543e4379103b05ec7f5710a6a754d981c0
SQL
feshout/biedronka-store
/fill_data.sql
UTF-8
1,311
2.5625
3
[]
no_license
INSERT INTO product(name) VALUES ('Bułka Kajzerka'); INSERT INTO product(name) VALUES ('Parówka'); INSERT INTO product(name) VALUES ('Piwo Warka'); INSERT INTO product(name) VALUES ('Jajko'); INSERT INTO product(name) VALUES ('Papier Toaletowy'); INSERT INTO product(name) VALUES ('Kawa 300g'); INSERT INTO product(name)...
true
301ded1f3c3346f81d290afdf534284041e23b94
SQL
MinBZK/woo-besluit-broncode-PLOOI
/verwerken/registration-component/registration-model/src/main/resources/db/migration/generic/V1_0_0__InitialDatabase.sql
UTF-8
3,231
3.796875
4
[]
no_license
CREATE TABLE Processen ( id varchar(36) primary key, source_label varchar(16), trigger_type varchar(32) not null, trigger varchar(512) not null, time_created TIMESTAMP WITH TIME ZONE not null ); CREATE INDEX Processen_source ON Processen(source_label, trigger_type, time_created); CREATE INDEX Proce...
true
91da21f64789e889ef76e8504194274fa056e5be
SQL
dodadoda/weiboSpider
/wb_spider.sql
UTF-8
15,015
3.015625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : server_database Source Server Version : 80011 Source Host : 10.205.3.122:3306 Source Database : weibo_db Target Server Type : MYSQL Target Server Version : 80011 File Encoding : 65001 Date: 2018-06-21 16:36:10 */ SET FOREIGN_KEY_CHECK...
true
4cc11eccae72fc7770a89357c090296da6f2672e
SQL
ddkerp/marriott
/db/amenity.sql
UTF-8
1,767
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Dec 21, 2016 at 09:11 AM -- Server version: 5.1.41 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
6a1f0795e5497a0b932d9364beb291107bb42869
SQL
danielCatlett/DDL
/MovieCatalogueBuilder.sql
UTF-8
1,621
3.828125
4
[]
no_license
DROP DATABASE IF EXISTS MovieCatalogue; CREATE DATABASE MovieCatalogue; USE MovieCatalogue; CREATE TABLE Genre ( GenreID INT PRIMARY KEY AUTO_INCREMENT, GenreName VARCHAR(30) NOT NULL ); CREATE TABLE Director ( DirectorID INT PRIMARY KEY AUTO_INCREMENT, FirstName VARCHAR(30) NOT NULL, LastName VARCHAR...
true
0576983583ca87a2c7f1431aa952c1e21dfdb3dd
SQL
ArtfulCreator/realtyAnalytics
/49erRealty/Script.sql
UTF-8
1,100
2.65625
3
[]
no_license
--<ScriptOptions statementTerminator=";"/> CREATE TABLE RAW_DATA ( ID INT NOT NULL, LINK VARCHAR(5500) NOT NULL, TERM_NAME VARCHAR(5500), BELONGS_TO_CATEGORY VARCHAR(5500), MAYBE_CAUSED_BY VARCHAR(30000), MAY_CAUSE VARCHAR(1500), MAY_BE_ASSOCIATED VARCHAR(1500), MAY_BE_RISK_FACTOR VARCHAR(1500), MAY_BE_CONTRA...
true
4863264e535f4a52707f7ace5a3cf935ad85157a
SQL
AndriiPiatakha/servlets-examples
/src/main/resources/sql-queries/Practice10/1 zapros.sql
UTF-8
201
3.4375
3
[]
no_license
SELECT operators.name FROM operators_point LEFT JOIN operators ON operators.id = operators_point.operator_id RIGHT JOIN points ON points.id = operators_point.point_id where points.region = 'east';
true
c83cb5dfb68c2b94a4519b45db3fe49658ad09a3
SQL
fredrikmork/DAT107
/F4b_12m_Todoliste_etter_timen/todoliste.sql
ISO-8859-15
544
3.375
3
[]
no_license
-- SQL for en-til-mange-eksemplet gjennomgtt i timen fredag 6. april DROP SCHEMA IF EXISTS todo_schema CASCADE; CREATE SCHEMA todo_schema; SET search_path TO todo_schema; CREATE TABLE Todoliste ( ListeId SERIAL, Navn VARCHAR, CONSTRAINT TodolistePN PRIMARY KEY (ListeId) ); CR...
true
139987aae7fb0056870eab2f4cca692e6c16ac1a
SQL
YujunWu-King/university
/src/main/resources/sql/TZClassSetBundle/TzGetDjzlbzList.sql
UTF-8
151
2.6875
3
[]
no_license
select TZ_SBMINF_ID, TZ_SORT_NUM, TZ_CONT_INTRO, TZ_REMARK from PS_TZ_SBMINF_STP_T where TZ_SBMINF_TMP_ID=? order by TZ_SORT_NUM asc limit ?,?
true
b120f8a591eaf5b47fce0a6ca4211b11c264ceb5
SQL
gbhl/bhl-us
/Database-BHL/txtimport/Tables/TextImportBatchFileStatus.sql
UTF-8
895
2.84375
3
[]
no_license
CREATE TABLE [txtimport].[TextImportBatchFileStatus]( [TextImportBatchFileStatusID] [int] NOT NULL, [StatusName] [nvarchar](50) NOT NULL CONSTRAINT [DF_TextImportBatchFileStatus_StatusName] DEFAULT (''), [StatusDescription] [nvarchar](500) NOT NULL CONSTRAINT [DF_TextImportBatchFileStatus_StatusDescription] DEFAU...
true
486298670d1dbb2e509bedee443454bc4c9b6798
SQL
seguracarlos/crudzf2
/data/crud.sql
UTF-8
1,602
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 10-09-2019 a las 20:29:34 -- Versión del servidor: 10.1.26-MariaDB -- Versión de PHP: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
b0a3d45ff4a00fa1186319185d99073351f92072
SQL
mfikrihatim/dokumen_cari_kamar
/DB Extranet/u1358052_extranet.sql
UTF-8
59,014
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Waktu pembuatan: 05 Okt 2021 pada 15.06 -- Versi server: 10.3.30-MariaDB-cll-lve -- Versi PHP: 7.3.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
true
303720341e49e2c31485c46d70f30826e3785301
SQL
jkatz/postgres-realtime-demo
/examples/demo/demo4.sql
UTF-8
1,239
3.484375
3
[ "Apache-2.0" ]
permissive
\timing /** Create the room */ INSERT INTO room (name) VALUES ('CHIPUG Virtual'); /** Look at initial calendar on May 30, 2018 */ SELECT * FROM calendar WHERE calendar_date = '2021-10-28' ORDER BY lower(calendar_range); /** Liberty only allows bookings from 8am - 1pm, and 4pm to 10pm on Mon - Fri */ INSERT INTO avai...
true
0c4a9d4daaab4d4ca6b2b49b70bd06aa076252f2
SQL
kgtdbx/hashmap_randy_pitcher_workspace
/snowflake/workspace/workspace_service_accounts/randy_pitcher_workspace_dbt_prod.sql
UTF-8
4,085
3.203125
3
[ "Apache-2.0" ]
permissive
//============================================================================= // create warehouses //============================================================================= USE ROLE SYSADMIN; // prod warehouse CREATE WAREHOUSE RANDY_PITCHER_WORKSPACE_DBT_PROD_WH COMMENT='Warehouse for powering CI productio...
true
2a95aa92fc81ca97e32915ede08075a06bfa28ab
SQL
ghostidentity/coronahealthtrackerbackend
/account/src/main/resources/db/migration/V0.2__users.sql
UTF-8
504
3.0625
3
[]
no_license
create table users ( userId bigint GENERATED BY DEFAULT AS IDENTITY PRIMARY KEY, username varchar(255) NOT NULL, first_name varchar(255) NOT NULL, last_name varchar(255) NOT NULL, contact_no varchar(255) NOT NULL, email ...
true
281a2fcb451ce499a0d6f33ef2f3e9fb287a9005
SQL
igorbcoelho/SQL
/SQLs/Vendas_X_Pagamentos_PDV.sql
ISO-8859-3
635
3.71875
4
[]
no_license
SELECT Vendas.sNroCupomNota AS 'Nro. do Cupom', Vendas.dDataVenda AS 'Data da Venda', Vendas.nValorTotal AS 'ValorTotal', Vendas.nSubTotal AS 'SubTotal', Vendas.nValorDesconto AS 'Desconto', Vendas.nValorAcrescimo AS 'Acrscimo', Pagamentos.nValorPagamento AS 'Valor Pagamento', FormaPagamento...
true
76cd13c1cf4eeca54a15c092f738acbd3066c5ac
SQL
vnsmatrix/qkb
/sql/wishlist.sql
UTF-8
193
2.546875
3
[]
no_license
DROP TABLE IF EXISTS wishlist; CREATE TABLE wishlist ( id SERIAL PRIMARY KEY, user_id INTEGER NOT NULL REFERENCES users(id), artwork_id INTEGER NOT NULL REFERENCES artworks(id) );
true
d048ae832cf582e7dd188f7b95ca80789c57e03c
SQL
miphi-true-team/Argus
/web/database/dump.sql
UTF-8
8,188
2.890625
3
[ "MIT" ]
permissive
-- -- PostgreSQL database dump -- -- Dumped from database version 11.2 (Ubuntu 11.2-1.pgdg16.04+1) -- Dumped by pg_dump version 11.2 (Ubuntu 11.2-1.pgdg16.04+1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings =...
true
09ed382ddd295d7730b82805ab39b6706474c6c0
SQL
Sreedharchethanath/refactorThis
/src/main/resources/schema.sql
UTF-8
694
3.765625
4
[]
no_license
DROP TABLE IF EXISTS product; DROP TABLE IF EXISTS product_options; create table product( id IDENTITY NOT NULL AUTO_INCREMENT, product_name VARCHAR2(100) NOT NULL, description VARCHAR2(150), price DECIMAL(10,2), delivery_price DECIMAL(10,2), is_new BOOLEAN, PRIMARY KEY(id) ); CREATE table...
true
9d6d715c27dd4dc620938ef66f774848ef0bdaca
SQL
sncap21/ksclecture
/koscomlecture/src/src/day0629/jdbc/koscom.sql
UHC
412
3.03125
3
[]
no_license
user create user koscom identified by koscom; Ѻο grant connect, resource to koscom; koscom user conn koscom/koscom ̺ careate table member( id varchar2(10) primary key, name varchar2(15) not null, password varchar2(4) not null, email varchar2(30) not null, reg_date date); Member Է insert into member valu...
true
1244ee1ea6469a8bd0e2ca3f48dfc5364d055f8a
SQL
arp6333/ISTE432-Homeworks
/HW01-KGA/kga_create_2.sql
UTF-8
4,167
3.96875
4
[]
no_license
CREATE TABLE User ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name TEXT NOT NULL ); /* A plantable vegetable */ /* Depth values are stores in mm, temperature values stored in centigrade, harvest time stored in days */ CREATE TABLE PlantType ( id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, name TEXT N...
true
2d20485048b1a8d791206cb5387ab8f5a649d5e3
SQL
nazadina/sit_projects
/lab3/confectionery.sql
UTF-8
6,181
3.234375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : Lineage Source Server Version : 50523 Source Host : localhost:3306 Source Database : confectionery Target Server Type : MYSQL Target Server Version : 50523 File Encoding : 65001 Date: 2015-03-24 21:05:36 */ SET FOREIGN_KEY_CHECKS=0; ...
true
8a6d2ec84ed90ed3ea72797d8d44166d5e9f8444
SQL
facoelho/indeorum
/indeorum.sql
UTF-8
6,763
3.015625
3
[]
no_license
/* Navicat PGSQL Data Transfer Source Server : desenvolvimento Source Server Version : 90204 Source Host : localhost:5432 Source Database : indeorum Source Schema : public Target Server Type : PGSQL Target Server Version : 90204 File Encoding : 65001 Date: 2019...
true
14375aae116b27d8103574d329b46c2dc6a6ce50
SQL
lucasalvine/jogoDasCoisas
/teste.sql
UTF-8
2,239
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 06-Ago-2016 às 17:12 -- Versão do servidor: 5.5.30 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
7f1984f216b69b70e22c321894abc88ec3be17ed
SQL
Leonardo875/Banco-de-Dados-4.0
/bd_horizon.sql
ISO-8859-1
2,354
3.265625
3
[]
no_license
create database bd_horizon create table tbl_funcionario( cd_func int primary key identity, nm_func varchar(50) not null, ds_login varchar(20) not null, senha_login varchar(8)not null, ) create table tbl_reserva( no_passagem int primary key identity(1000,1), tipo_voo varchar(20) not null, ...
true
8c5c72268d340512094056c1ac07ff73fc2dca2d
SQL
EdwardTSmith42/SQL-Examples
/top items this year and last year.sql
UTF-8
3,913
4.1875
4
[]
no_license
--useful report to find the top 20 items for every department....both this year and last year create temp table ty as select dd.FISC_WK_ID, a11.ITEM_KEY, a15.TITLE, a15.PROD_CODE, pd.PROD_DEPT_DESCR, sum(a11.NET_SALES_AMT + a11.COUP_AMT) Revenue_ty, sum(a11.QTY_SOLD) qty_sold_ty, sum(a11.NET_SALES_AMT+ ...
true
1c7f2b6204ca1b0223c7036c7e44041f2873e151
SQL
ErickaSolorzano2/Clinica
/clinica/src/java/DB/database.sql
UTF-8
591
3.0625
3
[]
no_license
CREATE TABLE paciente ( `idpaciente` INT NOT NULL AUTO_INCREMENT, `primerNombre` VARCHAR(45) NULL, `segundoNombre` VARCHAR(45) NULL, `primerApellido` VARCHAR(45) NULL, `segundoApellido` VARCHAR(45) NULL, `edad` INT NULL, PRIMARY KEY (`idpaciente`)); CREATE TABLE cita ( `idcita` INT NOT NULL...
true
aa0bc4ca42a0d01b88482a0a0729489835bf8da9
SQL
connormcd/misc-scripts
/sql/tabcol.sql
UTF-8
1,008
3.265625
3
[ "LicenseRef-scancode-warranty-disclaimer", "Apache-2.0" ]
permissive
------------------------------------------------------------------------------- -- -- PLEASE NOTE -- -- No warranty, no liability, no support. -- -- This script is 100% at your own risk to use. -- ------------------------------------------------------------------------------- col owner format a15 col COLUMN_NAME forma...
true
a1de6475b29d820475854a604239ac1ff80eae28
SQL
surbhikkabra/Hate-Speech-Analysis
/src/sql/Channel Videos Comments Merged.sql
UTF-8
2,541
4.34375
4
[]
no_license
WITH KEYWORD_CLASSIFICATION AS ( SELECT comment_id, mild_hs, hs, mild_profanity, profanity, sexual, mild_sexual, (mild_hs+ hs + mild_profanity + profanity + sexual + mild_sexual) AS hate_comments_count, (mild_hs + hs) AS all_hs, (mild_profanity + profanity) AS all_profanity, ...
true
06eab2da9a8634a042745f0e668847393f95655d
SQL
sshhane/distibuted-systems
/database.sql
UTF-8
593
3.109375
3
[]
no_license
CREATE TABLE Rentals ( rentalId int, carId int, customerId int, date date, Primary key(rentalId) ) insert into Rentals values(123, 234, 456, '2018-12-10'); -- CREATE TABLE Cars ( -- carId int not null auto increment, -- make VARCHAR(30) NOT NULL, -- cost int NOT NULL, -- Primary ke...
true
fbc5bf9a4eea151ac9737ecdf3429d515ef2be8f
SQL
kamilsuchy/school-database
/views/studentHours.sql
UTF-8
497
4.375
4
[]
no_license
--the view shows information about the student and the number of hours of his classes CREATE VIEW StudentHours AS SELECT P1.*, ISNULL(P2.[Liczba godzin],0) AS [Liczba godzin studenta] FROM Students AS P1 LEFT JOIN ( SELECT C.Student_ID AS [Identyfikator], SUM(Hours) AS [Liczba godzin] FROM Classroom_Student C JOIN CL...
true
c7f22de225b82e6e235c85b63ef6d2e57308f755
SQL
source-farm/MasteryWithSQL
/03_SELECT_basics/11.CASE.sql
UTF-8
1,449
3.84375
4
[]
no_license
-- CASE похож на оператор if из других языков программирования. select title, length, -- Общий (general) вид выражения CASE. -- CASE определяет новую колонку. case when length <= 60 then 'short' when length > 60 and length <= 120 then 'long' when length > 120 then 'very long' ...
true
6ceb7640040919791cc619fd862a4de6eb5155a6
SQL
yakupbeyoglu/EventTicket-Website
/database/ticektme.sql
UTF-8
4,568
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 24, 2019 at 08:54 AM -- Server version: 5.7.26-0ubuntu0.18.04.1 -- PHP Version: 7.2.17-0ubuntu0.18.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
eb49a2bdbc79a7707b9d54ef250dd342e05c194e
SQL
benmier/Python
/PylotMVC/Red_Belt_Review/Pylot/app/mydb.sql
UTF-8
6,048
3.3125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `mydb` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `mydb`; -- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: mydb -- ------------------------------------------------------ -- Server version 5.6.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
true
7e52579e84db03fdf5ef6bbcf304051ffcf7782e
SQL
sumeethK/sms-ui-service
/src/test/java/resources/schema.sql
UTF-8
261
2.734375
3
[]
no_license
CREATE TABLE MOVIES_TABLE ( ID NUMBER(10) PRIMARY KEY NOT NULL, PATH VARCHAR2(255), CATEGORY VARCHAR2(255), MODIFIEDDATE TIMESTAMP(6), NAME VARCHAR2(255), FILESIZE NUMBER(19) ); CREATE UNIQUE INDEX SYS_C004065 ON MOVIES_TABLE (ID, PATH);
true
6eea0eb599c4fc4ae9ea312a37e2cf1c0516ab20
SQL
kaings-sql/kaings-proj1
/cop_locks_transactions/select_update_example_using_variables.sql
UTF-8
691
3.53125
4
[]
no_license
select @total := sum(transaction_value) from sales; insert into sales_history (recorded, total) values (now(), @total); select * from sales_history; explain insert into sales_history (recorded, total) values (now(), (select sum(transaction_value) from sales)); -- Fixing Select-Update with Table locks to avoid ...
true
7d2889e3a96df78a896e456e4841375ae8b92c7f
SQL
thruthesky/sonub-2021-02
/tmp/sql/2021.02.18.sql
UTF-8
5,596
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- 생성 시간: 21-02-18 12:34 -- 서버 버전: 10.5.5-MariaDB -- PHP 버전: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40...
true
2b03b467a0212054008a5b19e94c888a8a35f05a
SQL
dmika1234/BazyDanychProjekt
/Funkcje,triggery,widoki/widoki.sql
UTF-8
1,523
3.90625
4
[]
no_license
--wgląd w filmy-- DROP VIEW info_filmy; CREATE VIEW info_filmy AS SELECT p.tytul AS "Tytul", p.rezyser AS Rezyser, p.kraj AS kraj, p.dlugosc_filmu AS Dlugosc, p.rok_produkcji AS "Rok produkcji", k.nazwa_kategorii AS Kategoria FROM produkcje p JOIN w_kategorii w ON p.id_produkcji = w.id_produkcji JOIN kateg...
true
64a6acdc68084e36dbe2489fe803ca9d355152a1
SQL
YAWAL/ManufacturingPlantMVC-Documentation
/queries/tablesCreation_new.sql
UTF-8
2,893
3.609375
4
[]
no_license
use manufacturing_plant; drop tables if exists agents, employees, workshop_employees, department_employees, production_equipments, nonproduction_equipments, workshops, departments, tools; create table if not exists employees ( id int not null auto_increment, employee_id char, position_ CHAR, name_ CHAR, last_name CHA...
true
a524519d6b2a0c90ba84c13b9c4f6b65aa493f80
SQL
chrishanelloyd/CustomerManagement
/codetest_db_script.sql
UTF-8
531
2.96875
3
[]
no_license
CREATE DATABASE codetest; USE codetest; CREATE TABLE customer ( id INT(10) NOT NULL AUTO_INCREMENT, name VARCHAR(50) NULL DEFAULT 0, email VARCHAR(50) NULL DEFAULT 0, department VARCHAR(50) NULL DEFAULT 0, PRIMARY KEY (id) ) COLLATE=latin1_swedish_ci ENGINE=InnoDB; CREATE TABLE log ( id INT(10) NOT NULL AUTO_INC...
true
97e37e5d4a7f44c46c6e2256979444159f0e9f08
SQL
PrinceJain96/council-of-war
/notice/sql.sql
UTF-8
2,785
3.234375
3
[]
no_license
/* SQLyog Enterprise - MySQL GUI v7.02 MySQL - 5.0.67-community-nt : Database - notice ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!4...
true
1ae8142fddce5db2a0ac37197979b11f9f9a43cc
SQL
331915669/mssql-monitor
/sql/indexFragment.sql
WINDOWS-1252
1,501
4.28125
4
[]
no_license
select ''+ CHAR(13)+CHAR(10)+'Ƭı:'; -- Ensure a USE statement has been executed first. SELECT [DatabaseName] ,[ObjectId] ,[ObjectName] ,p.TableRows ,[IndexId] ,[IndexDescription] ,CONVERT(DECIMAL(16, 1), (SUM([avg_record_size_in_bytes] * [record_count]) / (1024.0 * 1024))) AS [IndexSize(MB)] ...
true
49e9ce0816cc96f24e0e55d48886c6a615f5aa29
SQL
julianmejio/orion-lam
/estructura.sql
UTF-8
19,549
3.03125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.1.58, for unknown-linux-gnu (x86_64) -- -- Host: localhost Database: equipods_orion -- ------------------------------------------------------ -- Server version 5.1.58-community-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULT...
true
14851da39a164958d3402ad288123a2d24f5ce36
SQL
AdrianGomoescu/SpringApp
/src/main/resources/mysql_tables.sql
UTF-8
3,492
4.28125
4
[]
no_license
create database awdb; use awdb; # STUDENT TABLE ******************** create table student( studentId int primary key, firstName varchar(50), lastName varchar(50), email varchar(50), averageScore float ); select * from student; delete from student where studentId = 10; #drop table stu...
true
fd05bf78d312f905f72619a9f8cd3010b0ea0864
SQL
MuhGenta19/kurikulum-backend
/evaluasi/evaluasi-3/soal-1/evaluasi-3.sql
UTF-8
2,230
3.046875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.21, for Linux (x86_64) -- -- Host: localhost Database: evaluasi_3 -- ------------------------------------------------------ -- Server version 8.0.21-0ubuntu0.20.04.4 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER...
true
b9749ba9a1a77c231ef5564b4f7534985a0f83d8
SQL
andri000me/SIMKEP-Sistem-Menejement-Kepanitiaan
/db/staff (1).sql
UTF-8
10,080
2.71875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3307 -- Waktu pembuatan: 29 Bulan Mei 2019 pada 01.43 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
05e93136d1c2035b03134429e0feb97c79f53b7f
SQL
SaraPro52/LppConsola
/Sara_Windows/DATA/Procedimientos/40_Formato_Procedure.sql
UTF-8
1,608
3.390625
3
[]
no_license
-- FORMATO_PROCEDURE -- /* CALL Formato_Procedure("1~0~0O01~Des12~2"); CALL Formato_Procedure("2~40~0O02~Des122~1"); CALL Formato_Procedure("0~0~0~0~0"); */ DROP PROCEDURE IF EXISTS Formato_Procedure; DELIMITER ;; CREATE PROCEDURE Formato_Procedure (IN arrayFormato VARCHAR (400)) BEGIN DECLARE opcion INTE...
true
d3f5516669c2b43245955cf9043ce085168ecb3b
SQL
IExpLouDI/MySql_Work
/Lesson_7/Home_Work.sql
UTF-8
1,779
4.5625
5
[]
no_license
USE shop; /* #1 Составьте список пользователей users, которые осуществили хотя бы один заказ orders в интернет магазине. */ SELECT name, (SELECT count(user_id) FROM orders WHERE users.id = user_id) AS orders FROM users WHERE (SELECT count(user_id) FROM orders WHERE users.id = user_id) > 0 ORDER BY orders DESC; /*#2 ...
true
67c6541b3bce8cc8cb7169e598e80377b61fad6d
SQL
islamov-jahja/Data-Bases
/lab6.sql
UTF-8
1,537
3.9375
4
[]
no_license
--2 SELECT full_name, phone FROM room_in_reservation LEFT JOIN room r ON room_in_reservation.id_room = r.id_room LEFT JOIN room_kind kind ON r.room_kind_id = kind.room_kind_id LEFT JOIN hotel h ON r.hotel_id = h.hotel_id LEFT JOIN reservation r2 ON room_in_reservation.id_reservation = r2.id_reservation LEFT JOIN ...
true
cc7f39169b578d2407b2423bbcf920d9426b2773
SQL
kawshikbuet17/Udemy-Oracle-SQL-Practical-Examples-Go-from-Beginner-to-Master
/25. SQL Inner Join Operation.sql
UTF-8
485
3.6875
4
[]
no_license
-- employees with deptName -- onekvabe kora jay SELECT ename, dname FROM emp, dept WHERE emp.DEPTNO = dept.DEPTNO; SELECT ename, dname FROM emp e, dept d WHERE e.DEPTNO = d.DEPTNO; --inner join using diyeo kora jay -- using(key) dite hbe SELECT ename, dname FROM emp INNER JOIN dept USING (deptn...
true
d8426d099e3f506b484b9bea57dcb1e04d8ea8b9
SQL
VivekBhat/Devops-Pipeline-Final
/iTrust-v23/iTrust/sql/data/uc21.sql
UTF-8
5,818
3.09375
3
[]
no_license
/*Insert patient Sandy Sky*/ INSERT INTO patients (MID, firstName, lastName, email, address1, address2, city, state, zip, phone, eName, ePhone, iCName, iCAddress1, iCAddress2, iCCity, ICState, iCZip, iCPhone, iCID, DateOfBirth, DateOfDeath, CauseOfDeath, MotherMID, FatherMID, BloodType, Ethnicity, Gender, TopicalNot...
true
0a2e94cc35f4651a82dccf608a268cfd478bee44
SQL
sprin/sql_antipatterns
/sql/queries.sql
UTF-8
820
4.3125
4
[]
no_license
SELECT b.summary, c.comment, a.first_name FROM comments AS c JOIN accounts AS a ON a.account_id = c.author JOIN bugs AS b ON c.bug_id = b.bug_id WHERE a.first_name = 'brosef'; SELECT a.first_name, p.* FROM Products AS p JOIN Contacts AS c ON (p.product_id = c.product_id) JOIN Accounts AS a ...
true
91f7baab52bf398c6d3fee00b33d7dd60745a3b6
SQL
ramikat/OpenBravoPOS
/sql/alter_tickets_documento.sql
UTF-8
363
3.328125
3
[]
no_license
ALTER TABLE tickets ADD COLUMN DOCUMENTO VARCHAR(90) NULL AFTER STATUS; select concat('001101', lpad(TICKETID, 9, 0)) from tickets; update tickets set documento = concat('001101', lpad(TICKETID, 9, 0)); ALTER TABLE `tickets` CHANGE COLUMN `DOCUMENTO` `DOCUMENTO` VARCHAR(90) NOT NULL ; ALTER TABLE `tickets` ADD I...
true
6c228267dc64bc92da42ccdf97332c27de9ad4fa
SQL
anna-maja/stickning
/aml3/stickalsterGenerateTables_aml3.sql
UTF-8
7,175
3.75
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sun Feb 4 12:42:13 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; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TR...
true
ff0410d2317d89d932743b3dcb263767249bdabf
SQL
HemantH99/Interview
/solution/HEADSTORM_PART3/DB part/STARTUP_DB.sql
UTF-8
469
3.015625
3
[ "MIT" ]
permissive
DROP database IF EXISTS STARTUP_ORDER_DB; CREATE database STARTUP_ORDER_DB; USE STARTUP_ORDER_DB; DROP TABLE IF EXISTS ORDERTABLE; CREATE TABLE ORDERTABLE ( RECORD_ID INT, FULL_NAME VARCHAR(50) NOT NULL, CELL_PHONE VARCHAR(50) NOT NULL, WORK_PHONE VARCHAR(50), EMAIL VARCHAR(50) NOT NULL, ADDRESS VARCHAR(100) NOT NUL...
true
44e01ec3d17e62e4e78678e6aa23c4d15b37276b
SQL
VictorGSandoval/BDVentas
/SCHEMA/SQL Creación de Tabla.sql
UTF-8
2,010
3.765625
4
[]
no_license
create database ventas DEFAULT CHARACTER SET utf8; use ventas; CREATE TABLE CLIENTE ( IDCLI char(8) NOT NULL COMMENT 'Contiene el código de asignación del cliente.', NOMCLI varchar(20) NOT NULL COMMENT 'Identificador del nombre del cliente', APECLI varchar(20) NOT NULL COMMENT 'Identificador del apellido d...
true
de28855d4d666355fb4a5501feeec3db55d810e6
SQL
evgencode/messenger-backend
/messenger.sql
UTF-8
6,425
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Авг 24 2018 г., 17:37 -- Версия сервера: 5.7.19 -- Версия PHP: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
true
d376d39420ab683d0a108c12d2d1a6664d074c4d
SQL
Saito-Masaru/it-automation
/ita_install_package/ITA/ita-sqlscripts/en_US_mysql_ita_model-n2.sql
UTF-8
4,301
2.75
3
[ "LGPL-3.0-only", "Apache-2.0", "MIT" ]
permissive
-- ***************************************************************************** -- *** ***** CreateParameterMenu Tables *** -- ***************************************************************************** CREATE TABLE F_HOSTGROUP_VAR ( ROW_ID INT ...
true
494071499490e413198f54d153cbfedbd0f37145
SQL
MrSpodaryk/Lab7_DB
/src/main/resources/triggers.sql
UTF-8
5,980
3.515625
4
[]
no_license
DROP TRIGGER IF EXISTS trig1; DROP TRIGGER IF EXISTS trig2; DROP TRIGGER IF EXISTS trig3; DROP TRIGGER IF EXISTS trig4; DROP TRIGGER IF EXISTS trig5; DROP TRIGGER IF EXISTS trig6; DROP TRIGGER IF EXISTS trig7_a; DROP TRIGGER IF EXISTS trig7_b; DROP TRIGGER IF EXISTS trig7_c; DROP TRIGGER IF EXISTS trig8; DROP TRIGGER I...
true
9813584cb0e7291baf799c92031d01ff0f9480d7
SQL
Sadia0730/Restaurant-Management-System
/trigger.sql
UTF-8
607
3.171875
3
[]
no_license
set serveroutput on create or replace trigger trigger1 after delete on waiter for each row declare wid WAITER.WAITER_ID%type; fname Waiter.Fname%type; lname Waiter.Lname%type; con Waiter.Contact%type; addr Waiter.Address%type; sal Waiter.Salary%type; jd Waiter.Join_Date%type; begin SELECT Waiter_id,Fname,...
true
04de446bd48c9e9a2f64d701bb594f9439e4bd68
SQL
hancyran/teaching_skills
/NEW/sql/university_info/createSchoolTables.sql
UTF-8
835
3.765625
4
[]
no_license
create database demo_school; \c demo_school; drop table if exists province cascade; drop table if exists city cascade; drop table if exists school cascade; create table province( id varchar(4), name varchar(10), primary key(id) ); /*collect the city info from the university info*/ create table city( id varch...
true
9405f73b785243c5c57266b73f28c6d956fd4058
SQL
exk0730/ritholdem
/sql/script.sql
UTF-8
4,560
3.484375
3
[]
no_license
-- -- Adding new user -- GRANT ALL PRIVILEGES ON blackjack.* TO 'blackjack'@'localhost' IDENTIFIED BY 'blackjack'; FLUSH PRIVILEGES; -- -- Creating the database -- DROP DATABASE IF EXISTS blackjack; CREATE DATABASE blackjack; -- -- Select this database -- USE blackjack; -- -- Structure of tab...
true
4b8f50404bf4aee367f57b2c5a45a17b1213071e
SQL
sm-g/EFCoreInMemorySample
/schema.sql
UTF-8
2,740
3.703125
4
[]
no_license
create table import( id int not null auto_increment, start datetime, primary key(id) ); create table import_customer( id int not null auto_increment, import_id int not null, customer_id int not null, name varchar(191) not null, primary key(id), constraint fk__import_customer__imp...
true
b54bf53f477108e609d23e04c71c82432e7c0a54
SQL
ramzanthenolph/agric-hub-java
/create.sql
UTF-8
579
2.59375
3
[]
no_license
CREATE DATABASE agric_hub; \c agric_hub; CREATE TABLE farmers (id serial PRIMARY KEY, name VARCHAR, location VARCHAR, email VARCHAR); CREATE TABLE customers (id serial PRIMARY KEY, name VARCHAR, location VARCHAR, email VARCHAR); CREATE TABLE supplies (id serial PRIMARY KEY, farmerid INTEGER, productid INTEGER, quantity...
true
9967b39f7b563c8ccf8f00ee51693637e7fec52c
SQL
FernandoRyan/Hotel-Website
/Database/hotel.sql
UTF-8
3,674
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 24, 2020 at 01:34 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
ab07b7da36fff7e1077624a47d57a3c3fe45ad21
SQL
isse-augsburg/minibrass
/evaluation/db/sql-archive/queryFilm103.sql
UTF-8
369
3.0625
3
[ "MIT" ]
permissive
SELECT instance, searchtype, SolverName, elapsedSecs, mif, propRed, objective FROM JobResult jr INNER JOIN Config cf ON jr.ConfigId = cf.ID INNER JOIN Solver sv ON jr.SolverId = sv.ID -- group by instance, SPD, Objective where problem = "talent-scheduling" and instance = "film103.dzn" and timeout > 10000 and searchT...
true
e7dfea48aaf93343ceb10e1f44f41bcf2c734f36
SQL
brentrichards/MIMIC-IV-Win
/concepts_PG_local/Materialized_views/kdigo_uo_MV.sql
UTF-8
3,135
3.90625
4
[ "MIT" ]
permissive
CREATE MATERIALIZED VIEW mimiciv.kdigo_uo_mv AS with ur_stg as ( select io.stay_id, io.charttime -- we have joined each row to all rows preceding within 24 hours -- we can now sum these rows to get total UO over the last 24 hours -- we can use case statements to restrict it to only the last 6/12 hours -- th...
true
82ee284d129a0ffc614ba14d0e55b11ece9d3c5b
SQL
sjsafranek/find5
/finddb_schema/base_schema/create_sensors_table.sql
UTF-8
1,109
4.09375
4
[ "MIT" ]
permissive
DROP TABLE IF EXISTS sensors CASCADE; -- @table sensors -- @description stores device sensor metadata CREATE TABLE IF NOT EXISTS sensors ( id VARCHAR(36) PRIMARY KEY DEFAULT md5(random()::text || now()::text)::uuid, device_id VARCHAR(36) NOT NULL CHECK(device_id != ''), name ...
true
26695eb6a34886284d36b2d414d8f145f8b9eccc
SQL
bcqtt/pythontest
/res/caipiao.sql
UTF-8
8,019
3.296875
3
[]
no_license
-- -------------------------------------------------------- -- 主机: 127.0.0.1 -- 服务器版本: 5.6.24 - MySQL Community Server (GPL) -- 服务器操作系统: Win64 -- HeidiSQL 版本: 9.3.0.4984 -- -------------------------------------------------------- /*...
true
1ebd534f9b3e1ba2dba29ce9babb94736fd10674
SQL
tcjwj2008/K3SystemCollection
/A000002WISE开发同步源码(精品)/A跟踪语句_基础资料_客户_2018-4-3.sql
GB18030
2,614
2.828125
3
[]
no_license
select * from t_TableDescription where FDescription like '%ͻ%' select * from t_FieldDescription where FTableID=49 order by FFieldName INSERT INTO t_Item (FItemClassID,FParentID,FLevel,FName,FNumber, FShortNumber,FFullNumber,FDetail,UUID,FDeleted) VALUES (1,0,1,'Կͻ','023', '023','023',1,'58352B02-0D8D-4EA5-ABAD-C7A79...
true
13c6efb32e96f4fe25ef0b8d077a2600814a48f9
SQL
kalpitakhawat/Learning-Algorithm-For-Ads
/db/ad_project.sql
UTF-8
5,061
3.0625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 19, 2016 at 06:43 PM -- Server version: 5.6.21 -- PHP Version: 5.5.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
60a1c93d82f90a503b91d640d8caf45c0f162d9c
SQL
akrasnov87/vote-db
/SCHEMA/core/TABLE/sd_table_states.sql
UTF-8
626
3.109375
3
[]
no_license
CREATE TABLE core.sd_table_states ( id bigint NOT NULL, f_user integer NOT NULL, c_table_name text NOT NULL, jb_data jsonb ); ALTER TABLE core.sd_table_states ALTER COLUMN id ADD GENERATED ALWAYS AS IDENTITY ( SEQUENCE NAME core.sd_table_states_id_seq START WITH 1 INCREMENT BY 1 NO MAXVALUE NO MINVALUE CACHE...
true
1e90be6c4a1359a52ba6c48169ed90fa3e88fa19
SQL
ZhangBohan/dreamshop
/db/2013-08-21_01_add_table_user.sql
UTF-8
542
3.53125
4
[]
no_license
DROP TABLE IF EXISTS dream_shop.user; CREATE TABLE dream_shop.user( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, username VARCHAR(100) NOT NULL UNIQUE, password VARCHAR(100) NOT NULL, company_id INT NOT NULL, account_expired BOOLEAN DEFAULT FALSE, account_locked BOOLEAN DEFAULT FALSE, credentials_expired ...
true
81ab734fba91cbb5d88ca78eeb02fb6c7a76c9d3
SQL
Preetam/onecontactlink
/schema/schema.sql
UTF-8
2,207
3.546875
4
[ "MIT" ]
permissive
CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(60) CHARACTER SET utf8 NOT NULL, `code` varchar(6) NOT NULL, `main_email` int(10) NOT NULL, `status` tinyint(3) NOT NULL DEFAULT '0', `created` int(10) unsigned NOT NULL, `updated` int(10) unsigned NOT NULL, `deleted` i...
true
a654a8a66f2fd3c8753fba8b5c919c1421a7a8b6
SQL
Ricardo-K/wps-invite
/sql/wps.sql
UTF-8
3,005
2.78125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 127.0.0.1 Source Server Type : MySQL Source Server Version : 80015 Source Host : localhost:3306 Source Schema : wps Target Server Type : MySQL Target Server Version : 80015 File Encoding : 65001 Date: 28/04/2021 13:59:...
true
20df80cad91a4c46a5b51fcdf72cca390be6dd50
SQL
lordnynex/CLEANUP
/FORKS/Shell/uber-scripts/tree/postgresql/sql/c2_04_minimum_required_shared_buffers.sql
UTF-8
589
3.546875
4
[ "WTFPL", "LicenseRef-scancode-warranty-disclaimer", "MIT" ]
permissive
-- this very approximate evaluation about minimal required size of shared_buffers, and result may depends of when last checkpoint occurs. SELECT pg_size_pretty(count(bufferid) * (SELECT current_setting('block_size')::int)) AS minimum_required_shared_buffers FROM pg_buffercache WHERE reldatabase IN (0, (SELECT oid FRO...
true