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
6e67ca93db41ab03109a5a6a4fd78add9d604e1f
SQL
ashokdahal/saigaitask_old
/src/main/webapp/WEB-INF/classes/data/sql/V2_0_42__Add_disaster_master_6quake.sql
UTF-8
669
2.859375
3
[]
no_license
/* Copyright (c) 2013 National Research Institute for Earth Science and * Disaster Prevention (NIED). * This code is licensed under the GPL version 3 license, available at the root * application directory. */ INSERT INTO disaster_master SELECT 6, '地震', 4 WHERE NOT EXISTS (SELECT 1 FROM disaster_master...
true
95a14fd398b5aee09cfcc42a8624d9fa6f305a83
SQL
AndrewMa1992/blogs
/db/djangoblog.sql
UTF-8
13,524
3.453125
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50722 Source Host : localhost:3306 Source Schema : djangoblog Target Server Type : MySQL Target Server Version : 50722 File Encoding : 65001 Date: 19/05/2020 0...
true
a854a9b243c94c5adb680f94d08871926cf2c84a
SQL
IsacBianor/Aula-Generation
/20.04/ecomerce/ecommerce.sql
UTF-8
1,808
3.859375
4
[]
no_license
/*Crie um banco de dados para um e commerce, onde o sistema trabalhará com as informações dos produtos deste ecommerce. Crie uma tabela produtos e utilizando a habilidade de abstração e determine 5 atributos relevantes dos produtos para se trabalhar com o serviço deste ecommerce. Popule esta tabela com até 8 dados; Faç...
true
a2dcc5c974165b2d4bbb2d584602c1926d36657c
SQL
shivamkrch/GoIntern
/gointern_db.sql
UTF-8
8,172
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 02, 2019 at 12:02 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
925aeed64497afef9c352ba4f58dac2062eaebdf
SQL
d0ugr/bootcampx
/4_queries/11_most_confusing_assignments.sql
UTF-8
293
3.140625
3
[]
no_license
SELECT assignments.id, assignments.name, assignments.day, assignments.chapter, COUNT(assistance_requests.id) AS total_requests FROM assignments JOIN assistance_requests ON assistance_requests.assignment_id = assignments.id GROUP BY assignments.id ORDER BY total_requests DESC;
true
93f84adc8d868e6ae5b56f506932345aa76fe898
SQL
jefter20/ControleVendas
/Base_Dados/Script_Inserts.sql
ISO-8859-1
1,632
3.3125
3
[]
no_license
/*Inserindo na Tabela de Produtos*/ INSERT INTO TABELA_PRODUTOS (NOME_PRODUTO, EMBALAGEM, TAMANHO, SABOR, [QUANTIDADE_EM_ESTOQUE], [PRECO_DE_LISTA]) VALUES ('Suco Natural de Laranja 600ml', 'Garrafa', '600ml', 'Laranja', 100000, 5.50) INSERT INTO TABELA_PRODUTOS (NOME_PRODUTO, EMBALAGEM, TAMANHO, SABOR, [QUANTIDADE_E...
true
873605b2d81ad6f800cc2a328196f3dc82be4fe3
SQL
gorkar12/grails.example
/target/ddl.sql
UTF-8
3,600
2.953125
3
[]
no_license
alter table aauthor_abook drop constraint FK845989F746975061; alter table aauthor_abook drop constraint FK845989F75784C0AC; alter table aface drop constraint FK586BE3E76389FED; alter table bbook drop constraint FK5933A4BC54676E; alter table bface drop constraint FK594D5BF7646B76E; alter table cauthor_books drop constra...
true
c0ced26945dc774d2ccfe5256bec9bca6288a2ef
SQL
Scoindy/webcms
/v0.1/sql/segment_runs.sql
UTF-8
254
2.921875
3
[]
no_license
USE dev2; DROP TABLE IF EXISTS segment_runs; CREATE TABLE segment_runs SELECT * FROM v_contacts WHERE 1 = 2; ALTER TABLE segment_runs ADD column (segment_run_id INT NOT NULL); ALTER TABLE segment_runs ADD PRIMARY KEY (segment_run_id, contact_id);
true
976cc25baebc3357f6237f139c59908c753f838c
SQL
WendellMa/mybatis-settings
/src/sql/t_male_health_form.sql
UTF-8
731
3.0625
3
[]
no_license
DROP TABLE IF EXISTS t_male_health_form; create table t_male_health_form ( id int(12) not null comment "编号", emp_id int(12) not null comment "雇员编号", heart VARCHAR (64) not null comment "心", liver VARCHAR (64) not null comment "肝", spleen VARCHAR(64) not null comment "脾", lung VARCHAR(64) not null comment "肺...
true
2e609578913d0b34cc1266c3783243aa29bc927e
SQL
ferbusson/ifkids
/sql/MTSEL0721.sql
UTF-8
272
2.703125
3
[]
no_license
SELECT COALESCE("50000",0)+COALESCE("20000",0)+COALESCE("10000",0)+COALESCE("5000",0)+COALESCE("2000",0)+COALESCE("1000",0)+COALESCE(monedas,0)+(COALESCE(dolares,0)*COALESCE(trm,0)) FROM efectivo e, documentos d WHERE d.ndocumento = '?' AND d.ndocumento=e.narqueo;
true
02e3fc16044834951a5a0efafda7a0cf74ec0789
SQL
haffid/ProyectoFinalJava
/bd_usuario.sql
UTF-8
1,935
4.09375
4
[]
no_license
CREATE DATABASE bd_usuarios; USE bd_usuarios; CREATE TABLE tbl_usuario( id_usuario INT NOT NULL PRIMARY KEY AUTO_INCREMENT, nombre_usuario VARCHAR(35) NOT NULL, apellido_usuario VARCHAR(35) NOT NULL, edad_usuario INT, usuario VARCHAR(25), clave VARCHAR(25), id_estado_fk INT, id_tipo_usuario_fk INT ); CREATE ...
true
e4bb73d5e22d59add18f9f98ad344169c9f4704b
SQL
Pugazhendhi-K/Kloudone_Training
/MySQL/Triggers.sql
UTF-8
689
4.1875
4
[]
no_license
USE students; CREATE TABLE contacts ( contact_id INT(11) NOT NULL AUTO_INCREMENT, last_name VARCHAR(30) NOT NULL, first_name VARCHAR(25), birthday DATE, created_date DATE, created_by VARCHAR(30), CONSTRAINT contacts_pk PRIMARY KEY (contact_id) ); DELIMITER // CREATE TRIGGER contacts_before_update BEFORE U...
true
27ec791f72e108878e4dba30d9772b13ac6ddf29
SQL
carloszteller/database-exercises
/subqueries_exercises.sql
UTF-8
1,066
4.25
4
[]
no_license
use employees; select concat(e.first_name, ' ', e.last_name) as 'Employee Name', e.hire_date as 'Hire Date' from employees as e where e.hire_date in (select hire_date from employees where emp_no = 101010) order by e.last_name; select concat(e.first_name, ' ', e.last_name) as 'Employee Name', t.title from empl...
true
b44a24afae9103ea3eb3a034a3a2697433c0fb2e
SQL
MAlfanR/14117150-PABWD
/pertemuan 8/permasalahan/dunia(1).sql
UTF-8
2,567
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 13, 2019 at 05:16 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
31b8fd2ff7586873166c922e61d1f07313f88c96
SQL
danieldiamond/gitlab-analytics
/transform/snowflake-dbt/models/sources/zendesk/zendesk_sla_policies_source.sql
UTF-8
1,804
3.09375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
WITH source AS ( SELECT * FROM {{ source('zendesk', 'sla_policies') }} ), renamed AS ( SELECT id::VARCHAR AS zendesk_sla_policy_id, title::VARCHAR AS zendesk_sla_title, description::VARCHAR AS zen...
true
d6b8f29bc5b7892f5e8617bb246cdc9d9b034f12
SQL
louiseGrandjonc/pgeu-website
/postgresqleu/confsponsor/sqlupdate/00003-purchaseoption.sql
UTF-8
1,171
2.875
3
[]
no_license
ALTER TABLE confsponsor_sponsorshiplevel ADD COLUMN canbuyvoucher boolean NOT NULL DEFAULT 't'; ALTER TABLE confsponsor_sponsorshiplevel ALTER COLUMN canbuyvoucher DROP DEFAULT; ALTER TABLE confsponsor_sponsorshiplevel ADD COLUMN canbuydiscountcode boolean NOT NULL DEFAULT 't'; ALTER TABLE confsponsor_sponsorshiplevel...
true
bfed536dfacdc65b1808f9c3f861f5db0a2835f8
SQL
faizisani/TaskVantibolli
/pwidb_warehouse.sql
UTF-8
2,630
2.859375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: pwidb -- ------------------------------------------------------ -- Server version 5.7.20-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
119d8a3fc55377181cd863de5f353d236d5b5a12
SQL
open-fred/db
/preprocessing/supply/ego_dp_conv_powerplant.sql
UTF-8
2,948
3.21875
3
[]
no_license
/* A description of the module (short but could be more than one line). Modules names should have short, all-lowercase names. The module name may have underscores if this improves readability. __copyright__ = "Copyright Reiner Lemoine Institut gGmbH" __license__ = "GNU Affero General Public License Version 3 (AGPL-...
true
3a17224909dd96fadf8ce558a66843bde44c6cdc
SQL
FredericoMFalcao/IntranetV2
/01_backend/04_acc/06_eventHandlers/03_onBeforeDocumentoApagado.sql
UTF-8
896
3.1875
3
[]
no_license
-- -------------------- -- Module: Accounting EventListner: onBeforeDocumentoApagado -- -- Descrição: chama o stored procedure adequado ao tipo do documento que foi apagado -- -------------------- DROP PROCEDURE IF EXISTS <?=tableNameWithModule()?>; DELIMITER // CREATE PROCEDURE <?=tableNameWithModule()?> (IN in_O...
true
112dcd7dc8efd8175b6ac9b22e04a0eb1d8ac4af
SQL
mschieren/Slate-Intersystem-Feed
/intersystem_feed.sql
UTF-8
25,218
3.453125
3
[]
no_license
/* Testing Notes: --Update the Where clause to pull from active period rather than specific round */ select (select [value] from [config] where ([key] = 'https')) + '/manage/lookup-duo/record?id='+convert(char(36),p.[id]) as [Link], 'EXP' as [Division], --we use a 3 character identifier for our subsytsems, i.e. 'PSD' ...
true
6a77139a8ecc05b6706458499a9c48c771d09367
SQL
toshinori54/08_20_PHP3
/gsacf_d07_20.sql
UTF-8
3,647
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- ホスト: 127.0.0.1 -- 生成日時: 2020-12-24 14:15:29 -- サーバのバージョン: 10.4.17-MariaDB -- PHP のバージョン: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIEN...
true
d3fd07e6ab6009e427a9272a5aa195230f431704
SQL
huangyudemail/tex2
/分组函数.sql
UTF-8
2,730
4.625
5
[]
no_license
# 分组函数 /* 功能:用作统计使用,又称为聚合函数或统计函数或组函数(传一组值得到一个值) sum 求和,avg 求平均,max 求最大,min 求最小,count计算个数 特点: 1.sum,avg 只支持数值型 max ,min ,count 可以处理任何类型 2、这五个分组函数忽略NULL值 3、可以和distinct搭配使用实现去重 4、count函数的简单介绍 一般使用count(*)统计行数 5、和分组函数一起查询的字段要求是group by 后的字段 */ #1、简单应用 SELECT SUM(salary) FROM employees; SELECT AVG(salary) F...
true
3261aa23bb05ba036e054595aa600795e72aa25e
SQL
avinashmandava/energyiot
/src/main/resources/cql/create_schema.cql
UTF-8
667
3.296875
3
[]
no_license
CREATE KEYSPACE if not exists metrics WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '1'} AND durable_writes = true; use metrics; CREATE TABLE if not exists metrics.daily_rollups ( device_id text, metric_day timestamp, metric_avg decimal, metric_max decimal, metric_min decim...
true
544ceee934b6c72f970cc6a260079016dcd0ec88
SQL
smartpcr/DataGen
/src/main/resources/Firm_Crb_Mbr_Related.sql
UTF-8
281
3.90625
4
[]
no_license
WITH crd AS ( SELECT DISTINCT crd_nb FROM prtcp_dm WHERE crd_nb <> -9 AND ( firm_mp_id IN @firms OR mbr_id IN @firms ) ) SELECT t1.firm_mp_id, t1.crd_nb, t1.mbr_id FROM prtcp_dm t1 INNER JOIN crd t2 ON t2.crd_nb=t1.crd_nb WHERE t1.firm_mp_id<>-9
true
49ab79d72316d963d7554cf6ee1a177d6fd65e8c
SQL
iamkhantil/Web-Based-Placement-Management-System
/updation--companies/tandp.sql
UTF-8
3,235
2.71875
3
[ "Apache-2.0" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 24, 2015 at 02:07 AM -- Server version: 5.5.44-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
139ca8ee93d280228a9c5f0ea70d226bf2c4dcc0
SQL
ncheng8/cs564_programs
/P1/query6.sql
UTF-8
165
3.328125
3
[]
no_license
SELECT COUNT(*) FROM Users u WHERE u.userID IN (SELECT i.sellerID FROM Items i) AND u.userID IN (SELECT b.bidderID FROM Bids b)
true
d366acd93a9fb53d836ab2203ef33a9cbff97c13
SQL
neostreet/poker_session_data
/sit_and_go2.sql
UTF-8
183
2.515625
3
[]
no_license
use poker select poker_session_date,buy_in,entry_fee,num_players,num_hands,place,winnings, winnings - buy_in - entry_fee from poker_sessions where poker_style = 1 order by id; quit
true
8d15f2bcf698d8a755d078660a1f22af4a9f6c18
SQL
yoshixmk/expert-sql-book
/5-1/age-class.sql
UTF-8
595
3.8125
4
[]
no_license
use exercises; SELECT master.age_class AS age_class, master.sex_cd AS sex_cd, SUM(CASE WHEN pref_name IN ('青森' , '秋田') THEN population ELSE NULL END) AS pop_tohoku, SUM(CASE WHEN pref_name IN ('東京' , '千葉') THEN population ELSE NULL END) AS pop_kanto FROM (SELECT ...
true
3bfb99af904d323086b121dc03aadd78b65178a7
SQL
piiskop/pstk
/Reigo_Ringo/SQL/reigo_structure.sql
UTF-8
1,127
3.796875
4
[]
no_license
CREATE TABLE structure ( id INT UNSIGNED NOT NULL PRIMARY KEY ); ALTER TABLE structure ADD the_end varchar(50); -- indeksi loomine CREATE INDEX H_index ON structure (the_end); ALTER TABLE structure ADD the_beginning varchar(50); -- unikaalne indeks CREATE UNIQUE INDEX unikaalne ON structure(the_begi...
true
eece1149f49fd8e1ae558211a96bbdddf1b4d0e6
SQL
lfdubiela/transfer-api
/resources/migrations/sql/V001__CreateSchema.sql
UTF-8
606
3.28125
3
[]
no_license
-- apenas dominio de user; -- CREATE TABLE user ( -- id int not null auto_increment primary key, -- name varchar(255) not null, -- document_type varchar(10) not null, -- document_number varchar(30) not null unique, -- email varchar(255) not null unique, -- password varchar(32) not null -- ); --...
true
4e054cab476f4f43dbfb32382d9948d772c0fc42
SQL
Sunilkumarchoudari/CEM-php
/sql/year2project.sql
UTF-8
3,177
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Feb 24, 2021 at 09:08 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
417b5f382a5c92613e285d8876859cba4053db6d
SQL
kunalsaraf/DBMS-Project-Room-Booking-System
/check_triggers.sql
UTF-8
1,260
3.484375
3
[]
no_license
CREATE OR REPLACE TRIGGER USED_ROOMS_CHECK BEFORE INSERT OR UPDATE ON USED_ROOMS FOR EACH ROW BEGIN IF UPPER(:NEW.DAY) NOT IN('MONDAY', 'TUESDAY', 'WEDNESDAY', 'THURSDAY', 'FRIDAY', 'SATURDAY', 'SUNDAY') THEN RAISE_APPLICATION_ERROR(-20001,'INVALID DAY'); ELSIF :NEW.TIME_SLOT NOT IN('8-9 AM', '9-10 AM', '1...
true
7e602b9667e885631523f5fabbfeccd707b13759
SQL
batboydafinest/AICprojects
/Project2/mememon.sql
UTF-8
3,102
2.84375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `mememon` ( `id` int NOT NULL AUTO_INCREMENT, `meme` text, `type` text, `hp` int, `spd` int, `atk` int, `lvl` int DEFAULT 1, `exp` int DEFAULT 0, `imgpath` text, PRIMARY KEY (`id`) ); INSERT INTO `mememon` (`meme`, `type`, `hp`, `spd`, `atk`, `imgpath`) VALUES ('Bob Ro...
true
db4aefcabf08aa8821159dd4e8a7c6beb6d29c6c
SQL
DethierY/Front-Equipe-CRUD
/complements/gedesaft_v2.sql
UTF-8
6,972
3.234375
3
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema mydb -- -...
true
78ea7d672bcca9840bc095b9d2d0c40b3581ccad
SQL
rthompson624/triplog-database
/notes/misc.sql
UTF-8
524
2.640625
3
[]
no_license
USE triplog; SELECT * FROM triplogs; SELECT * FROM trips; SELECT * FROM users; SELECT * FROM version; UPDATE triplogs SET description = 'OMG... having the best time here in Aspen. Skiing, snowboarding... shopping! What could be better?' WHERE id = 1; UPDATE users SET firstName = 'Sandra', lastName = 'Bullock', avatar...
true
897b5fe701d37f700f374b4ef9fd6f48ecec86cd
SQL
SharedHealth/bdshr-config
/openmrs/migrations/ActivePatientsForCC.sql
UTF-8
790
3.71875
4
[]
no_license
DELETE FROM global_property WHERE property = 'emrapi.sqlSearch.activePatients'; INSERT INTO global_property (`property`, `property_value`, `description`, `uuid`) VALUES ('emrapi.sqlSearch.activePatients', 'select distinct concat(pn.given_name,\' \', pn.family_name) as name, pi.identifier as identifier, concat("",...
true
e80538a1b74a92e61d1b66046502baf885664cbc
SQL
jefftienchow/mortality_prediction
/table_making.sql
UTF-8
1,241
4.21875
4
[ "MIT" ]
permissive
/*create a table for each unit with HADM_ID in one column and the valuenum in the other column; create table for each of the following units: mmHg as mmhg, % as perc, g/dl as gdl, k/ul as kul, units as units, mg/dl as mgdl, cm/h2o as cmh2o, l/min as lmin, mEq/L, kg as kg, expire as expire*/ CREATE TABLE mmhg AS SELE...
true
9e147eb074b126f023d7888762ab0be18c53ec4d
SQL
greyscale-hyperdrive/reviews_tonaR
/database/xMockData/schema.cql
UTF-8
3,105
3.4375
3
[]
no_license
SELECT * FROM restaurants WHERE id = 8808080; INSERT INTO reviews ( restaurant_id, id, ambiance_rating, food_rating, insertion_time, overall_rating, recommended, reservation_date, review_body, service_rating, user_id, value_rating) VALUES ( 9300000, 1001, 1, 2, ...
true
6ca305572a15f4ed333c299f03bb18494af8d0b8
SQL
metis-macys-66898/data_607_sp2020
/Movie_Rankings.sql
UTF-8
1,447
3.015625
3
[]
no_license
-- Table: public.movies_survey_data -- DROP TABLE public.movies_survey_data; CREATE TABLE public.movies_survey_data ( "reviewer" character(31) COLLATE pg_catalog."default", finding_dory integer, "avengers_endgame" integer, "dear_basketball" integer, "your_name" integer, "rogue_one" integer, ...
true
70e3ddae8df4816b9a96af111f306cbd38e25624
SQL
famer/spring
/fixture/db.sql
UTF-8
1,112
3.8125
4
[]
no_license
DROP TABLE IF EXISTS users CASCADE; CREATE TABLE users ( id SERIAL PRIMARY KEY, username VARCHAR(255) NOT NULL UNIQUE, "first_name" VARCHAR(255), "last_name" VARCHAR(255), password VARCHAR(255) NOT NULL, role VARCHAR(255) NOT NULL DEFAULT 'ROLE_USER' ); insert into users(username, password, rol...
true
187dad594f2df3b17b0faffd3198b256c4c86486
SQL
giselemascarenhas/mysql
/db_rhservice.sql
UTF-8
1,147
3.34375
3
[]
no_license
create database db_rhservice; use db_rhservice; create table funcionarios( id bigint auto_increment, Nome varchar(255) not null, Função varchar(255) not null, Salário decimal not null, Departamento varchar(255) not null, primary key (id) ); insert into funcionarios(Nome, Função, Salário, Departamento) values ("Gise...
true
68847649100f8a7dcf2dfc8107bee4cfbb673ba1
SQL
tylerwh/PhoneBill
/phonebill.sql
UTF-8
2,458
2.90625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: localhost Database: phonebill -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
8da18aa70c2947b1d7bf9a4fa4b9306c6a9a0a79
SQL
radtek/abs3
/sql/mmfo/bars/Table/mbk_mask.sql
UTF-8
3,572
3.015625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/MBK_MASK.sql =========*** Run *** ==== PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
e9119ac65e3cbd1ccbb8f0c5d808cba6101c515b
SQL
mikekiwa/babies-public
/etl/sql-scripts/merge_indiv_geocode.sql
UTF-8
786
3.40625
3
[ "MIT" ]
permissive
/* This script appends county name and geocoded coordinates to the individual dataset. Written by: Rashida Brown */ CREATE TABLE core_birth_info2 AS WITH filter AS ( SELECT core_birth_info1.*, add_geocode_fin.add_geo2, add_geocode_fin.confidence, add_geocode_fin....
true
93993fa0937272814ec9cd980c407d68ab151810
SQL
asrieltiago/GitCsharp
/GITCLASS/Banco de Dados/QuerysInnerJoin/QuerysInnerJoin.sql
UTF-8
5,805
3.953125
4
[ "MIT" ]
permissive
select Nome from Marcas where UsuInc = 1; --Trazer somente as marcas que Felipe cadastrou select Nome from Marcas where UsuInc = 2; --Trazer somente as marcas que Giomar cadastrou select Count(Nome) as 'Marcas Felipe' from Marcas where UsuInc = 1 order by 'Marcas Felipe' desc; --Trazer somente a quantidade de marcas...
true
8281988bef6cd9b1092e4239ef8ec04ce6e933a5
SQL
dtpop/search_it
/install.sql
UTF-8
2,023
3.578125
4
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `%TABLE_PREFIX%search_it_index` ( `id` int(11) NOT NULL auto_increment, `fid` varchar(255) NULL, `catid` int(11) NULL, `ftable` varchar(255) NULL, `fcolumn` varchar(255) NULL, `texttype` varchar(255) NOT NULL, `clang` int(11) NULL, `filename` varchar(255) NULL, `fileext` var...
true
8a2d1fc87bd9da6e7ef04451a73cecb2cae76e7b
SQL
weirongxin/wrx
/文件/cePing/导出2.sql
GB18030
13,473
2.875
3
[]
no_license
-------------------------------------------------------- -- ļѴ - ڶ--13-2018 -------------------------------------------------------- -------------------------------------------------------- -- DDL for Table WH_SHIJUAN -------------------------------------------------------- CREATE TABLE "HR"."WH_SHIJUAN" ( ...
true
95a1bcbc9aca0ac97a4ce3e8221c3f52a37bb180
SQL
lk307832539/TEST
/testmavenweb/phone.sql
UTF-8
5,089
3.359375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50705 Source Host : localhost:3306 Source Database : phone Target Server Type : MYSQL Target Server Version : 50705 File Encoding : 65001 Date: 2016-08-14 18:58:59 */ SET FOREIGN_KEY_CHECKS=0; -...
true
d99620c8e55f38753375bf3c0e5a2c6dfcc78be1
SQL
craigbpeterson/ustsp
/ups_sort_data.sql
UTF-8
11,808
2.609375
3
[]
no_license
SET foreign_key_checks = 0; #turn off constraints temporarily DROP TABLE IF EXISTS `ustsp_slics`; CREATE TABLE ustsp_slics( SLICID INT UNSIGNED NOT NULL AUTO_INCREMENT, SLIC VARCHAR(50) DEFAULT '', Belt VARCHAR(50) DEFAULT '', HotVolume BOOL DEFAULT 0, DENCO BOOL DEFAULT 0, BURMD BOOL DEFAULT 0, SALUT BOOL D...
true
ddcdcab96154e8b8bed3b9ffb45a84fe882a9f1f
SQL
samarjit/amsiss
/DB/DDL/AMS.AMS_ASSET.sql
UTF-8
806
3.09375
3
[]
no_license
DROP TABLE AMS_ASSET CASCADE CONSTRAINTS; CREATE TABLE AMS_ASSET ( ASSET_ID VARCHAR2(8 BYTE), ASSET_NAME VARCHAR2(40 BYTE) NOT NULL, ASSET_ASSET_TYPE_ID VARCHAR2(8 BYTE) NOT NULL, ASSET_VENDOR_ID VARCHAR2(5 BYTE), ASSET_MAKE VARCHAR2(10 BYTE)...
true
b38d4fa35a834f055f7829860ff6acd4169200e2
SQL
hashgraph/hedera-mirror-node
/hedera-mirror-importer/src/main/resources/db/migration/v1/V1.35.0__update_schedule_response_codes.sql
UTF-8
767
2.8125
3
[ "Apache-2.0" ]
permissive
------------------- -- Support new response codes ------------------- -- Update existing transaction result types since SCHEDULE_WAS_DELETED was deleted update t_transaction_results set result = 'NO_NEW_VALID_SIGNATURES' where proto_id = 205; update t_transaction_results set result = 'INVALID_SCHEDULE_ACCOUNT_ID' wher...
true
c30843deea4c52a86febdf5ce85774fc1593e327
SQL
gitgsundar/sql
/get_spd_info.sql
UTF-8
2,486
3.3125
3
[]
no_license
-- File : GET_SPD_INFO.SQL -- Description : Provides details of SPD - SQL Plan Directives information -- Info : Update Spool information as required to get the spool output. set pages 9999 set verify off col Instance heading 'Environment Info' format a100 col state heading 'SPD State' format a15 col cn...
true
239130b5e2a9b4e1eefe7f0a00c4915fa8ddfb3e
SQL
mrcoelho/Books-API
/sql_scripts/reset.sql
UTF-8
584
2.984375
3
[]
no_license
DROP TABLE IF EXISTS `books`; CREATE TABLE `books` ( `id` varchar(36) NOT NULL DEFAULT '', `name` varchar(255) DEFAULT NULL, `author` varchar(255) DEFAULT NULL, `publication_date` datetime DEFAULT NULL, `library_id` varchar(36) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; DROP TA...
true
0dbf2f105c255c7823018471147527086a28a7d1
SQL
1Bitcoin/database
/lab2/lab1 sum && count.sql
UTF-8
150
3.15625
3
[]
no_license
SELECT SUM(price) FROM products; SELECT count(*) AS Count_Product FROM (card_products JOIN products ON card_products.product_id = products.id) as tmp
true
06fdd8ab34f9f5960f835b19122ddef0a037f31d
SQL
ProgRB/SalProject
/AddRetention/Queries/SelectExceptCalcData.sql
UTF-8
774
3.15625
3
[]
no_license
begin open :c1 for select except_calc_avg_id, (select max(transfer_id) from {0}.transfer where worker_id=(select worker_id from {0}.transfer where transfer_id=ex.transfer_id)) transfer_id, date_start, date_end, base_tariff from {1}.except_calc_avg ex; open :c2 for select worker_id, ...
true
69cbc2b24c347bab343c82a793389ef87b19e20a
SQL
GabrielVargasR/University-DB1-Auto-Parts-Shop
/src/sql_scripts/funcs/GetIDProveedor.sql
UTF-8
363
3.296875
3
[]
no_license
DELIMITER // CREATE FUNCTION GetIDProveedor( pNombre VARCHAR(50) ) RETURNS INT DETERMINISTIC BEGIN DECLARE id_proveedor INT; SELECT p.id INTO id_proveedor FROM proveedor as p WHERE p.nombre = pNombre; RETU...
true
c30390d0bc0b6138cd9166cc7babe1c73cc5bc11
SQL
airstarh/alina
/DEV/sql/ADMIN_SCRIPTS/logins.sql
UTF-8
684
3.640625
4
[]
no_license
SELECT -- a.id -- , a.user_id FROM_UNIXTIME(a.`visited_at`) AS at -- , a.`method` , a.`ip_id` , b.`ip` , a.`query_string` , a.`data` , b.`visits` AS ip_VISITS_TOTAL , c.user_agent FROM alina.`watch_visit` a LEFT JOIN watch_ip b ON a.`ip_id` = b.`id` ...
true
f41e9d7993feff64c60a8bddf401b6fa0fd6eead
SQL
MathieuPronovost/Oracle_Database
/insert.sql
UTF-8
11,636
2.890625
3
[]
no_license
-- -- Script de remplissage -- Auteurs -- Code permanent: JOUG08108901 -- Code permanent: PROM18118300 -- SPOOL resultats/insert.res SET LINESIZE 160 SET ECHO ON INSERT INTO Employe VALUES('AAA', 111111111, '123 Maisonneuve', 1111111111, 'Chef de zone', 'Surveillance', 'Pronovost', 'Mathieu', '1983-11-18', Null) / ...
true
589ec59790daa542d5deafbdf958fd58031888df
SQL
jyonsi/forlearning
/MyBatis,一步一台阶(系统化学习)之MyBatis/数据库表结构-01/数据库表结构/school.sql
UTF-8
2,803
3.359375
3
[]
no_license
/* SQLyog Ultimate v12.09 (64 bit) MySQL - 5.6.26-log : Database - mybatis ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CH...
true
6d1fa2fec09a40ba002453842ec784f5de99f224
SQL
thoughtsofmi/EvenTime-
/db/structure.sql
UTF-8
18,366
2.984375
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.4 -- Dumped by pg_dump version 9.5.4 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 row_security = off; ...
true
3c388426e8e5e0d32ec423587b6a93e166ebf826
SQL
cimcoz/SoccerDB
/MySQL/WIN_LOSS_TEAM_BY_COACH.sql
UTF-8
780
4.21875
4
[]
no_license
SELECT wins.total_wins, loses.total_loses FROM ( SELECT t.team_id, COUNT(g.Game_id) AS total_wins FROM team t JOIN game g ON t.Team_id = g.Winner JOIN coach_of_game cog ON cog.Game_id = g.Game_id JOIN coach c ON cog.Coach_id = c.Coach_id GROUP BY c...
true
9563f914126b6da96f27fc76947446c2c43bddb9
SQL
jherzig/REST_SENSOR
/initial/query - Kopie.sql
UTF-8
2,826
3.890625
4
[]
no_license
CREATE TABLE `jherzig_api`.`tstation` ( `staKey` INT NOT NULL AUTO_INCREMENT, `staName` VARCHAR(250) NULL, `staStatndort` VARCHAR(250) NULL, `staDescription` VARCHAR(2000) NOT NULL, PRIMARY KEY (`staKey`)); CREATE TABLE `jherzig_api`.`tsensor` ( `senKey` INT NOT NULL AUTO_INCREMENT, `senStaId` INT N...
true
d7bdaf234e9b6c1fa85efed529fd651473a9f167
SQL
alexisdelehaye/gestion_etudiant_iut_lens
/BaseDeDonnées/MCD_Gestion_Etudiant.sql
UTF-8
8,540
3.21875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Wed Oct 3 14:31:36 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
a29095ee32290611f1da3a51084dba732e9b248f
SQL
xcj01010203/makeplays
/src/main/webapp/sql/已刷/20161027.sql
UTF-8
1,185
3.375
3
[]
no_license
ALTER TABLE `tab_finance_subject_template` MODIFY COLUMN `type` smallint(6) NULL DEFAULT NULL COMMENT '类型。0:按制作周期;1:按部门;2:无模板'; INSERT INTO tab_finance_subject_template VALUES('477', '一级科目1', 1, '0', 2), ('478', '一级科目2', 1, '0', 2), ('479', '一级科目3', 1, '0', 2); CREATE TABLE `tab_crew_page_info` ( `pageId` varchar(32...
true
90b40f5fe7edf63ae29c2d63c2add5b3c5aba5c1
SQL
SantiMarinPoli/30Fit
/scriptBD/SELECT_RUTINA.sql
UTF-8
352
3.015625
3
[]
no_license
-------SELECT RUTINA-------------------- SELECT cod_rut, USUARIO.cod_us AS cod_us, USUARIO.NOMUSUARIO_US AS USUARIO,cuerpo_corporal_rut,nombre_rut, numSeries_rut,numRepeticiones_rut, tiempoRepeticiones_rut,nom_time1_rut,tiempoDescanso_rut,nom_time2_rut FROM RUTINA INNER JOIN USUARIO ON RUTINA.cod_us = USUARIO.co...
true
9f5630a84c1ff18c917facda8d0b8208695aadf2
SQL
charumathiG/OnlineShopping
/Projects/OnlineShoppingSite/OnlineShoppingSite/Shopping/Script.Orders.sql
UTF-8
915
3.296875
3
[]
no_license
/* Post-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be appended to the build script. Use SQLCMD syntax to include a file in the post-deployment script. Example: :r .\myfile.sql ...
true
5f8f41a2296077691fe9bae74a04b4aa7bfcf323
SQL
YuHeng-Juan/Android-APP-project-FriendGO
/FriendsGo的資料庫匯出包/FriendsGoMySQLStructureAndData.sql
UTF-8
5,506
2.96875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `friendsgo` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `friendsgo`; -- MySQL dump 10.13 Distrib 8.0.18, for Win64 (x86_64) -- -- Host: localhost Database: friendsgo -- ----------------------------------------------...
true
88a74a30d65000fd138311319aa55b507e77789f
SQL
fadega/libraryproj
/app/dbsql.sql
UTF-8
2,189
3.703125
4
[]
no_license
CREATE TABLE IF NOT EXISTS user( user_id INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, firstname TEXT NOT NULL, lastname TEXT NOT NULL, email TEXT NOT NULL UNIQUE, password TEXT NOT NULL, level TEXT, regDate DATE ); CREATE TABLE IF NOT EXISTS author( author_id INTEGER PRI...
true
456e9b09df98b397af3830d59379bc6beda1d200
SQL
codewell4/DictionaryExample
/.db/jaslo_create_statement.sql
UTF-8
463
2.640625
3
[ "WTFPL" ]
permissive
CREATE TABLE "android_metadata" ("locale" TEXT DEFAULT 'en_US'); INSERT INTO "android_metadata" ("locale") VALUES ("en_US"); -- Using fulltext search v4 CREATE VIRTUAL TABLE "dictionary" USING FTS4( "_id" integer NOT NULL, "term" varchar(512) DEFAULT NULL, "description" text, ); -- Using fulltext sear...
true
b33b07fa2e59b27b1fdd0648c4b9f2664f9f0e1e
SQL
lmsenor/Microservicios-Reservas
/viajes.sql
UTF-8
3,773
2.90625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: viajes -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!4...
true
ba19671e0a2f961956e1c85d15f095cd037f324a
SQL
Rishat999/Codeigniter
/11-17(3 completed tables).sql
UTF-8
8,365
3.109375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
/* SQLyog Community v12.4.3 (64 bit) MySQL - 10.1.32-MariaDB : Database - skimmofruu848 ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_C...
true
67aad677c5f90d8f9660d73e020e38c7ed9059d9
SQL
ohelms/SQL
/Gallery.sql
UTF-8
43,010
3.234375
3
[]
no_license
DROP TABLE service_invoices PURGE; DROP TABLE sales_invoices PURGE; DROP TABLE consignments PURGE; DROP TABLE purchases PURGE; DROP TABLE painting PURGE; DROP TABLE photograph PURGE; DROP TABLE sculpture PURGE; DROP TABLE artworks PURGE; DROP TABLE vendors PURGE; DROP TABLE services PURGE; DROP TABLE preferences PURGE;...
true
48886a1660d1b92d869e15de50b3d6e7c54c4ea9
SQL
MRKD1/ip
/IP104-PHP_MVC-folder_po_entitetu_VIEW/ip1023.sql
UTF-8
2,917
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 20, 2019 at 02:08 AM -- 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
5c665b06b94eff40465ac178438e0b9d01d80f15
SQL
elmehdi1212/real-time-mask-detection
/maskdetection.sql
UTF-8
3,379
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3300 -- Généré le : ven. 11 juin 2021 à 23:13 -- Version du serveur : 10.4.14-MariaDB -- Version de PHP : 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
169127b5dcc0dd86e871b5fa35056b3a77b01b18
SQL
madatsci/go-chat-server
/migrations/20191105084432_init.sql
UTF-8
995
3.625
4
[]
no_license
-- +goose Up -- SQL in this section is executed when the migration is applied. CREATE TABLE users ( id SERIAL PRIMARY KEY, email character varying(128) NOT NULL UNIQUE, password character varying(64) NOT NULL, created_at timestamp without time zone NOT NULL DEFAULT now(), updated_at timestamp withou...
true
19f6ffb6fbe20d037ebb11fac612bafcc9afd165
SQL
DaniellKondoff/Databases----MS-SQL-Server
/6.Subqueries and JOINs/04. Employee Departments-INNER JOIN.sql
UTF-8
203
3.71875
4
[]
no_license
Select top 5 e.EmployeeID,e.FirstName,e.Salary,d.Name as DepartmentName from Employees as e INNER JOIN Departments as d ON e.DepartmentID=d.DepartmentID Where e.Salary >15000 Order by e.DepartmentID asc
true
4551537b147837cd216c3ce06683b0833bb1110a
SQL
prateek-karanpuria/krish-training
/ref/m2-ee-to-ce-SQLs/sales/sales_shipment_track.sql
UTF-8
2,667
3.015625
3
[]
no_license
SET GLOBAL FOREIGN_KEY_CHECKS=0; INSERT INTO m231_studentkare.sales_shipment_track ( m231_studentkare.sales_shipment_track.entity_id, m231_studentkare.sales_shipment_track.parent_id, m231_studentkare.sales_shipment_track.weight, m231_studentkare.sales_shipment_track.qty, m231_studentkare.sales_shipment_track.order_id,...
true
e3366f2a6ce8b4964586d5f882d69d164289b3df
SQL
sbandari/DatabaseCodes
/profiles.sql
UTF-8
5,503
2.890625
3
[]
no_license
--To drop the users if any existing user adn creating users Drop user DBSEC_ADMIN cascade; create user DBSEC_ADMIN identified by tec5363admin default tablespace USERS temporary tablespace TEMP profile default; Drop user DBSEC_CLERK cascade; create user DBSEC_CLERK identified by tec5363clerk default tablespace USERS te...
true
d24613485efa8d617d99a086dfe3e8574074dfbe
SQL
jzhao0626/HW07_SQL_Challenge
/EmployeeSQL/query.sql
UTF-8
4,224
4.4375
4
[]
no_license
-- DROP TABLE dept_manager; -- DROP TABLE dept_emp; -- DROP TABLE salaries; -- DROP TABLE departments; -- DROP TABLE employees; -- DROP TABLE titles; CREATE TABLE employees ( emp_no INT NOT NULL, emp_title_id VARCHAR NOT NULL, birth_date VARCHAR NOT NULL, first_name VARCHAR NOT NULL, last_n...
true
7683c827b60a126e475bdf8f6e026fdf5892888e
SQL
uncarman2017/SportLucky
/SportLucky.Database/db/tables/siteletter.sql
UTF-8
1,074
2.90625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50626 Source Host : localhost:3306 Source Database : sportlucky Target Server Type : MYSQL Target Server Version : 50626 File Encoding : 65001 Date: 2015-10-13 19:33:33 */ SET FOREIGN_KEY_CHECKS=0; ...
true
09e7c799fd8c0ae2ba28c356fea85ab62313954a
SQL
ZuuHou/Tsoha-Bootstrap
/sql/create_tables.sql
UTF-8
623
3.484375
3
[]
no_license
CREATE TABLE Gbuser( id SERIAL PRIMARY KEY, username varchar(50) NOT NULL, password varchar(50) NOT NULL, balance decimal(10,2) DEFAULT 0 ); CREATE TABLE Ticket( id SERIAL PRIMARY KEY, gbuser_id INTEGER REFERENCES Gbuser(id), site varchar(50), amount decimal(10,2) NOT NULL, added DATE DEFAULT CURREN...
true
f01acb7ddd785af631aff7f6dc9fad7f66d4bbce
SQL
madhurivaishnav/SALTWEB
/SALT_NewDesign/Database/Procedure/dbo.prcRequiresDateFromDateTo.PRC
UTF-8
874
3.265625
3
[]
no_license
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO IF NOT EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[prcRequiresDateFromDateTo]') AND type in (N'P', N'PC')) BEGIN EXEC dbo.sp_executesql @statement = N'-- ============================================= -- Author: Hitendra Jagtap -- Create date: 9/11/2...
true
1238f710c6c92611c856de01d6ff93f5aff9fb11
SQL
fadhilsaraf/360derajat
/w360.sql
UTF-8
2,897
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 22 Des 2015 pada 23.15 -- 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
acee23aedc8ee2b8ae5c716d86f807020592d5e8
SQL
yinjunjian0/eleSystem
/elesystem.sql
UTF-8
8,815
2.9375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50617 Source Host : localhost:3306 Source Database : elesystem Target Server Type : MYSQL Target Server Version : 50617 File Encoding : 65001 Date: 2018-05-02 14:34:17 */ SET FOREIGN_KEY_CHECKS=0...
true
3fa8f8f99fc67eb45e1eeaebb0dbcc170ed617d0
SQL
lineCode/game_server-1
/src_my/sqls/server_table.sql
UTF-8
482
3.375
3
[]
no_license
DROP TABLE IF EXISTS server; CREATE TABLE IF NOT EXISTS server ( gid BIGINT UNSIGNED UNIQUE, data BLOB ) CHARACTER SET = utf8 ENGINE = InnoDB; DELIMITER $$ DROP PROCEDURE IF EXISTS load_server$$ CREATE PROCEDURE load_server () BEGIN SELECT data FROM server WHERE gid = 1; END$$ DROP PROCEDURE IF EXISTS update_server$...
true
2731e9c54073e2452ed4175e439637975fd23d47
SQL
kirillyat/devnull
/role.sql
UTF-8
2,595
3.4375
3
[ "MIT" ]
permissive
-- LAB 3.2 --ПРЕДСТАВЛЕНИЯ CREATE OR REPLACE VIEW city_client AS WITH cliets_bookings AS ( SELECT client_id, fullname, apartament_id FROM clients inner join bookings USING (client_id) ), pre_rez AS ( SELECT client_id, fullname, city FROM cliets_bookings ...
true
c4022bb0fe4426d9ffa14654072714df7bd8fc9f
SQL
mtasende/sql-for-data-analysis
/Lesson2_joins/q001_intro.sql
UTF-8
737
3.4375
3
[]
no_license
select orders.*, accounts.* from demo.orders join demo.accounts on orders.account_id = accounts.id select orders.* from orders join accounts on orders.account_id = accounts.id; Try pulling all the data from the accounts table, and all the data from the orders table. select accounts.*, ord...
true
3c86d6ad6eea4f63bd88cae0432fe4e9f634ff28
SQL
bondanchuk/tvkabel
/application/third_party/tvkabel (1).sql
UTF-8
12,140
3.09375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 15 Apr 2018 pada 11.18 -- Versi server: 5.6.21 -- Versi 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_CHARACTER_SET_...
true
c7cf4c8e0cf8d1504401d41557742307ef32e9c5
SQL
vmcgargill/NodeExpressHandlebars
/db/schema.sql
UTF-8
259
2.671875
3
[]
no_license
-- Create Database DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; -- Create Burgers Table CREATE TABLE burgers ( id int NOT NULL primary key AUTO_INCREMENT, burger_name VARCHAR(30) NOT NULL, devoured boolean NOT NULL );
true
048e381ad5549aeb68c38c2a392d807dca3606bb
SQL
valcso/SocialMedia
/studentsite/DATABASE_IMPORT/id13959988_student.sql
UTF-8
57,084
2.90625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 09, 2020 at 03:00 PM -- 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
15ad3353954ae0f323525c6408639b21e3ba9cd2
SQL
Veradictus/CMPT291Project
/SQL/QueryTestingSandbox.sql
UTF-8
3,611
3.890625
4
[ "MIT" ]
permissive
--TO_DATE('17/12/2015', 'DD/MM/YYYY'); --convert(datetime,'18-06-12 10:34:09 PM',5) --select * from RentalTransaction --insert into RentalTransaction (dateBooked, expRetDate) values (convert(datetime,'18-06-12 10:34:09 PM',5), convert(datetime,'20-06-12 10:34:09 PM',5)) --select * from RentalTransaction where dateBooke...
true
8d43501096fe714655cc988d471d2100bd5d63a5
SQL
anila-a/CEN-202-Database-Management-Systems
/midterm/user_auth.sql
UTF-8
1,384
3.046875
3
[]
no_license
/* CEN 202 Database Management Systems - Midterm */ /* Author: Anila Hoxha Last date modified: 05/30/2020 */ /* USER MANAGEMENT FOR THE DATABASE */ /* General Manager User */ CREATE USER 'manager'@'localhost' IDENTIFIED BY 'm123'; GRANT SELECT, INSERT, UPDATE, DELETE ON hotel.employee TO manager@localhost; GRANT ...
true
333731b7195fd1ff33d67abc90327a03c466a483
SQL
dwenzel/t3events_template
/ext_tables.sql
UTF-8
4,448
3
3
[]
no_license
# # extend table 'tx_t3events_domain_model_event' # CREATE TABLE tx_t3events_domain_model_event ( template INT(11) UNSIGNED DEFAULT '0' NOT NULL, tx_extbase_type VARCHAR(255) DEFAULT '' NOT NULL ); # # Table structure for table 'tx_t3events_domain_model_event' # CREATE TABLE tx_t3eventstemplate_domain_model_even...
true
76ae2b18996af3796a7f3859392af0b699674fc8
SQL
songshengping/songshengping
/src/main/resources/sql/items_spec.sql
UTF-8
1,556
3.46875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysql8 Source Server Type : MySQL Source Server Version : 80015 Source Host : 140.143.18.246:23337 Source Schema : songshengping Target Server Type : MySQL Target Server Version : 80015 File Encoding : 65001 Date: 06/01/...
true
1092304afdca013db6c1769b70bca6c4f21ace89
SQL
Patricia0395/practicoEvaluativo
/EvaluacionPráctica.sql
UTF-8
2,985
3.5
4
[]
no_license
-- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SU...
true
c28dcddc7f9169d00450658770f2d80a52a32a89
SQL
novayo/LeetCode
/DataBase/0512_Game_Play_Analysis_II/try_2.sql
UTF-8
278
3.390625
3
[]
no_license
/* Write your PL/SQL query statement below */ select player_id, device_id from ( select player_id, device_id, row_number() over (partition by player_id order by event_date asc) as rn from Activity ) where rn = 1;
true
99a661fa3be8419fea5866ecb76b12c3c03a3895
SQL
k-currie/Project_1_Stock_Watch
/stock_watch/db/stock_watch.sql
UTF-8
477
2.890625
3
[]
no_license
DROP TABLE fabrics; DROP TABLE manufacturers; CREATE TABLE manufacturers ( id SERIAL PRIMARY KEY, manufacturer_name VARCHAR(255), sales_contact VARCHAR(255), active BOOlEAN ); CREATE TABLE fabrics ( id SERIAL PRIMARY KEY, manufacturer_id INT REFERENCES manufacturers(id) ON DELETE CASCADE, ...
true
6dbef926e2be7716e86a4b32d57bc938d0739fe0
SQL
joaovictorpacheco/senai_sprint1
/senai_sprint1/MedicalGroupExercicio/SQLQuery2_dql.sql
ISO-8859-1
2,202
3.9375
4
[]
no_license
USE SP_Medical_Group; --fazendo as consultas --consultando os pacientes SELECT Pacientes.NomePaciente AS Paciente,Pacientes.RG,Pacientes.CPF,CONVERT(VARCHAR(10),DataNascimento,3) AS DataNascimento,Pacientes.Endereco,Pacientes.Telefone FROM Pacientes --mostrar quantidade de usurios SELECT COUNT(IdUsuario)AS Quantida...
true
7bfe8cd9d5a5b39af37a41059b3e2175f12cfbb9
SQL
rkgarcia/botijon
/sql/schema.sql
UTF-8
4,030
3.359375
3
[]
no_license
-- MySQL dump 10.11 -- -- Host: localhost Database: botijon -- ------------------------------------------------------ -- Server version 5.0.75-0ubuntu10 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_C...
true
7256a74974af4ab3c6a291b2c2b20fa738e85480
SQL
apethani21/pg-exercises
/basic/11_agg.sql
UTF-8
128
2.765625
3
[]
no_license
SELECT max(joindate) as latest FROM cd.members; /* SELECT joindate AS latest FROM cd.members ORDER BY joindate DESC LIMIT 1; */
true