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
373668ab0df1f3ab1a09df85e10190d178032c46
SQL
cypher01010/logistics-booking-system
/schema/R0.0.3/rrl_2015-07-26- 2.sql
UTF-8
2,192
3.140625
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.6.24) # Database: rrl # Generation Time: 2015-07-25 16:40:48 +0000 # *****************************************************...
true
4f90afa15e3fde845afce953db9ddd9d8866b150
SQL
lucas-av7/realtor-dashboard
/db/tables_create.sql
UTF-8
3,281
3.546875
4
[]
no_license
SET GLOBAL time_zone = '-3:00'; -- Users DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` INTEGER AUTO_INCREMENT PRIMARY KEY, `is_admin` BOOLEAN, `is_approved` BOOLEAN, `role` INTEGER NOT NULL, `phone` VARCHAR(50) NOT NULL, `email` VARCHAR(50) NOT NULL, `name` VARCHAR(50) NOT NULL, `password` ...
true
5fff167482976ccf9e0ed2c73b54460c72023749
SQL
bugjc/quick-ea
/ea-devtool-layer/flyway-devtool/src/main/resources/db/migration/V20180408000000__cre_init.sql
UTF-8
303
2.515625
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `tbs_code_example`; CREATE TABLE `tbs_code_example` ( `id` bigint(16) NOT NULL AUTO_INCREMENT COMMENT '主键', `name` varchar(50) DEFAULT NULL COMMENT '名称', `create` datetime DEFAULT NULL COMMENT '创建时间', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
true
8c0ec51c82dc4ec007042861b4599df03573dc35
SQL
uyhawsugab/RestoranKu
/restoranku.sql
UTF-8
6,770
2.9375
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 03 Bulan Mei 2019 pada 00.40 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
92685ea78d34fcfa9c31b9e34f2f401e87fccc6d
SQL
lukpecyn/miniGRANT
/miniGRANT/src/main/resources/data.sql
UTF-8
1,918
3.078125
3
[]
no_license
/* INSERT INTO donors(name) VALUES('Urząd Miasta w Krakowie'); INSERT INTO donors(name) VALUES('Wojewódzki Urząd Ochrony Środowiska'); INSERT INTO beneficiaries(name) VALUES('Uczniowski Klub Żeglarski Horn Kraków'); INSERT INTO beneficiaries(name) VALUES('Stowarzyszenie "Ekologia i Żagle"'); INSERT INTO cost_t...
true
cab27cb185cb7d75d98c0b91e3585989fe2ca18f
SQL
fofeiji/cloud-storage
/sql语句/purchaseordercapital.sql
UTF-8
1,028
2.796875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 192.168.1.184_3306 Source Server Version : 50505 Source Host : 192.168.1.184:3306 Source Database : niucai1 Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2018-05-18 11:37:29 */ SET FOREIGN_KEY_CH...
true
4a1d3def574df3b4aceecee3391f1f92d3358b9e
SQL
sorenlyhne/lyrikmaskinen
/theme/config/db/item_seed_phrases.sql
UTF-8
380
3.0625
3
[ "MIT" ]
permissive
CREATE TABLE `SITE_DB`.`item_seed_phrase` ( `id` int(11) NOT NULL auto_increment, `seed_id` int(11) NOT NULL, `phrase` varchar(255) NOT NULL, PRIMARY KEY (`id`), KEY `seed_id` (`seed_id`), CONSTRAINT `item_seed_phrase_ibfk_1` FOREIGN KEY (`seed_id`) REFERENCES `SITE_DB`.`item_seed` (`id`) ON DELETE CASCA...
true
b1919c4f68246609162c1056b98a3d6aeb6360d7
SQL
lepri/ILSAPL-bootstrap
/instalacao/sql_filiacao_gerar.sql
UTF-8
455
3
3
[]
no_license
SELECT DISTINCT CONCAT("UPDATE filiacao SET cod_partido=",partido.cod_partido," WHERE dat_filiacao=", "'", dat_filiacao,"'", " and cod_partido=",partido_old.cod_partido," and cod_parlamentar=",cod_parlamentar,";") as comando_sql FROM filiacao LEFT JOIN partido_old on partido_old.cod_partido = filiacao.cod_partid...
true
62adb60477aaa09ebcef9b462eb18727327c437e
SQL
lhkingkong/dirantad2016
/docs/query_numTiendasPorSocio.sql
UTF-8
603
3.46875
3
[]
no_license
/*mal select distinct asociados_estados.asociado_id, sum(asociados_estados.asociado_estado_numtiendas),sum(asociados_estados.asociado_estado_m2pisoventas) from estados, asociados_estados where estados.zona_id = 1 and estados.estado_id = asociados_estados.estado_id group by asociados_estados.asociado_id*/ SELECT asoc...
true
24a29fe507641ed430af4e06181aac27d42f6905
SQL
project2-anxietychallenge/project2-anxietychallenge
/db/schema.sql
UTF-8
693
3.6875
4
[]
no_license
### Schema CREATE DATABASE anxiety; USE anxiety; CREATE TABLE users ( id int NOT NULL AUTO_INCREMENT, name varchar(255) NOT NULL, google_id varchar(255) NOT NULL, email varchar(255), imageURL varchar(500), PRIMARY KEY (id) ); CREATE TABLE challenges ( id int NOT NULL AUTO_INCREMENT, challenge varchar(500...
true
69d8248ed307469876b8235f6ec8a4263c3a613b
SQL
Ara-celi/burger
/db/schema.sql
UTF-8
468
3.296875
3
[]
no_license
-- Create the database burgers_db and specified it for use. CREATE DATABASE burgers_db; USE burgers_db; -- Create the table burgers and fields. CREATE TABLE burgers ( -- id: an auto incrementing int that serves as the primary key. id int(11) NOT NULL AUTO_INCREMENT, -- burger_name: a string. burger_name varchar(255) ...
true
4343a09aa6443443e3ce4a290da8543d35dcf40a
SQL
ratRenRao/SquadronWars
/SQL/Tables/Ability.sql
UTF-8
474
2.984375
3
[]
no_license
-- ----------------------------------------------------- -- Table `dbo`.`Ability` -- ----------------------------------------------------- DROP TABLE IF EXISTS `dbo`.`Ability` ; CREATE TABLE IF NOT EXISTS `dbo`.`Ability` ( `abilityId` INT(11) NOT NULL AUTO_INCREMENT , `statId` INT(11) NOT NULL , `name` VARCHAR(...
true
65766066040079c807c73d70a2d80c539614f3f0
SQL
Libardomo10/Back-NodeJs
/db/sql-scripts/Create-tables.sql
UTF-8
268
2.71875
3
[]
no_license
-- create database Db_locations; -- use Db_locations; create table locationTable ( id int NOT NULL AUTO_INCREMENT, nameLocation varchar(30) NOT NULL, area_m2 int NOT NULL, idInternalLocation int NOT NULL, CONSTRAINT PK_location PRIMARY KEY(id) );
true
5d907cf06fb16060d22e238c22f8b20409ff0d2c
SQL
heikkivihemaki/drinkkify-backend
/init.sql
UTF-8
903
2.9375
3
[]
no_license
DROP TABLE IF EXISTS drinks; CREATE TABLE drinks ( id SERIAL PRIMARY KEY, drink_name VARCHAR(255) NOT NULL, drink_ingredient1 VARCHAR, drink_ingredient2 VARCHAR, drink_ingredient3 VARCHAR, ...
true
9704c2e6ebd9ce610128e36249a0bb1831180104
SQL
ArthurColpani/BancoDeDados-Locadora
/Banco de dados da locadora.sql
UTF-8
568
3.09375
3
[]
no_license
create database Locadora; use Locadora; create table Marca ( MarcaID int key, Nome varchar(100)); create table Modelo ( ModeloID int key, Nome varchar(100)); create table Veiculo ( VeiculoID int key, Cadastro varchar(50), Placa char(10)); create table Cor ( CorID int key, Nome varchar(100)); create table Clientes...
true
d6b0c2d47c6c9ecca4e2d0fe39372b18bbbe3650
SQL
abhinavagrawal1995/myhostel
/hostel.sql
UTF-8
2,628
2.890625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 19, 2017 at 01:59 AM -- Server version: 5.5.54-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
f5a7395a1743fcd2fc5e7f629f05a5061a096e82
SQL
r-a-c-h-e-l/tShirtShop
/schema.sql
UTF-8
1,257
3.6875
4
[]
no_license
DROP TABLE IF EXISTS items; DROP TABLE IF EXISTS users; DROP TABLE IF EXISTS transactions; DROP TABLE IF EXISTS administrators; CREATE TABLE items ( id INTEGER PRIMARY KEY, name TEXT, description TEXT, item_type TEXT, qty INTEGER, item_id TEXT, image_url TEXT DEFAULT ".public/images/not_found.jpg", pri...
true
9573861b4706411f408650a1b3e37e2e171e65b4
SQL
jcardona21/Pruebacoope
/pruebacoope1/coope.sql
UTF-8
8,010
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 02-09-2020 a las 00:19:54 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.2.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
d0e931cf210decb06439863148dc22c5ddc7d7ac
SQL
DeborahK/VS-AcmeCustomerManagement
/ACM.Database/dbo/Stored Procedures/CustomerUpdate.sql
UTF-8
675
3.0625
3
[ "MIT" ]
permissive
/* Name: CustomerUpdate Purpose: Update all fields from Customer Developer: Deborah Kurata InStep Technologies, Inc (www.insteptech.com) Date: 6/12/2010 Modifications: Date Developer Description */ CREATE PROCEDURE dbo.CustomerUpdate ( @CustomerId int, @LastName n...
true
92f44d3713f3eb0f62e11cab5c00bf77d9c14cdc
SQL
edu-go/java-bootcamp
/Topic6_Practice_SpringCore_Rest/src/main/resources/import.sql
UTF-8
707
2.609375
3
[ "Apache-2.0" ]
permissive
INSERT INTO room (room_number) VALUES (1); INSERT INTO room (room_number) VALUES (2); INSERT INTO room (room_number) VALUES (3); INSERT INTO attendee (first_name,last_name) VALUES ('Homero','Simpson'); INSERT INTO attendee (first_name,last_name) VALUES ('James','Bond'); INSERT INTO attendee (first_name,last_name) VALU...
true
dab8490e341947118150593bf361b937d7463696
SQL
liguomin9496/TianChi_ZhiLianZhaoPin
/Round2/sql/step_2_gen_cross_feat.sql
UTF-8
4,311
3.390625
3
[]
no_license
-- 生成user和jd交互特征,运行在pai实验里的step2_data_merge_gen_feats, 此处为备份 select *, count(user_id) OVER(PARTITION by jd_no) as jd_user_cnt, count(user_id) OVER(PARTITION by jd_no)/require_nums as require_jd_ratio, DECODE(live_city_id=city, true, 1, false, 0) as same_desire_live_city, case when min_edu_level_map=-1 or de...
true
b4ae994c3046c67286eeb4b2612d9e5c5acb1564
SQL
karthik1211/oru-source-service
/database/release/1.0/ORU_SOURCE_SVC/ddl/create/table/020_rfq_item_supplier_mapping.sql
UTF-8
827
2.953125
3
[]
no_license
USE ORU_SOURCE_SVC; CREATE TABLE rfq_item_supplier_mapping ( rfq_item_line_id BIGINT NOT NULL, supplier_code VARCHAR(6) NOT NULL, notification_sent VARCHAR(1) NOT NULL, create_timestamp TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, update_timestamp TIMESTAMP NOT NULL DEFAULT CURR...
true
b303e5ffa0e8d2ce42513d6c6f1e7a0cd437ddf2
SQL
SayantoRoy/PRATIBHAPOP
/PRATIBHAPOP/SCS/ExchangeGainLossGL.sql
UTF-8
2,745
3.125
3
[]
no_license
CREATE TABLE [SCS].[ExchangeGainLossGL] ( [Id] VARCHAR (10) NOT NULL, [COAId] VARCHAR (10) NOT NULL, [CompanyCurrencyGLId] VARCHAR (10) NOT NULL, [CompanyCurrencyBudgetMasterId] VARCHAR (20) NULL, [CompanyCurrencyActiv...
true
1a2160e7dcc82338263a662d7fa4de4be6394226
SQL
AzmolKarim313/ItProjectStudentManagementSystem
/Dump20161010/student_managment_db_student_issue_info.sql
UTF-8
2,688
3.125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: student_managment_db -- ------------------------------------------------------ -- Server version 5.7.15-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SE...
true
fc46adff2f3216247d304028e9bbaddc54488334
SQL
alvarofpp/ufrn-imd0401-sql
/aula-15/query.sql
UTF-8
543
3.75
4
[]
no_license
/* * Consultas */ /* * Mostre a descrição dos produtos que a quantidade solicitada foi * maior que 5.000. */ SELECT DISTINCT descricao FROM produtos WHERE id IN ( SELECT produto_id FROM itens WHERE quantidade > 5000 ); -- Output: Descrição Z /* * Mostre o nome dos funcionários, sem repetição, qu...
true
677b7ecb6c0552c2d08261bfae7664a9b9d023eb
SQL
cardoso-thiago/create-local-db
/db/CreateMenuDatabase.sql
UTF-8
363
2.90625
3
[]
no_license
USE Manager; CREATE TABLE menu ( id INT(6) UNSIGNED AUTO_INCREMENT PRIMARY KEY, name VARCHAR(100) , description VARCHAR(100) ); SET character_set_client = utf8; SET character_set_connection = utf8; SET character_set_results = utf8; SET collation_connection = utf8_general_ci; INSERT INTO menu (name, descrip...
true
5045fe952b2bc66c3425937d46c683b4441bc4d4
SQL
tronnetdevops/firstfreight
/mailpassthru/data/db.sql
UTF-8
1,342
3.34375
3
[]
no_license
CREATE DATABASE `firstfreight` COLLATE = `utf8_unicode_ci`; use `firstfreight`; CREATE USER 'ffagent'@'localhost' IDENTIFIED BY 'ff1234'; GRANT USAGE ON `firstfreight`.* TO 'ffagent'@'localhost' IDENTIFIED BY 'ff1234'; GRANT ALL PRIVILEGES ON `firstfreight`.* TO 'ffagent'@'localhost' IDENTIFIED BY 'ff1234'; CREATE...
true
3dc90a81512b76e0aef959e2f108d087fc962d81
SQL
yashdesai01/laravel-6-full-project
/db_for_import/l6app.sql
UTF-8
17,000
2.796875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Feb 14, 2020 at 08:13 AM -- Server version: 10.4.10-MariaDB -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SE...
true
b63732371ee77aa82255095eed2555a38ce2da31
SQL
BogdanFi/cmiN
/FII/L2/SGBD/anterior/teme/SGBD2016/SGBD_8/SGBD_8_3.sql
UTF-8
2,198
3.828125
4
[]
no_license
CREATE OR REPLACE PROCEDURE catalog_materie (p_id_curs cursuri.id_curs%type) IS stmt_str varchar2(200); cur_hdl int; insert_str VARCHAR2(200); v_nr_matricol note.nr_matricol%type; v_id_curs note.id_curs%type; v_valoare note.valoare%type; v_data_notare note.data_notare%type; v_nume studenti.nume%type; v_prenume stude...
true
d4df3f3fafd9838a6d49250d57067afc499e1b05
SQL
Kripto3/TallerProgramacion1
/alejandro_jimenez.sql
UTF-8
15,385
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 24-06-2020 a las 05:06:56 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
53000c7dd09d3d6b950ca4a287261085041f60d1
SQL
Yash-PradhanYashSharma/e-com_demo
/server/src/main/resources/data.sql
UTF-8
13,163
3.21875
3
[]
no_license
insert into public.party (partyid, roletypeid, statusid) values ('yash.sharma', 'USER', true); insert into public.person (email, conatactnumber, firstname, lastname, middlename, personaltitle, partyid) values ('yash.sharma@yash.com', '8989006625', 'Yash', 'Sharma', '', 'Mr.', 'yash.sharma'); insert into public.party (...
true
238485e534d863581a79ed5767d839f03a3835c5
SQL
wladko0/sql-scripts-macola-wisys-epicor
/ContractComparisonQuery.sql
UTF-8
5,729
3.796875
4
[]
no_license
SELECT WMAct.store_no, proj_type, item_no, price, CAST(SUM(qty_ordered)AS Int) AS [Qty Ordered], CASE WHEN Proj_Type = 'SUP-RM' THEN CAST(WMChk.[SUP-RM] AS nvarchar(MAX)) WHEN Proj_Type = 'SUP-NEW' THEN CAST(WMChk.[SUP-NEW] AS nvarchar(MAX)) WHEN Proj_Type = 'SAMS-RM' THEN CAST(WMChk.[SAMS-RM] AS nvarchar...
true
d0b1d97ee3a9bc76e8d12078798f0ce690eaaaf3
SQL
amazingtmon/java210208
/Toad_Oracle/dept_0216.sql
UHC
1,132
3.4375
3
[]
no_license
SELECT * FROM dept 츮ȸ μ ϴ ̴. Ӽ - κ μȣ, μ, -> ؾ Ѵ. - Data Եȴ. - if, for ̿Ͽ ȭ Ѽ Ѵ. System.out.println() -> -> Ȯΰ. ÷ + ο = ̺ ȴ. Ŭ = + ޼ҵ ȴ. dept : 𵨸ܰ - .(Entity) -> ߻̴. ʾҴ. ̴. 𵨸ܰ - ̺.(Table) -> ü̴. Ǿ. - DeptVO.java ڹٿ Ŭ -> ݶ󺸰 ̷. ==============================================...
true
1f7aa8a33566d7d4e4fdd85783cd9b343ef07dd1
SQL
JMian/SOE.YDB-SQL0001-Databases-Relational-Databases-and-SQL
/exercises/SocialNetworkQuery_exercise.sql
UTF-8
5,714
4.5625
5
[]
no_license
/*** Solution for SQL Social-Network Query Exercises & Extras ***/ /*** SQL Social Network Query Exercises - Solution ***/ /* Q1. Find the names of all students who are friends with someone named Gabriel. */ select Highschooler.name from Highschooler join Friend on Highschooler.ID = Friend.ID1 where Friend.ID2 in (...
true
ec6bb2058fa90f4deae710192e3251b491cb30a2
SQL
diogoribeirosilva/ApiClientes
/ApiClientes.sql
UTF-8
444
3.03125
3
[]
no_license
CREATE DATABASE ApiCliente CREATE TABLE CLIENTE ( ID INT PRIMARY KEY IDENTITY(1,1), NOME VARCHAR(30), CPF VARCHAR(11), EMAIL VARCHAR(100), DATANASCIMENTO DATETIME NOT NULL ); CREATE TABLE ENDERECO ( ID INT PRIMARY KEY IDENTITY(1,1), CLIENTEID INT NOT NULL, LOGRADOURO VARCHAR(50) NOT NULL, BAIRRO VARCHAR...
true
fa7920e0039266ee0c5dd8277e6194fe75ea1f0c
SQL
rulegl/project
/script/t3/SQL/2964_move_to_prod.sql
UTF-8
1,348
3.375
3
[]
no_license
--2962 move to prod --alter session schema to EQI alter session set current_schema=eqi --verify indices in correct Dev state 503 select index_id, family_id, classification_ind, headline_index_id from eqi_m_index where index_id in ( select index_id from eqi_r_index_idfication where index_idfication_value in (...
true
4eba6f8772cb9627a8e8c50e283f4a426615ece7
SQL
devinbrady/street-observation
/speed/queries/sessions_one.sql
UTF-8
303
2.84375
3
[]
no_license
-- Return information about one session select s.session_id::varchar , s.session_mode , s.distance_meters , s.distance_value , s.distance_units , s.speed_limit_value , s.speed_units , s.session_description , s.publish , s.local_timezone , s.created_at from sessions s where s.session_id = :session_id
true
80e86b7f6abfcc131a54e8cb654d012b2c7d5c66
SQL
qmiko/Project-3
/db/schema.sql
UTF-8
212
2.921875
3
[]
no_license
### Schema CREATE DATABASE eleven_db; USE eleven_db; CREATE TABLE item ( id int NOT NULL AUTO_INCREMENT, "title" varchar(255) NOT NULL, "description" varchar(500), "price" decimal(10), PRIMARY KEY (id) );
true
89c21ff009680af36f1e51c052ef203db33a8e6e
SQL
sap-nocops/db-changes-server
/db_ddl.sql
UTF-8
531
3.546875
4
[]
no_license
CREATE TABLE apps (id int primary key, name varchar(50) not null, version VARCHAR(50) not null); CREATE TABLE db_versions (id int primary key, version VARCHAR(50) not null); CREATE TABLE apps_db_versions (app_id int, db_id int, PRIMARY KEY(app_id, db_id), FOREIGN KEY(app_id) REFERENCES apps(id), FOREIGN KEY(db_id) REFE...
true
98fe63574adea4024625945c7d2875184d223a81
SQL
Abulliox/FRepository
/SQLQuery1.sql
UTF-8
487
3.4375
3
[]
no_license
select * from person; insert into person (first_name, last_name , national_id, age) values ('ali', 'alipour' , 11111 , 20), ('akbar' , 'akbari' , 11112 , 21), ('ahmad' , 'ahmadi' , 11113 , 20), ('reza' , 'rezaei' , 11114 , 22); insert into student (person_id , student_number) values (3 , 14147 ) , (4 , 159753 ); s...
true
f138c0e4f544a1204dd3a467be753583b08d2d19
SQL
kawabata-neolis/KATO
/KATO/SQL/C0520_KaikakekinZandakaIchiranKakunin/C0520_KaikakekinZan_SELECT.sql
UTF-8
6,859
3.03125
3
[]
no_license
SELECT T.取引先コード As コード , T.取引先名称 AS 得意先名 , CONVERT(CHAR(7),DATEADD(d,1,K.年月日),111) AS 年月, dbo.f_get買掛残高一覧表_繰越残高FROM取引先経理情報(T.取引先コード,DATEADD(d,1,K.年月日) ) AS 前月買掛残, dbo.f_get買掛残高一覧表_支払_現金(T.取引先コード,DATEADD(d,1,K.年月日), dbo.f_月末日(DATEADD(m,1,K.年月日))) AS 支払現金, dbo.f_get買掛残高一覧表_支払_小切手(T.取引先コード,DATEADD(d,1,K.年月日)...
true
806bfbb249b77f41db99bf03f3ce6426b2632f0e
SQL
taehoon95/web_gradle_erp
/Scripts/4.test.sql
UTF-8
1,295
3.8125
4
[]
no_license
select empno,empname,title,manager,salary,dept,hiredate from employee; select * from department; select titleNo,titleName from title; select titleNo,titleName from title where titleNo = ?; INSERT INTO TITLE VALUES (6, '인턴'); delete from title where titleNo = 6; select deptNo, deptName, floor from depa...
true
6a189277cdce642a3d190e0da8b4d4c679d8065c
SQL
weikunzz/simple_test_tools
/mysql_issue/tables.sql
UTF-8
673
3.03125
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `test`; USE `test`; DROP TABLE IF EXISTS `products`; CREATE TABLE `products` ( `id` int(11) NOT NULL AUTO_INCREMENT, `productCode` text NOT NULL DEFAULT '' COMMENT '产品代码', `productName` text NOT NULL COMMENT '产品名称', `productLine` text NOT NULL COMMENT '产品线', `productScale` text ...
true
4bcac5e32f410584c7c5d39187bfe97b113d16e5
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day10/select1305.sql
UTF-8
260
3.0625
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WeMo' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['3099','5051','3091','4211','6211','6042','6024','3224','1412','5042'])
true
0121b41207024230501b17726261c5e16da4e6b5
SQL
htgt/LIMS2-WebApp
/ddl/versions/34/up.sql
UTF-8
1,018
2.859375
3
[]
no_license
CREATE TABLE design_targets ( id SERIAL PRIMARY KEY, gene_name TEXT NOT NULL, ensembl_gene_id TEXT NOT NULL, ensembl_exon_id TEXT NOT NULL, exon_size INTEGER NOT NULL, exon_rank INTEGER, canonical_transcript TE...
true
192117fe62135ad72ad18df8268f8e0b018d0403
SQL
CUBRID/cubrid-testcases
/sql/_14_mysql_compatibility_2/_12_type_conversions/_04_numeric_functions/cases/_11_exp.sql
UTF-8
1,638
3.3125
3
[ "BSD-3-Clause" ]
permissive
CREATE table alltypes( int_col INTEGER, float_col FLOAT, double_col DOUBLE, smallint_col SMALLINT, date_col DATE, time_col TIME, timestamp_col TIMESTAMP, datetime_col DATETIME, monetary_col MONETARY, numeric_col NUMERIC(12,4), char_col char(255), varchar_col varchar(255), nchar_col nchar(255), varnchar_col nchar varyin...
true
c611aa024d06c86720e5717ed50c069d462d5e50
SQL
TakafumiIshibashi/kadai_php3
/kadai_php.sql
UTF-8
3,247
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- ホスト: localhost -- 生成日時: 2021 年 6 月 07 日 19:59 -- サーバのバージョン: 10.4.19-MariaDB -- PHP のバージョン: 8.0.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
784fe9fe69d1d9d0186f51e0f22b92c0fff568eb
SQL
492675825/xiongyuan
/sql项目/sql笔记/404 增量同步和多表插入.sql
UTF-8
5,858
4.375
4
[]
no_license
业务交易系统: t_pay; 同步数据到数仓: t_pay_ods 1.全量同步(晚上凌晨) (1)先清空目标表t_pay_ods; (2)整个业务数据同步到目标表t_pay_ods; 2.增量同步(按天增量/晚上凌晨) (1)将业务前一天的数据同步到目标表t_pay_ods; merge into [target-table] A using [source-table sql] B on ([conditional expression] and [...]...) when matched then -- 当on中的条件匹配时 [update sql] -- 执行操作 更新或删...
true
dde15a9a8e3814075b5fac9ced1e0d889fbc0330
SQL
fandashtic/arc_chennai
/Sivabalan-SQL/SQL_STORED_PROCEDURE/Get_Item_details_TaxInRate.sql
UTF-8
733
3.328125
3
[]
no_license
CREATE Procedure Get_Item_details_TaxInRate @Product_Code nvarchar(30), @Locality int = 1 As Select Product_Code, ProductName, Isnull(TaxInclusive,0) IsTI , (Case @Locality When 2 then Isnull(a.cst_Percentage,0) Else Isnull(a.Percenta...
true
784cd953815e496a2f8085a1c3913af078487663
SQL
Contetial/realestate
/realEstate-db/DDLScript/customer.sql
UTF-8
664
3.1875
3
[]
no_license
CREATE TABLE customer ( customer_id BIGINT NOT NULL Auto_increment, customer_name VARCHAR(100) NOT NULL, address VARCHAR(225), DOB timestamp, DOA timestamp, contactNo BIGINT(13), email varchar(100), status varchar(20), refered_by BIGINT NOT NULL, PRIMARY KEY (customer_id), CONSTRAINT `FK_USER_CUSTOMER` FORE...
true
cc0cb0bf97094c71e9a86ea574cbcdc72c6b84c9
SQL
DemoTovar5/database-exercises
/subqueries_exercises.sql
UTF-8
370
3.515625
4
[]
no_license
USE employees; SELECT * FROM employees WHERE hire_date IN (SELECT hire_date FROM employees WHERE emp_no = '101010'); SELECT title FROM titles WHERE emp_no IN (SELECT emp_no FROM employees WHERE first_name = 'Aamod' ); SELECT first_name, last_name, gender FROM employees WHERE dept_manager.gender IN(SELECT dept_manage...
true
fb35bb2e7fda0e16e3d21c1ba3b94b776cd5f68e
SQL
awe-will/occ
/OCC_report_2.sql
UTF-8
417
4.21875
4
[]
no_license
-- Report showing the total of employee salary for a department ACCEPT department_name CHAR PROMPT 'Enter the name of the department: ' SELECT dept.dept_name "Department", SUM(emp.emp_salary) "Sum of Salaries" FROM employees emp JOIN departments dept ON (emp.dept_id = dept.dept_id) WHERE dept.dept_id =...
true
52d65878252f6d26243119d5ef83c91b9c591d37
SQL
damanic/ls1-module-shop
/updates/89.sql
UTF-8
383
3.015625
3
[]
no_license
alter table shop_orders add column coupon_id int; create index coupon_id on shop_orders(coupon_id); CREATE TABLE `shop_order_applied_rules` ( `shop_order_id` int(11) NOT NULL default '0', `shop_cart_rule_id` int(11) NOT NULL default '0', PRIMARY KEY (`shop_order_id`,`shop_cart_rule_id`), KEY `shop_cart_rule_...
true
650d3ea9415ce7b8a54e94153265934f44d9c815
SQL
srespanepeya/airflow-bq
/dags/examples/bq_jogistics/sql/0002_extract_rejected_never_arrived_order_date.sql
UTF-8
1,493
3.875
4
[]
no_license
INSERT INTO user_matias_menendez.extract_rejected_never_arrived_order_date_2 SELECT r.rider_name , o.created_date , r.rider_id , r.phone_number , r.email , o.country_code , r.batch_number , cit.name as city_name , COUNT (DISTINCT o.platform_order_code) as total_orders , COUNT(DISTINCT CASE WHEN f.reject_...
true
c980212047bdd7024b963385f233d04d043c8caa
SQL
evrimulgen/FCR
/P3#API.sql
UTF-8
17,889
2.546875
3
[]
no_license
CREATE OR REPLACE PACKAGE "P3#API" IS -- insert FUNCTION contract_type_ins( p_C#NAME IN T3_CONTRACT_TYPE.C#NAME%type DEFAULT NULL ) RETURN NUMBER; -- update PROCEDURE contract_type_upd( p_C#ID IN T3_CONTRACT_TYPE.C#ID%type , p_C#NAME IN T3_CONTRACT_TYPE.C#NAME%type DEFAULT NULL ); -...
true
0b6e7b250872c3fff9f541d138021beab75c0744
SQL
JonathanAntia/sql-challenge
/EmployeeSQL/schema.sql
UTF-8
1,454
3.90625
4
[]
no_license
DROP TABLE IF EXISTS dept_manager; DROP TABLE IF EXISTS dept_emp; DROP TABLE IF EXISTS salaries; DROP TABLE IF EXISTS employees; DROP TABLE IF EXISTS titles; DROP TABLE IF EXISTS departments; -- create departments table and import data from csv CREATE TABLE departments ( dept_no VARCHAR(4) PRIMARY KEY NOT NULL, dept...
true
efbec7352da3ebde74156e7515b1b819c0f0a1b3
SQL
sheldon-white/SheldonsRockingService
/src/main/resources/create_course_table.sql
UTF-8
465
3.28125
3
[]
no_license
delimiter $$ CREATE TABLE `course` ( `course_id` bigint(20) NOT NULL AUTO_INCREMENT, `course_code` varchar(10) NOT NULL, `begin_date` datetime DEFAULT NULL, `end_date` datetime DEFAULT NULL, `fee` int(11) DEFAULT NULL, `title` varchar(100) NOT NULL, `teacher_id` bigint(20) NULL, PRIMARY KEY (`course_id...
true
fe30ea8b25f7d5166d1d4b40d83b0e153b8a8003
SQL
alibaba/canal
/parse/src/test/resources/ddl/table/mysql_6.sql
UTF-8
711
2.6875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE `tb_bpukgjzglw` ( `col_sgxesfcvdh` blob, `col_tjhvpjnswu` bigint(20) unsigned DEFAULT NULL, `col_vvbowgfzum` varchar(200) DEFAULT '' ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `tb_chzhfzbmgu` ( `col_zqritfblef` set('enum_or_set_0','enum_or_set_1','enum_or_set_2') CHARACTER SET utf8mb4 DEFAU...
true
39c939b0510e7f05ce167481af066786d84aefbd
SQL
mtejas88/esh
/Projects_SotS_2017/e-rate/AK_increase/src/one_mbps_costs.sql
UTF-8
5,801
4.0625
4
[]
no_license
/* STEPS 9. Find 1 Mbps cost, bw/student not in AK 10. Find 1 Mbps bw/student in AK */ with ia_lines as ( select distinct sr.line_item_id, sr.bandwidth_in_mbps, case when sr.monthly_circuit_cost_recurring = 0 then sr.monthly_circuit_cost_total * fy2017.frns.discount_rate::numeric/100 ...
true
3d650945138d773a8150d1886014c52466d9e27e
SQL
ivanstefanov-it/DatabasesBasics-MSSQLServer
/JoinsSubqueriesCTEAndIndices/12.HighestPeaksInBulgaria.sql
UTF-8
309
3.875
4
[]
no_license
SELECT c.CountryCode, m.MountainRange, p.PeakName, p.Elevation FROM Countries AS c JOIN MountainsCountries AS mc ON mc.CountryCode = c.CountryCode JOIN Mountains AS m ON m.Id = mc.MountainId JOIN Peaks AS p ON p.MountainId = m.Id WHERE c.CountryCode = 'BG' AND p.Elevation > 2835 ORDER BY Elevation DESC
true
1e970efbcf413670c9c28a1131e06fd3aa795160
SQL
RandallHolsinger/personal-project
/db/getAllCart_for_user.sql
UTF-8
150
2.515625
3
[]
no_license
select * from cart as c join products as p on c.product_id = p.product_id join product_images as pi on pi.product_id = p.product_id where user_id = $1
true
0c5eeb23f51ce79737bb5c0f7c61a54715beffc3
SQL
RapaTachos/Databases
/m5.sql
UTF-8
2,077
4.4375
4
[]
no_license
--||A||-- SELECT C.Name FROM CUSTOMER C LEFT OUTER JOIN STREAM S ON(C.CustomerId = S.CustomerId) WHERE C.Country = 'China' AND StreamId IS NULL; --||B||-- SELECT C.COUNTRY, COUNT(*) FROM STREAM S RIGHT OUTER JOIN CUSTOMER C ON(C.CustomerId = S.CustomerId) WHERE S.StreamId IS NULL GROUP BY C.Country; --...
true
5ba7ebea9ba41863d86b86345e43aaeed6a4004c
SQL
Nexumas/2SIO_SLAM-Marieteam-app-web
/marieteam.sql
UTF-8
10,295
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mar. 29 déc. 2020 à 13:35 -- Version du serveur : 5.7.31 -- Version de PHP : 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
true
e5271171b3a472b6e4ba7b50ed63c934e7491333
SQL
pedrodlz/DDSI_Practicas_1819
/SQL/javier_trigger.sql
UTF-8
1,629
3.71875
4
[]
no_license
/*Vamos a intentar crear una valoración de una canción que no hemos escuchado */ INSERT INTO valora(id_usuario, id_cancion, puntuacion) values('UN000003', 'C0000001', 5.0); /*Nos da un mensaje de error, ya que no hemos escuchado la canción (el disparador genera una excepción)*/ /* INSERT INTO valora(id_usuario, id_c...
true
b34fa559f8c3f2f5819bb7574bcc41b4d26aadd8
SQL
yiboliu/AuctionBase-Database-and-Web
/query6.sql
UTF-8
77
2.84375
3
[]
no_license
select count(UserID) from Seller where UserID in (select UserID from Buyer);
true
b8789886f3ce8b337925f9cdbd17ce13d64c4a9b
SQL
frenchfryes/database-exercises
/limit_exercises.sql
UTF-8
348
3.609375
4
[]
no_license
#List the first 10 distinct last name sorted in descending order SELECT DISTINCT last_name FROM employees ORDER BY last_name DESC LIMIT 10; #query for employees born on Christmas and hired in the 90s SELECT * FROM employees WHERE hire_date LIKE '199%' AND birth_date LIKE '%-12-25' ORDER BY birth_date, hire_da...
true
3d6a2c519ace0343794b79b571d547d6ef457b9c
SQL
sergoromanov/gamestore
/gamestore.sql
UTF-8
1,771
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Июн 06 2019 г., 11:42 -- Версия сервера: 5.6.41 -- Версия PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
097fef22ffd32587a76d1e718e3a49b155ba1439
SQL
myeung18/baaas-decision-fleet-manager
/baaas-decision-fleet-manager/src/main/resources/db/migration/0.1/V0.1.8__update_decision_description.sql
UTF-8
280
2.90625
3
[ "Apache-2.0" ]
permissive
ALTER TABLE decision_version add description text; UPDATE decision_version dv set description = (select description from decision d where d.id = dv.decision_id); ALTER TABLE decision_version ALTER COLUMN description SET NOT NULL; ALTER TABLE decision drop column description;
true
6ffe03b39d7c57bbb3465c0d9de8a91fdcf08413
SQL
Blackbaud-BharatYadav/fenxt-npi-dev
/DDL/ADD_views/out_vw_transactionprojectscenarios.sql
UTF-8
725
2.6875
3
[]
no_license
CREATE OR REPLACE VIEW out_vw_transactionprojectscenarios AS SELECT ((out_TransactionProjectScenario.TransactionAttrDistributionId || '#'::varchar(1)) || out_TransactionProjectScenario.ScenarioId)::VARCHAR(512) as "cp__transactionprojectscenarioid", AccountId::VARCHAR(512) as "r__accounts", ScenarioId::VARCHAR(512) ...
true
10ef201dd082aea9aa9524bc2af4384b1516338a
SQL
gloomygenius/account-app
/src/main/resources/databasemigrations/V1__create-default-schema.sql
UTF-8
533
3.40625
3
[]
no_license
CREATE table account ( number INT PRIMARY KEY AUTO_INCREMENT, balance NUMERIC(8, 2) NOT NULL, revision INT default 0 NOT NULL ); CREATE table transaction ( id BIGINT PRIMARY KEY AUTO_INCREMENT, debtor_account_number INT NOT NULL, creditor_account_number INT ...
true
30556c5250a92b099a07658149b3e87d427faedd
SQL
radtek/abs3
/sql/mmfo/bars/View/v_stickets.sql
UTF-8
1,197
2.875
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_STICKETS.sql =========*** Run *** === PROMPT ===================================================================================== PROMPT *** Create view V_ST...
true
14d46da191822a61cc1d6d936d1da5e2546f20e2
SQL
NinaSaar/4-irad-grupp1
/connect_four.sql
UTF-8
1,459
3.359375
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8mb4 */; CREATE DATABASE IF NOT EXISTS connect_four DEFA...
true
724c19f6dab0581c71477381ee478b7d9d4caaa1
SQL
King-George1/Trends-In-Startups
/trendsInStartups.sql
UTF-8
931
3.5625
4
[]
no_license
--Task 1: SELECT * FROM startups; --Task 2: SELECT COUNT(*) FROM startups; --Task 3: SELECT SUM(valuation) FROM startups; --Task 4: SELECT MAX(raised) FROM startups; --Task 5: SELECT MAX(raised) FROM startups WHERE stage = 'Seed'; --Task 6: SELECT MIN(founded) FROM startups; --Task 7: SELECT AVG(valuation) FROM ...
true
1f95351e3d00b61faa9ab6bff936e4be39f8b05a
SQL
Airexxxxx/BooksAdministration
/backup/book.sql
UTF-8
2,885
3
3
[ "Apache-2.0" ]
permissive
-- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: book_list -- ------------------------------------------------------ -- Server version 8.0.22 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
c43af8f269b241868f7538a730b65e267d7f507e
SQL
Brunsoft/Gazie
/gazie 6.4/setup/install/update_to_5.8.sql
UTF-8
856
2.65625
3
[]
no_license
UPDATE `gaz_config` SET `cvalue` = '68' WHERE `id` =2; INSERT IGNORE INTO `gaz_module` (`id`, `name`, `link`, `icon`, `class`, `access`, `weight`) VALUES ('9', 'gazpme', 'docume_gazpme.php', 'gazpme.png', '', '0', '9'); -- START_WHILE ( questo e' un tag che serve per istruire install.php ad INIZIARE ad eseguire le quer...
true
d9136e7f5989427249cb0a123b6ac31ee8c5da27
SQL
salirajr/xpert
/xeai/nightly/eai/eai-xyscrib/pglistener-tgr/tgr_fmm_aircraft_visit.sql
UTF-8
1,599
3.125
3
[]
no_license
/* CREATION */ CREATE TRIGGER after_delete_fmm_flight AFTER DELETE ON "public"."fmm_flight" FOR EACH ROW EXECUTE PROCEDURE notify_after_delete(); CREATE TRIGGER after_insert_fmm_flight AFTER INSERT ON "public"."fmm_flight" FOR EACH ROW EXECUTE PROCEDURE notify_after_insert(); CREATE TRIGGER after_update_fmm_flight AFTE...
true
8dc88b4dba2508d690477aeaed7b6801b09537ac
SQL
chathurabuddi/RideFF4jToggles
/ride-toggles-core/src/main/resources/schema.sql
UTF-8
1,399
3.078125
3
[]
no_license
CREATE SCHEMA ff4j; CREATE TABLE ff4j.FF4J_FEATURES ( FEAT_UID VARCHAR(100), ENABLE INTEGER NOT NULL, DESCRIPTION VARCHAR(1000), STRATEGY VARCHAR(1000), EXPRESSION VARCHAR(255), GROUPNAME VARCHAR(100), PRIMARY KEY(FEAT_UID) ); CREATE TABLE ff4j.FF4J_ROLES ( FEAT_UID VARCHAR(100) REF...
true
2c2d0f339b9466a4963c70a5dffe0117160ea19b
SQL
TodoresteG/CSharp-DB
/MS SQL Server/Exam/Problem 10.Full Info.sql
UTF-8
812
4.15625
4
[]
no_license
SELECT CASE WHEN CONCAT(e.FirstName, ' ', e.LastName) = '' THEN 'None' ELSE CONCAT(e.FirstName, ' ', e.LastName) END AS [Employee], ISNULL(d.[Name], 'None') AS [Department], ISNULL(c.[Name], 'None') AS [Category], ISNULL(r.[Description], 'None') AS [Description], ISNULL(CONVERT(VARCHAR(10), r.OpenDate, ...
true
32184030749209389bae5b99633a8615880835c6
SQL
caothuthao/VTI-Rocket02
/SQL/Assignment2/AS_2.sql
UTF-8
1,844
3.9375
4
[]
no_license
-- Exercise 1: Design a table -- drop database if exists DROP DATABASE IF EXISTS quanlyfresher; CREATE DATABASE IF NOT EXISTS quanlyfresher; USE quanlyfresher; -- question 1: create table Trainee with constraint and datatype DROP TABLE IF EXISTS Trainee; CREATE TABLE IF NOT EXISTS Trainee ( Trainee_ID TINYINT AUTO...
true
ed674af45ed5c7e879c7b4dd94ce8134be5da0ba
SQL
smartdesarrollador/guias
/sqlserver/generales/procedimientos_almacenados/procedimiento_almacenado_basico.sql
UTF-8
243
2.609375
3
[]
no_license
CREATE PROCEDURE consulta @nombre nvarchar(20), @telefono int AS BEGIN -- Comienzo SELECT * FROM clientes WHERE nombre = @nombre AND telefono = @telefono; PRINT 'hecho correctamente'; END -- Final -- Ejecutar EXEC consulta 'eduardo',1234
true
326d4b2ac35dbc9ed8df109ddf86a529066d0221
SQL
CompassitesSoftware/CompassitesWebTemplate-Zendframework
/scripts/database/compassites/role.sql
UTF-8
1,472
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.0 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 20, 2012 at 02:40 PM -- Server version: 5.5.22 -- PHP Version: 5.3.10 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*...
true
19f0c39dd9870c6b38aa71b6086c8a3973c80160
SQL
tabrezansari/Real_Time_Private_Chat_With_Doctor
/docto-server/config/db.sql
UTF-8
6,331
2.78125
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.17, for macos10.14 (x86_64) -- -- Host: localhost Database: docto -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
true
33f6e53ed0c8bd03044dd79fc869b048a7c602ea
SQL
SmileBoss/BD_First_Semestr_11-904
/sql/V1__user_create.sql
UTF-8
412
3.4375
3
[]
no_license
CREATE TABLE `teamdb`.`user` ( `username` VARCHAR(16) NOT NULL, `email` VARCHAR(255) NOT NULL, `password` VARCHAR(32) NOT NULL, `create_time` TIMESTAMP NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (`username`, `password`, `email`), UNIQUE INDEX `username_UNIQUE` (`username` ASC) VISIBLE, UNIQUE INDEX `pass...
true
ed068984cecfca8893ef53a5cfc6b552a42a5808
SQL
patricknaka/Nova
/Views Nike/VW_NK_FAT_COTACAO.sql
WINDOWS-1252
1,044
3.09375
3
[]
no_license
SELECT -- O campo CD_CIA foi incluido para diferenciar NIKE(13) E BUNZL(15) --********************************************************************************************************************************************************** -- a tabela ttcmcs008 compartilhada com a 201 tcmcs008.t$rtyp COD_COTACAO, tcmc...
true
2b36bf00c5fdaa5c5c8c88b6fdcd3ba8e7432b41
SQL
cargan/im
/SQL/machines.sql
UTF-8
1,635
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 09, 2014 at 03:25 PM -- Server version: 5.5.37-0ubuntu0.14.04.1 -- PHP Version: 5.5.9-1ubuntu4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
d0890cf3619eba897025b6f3e7fad80350669fa5
SQL
mnukka/sql
/daily_data_table_structure.sql
UTF-8
742
3.71875
4
[]
no_license
-- Table: "DailyData" -- DROP TABLE "DailyData"; CREATE TABLE "DailyData" ( data_id bigint, name text, date_time timestamp without time zone, dayn integer, hour integer, average_buy numeric(20,4), average_sell numeric(20,4), previous_average_buy numeric(20,4), previous_average_sell numeric(20,4), ...
true
bea7c01f660fcd63432a194458303a177c047f1d
SQL
Trevis42/server-EarthBnB
/EarthBnB/src/main/resources/db/migration/V1__main_table.sql
UTF-8
696
2.859375
3
[]
no_license
create table locations ( id bigint not null auto_increment, rating long, numberofratings int, superhost boolean, price long, street varchar(70), city varchar(30), state_territory varchar(30), country varchar(30), international boolean, zip int(5), title varchar(50), host varchar(50), guests int(3), beds int(3), bedroom...
true
968a15bd17f0e9e2d0d4f2922cf88a543b31a6e5
SQL
ihsanmauri/GDP-SQL-Project
/GDP Portfolio Project.sql
UTF-8
2,444
4.125
4
[]
no_license
--Selecting All Data SELECT * FROM GDPPortfolioProject..RealGDP --Looking at Countries on 2019 SELECT * FROM GDPPortfolioProject..RealGDP WHERE year like '2019' ORDER BY country --Highest Population (in millions) in 2019 SELECT country, year, SUM(cast(population_in_millions as int)) as total_population_in...
true
92fd9dad1ec1c92a9207fd6c7dcebfe08f8b7805
SQL
jcanadap/XCoLab
/sql/deployments/archive/deployment-2017-07-10.sql
UTF-8
886
3.15625
3
[ "MIT" ]
permissive
-- COLAB-2087 ALTER TABLE xcolab_ConfigurationAttribute ADD locale VARCHAR(5) DEFAULT '' NOT NULL; CREATE INDEX xcolab_ConfigurationAttribute_name_locale_index ON xcolab_ConfigurationAttribute (name, locale); create table admin_ContestTypeAttribute ( name varchar(75) not null, additionalId bigint not null, loc...
true
8375eb6037f8c43976b5070ee940cf9a6402413a
SQL
blavoie/oracle-scripts
/_blos/st-col-virtual-body.sql
UTF-8
1,643
3.5625
4
[]
no_license
rem rem Displays virtual column expressions rem declare v_owner varchar2(30) := upper('&p_owner'); v_table varchar2(30) := upper('&p_table'); v_ct number ; begin v_ct := 0; select count(1) into v_ct from all_tab_cols c where c.owner = v_owner and c.table_name = v_table a...
true
f0a09016e9437314dd284f69f39c214b89abb75f
SQL
msuliborski/database-tasks
/database-programming/task-lab-05-pl-sql-cursors-and-handling-exceptions.sql
UTF-8
6,083
4.4375
4
[ "MIT" ]
permissive
-- 1. Write a PL/SQL block to print information about a given country. -- Declare a PL/SQL record based on the structure of the countries table. -- Declare a variable v_countryid. Assign CA to v_countryid. -- In the declarative section, use the %ROWTYPE attribute and declare the v_country_record variable of...
true
ddc3e4ae8ba1b4e05d48f188575094f02f419681
SQL
arenadata/gpdb
/gpAux/gpperfmon/src/gpmon/gpperfmon.sql
UTF-8
17,477
3.515625
4
[ "LicenseRef-scancode-rsa-md4", "OLDAP-2.8", "HPND-sell-variant", "BSD-4-Clause-UC", "Zlib", "LicenseRef-scancode-zeusbench", "LicenseRef-scancode-openssl", "bzip2-1.0.6", "LicenseRef-scancode-ssleay-windows", "Beerware", "LicenseRef-scancode-mit-modification-obligations", "LicenseRef-scancode-...
permissive
-- !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -- Gpperfmon Schema -- Note: In 4.x, this file was run as part of upgrade (in single user mode). -- Therefore, we could not make use of psql escape sequences such as -- "\c gpperfmon" and every statement had to be on a sin...
true
3a1ef8d6be204492e3bcf4b5341b3eb1cb974652
SQL
neostreet/poker_session_data
/mttr_nlhe_first_places.sql
UTF-8
370
3.328125
3
[]
no_license
use poker select s.winnings,s.delta,s.num_entries,s.num_hands, concat(s.poker_session_date,s.tournament_letter), st.poker_style_descr,f.poker_flavor_descr from poker_sessions s,poker_styles st,poker_flavors f where s.poker_style = st.poker_style and s.poker_flavor = f.poker_flavor and s.poker_style = 6 and s.poker_fla...
true
8bf1f2ebb5eddb7ea77725aedc91475d7e212e8a
SQL
achmadnabawi/sparkdata
/lel/hive/sql/wine.sql
UTF-8
8,818
3.953125
4
[]
no_license
1.baijiu sample: create table if not exists wlservice.t_lel_baijiu_stat_20170227 as select user_id,item_id,dsn,title,brand_name,price,location,root_cat_name from t_base_ec_record_dev_new where ds ='true'and cat_id in (50013052,50008144) and cast(dsn as int) > 20160301 create table if not exists t_lel_baijiu_stat_c...
true
177f57e5d49dea7548b9349a92e73f027029f490
SQL
kos48/DB_course_project
/course_project_original.sql
UTF-8
14,765
3.96875
4
[]
no_license
-- DROP DATABASE IF EXISTS autoservice; -- CREATE DATABASE autoservice; /* База данных интернет сервиса для автомобилистов, для вывода информации о проведении технического обслуживания при определенном пробеге. * При введении марки, модели и пробега авто, должна предоставить данные о необходимых работах, * з...
true
8f709ad1bd378c96f32c530ec8f03825ea18adc2
SQL
triet1102/OracleSQL
/SQL/validation/validation_fonctions.sql
UTF-8
1,256
3.171875
3
[]
no_license
REM VALIDATION DES FONCTIONS SET SERVEROUTPUT ON SET ECHO ON REM ------ joueurLePlusPopulaire SELECT joueurLePlusPopulaire FROM DUAL; REM ------ jeuLePlusPopulaire DECLARE CodeESRB CHAR(1); Nom VARCHAR2(100); BEGIN CodeESRB := 'T'; SELECT jeuLePlusPopulaire(CodeESRB) INTO Nom FROM ...
true
64a618df2da27aa9feb6b46fc736d312086a1a18
SQL
brycejech/todo-server
/install/queries/to-do.sql
UTF-8
612
3.296875
3
[]
no_license
DROP TABLE IF EXISTS todo_item CASCADE; CREATE TABLE todo_item( id serial NOT NULL PRIMARY KEY, uuid char(36) NOT NULL UNIQUE, list int NOT NULL REFERENCES todo_list(id), title varchar(128) NOT NULL, slug varchar(128) NOT NULL, description...
true
6080886fa1e904b1d7041858220c3c9ad8099759
SQL
qwert8998/Antra
/Assignment2/Assignment2Part2_2.sql
UTF-8
4,593
4.46875
4
[]
no_license
Use Northwind --14. List all Products that has been sold at least once in last 25 years. ;WITH Last25Years AS ( SELECT d.ProductID FROM Orders AS o INNER JOIN [Order Details] AS d ON d.OrderID = o.OrderID WHERE DATEDIFF(YEAR, OrderDate, GETDATE()) < 25 GROUP BY d.ProductID --eliminate duplicated productId ) SEL...
true
167778132bb49049150f96465867a634dfb16d04
SQL
calvin-cs262-fall2020-teamG/predestination-service
/sql/predestination.sql
UTF-8
2,061
3.53125
4
[]
no_license
-- Required SQL tables for the Predestination Service -- @author: Ethan Walters -- @date: 12/11/2020 DROP TABLE IF EXISTS PlayerGame CASCADE; DROP TABLE IF EXISTS CluePlayer CASCADE; DROP TABLE IF EXISTS Game CASCADE; DROP TABLE IF EXISTS Player CASCADE; DROP TABLE IF EXISTS Clue CASCADE; CREATE TABLE Player ( i...
true
f395636c2f3d73eb9a63e3b61124e7c6e86c5bfe
SQL
nss-day-cohort-16/chinook-abbyfleming
/sales_agent_invoices.sql
UTF-8
246
3.25
3
[]
no_license
SELECT Employee.FirstName + " " + Employee.LastName AS `Sales Rep`, Invoice.InvoiceId, Invoice.InvoiceDate FROM Invoice, Employee, Customer WHERE Invoice.CustomerId = Customer.CustomerId AND Customer.SupportRepId = Employee.EmployeeId
true