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
226acb343e3faa694ba82592c0631ad40763eeba
SQL
lab-portofolio/be-fast
/befast.sql
UTF-8
3,324
3.3125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 19 Nov 2018 pada 00.11 -- Versi server: 10.1.31-MariaDB -- Versi PHP: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
true
80c31b132254564af7755702bd116b68fcba5f6a
SQL
CLS-CLS/ClashRoyale-Clan-Stats
/src/main/resources/db/migration/V3.1__checkin.sql
UTF-8
985
3.953125
4
[]
no_license
CREATE SEQUENCE PLAYER_IN_OUT_HIST_SEQUENCE start with 1 increment by 1; CREATE TABLE PLAYER_IN_OUT_HISTORY ( ID BIGINT NOT NULL, TAG VARCHAR(255) NOT NULL, CHECK_IN TIMESTAMP NOT NULL, CHECK_OUT TIMESTAMP, primary key (ID) ); ALTER TABLE PLAYER_IN_OUT_HISTORY ADD CONSTRAINT PLAYER_IN_OUT_HISTORY_...
true
901716aab7fc2b36890a6a5360ec235693c4a28a
SQL
jaskaranpreets7/MEAN-Project
/backend-hero-app/table_script.sql
UTF-8
3,493
3.171875
3
[]
no_license
DROP DATABASE Heroes_DB; CREATE DATABASE Heroes_DB; USE Heroes_DB; CREATE TABLE HeroesDetails( heroId INT(4) PRIMARY KEY AUTO_INCREMENT, heroName VARCHAR (20) NOT NULL, universe VARCHAR(20) NOT NULL, description VARCHAR(200) NOT NULL, specialPower VARCHAR(50)NOT NULL, intId INT(4) KEY AUTO_INCREMENT ); insert into...
true
3c3cddc9afa7ffce35141c6a8cd00e80894ff7ee
SQL
Campanha/digiroad2
/digiroad2-oracle/src/main/resources/db/migration/V147__add_new_column_to_manoeuvre.sql
UTF-8
409
2.984375
3
[]
no_license
ALTER TABLE MANOEUVRE ADD CREATED_BY VARCHAR2(128) ADD CREATED_DATE TIMESTAMP DEFAULT CURRENT_TIMESTAMP NOT NULL; -- Change column properties to acept null ALTER TABLE MANOEUVRE MODIFY (MODIFIED_DATE default (null)); ALTER TABLE MANOEUVRE MODIFY (MODIFIED_DATE TIMESTAMP null); --Copy all modified user info to cr...
true
0e2bfb68a602f671e3949161f72b66cb15d841b5
SQL
kshitijsankesara/LeetCode_SQL
/184. Department Highest Salary.sql
UTF-8
299
4.1875
4
[]
no_license
# Write your MySQL query statement below SELECT d.name AS Department, e.name AS Employee, e.salary AS Salary FROM Employee e JOIN Department d ON e.departmentId = d.id WHERE (departmentId, salary) IN (SELECT departmentId, MAX(salary) FROM Employee GROUP BY departmentId)
true
4863444c8388bd88871d82558c78665b59fa3e36
SQL
marcguyer/cg-yii-demo
/protected/data/users.sql
UTF-8
454
2.546875
3
[]
no_license
CREATE TABLE `user` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `email` VARCHAR(100) NULL DEFAULT NULL, `password` VARCHAR(100) NULL DEFAULT NULL, `first` VARCHAR(50) NULL DEFAULT NULL, `last` VARCHAR(50) NULL DEFAULT NULL, `address` VARCHAR(500) NULL DEFAULT NULL COMMENT 'full billing address', `CG_id` VARCHAR(200)...
true
106fbb239594df4a26772b6ddb1c13ab7217e1f5
SQL
JeremyLep/Recap
/src/SQL/membre.sql
UTF-8
1,608
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : jeu. 16 nov. 2017 à 14:54 -- Version du serveur : 5.7.19 -- Version de PHP : 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
true
b9360dada1e1054068221859ec7fcb52c8f0a09a
SQL
alistairewj/icu-model-transfer
/datasets/eicu/apache-data.sql
UTF-8
627
3.953125
4
[]
no_license
DROP TABLE IF EXISTS tr_apache CASCADE; CREATE TABLE tr_apache AS with aiva as ( select patientunitstayid, apachescore, predictedhospitalmortality -- actual vent days is an integer truncated at 30 , actualventdays::INTEGER as ventdays from apachepatientresult where apacheversion = 'IVa' ) select pat.pat...
true
53f9878bb55cb4e0462c0185c09cb717b0086052
SQL
brylyn/Student-Information-System-Project-in-Webdev-1
/db_sars.sql
UTF-8
2,935
3.390625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 13, 2019 at 04:41 AM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
9819a72da62c7d3d1077d5ea48ff49cc0759f73c
SQL
chenj209/csc343
/A2/self_tests/q6.sql
UTF-8
906
4.28125
4
[]
no_license
SET search_path TO bnb, public; -- Create a view to find all the Requests made by each traveler. CREATE OR REPLACE VIEW TravelerRequest AS SELECT travelerId, listingId FROM BookingRequest GROUP BY travelerId, listingId; -- Create a view to find all the Booking made by each traveler. CREATE OR REPLACE VIEW TravelerBoo...
true
95c3e15d1aacca85b69b99502b963cb125208ef4
SQL
amaanusa/Sqlfiles
/JavaApplication5/src/com/src/SQLFile1.sql
UTF-8
13,353
3.53125
4
[]
no_license
truncate table bizbystate; ALTER TABLE bizbystate AUTO_INCREMENT = 1000; LOAD DATA INFILE 'C:\\myfiles\\ps\\documents\\USA Buisness DB\\extracted\\Buisness - by State DB\\NJ.CSV' INTO TABLE bizbystate FIELDS TERMINATED BY ',' ENCLOSED BY '"' LINES TERMINATED BY '\r\n' IGNORE 1 LINES; truncate table bizbystate_e...
true
c9cb286e6519a177182e1c7e8a9b454c1eed11fb
SQL
gchacaltana/Taller_SQL_Oracle_Live
/Ejercicio_16.sql
UTF-8
363
3.328125
3
[]
no_license
SELECT EXTRACT(YEAR FROM hire_date) "Año", COUNT(employee_id) "Empleados que ingresaron", TO_CHAR(ROUND(SUM(salary),2),'$999,999.00') "Planilla Mensual", TO_CHAR(ROUND(SUM(salary)*12,2),'$9,999,999.00') "Planilla Anual", TO_CHAR(ROUND(AVG(salary),2),'$99,999.00') "Salario Promedio Mensual" FROM hr.employees GROUP BY E...
true
55be29a2aec1b9cc815211b1bdf08376c52e06e0
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day25/select1401.sql
UTF-8
177
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-24T14:01:00Z' AND timestamp<'2017-11-25T14:01:00Z' AND temperature>=7 AND temperature<=35
true
6f4c7d33dd04b9e3a5a9fde1e716010de61f39b3
SQL
sofo4ka/MySQL_Homework
/HW5/Script-6veb.sql
WINDOWS-1251
6,574
4.34375
4
[]
no_license
-- select firstname, lastname, hometown, (select filename from photos where id = u.photo_id) as 'personal_photo', (select count(*) from (select initiator_user_id from friend_requests where target_user_id = u.id and status = 'approved' union select target_user_id from friend_requests where initiator_user_id ...
true
dc9f64f5dd7e43cb653ce9c7549556c05fc16bd7
SQL
nyxz/DB2-BDZ
/createView.sql
UTF-8
5,165
3.34375
3
[]
no_license
SET SCHEMA FN71168; ----------------------------------------------------------- --INFORMACIQ ZA PYTNICITE SYS SYOTVETNATA KARTA ZA NAMALENIE ------------------------------------------------------------ CREATE VIEW PASSENGER_INFO (FULLNAME, CARD_TYPE, RELEASE_DATE) AS SELECT NAME || ' ' || FAMILY_NAME, SUBS_CA...
true
535f94c4c8720b2675f068416ed7925b45be4de8
SQL
yellow1912/zencart-jqlightbox
/docs/install.sql
UTF-8
2,051
2.890625
3
[]
no_license
SET @t4=0; SELECT (@t4:=configuration_group_id) as t4 FROM configuration_group WHERE configuration_group_title= 'JQLightbox'; DELETE FROM configuration WHERE configuration_group_id = @t4; DELETE FROM configuration_group WHERE configuration_group_id = @t4; INSERT INTO configuration_group VALUES ('', 'JQLightbox', 'Set...
true
ff1895e992871de2e4561eecda3d07b2aec51944
SQL
bikle/rluck
/jumpy_trend/t22.sql
UTF-8
6,188
3.765625
4
[]
no_license
-- -- t22.sql -- -- I use this script to look at Forex data which has a 10 minute duration between each datapoint. SET LINES 66 DESC dukas10min SET LINES 166 SELECT pair ,MIN(ydate) ,COUNT(*) ,MAX(ydate) FROM dukas10min GROUP BY pair ORDER BY pair / CREATE OR REPLACE VIEW tr10 AS SELECT pair -- ydate is granular do...
true
7ee0e87ed39640b2c982fcfcef10a5ad6f56b8f0
SQL
Fsit-Sharath/school_model
/school.sql
UTF-8
6,692
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 21, 2018 at 06:26 PM -- Server version: 5.7.21-0ubuntu0.16.04.1 -- PHP Version: 7.0.28-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_C...
true
8de45293b9ff94b5967746b20bc6595c2e5ff0e1
SQL
NachiMK/nodejs
/data-adhoc/postgressql/UpdatePlanServiceAreas/OneOff/Alter_PlanServiceAreas.sql
UTF-8
682
2.96875
3
[ "MIT" ]
permissive
SELECT * FROM "PlanServiceAreas" WHERE 1 = 0 OR "IssuerID" IS NULL OR "HiosPlanID" IS NULL OR "Year" IS NULL OR "ServiceAreaID" IS NULL OR "State" IS NULL ; ALTER TABLE "PlanServiceAreas" ALTER COLUMN "IssuerID" SET NOT NULL; ALTER TABLE "PlanServiceAreas" ALTER COLUMN "HiosPlanID" SET NOT NULL; ...
true
10f03039d51ee619b0aec13d44305d534411e16b
SQL
JHn-Ndrshnss/uyut-point-of-sale
/sales.sql
UTF-8
1,934
3.296875
3
[]
no_license
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; CREATE TABLE `categories` ( `category_id` int(11) NOT NULL, `category` varchar(100) CHARACTER SET utf8mb4 COLLATE utf8mb4_bin NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; CREATE TABLE `products` ( `produ...
true
b148c2d9ed3e0833947e52701bba30c87cd16911
SQL
Chandimalmit/MyClinic
/web_module_db.sql
UTF-8
3,120
3.203125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 14, 2018 at 04:25 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.0.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
a7fbb50935d47aa0f8e072b849840b7110ac74a3
SQL
gaoxiangmax/repo2
/my_q8/Function/Proc_Board_ShipmentsTrends_Product.sql
UTF-8
4,086
4.09375
4
[]
no_license
/* 看板-出货趋势-产品 */ delimiter $ drop procedure if exists Proc_Board_ShipmentsTrends_Product $ create procedure Proc_Board_ShipmentsTrends_Product() begin declare iRows int; declare sUnit varchar(10); declare sDate datetime; declare eDate datetime; /*建内存表*/ create TABLE if not exists Board_Shipment...
true
213a2bd203b3c53501b17d9d809cfe3a7c2de881
SQL
SlavaFeskov/Mentoring
/Task3/Homework/Northwind/Scripts/1_1/3.sql
UTF-8
245
3.453125
3
[]
no_license
SELECT o.OrderID as [Order Number], CASE WHEN o.ShippedDate IS NULL THEN 'Not Shipped' ELSE CONVERT(nvarchar, o.ShippedDate, 23) END as [Shipped Date] FROM Northwind.Orders as o WHERE o.ShippedDate > '1998-05-06' OR o.ShippedDate IS NULL
true
909c1815c899c9dff26db9c0f3afb4f7a0ccfcdf
SQL
luanmarquess/AutoPlay
/bancoDeDados/MySQL_WorkBench/NoSQL/Query_Json/select_jason_filtro.sql
UTF-8
2,452
3.28125
3
[]
no_license
-- continuação última aula SELECT REPLACE(JSON_EXTRACT(`JSON`,"$.Cpf"),"""","") AS CPF, REPLACE(JSON_EXTRACT(`JSON`,"$.Data_Nascimento"),"""","") AS DATA_NASCIMENTO, REPLACE(JSON_EXTRACT(`JSON`,"$.Primeiro_Nome"),"""","") AS PRIMEIRO_NOME, REPLACE(JSON_EXTRACT(`JSON`,"$.Nome_Meio"),"""","") AS NOME_MEIO, REPLACE(JSON_...
true
8422c3f9017c905d69fc72f7c60db93c981616bf
SQL
rpatricio-souza/Programacao_de_Banco_de_Dados
/2020-06-08_cube_rollup_grouping/1. Cria_tablespace_usuario_Desktop.sql
ISO-8859-2
531
2.609375
3
[ "MIT" ]
permissive
--------------------- -- CRIA TABLESPACE -- --------------------- CREATE TABLESPACE TS_2020_06_08 DATAFILE 'D:\Docs\Fatec\Programacao_de_Banco_de_Dados\2020-06-08_cube_rollup_grouping\TS_2020_06_08.dbf' SIZE 1M AUTOEXTEND ON; ------------------ -- CRIA USURIO -- ------------------ CREATE USER USER_GROUPING IDENTIF...
true
2471c6e04f4d28311f303bbed6481f73d8372658
SQL
Chavao/agile2go
/src/main/resources/sql/scripts.sql
UTF-8
2,437
2.71875
3
[]
no_license
-- user insert into scrum.user (NAME, LOGIN, PASSWORD, ROLE) values ('Rafael Jesus', 'adm', '123', 'MASTER'); insert into scrum.user(NAME, LOGIN, PASSWORD, ROLE) values ('Barbara Veloso', 'admin', '123', 'MASTER'); -- project insert into scrum.project (NAME, DESCRIPTION, LAST_DATE, COMPANY) values ('Vitae Featurek...
true
77a4991f51ef1ab8c75af0ade9ed7f7da88ee874
SQL
mrjadav/q4-hack
/packages/pkg_operation.sql
UTF-8
155,572
2.90625
3
[]
no_license
CREATE OR REPLACE PACKAGE pkg_operation IS PROCEDURE martPerformanceReport; END pkg_operation; / CREATE OR REPLACE PACKAGE BODY pkg_operation IS PROCEDURE martPerformanceReport AS l_sla_date NUMBER; l_current_hour VARCHAR2 (5) := TO_CHAR (SYSDATE, 'HH24'); --l_da...
true
b1baded8b0e7b0ec3970669b63e1ca4afdb4a6b1
SQL
whitewise95/megaitacademy_study
/011/11_web_basic_languages/WebContent/04_MYSQL/mysqlEx09.sql
UTF-8
784
3.40625
3
[]
no_license
/* # 날짜 관련 함수 1) NOW() , SYSDATE() , CURRENT_TIMESTAMP() : 날짜와 시간관련 정보를 가져온다. 2) CURRENT_DATE() , CURDATE() : 날짜관련 정보를 가져온다. 3) CURRENT_TIME(), CURTIME() : 시간관련 정보를 가져온다. # 날짜 형식 포멧하기 - 포맷으로 지정한 형식으로 변환된 날짜 및 시간 값을 가져온다. */ SELECT NOW(), ...
true
e3e78c3504aab48cb9193dd4936d950865b84d82
SQL
KingCobra90/testwork.local
/testwork.sql
UTF-8
1,571
3.34375
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!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 utf8 */;...
true
add5515acb790f7a527d13b7209f59ea5f454b78
SQL
BHerreras/bamazon
/schema.sql
UTF-8
1,467
3.234375
3
[]
no_license
create database bamazon_db; USE bamazon_db; CREATE TABLE products ( id INT NOT NULL AUTO_INCREMENT primary key, product_name VARCHAR(45) NULL, department_name varchar(30) NULL, price INT NULL, stock_quantity INT not null ); INSERT INTO products (product_name, department_name, price, stock_quantity) VALUES ...
true
e7fe159ebd2a66ec39cc501578cc943f0ff251ed
SQL
Oleiva/geohash-covid
/src/main/resources/db/migration/V1__init.sql
UTF-8
443
3.625
4
[ "Apache-2.0" ]
permissive
CREATE TABLE CITY( CITY_ID SERIAL PRIMARY KEY, NAME VARCHAR(255) NOT NULL ); CREATE TABLE REALTY( REALTY_ID SERIAL PRIMARY KEY, LATITUDE NUMERIC(14, 12) NOT NULL, LONGITUDE NUMERIC(15, 12) NOT NULL, GEOHASH VARCHAR(10) NOT NULL, PRICE NUMERIC(19, 2) NOT NULL, CITY_ID ...
true
de107f515808d2e47922f9927350927f8c85ce26
SQL
chen1649chenli/Beyond-LeetCode-SQL
/LeetCode/others/178_Rank_Scores.sql
UTF-8
352
4.09375
4
[ "MIT" ]
permissive
-- MS SQL SELECT Score ,DENSE_RANK() over (ORDER BY Score DESC) AS Rank FROM scores ORDER BY Score DESC; -- MYSQL SELECT Scores.Score, Rank FROM Scores Left join (Select Score, @Rank:=@Rank+1 as Rank From (Select Distinct Score From Scores Order by Score DESC) S1, (Select @Rank:=0) var) S2 on Scores.Score=S2.S...
true
bd36c6a0d1cf8a882d288b0ecd4c59bb8fd56ad1
SQL
dronzer20/Hate_speech_virality
/3. Identify Trolls & Victims/Troll_comments.sql
UTF-8
1,708
3.609375
4
[]
no_license
SELECT m.authorChannelId as troll_channel_id, m.author as troll_name, m.comment_id, t.number_channels_trolled as victim_channels, t.total_number_toxic_comments as total_toxic_comments_by_troll, m.video_id, m.channel_id as victim_channel_id, m.comment_date, case when m.comment_hour_of_the_day in (18,19...
true
eab0d26c683e1d83e4eceac882c4e1abd47cb639
SQL
hazemsabdallah/Parch_and_Posey_Sales_Data--SQL
/Queries/SQL CTEs.sql
UTF-8
3,823
4.625
5
[]
no_license
/*average number of events a day for each channel*/ SELECT channel, AVG(count) AS traffic_per_day FROM (SELECT DATE_TRUNC('day', occurred_at) AS day, channel, COUNT(*) FROM web_events GROUP BY day, channel) AS sub GROUP BY channel ORDER BY traffic_per_day DESC; SELECT COUNT(*) / COUNT(DISTINCT DATE_TRUNC('...
true
ae51fc66e504b248f5bc2b75b03aed5d36240d1d
SQL
SezaDio/boloku_id
/asset/database/pendaftar.sql
UTF-8
2,025
2.875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 14, 2017 at 03:05 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
c6069f2e9d17720532f95af07ddaae357ac3c152
SQL
designs2/attribute_translatedurl
/contao/config/database.sql
UTF-8
886
2.75
3
[]
no_license
-- ********************************************************** -- * * -- * IMPORTANT NOTE * -- * * -- * Do not import this file manually but use the Contao * -- * insta...
true
99f0ce600e1c95fb60ebbdba25f668816f2622eb
SQL
ChaoLiou/DBDocTemplateGenerator
/SqlCrawler/Sql/Parameter.sql
UTF-8
304
2.734375
3
[]
no_license
SELECT object_name(object_id) AS ParentName , parameter_id AS 'Order' , name AS 'Name' , type_name(user_type_id) AS 'Type' , max_length AS 'Size' , Precision , Scale , is_output as IsReturnParameter FROM sys.parameters where object_id in (select object_id from sys.objects o where O.is_ms_shipped = 0)
true
3bb6c5d1ca79a2508e2c3b4973b3e52acb858a2a
SQL
guyihan-zb/xiangmu
/ordersys/db/init.sql
UTF-8
2,455
3.40625
3
[ "Apache-2.0" ]
permissive
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2021/7/31 11:52:12 */ /*==============================================================*/ DROP database IF EXISTS `ordersysdb`; create DATAB...
true
c57db62eb1c98684c11d3815f7cc56fd263c3315
SQL
samszo/generateur
/bdd/query/conjug-terms.sql
UTF-8
192
3.4375
3
[]
no_license
select count(*) nb, t.id_conj, c.modele, t.lib, t.num, c.id_dico FROM gen_terminaisons t inner join gen_conjugaisons c on c.id_conj = t.id_conj group by t.id_conj, c.id_dico having nb <> 38
true
642d7f6cdc38c7292407430ff4b796f6122ed2b3
SQL
Qogir/gitskills
/项目文档/供应商模块/数据库备份/auths.sql
UTF-8
37,310
3.5625
4
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50723 Source Host : localhost:3306 Source Database : auths Target Server Type : MYSQL Target Server Version : 50723 File Encoding : 65001 Date: 2019-07-17 11:14:26 */ SET FOREIGN_KEY_CHECKS=0; -- ---...
true
7cf024a515c6f8d8ecfec36f9b26b3ecf6d68896
SQL
ZhiQiangChu/legend-app
/doc/design/发布/V2.2_update.sql
UTF-8
1,284
2.96875
3
[]
no_license
-- ---------------------------- -- dp_user -- ---------------------------- use dp_user; -- 更新 `dp_base_user_info`,新增两个字段 ALTER TABLE `dp_base_user_info` ADD COLUMN `user_type` tinyint(1) NOT NULL DEFAULT 0 COMMENT '0:注册用户 1:组织分配用户' AFTER `password_salt`, ADD COLUMN `pwd_modify` tinyint(1) NOT NULL DEFAULT 0 COMMENT...
true
d4a2c6dd80bb0184e8ccc4b703237b42d2cd5f71
SQL
blt328/oracle_blt
/9-oracle_union和unionall.sql
GB18030
708
3.671875
4
[]
no_license
--unionвظУͬʱĬϹ select user_no, dept_code, sales_amt from t_sales union select user_no, dept_code, sales_amt from t_sales; select sales_amt, user_no, dept_code from t_sales union select sales_amt, user_no, dept_code from t_sales; --unionвظ select user_no, dept_code, sales_amt from t_sales uni...
true
c2c6777cb8f0e2eda198f160e66dd0d9882aacef
SQL
tsdandan/yomerecipe
/WEB-INF/classes/sqls/get_recipe_by_user.sql
UTF-8
369
3.109375
3
[]
no_license
select recipe.ID, recipe.NAME, recipe.STEP, recipe.COOKLEVEL, recipe.COOKTIME, recipe.DESCRIPTION, recipe.IMG_URL, recipe.IS_DELETED, recipe.CREATED_AT, recipe.CREATED_ID, recipe.UPDATED_AT, recipe.UPDATED_ID from recipe inner join user_recipe on recipe.id = user_recipe.recipe_id where recipe.is_deleted = 0...
true
f261e2c102a68002b9ec3bcf3f31f9cdd98eee59
SQL
oridonner/yodiz-reports
/.yodiz/db_objects/01_tables/02_accumulative/tbl_userstories_daily.sql
UTF-8
562
2.578125
3
[]
no_license
DROP TABLE IF EXISTS userstories_daily CASCADE; CREATE TABLE userstories_daily ( id SERIAL, date DATE, userstory_id INT, userstory_title TEXT, status TEXT, tasks_total INT, total_tasks_unplanned INT, ...
true
4aa27b535551932c6f6790cfe9951eb2f1b0cdf2
SQL
angela-ramirez/gestionarEstudiante
/GestionarEstudiante/bd/dbestudiante.sql
UTF-8
3,350
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 10-05-2015 a las 01:14:32 -- Versión del servidor: 5.6.17 -- Versión de PHP: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
c63d2d88c14632fd051c019113f4624220fae3e4
SQL
lamontblack1/classProject2
/models/seeds.sql
UTF-8
5,972
2.984375
3
[]
no_license
USE flcceDB; INSERT INTO forMonths(shortMonth, longMonth, createdAt, updatedAt) VALUES ("Jan","January", CURRENT_TIMESTAMP,CURRENT_TIMESTAMP), ("Feb","February", CURRENT_TIMESTAMP,CURRENT_TIMESTAMP), ("Mar","March", CURRENT_TIMESTAMP,CURRENT_TIMESTAMP), ("Apr","April", CURRENT_TIMESTAMP,CURRENT_TIMESTAMP), ("May","May...
true
1e161db0d2df5df214ba0b02f8ada00570e65c2d
SQL
davoodhanifi/IrPS
/Projects/Database/Sources/Tables/Accounting.Transaction.sql
UTF-8
813
3.203125
3
[]
no_license
CREATE TABLE [Accounting].[Transaction]( [Id] [int] IDENTITY(1,1) NOT NULL, [FromAccountId] [int] NOT NULL, [ToAccountId] [int] NOT NULL, [Amount] [decimal](19,4) NOT NULL, [DateTime] [datetime] NOT NULL, [Description] [nvarchar](MAX) NULL, [TypeId] [int] NOT NULL, [OnlinePaymentId] [int] NULL, [RecordVersion]...
true
48cfd583a4a58645b62588b91619b073000d318f
SQL
CoderDojo/cp-dojos-service
/scripts/database/pg/migrations/006.do.add-user-invites.sql
UTF-8
241
2.90625
3
[ "MIT" ]
permissive
DO $$ BEGIN BEGIN ALTER TABLE cd_dojos ADD COLUMN user_invites json[]; EXCEPTION WHEN duplicate_column THEN RAISE NOTICE 'column user_invites already exists in cd_dojos.'; END; END; $$
true
9d54652b7add7a006ebd41c7928d6e453e474c38
SQL
ferenckollar/ferenckollar
/week-01/day-01/exercises.sql
UTF-8
4,583
4.34375
4
[]
no_license
/* Modify this query so that the GROUP BY and the HAVING clauses also use the [Order ID] column alias. What happens? Why? */ SELECT OrderID AS [Order ID], SUM(Quantity) AS Sum_Qty FROM Sales.OrderLines WHERE UnitPrice > 10 GROUP BY OrderID HAVING OrderID IN (46, 47, 48) ORDER BY [Order ID] ASC; -- Invalid Colu...
true
206c5bea586b6ff2932e49df8630bbb6fc991542
SQL
sa123455/CFLMS-AliuSabira-CodeReview-09
/database with sql query/myQueries.sql
UTF-8
2,287
4.03125
4
[]
no_license
--1.Count home many mails were sent from vienna-- SELECT count(address.city) FROM drop_off INNER JOIN address ON address.address_id=drop_off.fk_address_id WHERE address.city='vienna'; --2.Count home many mails were sent from Linz-- SELECT count(address.city) FROM drop_off INNER JOIN address ON address.address_id=drop_...
true
c3355afa65eaf8697a5ec7136f98535f28f42bb9
SQL
ToM-Korn/Tournament-Planner
/tournament.sql
UTF-8
5,105
4.21875
4
[ "CC0-1.0" ]
permissive
-- Table definitions for the tournament project. -- -- Put your SQL 'create table' statements in this file; also 'create view' -- statements if you choose to use it. -- -- You can write comments in this file by starting them with two dashes, like -- these lines here. -- LEGEND -- - TOURNAMENT -- a tournament i thi...
true
e2913eb6049f640f1c45fb168970508eccc5281f
SQL
eshomali/CDP-database-web-portal
/SQL scripts/Products.sql
UTF-8
582
2.515625
3
[]
no_license
CREATE TABLE Products ( productID int unsigned NOT NULL auto_increment UNIQUE, productType varchar(255) NOT NULL, PRIMARY KEY (productID) ); INSERT INTO Products (productType) values ('E-Teller'), ('E-Manage'), ('E-Sign'), ('Thermal'), ('Laser'), ('Email Encryption, Hosted'), ('Email Encryption, Appliance...
true
7967698298a4bd0c82cc38a738d3e106d8b29e3d
SQL
MakisAk/Database-in-XML-Format
/products.sql
UTF-8
1,599
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Φιλοξενητής: 127.0.0.1:3306 -- Χρόνος δημιουργίας: 22 Σεπ 2021 στις 17:56:43 -- Έκδοση διακομιστή: 5.7.31 -- Έκδοση PHP: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
true
9b974a68620dfa48afc40b5cff94faa4953516f7
SQL
Symplicity/subdivision-list
/data/it/mysql/subdivisions_NL.mysql.sql
UTF-8
1,884
2.796875
3
[ "MIT" ]
permissive
CREATE TABLE subdivision_NL (id VARCHAR(6) NOT NULL, name VARCHAR(255) NOT NULL, level VARCHAR(64) NOT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB; INSERT INTO `subdivision_NL` (`id`, `name`, `level`) VALUES ('NL-AW', 'Aruba', 'country'); INSERT INTO `subdivision_NL` (`id`...
true
86f0fec9c3919c0472a44e9d8495ea166ed4df83
SQL
swazinick1/bamazon
/products.sql
UTF-8
2,419
2.796875
3
[]
no_license
DROP DATABASE IF EXISTS bamazon_db; CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products ( id INTEGER AUTO_INCREMENT NOT NULL, product VARCHAR(30) NOT NULL, department VARCHAR(30) NOT NULL, price INTEGER, instock INTEGER, PRIMARY KEY(id) ); INSERT INTO products (product, department, price, in...
true
05d0ff67e409c1649745fce8de873a3d5503901f
SQL
rainmannyc/Pewlett-Hackard-Analysis
/Analysis Projects Folder/Pewlett-Hackard-Analysis Folder/Queries/Employee_Database_challenge.sql
UTF-8
4,283
4.28125
4
[]
no_license
--Creating tables for PH-EmployeeDB CREATE TABLE departments ( dept_no VARCHAR(4) NOT NULL, dept_name VARCHAR(40) NOT NULL, PRIMARY KEY (dept_no), UNIQUE (dept_name) ); CREATE TABLE employees ( emp_no INT NOT NULL, birth_date DATE NOT NULL, first_name VARCHAR NOT NULL, last_name VARCHAR NO...
true
175178761eedb1f65b9a936d8c4607f845330d69
SQL
JustalK/Covid-19-API-Philippines-DOH
/src/Database/sql/update_summary.sql
UTF-8
832
2.890625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 02, 2020 at 03:01 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; -- -- Database: `covid19_api_philippin...
true
3cb755ac25750515bbe182439b39dc09a28af7d9
SQL
razor08/DBMS-Lab
/PartA/3a.sql
UTF-8
1,259
3.78125
4
[]
no_license
create table boat(bid varchar(20), bname varchar(20), colour varchar(20), primary key(bid)); create table sailor(sid varchar(20), sname varchar(20), age varchar(20), rating varchar(20), primary key(sid)); create table reserves(bid varchar(20), sid varchar(20), day varchar(20), primary key(bid, sid), foreign key(bid) re...
true
ca20735a1232624e10025e3e36bcec2242361f61
SQL
Chopfl/SalonSamochodowy
/SalonSamochodowy/Hr/Tables/Zespol.sql
UTF-8
214
2.5625
3
[]
no_license
CREATE TABLE [Hr].[Zespol] ( [ID] INT IDENTITY (1, 1) NOT NULL, [Nazwa] VARCHAR (255) NOT NULL, [MiejscePracy] VARCHAR (255) NULL, PRIMARY KEY CLUSTERED ([ID] ASC) );
true
2bf9b072c286191b8190a40ef1ccec31ce5dab8b
SQL
OlafMd/MedCon1.0
/mm-libs/dbaccess/Level 3/CL3_Account/Atomic/Retrieval/SQL/cls_Get_DisplayName_of_Account.sql
UTF-8
502
3.375
3
[]
no_license
Select usr_accounts.USR_AccountID, cmn_bpt_businessparticipants.CMN_BPT_BusinessParticipantID, cmn_bpt_businessparticipants.DisplayName From usr_accounts Inner Join cmn_bpt_businessparticipants On usr_accounts.BusinessParticipant_RefID = cmn_bpt_businessparticipants.CMN_BPT_BusinessParticipantID ...
true
6a7b5f9c40fee9db5e2f9e9835587ebc451ab8e5
SQL
Omkar-Ranadive/CPDP
/checkpoint-1/src/Q2.sql
UTF-8
1,075
3.984375
4
[]
no_license
DROP TABLE IF EXISTS t1; CREATE TEMP TABLE t1 AS ( select id, 'Taser' as w_type from trr_weapondischarge where weapon_type like '%TASER%' or weapon_type_description like '%TASER%' or firearm_make like '%TASER%' union select id, 'Gun' as w_type from trr_weapondischarge where weapon_type = 'RIFLE' or weapon_type =...
true
67af5247bdb1e877bdec6d20f6ef0870ee4922c0
SQL
flrcole/ETL-Project
/Query.sql
UTF-8
410
3.375
3
[]
no_license
-- Query to check successful load SELECT * FROM crime_data; SELECT * FROM housing_data; -- Joins the tables SELECT housing_data.fsa, crime_data.Major_Crime_Indicators, crime_data.Neighbourhood, housing_data.Bedroom, housing_data.Bathroom, housing_data.Den, housing_data.Address, housing_data.Price FROM housing_data R...
true
88df92eb6f3f7127221ff7f7bebe01fc0598aff1
SQL
moutainhigh/server-3
/sql/eshop_order/20170628购物车表.sql
UTF-8
307
2.765625
3
[]
no_license
-- 添加门店id用于跳转到商家首页 ALTER TABLE `shopping_cart` ADD COLUMN `merchant_store_id` bigint(20) NOT NULL AFTER `merchant_id`; -- 添加唯一索引用于查询 ALTER TABLE `shopping_cart` ADD UNIQUE INDEX `uk_member_id_product_model_id` (`member_id`, `product_model_id`) USING BTREE ;
true
2838c3e7779bcbbeba5454aaf46eab2af72c6ec5
SQL
m2a9x45/servert
/DB/mysql-servert/servert_products.sql
UTF-8
2,699
2.96875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `servert` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `servert`; -- MySQL dump 10.13 Distrib 8.0.0-dmr, for Win64 (x86_64) -- -- Host: localhost Database: servert -- ------------------------------------------------------ -- Server version 8.0.0-dmr-log /*!40101 SET @OLD_CHARACTER_S...
true
7995c20b044207b74ccb63b376ac6099ff18fb54
SQL
AndyFlower/web-back
/myweb/web/sql/USER_INFO.sql
UTF-8
926
3.9375
4
[]
no_license
-- Create table create table USER_INFO ( ID VARCHAR2(50) not null, USER_NAME VARCHAR2(50), EMAIL VARCHAR2(30), USER_PASSWORD VARCHAR2(10) ) tablespace USER_DATA pctfree 10 initrans 1 maxtrans 255; -- Add comments to the columns comment on column USER_INFO.ID is '主键'; comment on c...
true
1725bfe91cdb453f9e01a18808144f16ef05be28
SQL
salviolorenzo/pgPromise
/blog/seed.sql
UTF-8
499
2.609375
3
[]
no_license
insert into users(username, name) values('thatoneguy01', 'john smith'), ('thisuser02', 'jane doe'), ('anotheruser', 'alan alanson'); insert into posts (title, users_id) values('i like this blog', 1), ('i''m that one guy', 1), ('how to cry quietly', 1), ('everyone thinks my name...
true
5476fe3699e79278d313174e825949fbc34b782e
SQL
vannguyen2802/EDP_03
/SQL/Assignment 1/Testing_System_Assignment_2.sql
UTF-8
3,094
4.03125
4
[]
no_license
DROP DATABASE IF EXISTS practice_code; CREATE DATABASE practice_code; USE practice_code; -- create table:Department DROP DATABASE IF EXISTS Department; CREATE TABLE Department ( departmentID TINYINT UNSIGNED PRIMARY KEY, departmentname VARCHAR(20) ); -- create table:Position DROP DATABASE IF EXISTS Position; CR...
true
61ab4afd906f2ba1aaa31518908c2f3fe86b7cdb
SQL
filosoff13/prices
/prices.sql
UTF-8
3,884
3.546875
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Час створення: Сер 08 2018 р., 23:08 -- Версія сервера: 5.6.38 -- Версія PHP: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER...
true
73bd11a135af1f036cbf9bd4b4f779eaf14a9179
SQL
PlatformTwo/CS143
/Proj_1B/create.sql
UTF-8
369
3.03125
3
[]
no_license
TEE foo.txt; DROP TABLE IF EXISTS Movie, Actor, Director, MovieGenre, MovieDirector, MovieActor, Review, MaxPersonID, MaxMovieID; CREATE TABLE Movie(id INT, title VARCHAR(100), year INT, rating VARCHAR(10), company VARCHAR(50)); LOAD DATA LOCAL INFILE '~/data/movie.del' INTO TABLE Movie FIELDS TERMINATED BY ',' OPTIONA...
true
962b643a9f8446021185f52e45c176ce42531e81
SQL
JavaDengJH/ssmPratice
/SSM_1/WebRoot/WEB-INF/classes/customer.sql
UTF-8
2,558
2.890625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.19, for Win64 (x86_64) -- -- Host: localhost Database: db_HanShanHotel -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
true
103781e2b7de47cc135f1c2713544f473214de57
SQL
ory/kratos
/persistence/sql/migrations/sql/20230405000000000001_create_session_token_exchanges.up.sql
UTF-8
757
3.484375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE session_token_exchanges ( "id" UUID NOT NULL PRIMARY KEY, "nid" UUID NOT NULL, "flow_id" UUID NOT NULL, "session_id" UUID DEFAULT NULL, "init_code" VARCHAR(64) NOT NULL, "return_to_code" VARCHAR(64) NOT NULL, "created_at" timestamp NOT NULL, "updated_at" timestamp NOT NULL...
true
44fca32767bc2edf790dbca8af6402fc95f28ed5
SQL
Pipekung/mi-yii2
/db/mi-yii.sql
UTF-8
17,722
2.921875
3
[ "BSD-3-Clause" ]
permissive
# ************************************************************ # Sequel Pro SQL dump # Version 4529 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.42) # Database: mi-yii # Generation Time: 2016-03-27 09:55:42 +0000 # ************************************************...
true
f22b37a20972bd817fde72c822d100d4bfe8dccc
SQL
yashgt/raloa1
/code/database/trip.sql
UTF-8
1,496
3.609375
4
[]
no_license
SELECT T.route_id as route_id ,C.calendar_name as service_id ,trip_id as trip_id ,case T.direction when 0 then CONCAT( '"' , case F.fleet_id when 6 then "PRIVATE:" else "" end /*,coalesce(replace(S1.name, C1.old, C1.new), S1.name) , ' to '*/ ,coalesce(replace(S2.name, C2.old, C2.new), S2.name) , coalesce(con...
true
e4b626a84018cab3f6f72ff41878123e485937bb
SQL
osufinaid/FA_Processes
/roc1010.sql
UTF-8
7,734
2.953125
3
[]
no_license
REM ROC1010 REM Create Population for Fin Aid Award Letters REM ********************************************************************** REM Purpose: REM REM Create Population for Fin Aid Award Letters REM REM ********************************************************************** REM Parameters REM 2 aid year REM 3 ...
true
a3b773caa9771f9b6aeafe65883e37a1b500acdb
SQL
craig-gaskill/swkroa-service
/database/views/v1/primary_address.sql
UTF-8
441
3.375
3
[]
no_license
CREATE OR REPLACE VIEW primary_address AS SELECT ba.parent_entity_id ,ba.parent_entity_name ,a.address_type_cd ,a.address1 ,a.address2 ,a.address3 ,a.city ,a.state_code ,a.country_code ,a.postal_code ,IF(LENGTH(a.postal_code) > 5, CONCAT(LEFT(a.postal_code, 5), "-", MID(a.posta...
true
4d3298ad06ff460c3761369025c597f083377b0c
SQL
TheGreenHacker/IntroToSQL
/Examples/insert.sql
UTF-8
351
2.765625
3
[]
no_license
USE coffee_store; SHOW TABLES; DESC products; INSERT INTO products (name, price, coffee_origin) VALUES ('Espresso', 2.50, 'Brazil'), ('Macchiato', 3.00, 'Brazil'), ('Cappuccino', 3.50, 'Costa Rica'), ('Latte', 3.50, 'Indonesia'), ('Americano', 3.00, 'Brazil'), ('Flat White', 3.50, 'Indonesia'), ('Filter', 3.00, 'In...
true
5e20e9db395197047d70e5ef0f3bef519ed6a19b
SQL
sinjor/xiaohua
/hive_xiaohua_high_freq_1m.sql
UTF-8
8,022
3.703125
4
[]
no_license
/* 1.客户号短期多次获额 */ use ${hiveconf:source_database}; drop table if exists cid_apply_derived_1m_hf; create table cid_apply_derived_1m_hf as select t1.event_cid, count(t1.event_cid) as cid_apply_1m_hf from (select event_cid, collector_tstamp from cid_first_loan) t1 left outer j...
true
d4c6bb59b3502dd1f79cd076df307960382e91b1
SQL
VelizarVeli/SoftUni-Software-Engineering
/03.C#DBFundamentals/01.Databases Basics - MS SQL Server/ExamPreparations/2017.04.24WashingMachine/ExamPrepWashingMachine/01.DDL.sql
UTF-8
1,762
4.09375
4
[]
no_license
CREATE TABLE Clients( ClientId INT PRIMARY KEY IDENTITY, FirstName VARCHAR(50) NOT NULL, LastName VARCHAR(50) NOT NULL, Phone CHAR(12) NOT NULL ) CREATE TABLE Mechanics( MechanicId INT PRIMARY KEY IDENTITY, FirstName VARCHAR(50) NOT NULL, LastName VARCHAR(50) NOT NULL, Address VARCHAR(255) NOT NULL ) CREATE TABLE Mod...
true
c0e2a515be115b8dd12915ec747b996601bfa2cf
SQL
abdulthebutcher2014/PackageDelivery
/packagedeliverydb.sql
UTF-8
2,303
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 01, 2020 at 06:22 PM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
375bd1fc50a1290c1f29fcb9d0d248871a847335
SQL
yujiah-github/learning-php-by-book
/210924 Learning Chapter 10/chapter 10/InsertDataAfterTableProduce/member.sql
UTF-8
1,521
2.921875
3
[]
no_license
create table member( num int not null auto_increment, id char(20) not null, name char(20) not null, gender char(1), post_num char(8), address char(80), tel char(20), age int, primary key(num) ); insert into member(id, name, gender, post_num, address, tel, age) values ('yjhwang', '황영주', 'M', '100-011', '서울시 중구 충무로1가'...
true
8f41628356e271da7769cd20f5634ceeb000acf5
SQL
Starzeco/Oracle-SQL
/Lista2/zad31_sql.sql
UTF-8
699
3.125
3
[]
no_license
CREATE VIEW KOTY_SPOZ AS SELECT B.NAZWA "NAZWA_BANDY", AVG(NVL(PRZYDZIAL_MYSZY, 0)) "SRE_SPOZ", MAX(NVL(PRZYDZIAL_MYSZY, 0)) "MAX_SPOZ", MIN(NVL(PRZYDZIAL_MYSZY, 0)) "MIN_SPOZ", COUNT(PSEUDO) "KOTY", COUNT(MYSZY_EXTRA) "KOTY_Z_DOD" FROM KOCURY K JOIN BANDY ...
true
09f4476208277a77777c71e40e525ad541a8bf96
SQL
Murolando/CheckReaderServer
/stroika (1).sql
UTF-8
7,490
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Апр 25 2021 г., 13:30 -- Версия сервера: 10.4.18-MariaDB -- Версия PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
e5f173a09afeb835ecd95639199899c444ec5f7c
SQL
lucasapaza98/tecnolibre
/bd/registros.sql
UTF-8
1,365
2.671875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-10-2020 a las 02:07:52 -- Versión del servidor: 10.4.11-MariaDB -- Versión de PHP: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
cc44d7c9472cace23d24dfbcc7894d79211932d5
SQL
Paper-SSheets/COMS363Project
/queries/q11.sql
UTF-8
1,304
4.59375
5
[]
no_license
/* Q11 */ /* Find k tweets (with the given hashtag) posted by republican (GOP) or democrat members of a given state in a given month of a given year. Show the tweet text, the hashtag, the screen name of the posting user, and the users’ party Input: Values of k, state (e.g., Ohio), month, year, hashtag Rati...
true
c2247e8c54f03516301ea953ca8812e7073e29e7
SQL
arbipram/laravel-admin-crud
/database/laravel_admin_crud.sql
UTF-8
4,672
3
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 27, 2019 at 07:28 AM -- Server version: 10.1.37-MariaDB -- PHP Version: 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
1aea6ed83ed66db9d5712d206265917d0786a4d1
SQL
Hangeony/jsp20201103
/WebContent/META-INF/Oracle/lecture8.sql
UHC
1,584
4.25
4
[]
no_license
select commission, nvl(commission, 0) from employee; select sum(salary) from employee; -- հ select avg(salary) from employee; -- select min(salary) from employee; --ּҰ select max(salary) from employee; --ִ밪 select count(salary)from employee; --salary 14 ϳ ÷ ִ°찡 select count(*) from employee; --  Ȯϴ Լ select coun...
true
709a5a1af89b57ec4ca4b6cbbf0a14f1e4534d39
SQL
IgorBessonov/Selena
/Selena/db/v_pd-sw.sql
UTF-8
245
2.578125
3
[]
no_license
SELECT v_podjezd.id_Podjezd, `pd-sw`.VLan, `pd-sw`.switch FROM `pd-sw` Inner Join v_podjezd ON v_podjezd.name_street = `pd-sw`.street AND v_podjezd.Num_build = `pd-sw`.build AND v_podjezd.Korpus = `pd-sw`.korp AND v_podjezd.Podjezd = `pd-sw`.pd
true
784072d23e539b6c6251f62939ca26dc96a48a46
SQL
NicePlayOfU/leetcode
/sql/1661.average-time-of-process-per-machine 平均运行时间/1.sql
UTF-8
246
3.46875
3
[]
no_license
# Link: https://leetcode-cn.com/problems/average-time-of-process-per-machine SELECT `machine_id`, round(sum(IF(`activity_type` = 'end', `timestamp`, -`timestamp`)) / count(*) * 2, 3) `processing_time` FROM `activity` GROUP BY `machine_id`
true
8a34a93e20f404d76f4e1c128f233e66f1e6d106
SQL
YangTsai/HelloMe
/sql/hellome.sql
UTF-8
1,279
2.78125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 凡卡其 Source Server Version : 50717 Source Host : localhost:3306 Source Database : hellome Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2017-11-27 22:55:20 */ SET FOREIGN_KEY_CHECKS...
true
bc54e2ffd80728985d623442b2d71cf59b2150d1
SQL
dchampion/framework-demo
/server/src/main/resources/data.sql
UTF-8
532
3.109375
3
[ "MIT" ]
permissive
CREATE SEQUENCE HIBERNATE_SEQUENCE START WITH 0 INCREMENT BY 1 NOCACHE NOCYCLE; CREATE SCHEMA FRAMEWORK_DEMO AUTHORIZATION sa; CREATE TABLE FRAMEWORK_DEMO.SHARED_RESPONSE_CACHE ( ID BIGINT NOT NULL, UUID CHAR(36), HEADERS VARCHAR(512), BODY CLOB, PRIMARY KEY (ID) ); CREATE TABLE FRAMEW...
true
d467ca4ace459a004340849bdb67b2bbce44587a
SQL
NTXpro/NTXbases_de_datos
/DatabaseNTXpro/ERP/Functions/FN_AplicacionAnticipoCobrar_Empresa.sql
UTF-8
1,280
3.71875
4
[]
no_license
CREATE FUNCTION ERP.FN_AplicacionAnticipoCobrar_Empresa ( @IdEmpresa INT ) RETURNS TABLE AS RETURN ( SELECT CC.IdEntidad IdEntidadCC, CC.Fecha FechaCC, CC.FechaVencimiento FechaVencimientoCC, CC.IdTipoComprobante IdTipoComprobanteCC, CC.ID IdCuentaCobrar, CC.IdMoneda IdMonedaCC, AAC.IdMone...
true
d3dc99f8acef48820275df07192db955b8c65008
SQL
dillonhafer/hr-til
/db/structure.sql
UTF-8
10,538
3.453125
3
[ "MIT" ]
permissive
SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET check_function_bodies = false; SET xmloption = content; SET client_min_messages = warning; SET row...
true
013851107d24848b1f2a4125b4696867704539ef
SQL
starlet-rose/starlet
/user-management/user-management-dao/src/main/resources/userdb-db-mysql-schema.ddl
UTF-8
750
3.296875
3
[ "Apache-2.0", "GPL-3.0-only" ]
permissive
/***************************************************** ** This file is 100% ***GENERATED***, DO NOT EDIT! ** *****************************************************/ DROP USER IF EXISTS 'userdb'; DROP DATABASE IF EXISTS userdb; CREATE DATABASE userdb DEFAULT CHARACTER SET 'UTF8' DEFAULT COLLATE utf8_unicode_ci...
true
2405540e0c80f951cc02b7b53b58169492d539b7
SQL
1250462819/schools
/functions.sql
UTF-8
265
2.890625
3
[ "MIT" ]
permissive
CREATE FUNCTION ispast (return_date DATE) RETURNS VARCHAR(3) DETERMINISTIC BEGIN DECLARE sf_value VARCHAR(3); IF curdate() > return_date THEN SET sf_value = 'Yes'; ELSEIF curdate() <= return_date THEN SET sf_value = 'No'; END IF; RETURN sf_value; END
true
3d5a22bc703c25bd9fc40b0754ad228f3e6495f3
SQL
decaff46/sql-practice-codes
/Practice/WHILE LOOP.sql
UTF-8
1,098
3.953125
4
[]
no_license
use classicmodels; ## WHILE LOOP /* [begin_label:] WHILE search_condition DO statement_list END WHILE [end_label] */ CREATE TABLE calendars( id INT AUTO_INCREMENT, fulldate DATE UNIQUE, day TINYINT NOT NULL, month TINYINT NOT NULL, quarter TINYINT NOT NULL, year INT NOT NULL, PRIMARY...
true
9843f19db03c90e176fa6c18451114c1e1065360
SQL
SethAdamson/group-reader
/db/get_groups_by_category.sql
UTF-8
163
2.75
3
[]
no_license
SELECT * FROM group_categories JOIN groups ON group_categories.group_id = groups.group_id JOIN categories ON group_categories.category_id = categories.category_id;
true
6c7739b31313dfc4350d3d4acd4a8d76796df2c2
SQL
kishanrajput23/Progate-SQL-Course
/sql_study_1/page11/exercise2.sql
UTF-8
211
2.921875
3
[ "MIT" ]
permissive
-- after "FROM purchases" add code to get rows where the "category" column is "food" -- or the "character_name" column name is "Ken the Ninja" SELECT * FROM purchases WHERE category="food" OR character_name="Ken the Ninja";
true
b5c227a2ffbb99f896c771a4c9650ad6229628c7
SQL
JosueCuberoSanchez/Spring_Hibernate_SetUp
/artifact-id-core/src/main/resources/data/create.sql
UTF-8
4,271
3.390625
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sun Jun 10 14:51:59 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
ed4c9373402ddc020ef41b704298c70a484bc9c1
SQL
changhoon-kim/koreatech-ev
/src/main/resources/sql/init.sql
UTF-8
5,178
3.4375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Wed Mar 2 23:04:24 2016 -- 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
785d72d80c7d16bf0a9c375180cee624a5767d97
SQL
cassioseffrin/ClinicaVeterinariaFX
/clinica.sql
UTF-8
3,331
2.9375
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.13, for osx10.11 (x86_64) -- -- Host: localhost Database: veterinaria -- ------------------------------------------------------ -- Server version 5.7.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true