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
17ff3f199898ceaaea647cbc1e02c04292acb235
SQL
leaveslvmoon/basic
/src/main/resources/sql/role.sql
UTF-8
333
3.5
4
[]
no_license
#sql("getRoleList") select r.*, s.name as sname from sys_role r left join sys_menu s on r.menuId = s.id where FIND_IN_SET(r.id,getRoleChildLst(#(map.id))) and r.name like '%#(map.name)%' #if(map.status!=null&&map.status!="") and r.status = #(map.status) #end order by #if(map.sort!=null) #(map.sort) #(map.order),#end r...
true
0494d9d9562b57fd886c88f2f0f72a685df51cf5
SQL
Michel0288/Meal-Planner-v1.2
/meal_planner.sql
UTF-8
3,276
4.46875
4
[]
no_license
DROP DATABASE IF EXISTS mealplanner; CREATE DATABASE mealplanner; USE mealplanner; DROP TABLE IF EXISTS account; CREATE TABLE account( account_id INT NOT NULL unique AUTO_INCREMENT , firstname VARCHAR(50) NOT NULL, lastname VARCHAR(50) NOT NULL, username VARCHAR(50) NOT NULL, password VARCHAR(50) N...
true
f409c574882d44c9100d87c4922e3038ae4d91af
SQL
Jimwi/gateway-generic
/docs/table.sql
UTF-8
3,254
3.375
3
[ "MIT" ]
permissive
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for biz_binding -- ---------------------------- DROP TABLE IF EXISTS `biz_binding`; CREATE TABLE `biz_binding` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `create_time` datetime NOT NULL, `update_time` date...
true
a62791001444d55f84ebb5858cf30d52ccf8c8ce
SQL
MaximDragosAndrei/fiimem
/exportins.sql
UTF-8
20,486
3.171875
3
[]
no_license
CREATE or replace DIRECTORY NUME as 'C:\Users\Asus\Desktop\PSGBD proiect'; GRANT READ ON DIRECTORY NUME TO PUBLIC; set serveroutput on; declare stmt_str varchar2(200); v_col varchar2(300); v_table varchar2(300); v_column_list varchar2(300); v_CursorID number; v_mid number(10,0); v_surname varchar2(200); v_firstname v...
true
99f0e92e023314194d6e78b25eb973db9980b0d0
SQL
KaiCilliers/sql-mosh-course
/Retrieving Data From a Single Table/IS NULL Operator.sql
UTF-8
202
3.234375
3
[]
no_license
-- SELECT * -- FROM customers -- WHERE phone IS NULL -- WHERE phone IS NOT NULL -- Exercise -- Get the orders that are not shipped SELECT * FROM orders WHERE shipped_date IS NULL OR shipper_id IS NULL
true
a761d3d637746d2426c83931748dae4bbefbdfb7
SQL
lckuiper/Hangfire.MySql
/src/Resources/install.sql
UTF-8
4,076
3.40625
3
[]
no_license
/* install.sql Hangfire.MySql */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `Counter` -- ---------------------------- CREATE TABLE `Counter` ( `Id` int(11) NOT NULL AUTO_INCREMENT, `Key` varchar(100) NOT NULL, `Value` int(11) NOT NULL, `ExpireAt` date DEFAULT NULL, ...
true
72e049b1f0d9ff4392b0e33b895ffbecafd2ec6b
SQL
MeisamMulla/cs50-problem-sets
/pset7/movies/8.sql
UTF-8
154
3.359375
3
[]
no_license
SELECT people.name FROM people JOIN stars ON stars.movie_id = movies.id JOIN movies ON movies.id = stars.movie_id WHERE movies.title LIKE "Toy Story"
true
b1b5d3866b8d434a4627ab25707bff3cfba39a62
SQL
ProyectoReportes/Proyecto
/BD_10Agosto/bdReportes.sql
UTF-8
4,632
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 11-08-2014 a las 08:23:27 -- 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
8d4a02491c6d91fcab59f8b27529db2673b72d81
SQL
diegombt/data_analytics_uptc
/sqlite/Consultas - 25-Ago-2021.sql
UTF-8
3,777
4.28125
4
[]
no_license
-- DataSet → Fifa19 ------------------------------------------------------------------------------------------------------------ -- Consulta de ejemplo ------------------------------------------------------------------------------------------------------------ select iden, id, name, age, photo, nationality, overall, po...
true
2732946f900b1174d3dd5621d52004665a9d8631
SQL
dretorrente/hjk_inventory
/hjk_inv.sql
UTF-8
4,496
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 20, 2017 at 08:42 PM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
1ac84540f26fbab02b507273cebbd07f9cf29ac5
SQL
EringiV3/learn-sql
/c/50.sql
UTF-8
174
2.640625
3
[]
no_license
select substring(職業コード, 1, 1), max(HP), min(HP), avg(HP), max(MP), min(MP), avg(MP) from パーティー group by substring(職業コード, 1, 1)
true
b6ae63e693d5e50b7d166262e18f87a74bed112a
SQL
reyesdmusic/Employee-Tracker
/seed.sql
UTF-8
3,086
3.53125
4
[]
no_license
DROP DATABASE IF EXISTS employeesDB; CREATE DATABASE employeesDB; USE employeesDB; CREATE TABLE employee( id INT NOT NULL AUTO_INCREMENT, first_name VARCHAR(30) NOT NULL, last_name VARCHAR(30) NOT NULL, role_id INT NOT NULL, manager_id INT NULL, PRIMARY KEY (id) ); INSERT INTO employee (first_name, last_...
true
ae69d9a0ca6b526f1aa1812f86c3a5daf1e2c6a5
SQL
Ming-JU/ORACLE_SQL
/0104연습.sql
UHC
2,851
4.28125
4
[]
no_license
--ADVANCED SQL --6 ׷Լ --1 SELECT DEPTNO, SUM(SAL) AS SUM_SAL FROM EMP GROUP BY DEPTNO UNION ALL SELECT NULL, SUM(SAL) FROM EMP ORDER BY DEPTNO; -- ü޿ հ赵 SELECT DEPTNO, SUM(SAL) AS SUM_SAL FROM EMP GROUP BY ROLLUP(DEPTNO); SELECT DEPTNO, JOB, SUM(SAL) FROM EMP GROUP BY CUBE(DEPTNO, JOB) OR...
true
faf1e132f02b57f87056c18d7901cee16d2b59aa
SQL
hardlywave/KBD
/sql1/scripts/queries/querie_4.sql
UTF-8
281
3.53125
4
[]
no_license
SELECT DISTINCT s.subject_code_number, s.name_subject FROM subject AS s LEFT JOIN teacher_student_group AS tsg ON tsg.subject_code_number = s.subject_code_number left join teacher AS t on tsg.personal_number = t.personal_number WHERE t.last_name = 'Костин';
true
8d8372e1fc9ee9077500930043d2f2ceb3573d31
SQL
qingchen191/workspace
/mysqlSelect.sql
UTF-8
1,826
3.640625
4
[]
no_license
SELECT * FROM qingchen_171.wqtab order by idwqtab desc limit 0,100; SELECT * FROM qingchen_171.wqtab where type='click' order by idwqtab desc limit 0,40; '2013-06-29 16:44:12' SELECT * FROM qingchen_171.wqtab where addtime > '2013-06-29' and type = 'click' and game = '%E4%BF%9D%E5%8D%AB%E9%92%93%E9%B1%BC%E5%B2%9B'; ...
true
561cc95d77dd9cfadd72efa785c32d0ecf815409
SQL
ricksonre/ThePotatoZone-304
/lab_9/lab_9.sql
UTF-8
1,964
4.34375
4
[]
no_license
drop view customerandorders; --Question 1 - Views and Security -- 1 create view customerandorders as select c.*, s.orderId, s.OrderDate, s.TotalAmount, o.productId, o.quantity, o.price from customer as c left join ordersummary as s on c.customerId = s.customerId left...
true
c97a6d0fa32c7a390ea8499ceadf9aed8e8bb966
SQL
koreahong/SQL-Tableau
/깃허브(Github)/CHAPTER 08/5. (CHAPTER 08 요약) 데이터 시각화에 필요한 Tableau/5-1. Tableau에 숨겨진 SQL/Tableau에 숨겨진 SQL.sql
UHC
1,031
4.375
4
[]
no_license
USE EDU --[Car_order] [Car_member] LEFT JOIN SELECT * FROM [Car_order] A LEFT JOIN [Car_member] B ON A.mem_no = B.mem_no -- ȸ(SELECT) Բ Ǵ SELECT YEAR(join_date) AS Կ ,gender ,COUNT(DISTINCT A.mem_no) AS ڼ FROM [Car_order] A LEFT JOIN [Car_member] B ON A.mem_no = B.m...
true
8dbeddcf0799d6a2a8394b7840c35e88e1da68bc
SQL
emilia98/SoftUni-CSharp-DB
/DB-Basics-MSSQL-Server/Exams/Databases Sample Exam/03.Ads_With_Yes_No_Images.sql
UTF-8
1,115
2.59375
3
[ "MIT" ]
permissive
USE "Ads"; SELECT Title, [Date], CASE WHEN ImageDataURL IS NULL THEN 'no' ELSE 'yes' END AS "Has Image" FROM "Ads" ORDER BY Id ASC; /* Title Date Has Image Just a Joke 2014-12-24 23:53:17.000 no 2 bed apartment to let 2014-12-24 20:21:11.000 no BMW 320 for Sale 2014-12-26 12:37:50.000 yes iPhone 4S for...
true
5d33240624b297dfefb2f1e11c3209d1a75e8c88
SQL
Symplicity/subdivision-list
/data/en/sqlite/subdivisions_ZW.sqlite.sql
UTF-8
1,162
2.6875
3
[ "MIT" ]
permissive
CREATE TABLE subdivision_ZW (id VARCHAR(6) NOT NULL, name VARCHAR(255), level VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "subdivision_ZW" ("id", "name", "level") VALUES ('ZW-BU', 'Bulawayo', 'city'); INSERT INTO "subdivision_ZW" ("id", "name", "level") VALUES ('ZW-HA', 'Harare', 'city'); INSERT INTO "subdivis...
true
e169c480f374b09005a221735327a32a05afb8b0
SQL
carbon8/Sportscar-Standings
/App_Data/Install/SQL Folder/Objects/CMS_SMTPServerSite.sql
UTF-8
743
3.296875
3
[]
no_license
CREATE TABLE [CMS_SMTPServerSite] ( [ServerID] [int] NOT NULL, [SiteID] [int] NOT NULL ) ALTER TABLE [CMS_SMTPServerSite] ADD CONSTRAINT [PK_CMS_SMTPServerSite] PRIMARY KEY CLUSTERED ([ServerID], [SiteID]) ALTER TABLE [CMS_SMTPServerSite] WITH CHECK ADD CONSTRAINT [FK_CMS_SMTPServer...
true
a111c579b874932494d04f472dfa19fb6eab8d0a
SQL
YifanEvaWang/Car-Database-Management-System
/src/DB-ERD-SCRIPT/triggers_and_procedures/PartsG4_PROC_PART_UPDATE_G4.sql
UTF-8
1,994
4.0625
4
[]
no_license
DELIMITER // CREATE PROCEDURE `PROC_PART_UPDATE_G4`(IN inPartNoG4 INT(11), IN inPartNameG4 VARCHAR(255), IN inPartDescriptionG4 VARCHAR(255), IN inCurrentPriceG4 DECIMAL(19,4), IN inQtyG4 INT(11), inMinQtyG4 int(11)) BEGIN -- DECLARE THE VARIABLES FOR THE QUANTITY CALCULATION. DECLARE CURR_QTY INT; DECLARE MIN_QTY I...
true
0823a75c3409c6a5fa08140f71e7227c630e2738
SQL
morph3o/MotelManager
/PostgreSQL/last/02_CT_PRODUCTO_psql.sql
UTF-8
812
3.4375
3
[]
no_license
-- Converted by db_converter START TRANSACTION; SET standard_conforming_strings=off; SET escape_string_warning=off; SET CONSTRAINTS ALL DEFERRED; CREATE TABLE "producto" ( "id" integer NOT NULL, "id_prod" integer NOT NULL, "nm_prod" varchar(400) NOT NULL, "tipo_prod" varchar(400) NOT NULL, "marca" ...
true
61a4d6b695357ef4d8d6a5a43a1262ceaa529075
SQL
DimolSPA/Dimol-Fix-Carteras
/Dimol.Carteras/Dimol.Carteras.Database/dbo/Stored Procedures/Procs2/Find_Cartera_Clientes.sql
UTF-8
261
2.640625
3
[]
no_license
 Create Procedure Find_Cartera_Clientes(@ctc_codemp integer, @ctc_pclid integer, @ctc_ctcid integer) as select count(ctc_ctcid) from cartera_clientes where ctc_codemp = @ctc_codemp and ctc_pclid = @ctc_pclid and ctc_ctcid = @ctc_ctcid
true
1ff69f6e3b3e62fbc561e66156502ccb14be6aeb
SQL
ferrolho/feup-ldso
/mini-apps/lyrics-mini-app/conf/evolutions/default/3.sql
UTF-8
274
2.984375
3
[ "Apache-2.0" ]
permissive
# --- !Ups create table "musics" ( "id" bigint generated by default as identity(start with 1) not null primary key, "album_id" bigint not null references "albums", "title" varchar not null, "lyrics" varchar not null ); # --- !Downs drop table "musics" if exists;
true
1122d31efb576a6df50166bc0de28cdde0938d07
SQL
chaochao1/BI_framework_oracle
/ETL_MD_ETL_LOG_DETAIL.prc
UTF-8
1,276
3.421875
3
[]
no_license
/* by chaochao created at 2018-12-29 This is the log etl for the framework, every etl script should run in it. Every execution will insert one record to our detail table. 用于插入每次etl运行信息的etl日志脚本。 */ CREATE OR REPLACE PROCEDURE etl_md_etl_log_detail( v_etl_number INT, v_etl_name VARCHAR2, v_error_code VARCHAR2, v_erro...
true
882208b0d2eb4d88de65930efbb280b4db6bb0fe
SQL
MG-RAST/CV-service
/schema/schema.sql
UTF-8
323
2.71875
3
[]
no_license
GRANT ALL PRIVILEGES ON CVSERVICE.* TO 'cvservice'@'localhost' IDENTIFIED BY 'cvservice'; USE CVSERVICE; CREATE TABLE IF NOT EXISTS terms (id INT NOT NULL AUTO_INCREMENT, name text, PRIMARY KEY (id)); CREATE TABLE IF NOT EXISTS synonyms (id INT NOT NULL, synonym text); GRANT ALL PRIVILEGES ON *.* TO 'cvservice'@'%'...
true
5305da561b05a43a7ae9ae75e37b6c285bc64bd4
SQL
chrajesh/LibraryManagementSystem
/library(2).sql
UTF-8
11,622
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 24, 2014 at 06:54 PM -- Server version: 5.5.27 -- PHP Version: 5.4.7 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
dbcbe8b164bec67bdc46b7ae44ce9f92cb8fb02f
SQL
FanZhuofz/SQL
/0726存储过程(游标)/pp4.sql
UTF-8
1,041
3.71875
4
[]
no_license
DELIMITER $$ USE `pubs10`$$ DROP PROCEDURE IF EXISTS `pp4`$$ CREATE DEFINER=`root`@`localhost` PROCEDURE `pp4`() BEGIN -- 定义变量 DECLARE cnt INT DEFAULT 0; DECLARE i INT DEFAULT 1; DECLARE aid VARCHAR(20); -- 删除linshi_1表,清空cntauthors表 DROP TABLE IF EXISTS linshi_1; DELETE FROM cntauthors; -- 查询作者总...
true
342cbca91c710ae541c97f6e8bf3a19294b95ebe
SQL
jhchie93/test
/02_WHERE절 사용하기.sql
UTF-8
3,251
4.21875
4
[]
no_license
--WHERE절 SELECT * FROM employees WHERE salary > 14000; SELECT * FROM employees WHERE last_name = 'King'; SELECT * FROM employees WHERE hire_date < '02/06/10'; -- 날짜를 비교, 고용일이 2002년 6월 10일 이전 --예제1 SELECT * FROM employees WHERE employee_id = 100; --예제2 SELECT * FROM employees WHERE first_name = 'David'; --예제3 SE...
true
bf78f77cebce1b27eb97ceeaa5efb60630c6b3b7
SQL
RahulRajasekharuni/MySQL-for-Data-Analytics-and-Business-Intelligence
/SQL - Subqueries.sql
UTF-8
2,245
4.71875
5
[]
no_license
select * from dept_manager; #sub query example select * from employees e where e.emp_no in ( select dm.emp_no from dept_manager dm); #just show all records from employees table and inner join with dept_manager table to show records that match in both tables select e.* from employees e join dept_manager dm on e.emp_...
true
c91abcba58c85b0769eb74a9688fe35e4c48eb6f
SQL
nesmaElsherif/yourCart
/yourcart.sql
UTF-8
11,901
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2017 at 01:18 PM -- Server version: 10.1.19-MariaDB -- PHP Version: 5.6.28 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
92e9c622074abe2312c420d4d5dbabfcbee9d650
SQL
Donmohaa1/Soulmate
/database/moi_single.sql
UTF-8
2,227
2.859375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Dec 18, 2018 at 02:43 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 7.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
true
cc3b693e83b59f64b0413c3b0d759626c62bbb3c
SQL
Yizhiping/WareHouseMangement
/Db/warehousemanagement.sql
UTF-8
10,283
3.03125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 50553 Source Host : localhost:3306 Source Database : warehousemanagement Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2019-06-19 08:11:26 */ SET ...
true
c7a72151457b487616586cd23dea3d9b202af53f
SQL
zarkoAment/spring_poc
/src/main/resources/schema-h2.sql
UTF-8
165
2.515625
3
[]
no_license
DROP TABLE IF EXISTS customer; CREATE TABLE customer (id BIGINT AUTO_INCREMENT NOT NULL, name VARCHAR(50) NOT NULL, email VARCHAR(100) NOT NULL, created_date DATE);
true
c3388916b941fa35f866b7d286836ab79ba0f0d1
SQL
bobbruno/zipfiantech1
/zipfiantech1/src/Q3.sql
UTF-8
317
3.953125
4
[]
no_license
select SP.Name from SalesPerson SP where exists (select 'x' from Orders O where O.salesperson_id = SP.ID group by O.salesperson_id having count(O.Number)>1) select SP.Name from SalesPerson SP where SP.ID in (select O.salesperson_id from Orders O group by O.salesperson_id)
true
d91f7e5b47e4c7c5080991cc7dc9de8aab0f734e
SQL
ljca/mybackup
/src_note/develop/others/db/sql/Oracle/matersale.sql
UTF-8
985
3.1875
3
[]
no_license
prompt PL/SQL Developer import file prompt Created on 2016年5月25日 星期三 by kyzs set feedback off set define off prompt Creating CUS_CUSTOMER... create table CUS_CUSTOMER ( id NUMBER not null, cus_id NUMBER not null, cus_name NVARCHAR2(100) not null, cus_addr NVARCHAR2(500) ) tablespace PROJECT...
true
ced687b2fddbef61f55088135cf65bfea5d79f71
SQL
mengyuan0526/wmy-python-homework
/SQL_exercise/SQL_exercise_04/4_questions.sql
UTF-8
1,384
4.21875
4
[]
no_license
-- Movie_theatres -- 4.1 Select the title of all movies. Select title from movies; -- 4.2 Show all the distinct ratings in the database. Select distinct rating from movies; -- 4.3 Show all unrated movies. Select * from movies where rating is null; -- 4.4 Select all movie theaters that are not currently showing a movie...
true
0ef5a8751f479bba0f7f114e88700b248295f9fa
SQL
ptomulik/veetou
/share/oracle/packages/veetou/tables/ko/ko_protocol_map_j.ddl
UTF-8
2,212
3.359375
3
[]
no_license
CREATE TABLE v2u_ko_protocol_map_j OF V2u_Ko_Protocol_Map_J_t ( CONSTRAINT v2u_ko_protocol_map_j_pk PRIMARY KEY ( job_uuid , semester_id , specialty_id , subject_id , classes_type ...
true
ac99db0c99b503b7030c463b1f57d1751b95f8b7
SQL
christian130/SCAYA
/BD/dump(4).sql
UTF-8
157,103
2.96875
3
[ "Apache-2.0" ]
permissive
<br /> <b>Strict Standards</b>: Only variables should be assigned by reference in <b>/opt/lappstack-5.4.7-0/apps/phppgadmin/htdocs/classes/database/Connection.php</b> on line <b>23</b><br /> -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on...
true
4b7a148d23d029fd3261d302400589b4b5bc0f43
SQL
brad/bid4it
/core/install/dbconfig.sql
UTF-8
1,784
3.046875
3
[]
no_license
DROP TABLE IF EXISTS `__fields__`; CREATE TABLE IF NOT EXISTS `__fields__` ( `fields_id` INT(11) AUTO_INCREMENT PRIMARY KEY, `table` VARCHAR(64) NOT NULL, `name` VARCHAR(64) NOT NULL, `widget:type` VARCHAR(64), `widget:label` VARCHAR(128), `widget:description` TEXT, `visibility:list` VARCHAR(15), `vocabulary` V...
true
ad9a1f18d74897284105071de8f451378cb36fdb
SQL
Nikolov-A/365-Data-Science
/1. SQL/2. SQL SELECT Statement/AND.sql
UTF-8
199
3.0625
3
[]
no_license
### ASSIGNMENT ### /* ------ 1 ------ Retrieve a list with all female employees whose first name is Kellie. */ SELECT * FROM employees WHERE first_name = 'Kellie' AND gender = 'F';
true
740808004e690ebfc6d0669a77842d15b398643d
SQL
aAuguets/BasesDeDades
/P2/sensorsCreation.sql
UTF-8
5,083
3.03125
3
[]
no_license
/* sqlite3 sensors.bd < sensorsCreation.sql >out.txt */ DROP TABLE IF EXISTS sensors; DROP TABLE IF EXISTS calib_temp; DROP TABLE IF EXISTS calib_light; CREATE TABLE IF NOT EXISTS sensors ( id INTEGER PRIMARY KEY AUTOINCREMENT, result_time DATETIME, epoch INT, nodeid INT, light INT, temp INT, vol...
true
be51dc987f205de70ceaef8f498871fa8b1ac393
SQL
xxxoast/citic_bank
/proof4.sql
UTF-8
654
3.40625
3
[]
no_license
SELECT * FROM citic_bank.reserve_trade_all_debt where opponent_account_name like '%财付通%' and origin_account_number <> '7440810182200001028' INTO OUTFILE "/tmp/caifutong转入.csv" FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' LINES TERMINATED BY '\n'; SELECT origin_account_number, origin_account_name, ...
true
eba9040faaf0b82f3bf37bbc62ed0947bdf3cfac
SQL
jgarzonext/plsql-testing
/script_plsql/bd_iaxis/script/indices/PROVMAT_CIERRE_CONF_PK.sql
UTF-8
367
2.578125
3
[]
no_license
-------------------------------------------------------- -- DDL for Index PROVMAT_CIERRE_CONF_PK -------------------------------------------------------- CREATE UNIQUE INDEX "AXIS"."PROVMAT_CIERRE_CONF_PK" ON "AXIS"."PROVMAT_CIERRE_CONF" ("SSEGURO", "NRIESGO", "CGARANT", "FCALCUL") PCTFREE 10 INITRANS 2 MAXTRANS...
true
f0e84bb74735df1f0fec066b38f82af68aa1d972
SQL
kingwang317/it4fun-groupon
/fuel/modules/codekind/install/codekind.sql
UTF-8
1,496
2.671875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 2.10.2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 27, 2010 at 02:53 PM -- Server version: 5.0.45 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `fuel` -- -- -------------------------------------------------------- -- ...
true
f630f0a674daca248361d4d5e759c44378614293
SQL
yaodehaung/MySQLTutorial
/solutions/ch14/ch14_01.sql
UTF-8
784
3.3125
3
[]
no_license
================ Stored Procedure: mylab.MYHANDLER ================ DELIMITER $$ DROP PROCEDURE IF EXISTS mylab.MYHANDLER $$ CREATE PROCEDURE mylab.MYHANDLER ( p_name VARCHAR(30), p_owner VARCHAR(30), p_species VARCHAR(30), p_gender CHAR(1), ...
true
3fbb96bf531a3b788cf330aec7ee9acef7769baa
SQL
MonkeyC97/textdemo
/test2.sql
UTF-8
12,970
3.1875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.26, for macos10.14 (x86_64) -- -- Host: localhost Database: test2 -- ------------------------------------------------------ -- Server version 5.7.26 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
true
16ce0e1c6f73c0cb24ad263b926ea2d2aedecb23
SQL
Madi0110/midtermEE
/db-init.sql
UTF-8
791
4.25
4
[]
no_license
CREATE TABLE IF NOT EXISTS users ( user_id INTEGER NOT NULL PRIMARY KEY, user_login TEXT NOT NULL, user_password TEXT NOT NULL, user_fname TEXT, user_lname TEXT ); CREATE TABLE IF NOT EXISTS news ( news_id INTEGER NOT NULL PRIMARY KEY, news_title TEXT NOT NULL, news_body TEXT NOT NULL, ...
true
88814e3ea6b961096d239087ab32d44618c508dc
SQL
mbdavis313/Bamazon-Storefront-Homework
/bamazon_db.sql
UTF-8
2,135
3.515625
4
[]
no_license
-- Drops the animals_db if it exists currently -- DROP DATABASE IF EXISTS bamazon_db; -- Creates the "animals_db" database -- CREATE DATABASE bamazon_db; -- Makes it so all of the following code will affect animals_db -- USE bamazon_db; -- Creates the table "people" within animals_db -- CREATE TABLE products...
true
554571a6e697fbc7fb859e893091cae2f8ae232e
SQL
JananiMalshika/PHP-Project
/zeedb.sql
UTF-8
5,590
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 22, 2020 at 08:21 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
b3eb81cdfcf1f74d62ad522849b633bbce8ec5b4
SQL
paddyhudson/codeclan_homework_PaddyHudson
/week_03/day_1/sql_hwk_1.sql
UTF-8
2,128
4.1875
4
[]
no_license
/* MVP 1 */ SELECT * FROM employees WHERE department = 'Human Resources'; /* MVP 2 */ SELECT first_name, last_name, country FROM employees WHERE department = 'Legal'; /* MVP 3 */ SELECT count(*) AS count_portugal FROM employees WHERE country = 'Portugal'; /* MVP 4 */ SELECT count(*) AS count_portugal_spain FROM ...
true
1b203c738864342d05d77e9bbcfb61a3521d15a0
SQL
danieldiamond/gitlab-analytics
/transform/snowflake-dbt/models/staging/sheetload/sheetload_osat.sql
UTF-8
598
3.453125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
WITH bamboohr AS ( SELECT * FROM {{ ref('bamboohr_id_employee_number_mapping') }} ), source AS ( SELECT * FROM {{ ref('sheetload_osat_source') }} ), final AS ( SELECT source.completed_date, DATE_TRUNC(month, bamboohr.hire_date) AS hire_month, source.division, source.sa...
true
1d9d579c0f4a48f55b37fb90e20df1e2ee7160fb
SQL
jucariasar/Banco_de_Herramientas
/Modelos_de_Bases_de_Datos/Creación_de_Tablas.sql
UTF-8
7,645
3.96875
4
[]
no_license
/*Creación de la base de datos banco_herramientas*/ CREATE DATABASE banco_herramientas; /*Se crea la relación regional con todos sus atributos*/ CREATE TABLE regional( codigo INT PRIMARY KEY, nombre VARCHAR(30) UNIQUE NOT NULL ); /*Se crea la relación centro con todos sus atributos y claves foraneas*/ CREATE TABLE c...
true
f25f1401ac8267737c12697c3c6425b9c50456e1
SQL
iuthub/design-project-twin-2
/kitob.sql
UTF-8
6,730
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: May 9 2018 г., 16:31 -- Версия сервера: 5.5.25 -- Версия PHP: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101...
true
6812e171c2ad1eeedc9615e6fb9ed0c04d8118d8
SQL
yzhengk/Stevens-Institute-of-Technology
/FE 513/L4_Database I/demo-L4.sql
UTF-8
3,647
4.34375
4
[]
no_license
/******** L4- Database Session I Author: Xingjia Zhang Content: 1. create table, alter drop table, insert data into table 2. select query 3. filtering data 4. grouping data **********/ /********* create/drop database *****/ create database test; drop database if exists test;# check existence of the database bef...
true
f6ece7cfd39d9e295fdd2aab1cd5cce8094a9444
SQL
dbconrado/uemgeventos
/uemgeventos/WebContent/META-INF/script_banco.sql
UTF-8
6,340
3.453125
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 ue...
true
c834d2b41c5dcbf2ef61392ad478554fb31dbba0
SQL
bcgov/gcpe-hub
/Hub.Legacy/Gcpe.Hub.Database/calendar/Tables/PremierRequested.sql
UTF-8
511
2.984375
3
[ "Apache-2.0" ]
permissive
CREATE TABLE [calendar].[PremierRequested] ( [Id] INT IDENTITY (1, 1) NOT NULL, [Name] NVARCHAR (50) NULL, [IsActive] BIT CONSTRAINT [DF_PremierRequested_IsActive] DEFAULT ((1)) NOT NULL, [SortOrder] INT NULL, [TimeStamp] ROWVERSION NOT N...
true
312e8dcc9e192fe1ad76095c0ed42728379dd34b
SQL
maxprofs-llcio/addon
/sprocs/APACH_PAYMENT_HDR.prc
UTF-8
5,324
2.6875
3
[]
no_license
rem ------------------------------------------------------------------------- rem --- Program: APACH_PAYMENT_HDR.prc rem --- Description: Stored Procedure to create a jasper-based ACH Payment report rem rem --- AddonSoftware rem --- Copyright BASIS International Ltd. All Rights Reserved. rem --------------------------...
true
3a789036febb9e669011721d311d56865a13070e
SQL
lcny0606/lottery
/lottery.sql
UTF-8
774
2.9375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50709 Source Host : localhost:3306 Source Database : lottery Target Server Type : MYSQL Target Server Version : 50709 File Encoding : 65001 */ SET FOREIGN_KEY_CHECKS=0; -- ---------------------------...
true
16848b31cf8c9da3a419d67e8ae55a962e72116e
SQL
bisnukundu/price_compare_website
/Database/price_compare.sql
UTF-8
10,328
2.8125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 13, 2020 at 09:01 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.3.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
adb0416b1fbefbb2c629189bba90f3941d2ede57
SQL
leeo-123/PC_project
/ym.sql
UTF-8
5,651
2.90625
3
[]
no_license
SET NAMES UTF8; DROP DATABASE IF EXISTS ym; CREATE DATABASE ym CHARSET=UTF8; USE ym; /**用户信息**/ CREATE TABLE ym_user( uid INT PRIMARY KEY AUTO_INCREMENT, uname VARCHAR(32), upwd VARCHAR(32) ); /**用户信息**/ INSERT INTO ym_user VALUES (NULL, 'dingding', '123456'), (NULL, 'dangdang', '123456'), (NULL, 'doudou', '12...
true
29d31a8645360fa2f38e744ace38844c76889e0e
SQL
erikcedillo/bamazon
/bamazon.sql
UTF-8
756
3.390625
3
[]
no_license
-- WHAT THE DATABASE IS CALLED AND BEING CREATED DROP DATABASE IF EXISTS bamazonDB; CREATE DATABASE bamazonDB; USE bamazonDB; -- THIS IS THE TABLE AND WHATS INSIDE OF IT CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT PRIMARY KEY, product_name VARCHAR(65) NOT NULL, department_name VARCHAR(45) N...
true
b3287c4bd1706a54f2eb7ef51fd723bdbdf26e4d
SQL
danilobatistaqueiroz/struts_crud
/src/main/sql/DataBase.sql
UTF-8
1,275
3.53125
4
[]
no_license
CREATE DATABASE dbusiness; USE dbusiness; /* SQLITE Drop table Product; Drop table Category; Drop table Product_Category; Drop table User; Drop table Country; Drop table Purchase; CREATE TABLE Product ( Id Integer Primary Key AUTOINCREMENT , Name Varchar(20) Not null , Price Decimal(15,2) ); CREATE TABLE Catego...
true
74d213418a7d808bd0ea2df9fee960bee91ee744
SQL
danh1999yb/duyanh
/SQL/Assignment 4/Testing_System_Assignment_4.sql
UTF-8
13,622
4.0625
4
[]
no_license
DROP DATABASE IF EXISTS TestingSystem; CREATE DATABASE TestingSystem; USE TestingSystem; DROP TABLE IF EXISTS Department; CREATE TABLE Department ( DepartmentID TINYINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, DepartmentName NVARCHAR(50) NOT NULL UNIQUE KEY ); SELECT * FROM Department; DROP TABLE IF EXIS...
true
40248894f5b604213880733b242199885758691d
SQL
tulu1688/UdemyStuffs
/SQL-Traning/sample_store_procedure_insertdb_2.sql
UTF-8
1,960
3.640625
4
[]
no_license
USE payment; DROP PROCEDURE `add_tr_order`; CALL `payment`.`add_tr_order`(100); select count(*) from payment.tr_order; truncate payment.tr_order; -------------------------------------- -- Create procedure -------------------------------------- DELIMITER // CREATE DEFINER=`root`@`localhost` PROCEDURE `add_tr_order...
true
0b6d12b990e7d40164e4ff69b1848e57a87e5183
SQL
forteleaf/gym
/.svn/pristine/0b/0b6d12b990e7d40164e4ff69b1848e57a87e5183.svn-base
UTF-8
196
2.625
3
[]
no_license
create table ifboard ( ifnum number(6) primary key, id varchar2(30) references users(id), title varchar2(50), content clob, hit number(10), regdate date ); CREATE SEQUENCE if_seq;
true
dedc58b7bd1f1acfce29082c3b819a12dc842b27
SQL
villdimova/SoftUni-MicrosoftSQLServer
/IndicesAndDataAggregation/18. Third Highest Salary.sql
UTF-8
208
3.921875
4
[ "MIT" ]
permissive
SELECT DISTINCT hs.DepartmentID, hs.Salary FROM (SELECT DepartmentID, Salary, DENSE_RANK() OVER (PARTITION BY DepartmentID ORDER BY Salary DESC) AS Ranked FROM Employees)AS hs WHERE Ranked=3
true
0b2ff2cdbe5f12d48ccdb8b1b2817d0f05c29f80
SQL
sprokushev/Delphi
/MASTER/_DATABASE/Constraints/KLS_USL_OPL_NonFK.sql
UTF-8
379
3.234375
3
[]
no_license
-- -- Non Foreign Key Constraints for Table KLS_USL_OPL -- ALTER TABLE MASTER.KLS_USL_OPL ADD ( CHECK ("NAME" IS NOT NULL) DISABLE NOVALIDATE); ALTER TABLE MASTER.KLS_USL_OPL ADD ( CHECK ("KOL_DN" IS NOT NULL) DISABLE NOVALIDATE); ALTER TABLE MASTER.KLS_USL_OPL ADD ( CONSTRAINT USL_OPL_PK PRIMARY KEY ...
true
36d8564e0e4df405e2347e1f6bae2de09bda1ce6
SQL
borjabrisson/WxAF
/docs/user/contactos.sql
UTF-8
1,854
3.609375
4
[]
no_license
-- /*SuperType*/ select "Contacts BD" as step; Create Table SuperType ( ID integer unsigned auto_increment primary key ) engine InnoDB, default character set utf8; Create Table Company( ID integer unsigned auto_increment, name varchar(50), address varchar (35), email varchar(20), CIF varchar(10), web varchar(12...
true
5962d66d90c37ce75cc39cd6d1adb7915a45a366
SQL
albertomattos/SQL_gerais
/Custo médio.sql
UTF-8
166
2.765625
3
[]
no_license
select t.tipo_prd, t.codigo, t.descricao, t.custo_med from faprdcad t where t.tipo_prd in (select tipo_prd from fatipcad where pre_class = 'MAT' and faturavel = 'S')
true
ea93b8e7be0cf39b4fc41d0499cb29bd7097e7d5
SQL
ArielJiang0520/Smart_Walking_Advisor
/data builder/sql/schema.sql
UTF-8
779
3.53125
4
[]
no_license
USE `cs125`; Create TABLE IF NOT EXISTS `User`( `uid` VARCHAR(2), PRIMARY KEY (`uid`) ); Create TABLE IF NOT exists `Location History`( `uid` VARCHAR(2), `start_time` DATETIME, `end_time` DATETIME NOT NULL, `location` VARCHAR(100) NOT NULL, PRIMARY KEY (`uid`,`start_time`), FOREIGN KEY(`uid`) R...
true
cf505d12fe4b9966c0aa872c31e3b2e9dade42c6
SQL
sanduDisala/Information-Technology-Project
/Final ITP Integrated/Final ITP/Main/Modules/Inventory/SQL Scripts/Just_For_Testing_Part_2.sql
UTF-8
3,126
3.09375
3
[]
no_license
select * from tbl_user select * from tbl_orders select * from tbl_stocks select * from tbl_ordered_Item_details select * from tbl_inventory --not needed select * from tbl_suppliers select * from tbl_supplier_brands select * from tbl_items select * from tbl_warehouse_activities select * from Vehicle_Request_Details sele...
true
4a266eb3aaa04b8bc1d8cc85e042255e31113a6d
SQL
seallred/ibmSrDbXsr
/sqlXsr/viewPmrRetryReport.sql
UTF-8
770
3.21875
3
[]
no_license
-- PmrRetryMonitor -- Watch for issues with the retry process. -- Retry runs on v30015, so it's best to run the sql and point XAT to p3 select pr.create_datetime, pr.src_node, pr.create_user, prri.submit_type, pr.entitled, pr.src_tran_id, pr.pmr_num, pr.branch, pr.retain_cntry_code, ic.description, rcc.retain_node...
true
cd479bf9daec0a8242ac41ae787639fa34084454
SQL
rashedcs/LAB
/DBMS/Lab 2/query 1.sql
UTF-8
152
3.15625
3
[]
no_license
--Find the customers of the bank who have an account but not a loan (select customer_name from depositor) except (select customer_name from borrower);
true
408f0dd04eafd108f38a2d7fb97144892e632f7b
SQL
anderson755/anderson755
/id17320712_zoologico.sql
UTF-8
10,133
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.5 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost:3306 -- Tiempo de generación: 27-07-2021 a las 22:44:40 -- Versión del servidor: 10.3.16-MariaDB -- Versión de PHP: 7.3.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00...
true
74b24c01b4083f6669212abd61e47d57c29911d3
SQL
thongnbui/MIDS2016
/205/exercise_1/investigations/best_states/best_states.sql
UTF-8
208
3.140625
3
[]
no_license
drop table best_state; create table best_state as select state, sum(score) total_score, avg(score) avg_score from hospital_score h group by state order by avg_score desc limit 10; select * from best_state;
true
6af347c2132ef2703719f68208908398cfc36fb5
SQL
ontop/ontop-examples
/iswc-2018-optional/sql/bsbm1M/Q10.sql
UTF-8
2,202
3.8125
4
[ "Apache-2.0" ]
permissive
SELECT DISTINCT v0123.product, COALESCE(lang_en, lang_zh, lang_de, lang_fr) AS lang, COALESCE(review_en_id, review_zh_id, review_de_id, review_fr_id) AS review_id FROM ( SELECT v012.product AS product, review_en_id, lang_en, review_zh_id, lang_zh, review_de...
true
f209ac15baddd193df528943431f79563cec1666
SQL
Psi-team/SearchFoodBackend
/src/main/resources/schema.sql
UTF-8
5,100
3.859375
4
[]
no_license
/* sudo mysql -u 'user' -p */ /* CREATE DATABASE IF NOT EXISTS SearchFood; USE SearchFood; */ /* Create the user table */ /* CHAR() 是固定字元存取,VARCHAR()是以實際字元存取, * VARCHAR()雖然比較省空間,但若要修改可能會被擷取分段擺放 * VARCHAR()也不能有給定太大的空間,雖然是以實際字元數量儲存,但是Query是會以定義的數量來搜尋,因此太大的空間會消耗記憶體空間 */ CREATE TABLE IF NOT EXISTS Users( ...
true
b29303a198139bcfb6ae21dff5274a0269cb34a4
SQL
rumblysam/greatbay
/greatbay_DB.sql
UTF-8
303
2.96875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS greatbay_db; USE greatbay_db; CREATE TABLE IF NOT EXISTS auctions( id integer not null auto_increment, itemName varchar(50) not null, category varchar(50) not null, startingBid integer default 0, highestbid integer default 0, primary key (id) );
true
88e3b6cdc2a27f06fd57ffbdd369711bedff60a4
SQL
emmanuel-garza/data-sciencie-study
/sql/insight-practice-db/medium/medium_p11.sql
UTF-8
407
4.25
4
[]
no_license
/* 11. Show all Customers who have never placed an order with Employee 4.(16 rows) */ /* Alternate solution: Do a union of 2 queties: 1) Customers who have never placed an order 2) Customers who have placed orders, but have never placed order with 4) */ SELECT * FROM customers WHERE customers.customerid NOT IN (S...
true
29e20beccf4e4f751491f2bafb673d5fca3d0f6e
SQL
mstig/Bamazon
/bamazon_Schema.sql
UTF-8
737
3.53125
4
[]
no_license
DROP DATABASE IF EXISTS bamazon_db; CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products ( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(50) NOT NULL, department_name VARCHAR(50) NOT NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INT(5) NOT NULL, PRIMARY KEY (item_id) ); ...
true
1093fe2d8a6bbc9f0d7652df9c2790a1aaa74e69
SQL
jsbinh/dollar
/dollarflowsystem.sql
UTF-8
2,164
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jan 17, 2014 at 06:30 AM -- Server version: 5.5.24-log -- PHP Version: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
fc05c185fdc57c37da59035b49305a57bf3e589e
SQL
hllylyns/kyzmt
/db/join_invitees_on_events.sql
UTF-8
90
2.515625
3
[]
no_license
select * from users join invitees on users.id = invitees.users_id where events_id = $1;
true
a11b8e24688a84a0fb6a84eb04d4a1ef68e2e901
SQL
Neotrixsx/Application_Dashboard
/SQL(Database)/appdash.main.sql
UTF-8
4,279
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 27, 2018 at 05:44 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
7c0e675cdc03fb64d58a7de405b49ca658436eff
SQL
lsytj0413/myinctl
/test/user_accounts.sql
UTF-8
1,695
4.15625
4
[ "MIT" ]
permissive
CREATE TABLE `user_accounts` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `name` VARCHAR(32) NOT NULL DEFAULT '' COMMENT 'User Name', `gender` ENUM('UNKNOWN', 'Male', 'Female') DEFAULT 'UNKNOWN' COMMENT 'User Gender', `gender2` ENUM('Male', 'Female') DEFAULT 'Male', `email` VARCHAR(20) NOT NULL DEFAULT ''...
true
d85f880d99b7162cda82cba7e16493585b130c03
SQL
bosijiazu/dormitory
/src/main/webapp/sql/xsgl_zbglqxbm.sql
UTF-8
757
2.71875
3
[]
no_license
CREATE TABLE XSGL_ZBGLQXBM ( ID int(11) NOT NULL AUTO_INCREMENT COMMENT '主键', XH varchar(64) NOT NULL COMMENT '学号', BT varchar(40) DEFAULT NULL COMMENT '标题', QJSY varchar(255) DEFAULT NULL COMMENT '请假事由', ZBKSSJ datetime DEFAULT NULL COMMENT '值班开始时间', ZBJSSJ datetime DEFAULT NULL COMMENT '值班结束时间', ZDRQ datetime DEFAULT...
true
f6d2f6d5652c3d639b668a897fb11b6506cc3edd
SQL
zmajnex/lara-ecommerce-starter-example
/database/dump/laracms_db.sql
UTF-8
19,791
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.2 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Час створення: Вер 16 2016 р., 06:24 -- Версія сервера: 5.6.17-log -- Версія PHP: 7.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
f84f0ecdcb9f2738eac38d073fa3f52bdfa73536
SQL
Allenjun/learning
/learning-boot/learning-boot-security/src/main/resources/db/migration/V1.1__init.sql
UTF-8
4,389
3.59375
4
[]
no_license
create table sys_user ( user_id bigint(20) not null auto_increment comment '用户ID', dept_id bigint(20) default null comment '部门ID', user_name varchar(30) not null comment '用户账号', nick_name varchar(30) not null comment '用户昵称', user_type varchar(2) defaul...
true
18c912dda4262eadb53f5c41df995e5da6a1306b
SQL
alexanderaboutanos/22.2.15
/queries_products.sql
UTF-8
1,914
4
4
[]
no_license
-- Comments in SQL Start with dash-dash -- -- Add a product to the table with the name of “chair”, price of 44.00, and can_be_returned of false. INSERT INTO products (name, price, can_be_returned) VALUES ('chair', 44.00, false); -- Add a product to the table with the name of “stool”, price of 25.99, and can_be_retur...
true
3a330a4b5ebbd89983d41e3b696ce1a0aeb0e2a0
SQL
robertocuyar/database-exercises
/join_exercises.sql
UTF-8
1,879
4.25
4
[]
no_license
USE employees; SELECT d.dept_name AS 'Department Name', CONCAT(e.first_name, ' ', e.last_name) AS 'Department Manager' FROM employees as e JOIN dept_manager as dm ON e.emp_no = dm.emp_no JOIN departments as d ON dm.dept_no = d.dept_no WHERE to_date = '9999-01-01' AND e.gender = 'F' ORDER BY d.dept_name; SELECT d.dept_...
true
9dc9618a95d149a693eb303b4c3b83753d12ccb1
SQL
dncontin/Tutorials
/SQL & MySQLTutorial/Joining Accross Databases.sql
UTF-8
135
2.875
3
[]
no_license
USE sql_inventory; SELECT oi.product_id, name, quantity FROM sql_store.order_items oi JOIN products p ON oi.product_id = p.product_id;
true
75eeda1429ea04ddcfa0706a57fcf92456440858
SQL
ssavvides/tpch-spark
/dbgen/variants/14a.sql
UTF-8
416
3.109375
3
[ "MIT" ]
permissive
-- $ID$ -- TPC-H/TPC-R Promotion Effect Query (Q14) -- Variant A -- Approved March 1998 :x :o select 100.00 * sum(decode(substring(p_type from 1 for 5), 'PROMO', l_extendedprice * (1-l_discount), 0)) / sum(l_extendedprice * (1-l_discount)) as promo_revenue from lineitem, part where l_partkey = p_p...
true
71ef2ec29b3a0817e03029fd47c1ad0a3d387966
SQL
royalchan2436/SQL-Query
/q2.sql
UTF-8
1,477
4.375
4
[]
no_license
SET search_path TO artistdb; /*Create view to find the sales for albums which include songs that are collaberated between two differrnt artists. */ CREATE VIEW Collab AS SELECT DISTINCT be.album_id, al.artist_id, al.sales FROM Collaboration co INNER JOIN BelongsToAlbum be ON co.song_id = be.song_id INNER JOIN Album a...
true
2a26fe3308da63823c69dc84599dff598e33626b
SQL
cephalization11/ETL-CDMBuilder
/source/Builders/org.ohdsi.cdm.builders.hcup/HCUP/Lookups/DRG.sql
UTF-8
389
3.625
4
[ "Apache-2.0" ]
permissive
SELECT distinct old_drg.concept_code AS source_code, new_drg.concept_id AS target_concept_id FROM concept old_drg INNER JOIN concept_relationship ON old_drg.concept_id = concept_id_1 INNER JOIN concept new_drg ON new_drg.concept_id = concept_id_2 WHERE old_drg.vocabulary_id = 'DRG' AND relationship_id = 'Maps to' A...
true
5628ef3391cfee2700230b51c1575195bce7c040
SQL
programoworm/MSc_Assignments
/sem1/plsql/test.sql
UTF-8
3,315
3.84375
4
[]
no_license
declare msg varchar2(20):='Hello RB'; begin dbms_output.put_line(msg); end; / --Armstrong number declare x number(5):=&x; otemp x%type:=x; num x%type:=0; temp number(1); begin --otemp:=x; while x!=0 loop --if x=1 then -- num:=num+1; -- exit; --end if; temp:=mod(x,10); dbms_output.put_line(temp); nu...
true
0ea2183b31fe716db1888c4bae6eca1e1dec80c8
SQL
sdss/sdssdb
/schema/sdss5db/catalogdb/gaia/dr3/qso_candidates/qso_candidates_create_table.sql
UTF-8
4,533
3.21875
3
[ "BSD-3-Clause" ]
permissive
-- This create table statements is based on the below link. -- https://gea.esac.esa.int/archive/documentation/GDR3/Gaia_archive/chap_datamodel/sec_dm_extra--galactic_tables/ssec_dm_qso_candidates.html create table catalogdb.gaia_dr3_qso_candidates( solution_id bigint, -- Solution Identifier (long) source_id bigint, ...
true
0d623300668ec0556a9bc2972b30584adb48ddc7
SQL
tomasz-sroka/dbrx-repository
/sprepinss.sql
UTF-8
32,575
2.71875
3
[]
no_license
Rem Rem $Header: sprepins.sql 17-apr-2002.16:59:29 vbarrier Exp $ Rem Rem sprepins.sql Rem Rem Copyright (c) 2001, 2002, Oracle Corporation. All rights reserved. Rem Rem NAME Rem sprepins.sql - StatsPack Report Instance Rem Rem DESCRIPTION Rem SQL*Plus command file to report on differences between Re...
true
b4999caf2dabb2c0f8ec3ef6641bec814aad9d6e
SQL
YeonggilGo/Salendar
/backend/salendar/sql/User.sql
UTF-8
601
3.203125
3
[]
no_license
use salendar; drop table if exists user; CREATE TABLE User ( `usrNo` INT NOT NULL AUTO_INCREMENT COMMENT '사용자 일련번호', `usrPwd` VARCHAR(20) NULL COMMENT '비밀번호', `usrNick` VARCHAR(15) NULL COMMENT '닉네임', `usrEmail` VARCHAR(30) NULL COMME...
true
1adbd7c86b5846e4ff633533430552878463c2e7
SQL
pjcevans/openprescribing
/openprescribing/frontend/management/commands/measure_sql/global_deciles_practices.sql
UTF-8
1,424
3.375
3
[ "MIT" ]
permissive
SELECT month, MAX(p_10th) AS practice_10th, MAX(p_20th) AS practice_20th, MAX(p_30th) AS practice_30th, MAX(p_40th) AS practice_40th, MAX(p_50th) AS practice_50th, MAX(p_60th) AS practice_60th, MAX(p_70th) AS practice_70th, MAX(p_80th) AS practice_80th, MAX(p_90th) AS practice_90th, SUM(denominato...
true
556511e83810953be0640cf55558f06c1eb4ec7e
SQL
teeweee/JS2021two
/JS-003/university2.sql
UTF-8
8,034
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 20, 2021 at 05:01 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true