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
25ad8075dfc6977e96c035a96594cf3698406d2b
SQL
kaskiw/burger
/db/schema.sql
UTF-8
203
2.65625
3
[]
no_license
create database burgerDB; use burgerDB; create table burgers( id INT NOT NULL AUTO_INCREMENT, burger_name VARCHAR(30) NOT NULL, devoured BOOLEAN NOT NULL, date TIMESTAMP NOT NULL, PRIMARY KEY (id) );
true
338d939eb6ec14b8920fc0396824964a3518ab26
SQL
sagabadi/PenulisCodeTest
/penulisid.sql
UTF-8
5,326
2.890625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 06, 2020 at 02:39 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
fe764ee733d9bc7186a23e45b56fc24373365c01
SQL
wojsamjan/clabs
/750-Sqlite/jp.sql
UTF-8
899
3.40625
3
[]
no_license
-- -- projekt bazy danych dla przedmiotu języki programowania -- drop table if exists studenci; create table studenci ( id integer primary key autoincrement, nazwisko varchar(128) not null, imię varchar(128) not null, login varchar(128) not null collate nocase, data datetime,...
true
44ff3d7a2165ed1f767a9d1cd3bcff20aa2daf14
SQL
AlexanderBanar/job4j_cinema
/db/schema.sql
UTF-8
1,285
3.015625
3
[]
no_license
create database cinema; CREATE TABLE accounts ( id SERIAL PRIMARY KEY, username VARCHAR NOT NULL, email VARCHAR NOT NULL UNIQUE, phone VARCHAR NOT NULL UNIQUE ); CREATE TABLE tickets ( id S...
true
433831524f76dd45eb5a2af52b993a984ee9a4ee
SQL
ReneNyffenegger/about-sqlite
/sql/expressions/like/case-sensitiveness.sql
UTF-8
586
2.625
3
[]
no_license
create table tab ( col text ); insert into tab values ('abc def ghi.'); insert into tab values ('Abc Def Ghi.'); insert into tab values ('ABC DEF GHI.'); select * from tab where col like '%Def%'; -- -- abc def ghi. -- Abc Def Ghi. -- ABC DEF GHI. select * from tab where col like '%Def%' collate binary; -- -- abc...
true
6f73919688e89a0d0ed3093dd0121a8276470664
SQL
Gayatri-Dhekane/Grocery_management_during_covid19_crisis
/Grocery_mysql.sql
UTF-8
5,951
3.0625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64) -- -- Host: localhost Database: sdl -- ------------------------------------------------------ -- Server version 8.0.20 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; ...
true
6352986d2937e14356792d9c6700607ae7957438
SQL
YaofenG19/jiuxianwang
/src/sql/reg.sql
UTF-8
1,148
2.6875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : yf19 Source Server Version : 50714 Source Host : localhost:3306 Source Database : yf19 Target Server Type : MYSQL Target Server Version : 50714 File Encoding : 65001 Date: 2019-05-20 09:07:36 */ SET FOREIGN_KEY_CHECKS=0; -- ---------...
true
c3903847b59d47c63d7e9c45b18cef02f82c6dca
SQL
dhamotharang/SvnGit
/Core/Database/StoredProcedure/Create Scripts/InserScript_GlobalCodes_PermissionTemplateTP_SmartView.sql
UTF-8
408
2.859375
3
[]
no_license
IF NOT EXISTS (SELECT 1 FROM GlobalCodes WHERE Category='PERMISSIONTEMPLATETP' AND CodeName='SmartView' AND GlobalCodeId=5929) BEGIN SET IDENTITY_INSERT GlobalCodes ON INSERT INTO GlobalCodes (GlobalCodeId, Category, CodeName, Active, CannotModifyNameOrDelete) VALUES (5929, 'PERMISSIONTEMP...
true
7582b8f4df07b79e40f22cd7f6a07c65c055b89c
SQL
AAFC-BICoE/dina-base-api
/dina-base-api/src/test/resources/create-test-data.sql
UTF-8
1,247
3.234375
3
[ "MIT" ]
permissive
REVOKE CONNECT ON DATABASE dina_test FROM PUBLIC; REVOKE USAGE, CREATE ON SCHEMA public FROM PUBLIC; CREATE SCHEMA IF NOT EXISTS dina_base; REVOKE CREATE ON SCHEMA dina_base FROM PUBLIC; -- migration user CREATE ROLE migration_user NOSUPERUSER NOCREATEDB NOCREATEROLE INHERIT LOGIN PASSWORD 'test'; GRANT CONNECT ON D...
true
88572ae517f40d0e1d4a0d7b8309ad983b5e946e
SQL
sultan-crow/Major-2_website
/databases/messages.sql
UTF-8
8,938
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.2.2 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 18, 2015 at 08:58 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
0fc89f8942d8299fdc76f611715158717f4422d4
SQL
Abdu1-Aziz/Ashweb-final-project
/AAF18942022.sql
UTF-8
2,123
3
3
[]
no_license
create schema AAF18942022; use AAF18942022; create table Employee( Employee_id smallint primary key not null, Fname varchar(100), Lname varchar(100), position varchar(100) ); create table Study_abroad( abroad_id int auto_increment primary key not null, partner_name varchar(100) not null, program varchar(100) not n...
true
ab2fb4701c838b682533e171e09cb38eebdc07b3
SQL
Nmuaddib/RGitRep
/BI_SQL/BI_reexec.sql
ISO-8859-1
1,028
3.703125
4
[]
no_license
select db.NUM_ASSOCIADO COD, to_char(fc.DATA_ATENDIMENTO,'dd/mm/rrrr') DTA, di.DESC_CLASSIFICACAO_DESPESA CA, di.NOME_ESPECIALIDADE ESPEC, di.NOME_ITEM ITEM, di.TIPO_ITEM TIPO, sum(fc.VAL_APROVADO_ITEM) VALOR, sum(fc.QTD_ITEM) QTI, sum(fc.QTD_GLOSADO) QTG...
true
d36b7ebe024abd6728caa24ba8907dd4d1a42454
SQL
alperkonuralp/SqlOrnekleri
/20100823/SQLQuery10.sql
ISO-8859-9
395
3.828125
4
[]
no_license
-- 1997 yl iinde aylk ve satc baznda -- yaplan satlarn adetlerini gsteren -- sorguyu yaznz. SELECT MONTH(OrderDate) AS 'Month', EmployeeID, COUNT(*) AS 'OrderCount' FROM Orders --WHERE OrderDate BETWEEN '1997-01-01' AND -- '1997-12-31 23:59:59' WHERE YEAR(OrderDate) = 1997 GROUP BY MONTH(OrderDate), EmployeeID WI...
true
d0c410687979de8afe7cf835e0b29fd6e4c9409b
SQL
emilylee927/sunshine-olive
/db/product/add.sql
UTF-8
180
2.78125
3
[]
no_license
INSERT INTO product (name, description, price, category) VALUES ($1, $2, $3, $4) ; SELECT p.*, i.image_url FROM product p LEFT JOIN image i ON p.image_id = i.image_id;
true
3fc95fa76742ef9d6c1a23e571b97efb1b1cc5c2
SQL
dntmartins/sistema-controle-vacinas
/database/sql_vac.sql
UTF-8
3,175
3.765625
4
[]
no_license
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'; CREATE SCHEMA IF NOT EXISTS `VACDB` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci ; USE `VACDB` ; -- ---------...
true
0e18299e586f567e44a8ddbeba13e59efbb0c6cd
SQL
damir-bubanovic/MySQL-CodeBook
/DATE & TIME - selecting rows based on temporal characteristics.sql
UTF-8
1,922
4.75
5
[]
no_license
/* !!DATE & TIME - SELECTING ROWS BASED ON TEMPORAL CHARACTERISTICS!! > You want to select rows based on temporal conditions > Use a date or time condition in the WHERE clause > select rows by looking for values that occur before or after a given date, within a date range, or that match particular month or...
true
3b65b866bd609184abd14a1cd601416417ce3287
SQL
MysteryWorldTeam/evistbot
/bd.sql
UTF-8
14,140
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.15.10 -- https://www.phpmyadmin.net 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=@@CO...
true
fca6a95c9beb52c52effefd6e385b5fbac603779
SQL
joinsiyuchun/poct
/think_rbac.sql
UTF-8
8,998
3.265625
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : 本地连接 Source Server Version : 80012 Source Host : localhost:3306 Source Database : think_rbac Target Server Type : MYSQL Target Server Version : 80012 File Encoding : 65001 Date: 2020-02-09 00:42:59 */ SET FOREIGN_KEY_CH...
true
9cff448c12072eb34a186f2e7508d1c81c2abace
SQL
yahong2018/imms
/src/main/sql/c2m/code.sql
UTF-8
6,265
3.609375
4
[]
no_license
drop table code_seed; drop table size; drop table defect_code; drop table machine_type; drop table material_type; drop table uom; CREATE TABLE `code_seed`( `record_id` BIGINT AUTO_INCREMENT NOT NULL, `seed_no` varchar(50) NOT NULL, `seed_name` ...
true
58d4f22879b7a2d2d0c193fc9a87128f2ab6bd11
SQL
skulas/skulas
/SQL/TC/backup_or_restore_RDS_through_S3_bucket.sql
UTF-8
562
2.65625
3
[]
no_license
-- Connect this query to the source server exec msdb.dbo.rds_backup_database @source_db_name='trums', @s3_arn_to_backup_to='arn:aws:s3:::tcstorage1/stage_bu_file_for_copy', @overwrite_S3_backup_file=1; exec msdb.dbo.rds_task_status @db_name='trums' --- Before restoring remember to conne...
true
1604ea4b8f24a9f85266b9f27ed8ce8a319c0716
SQL
tuandm/phuckhang
/dbscripts/patch/02_create_landbook_project_tables.sql
UTF-8
943
3.515625
4
[]
no_license
/*Table structure for table `pk_lb_products` */ CREATE TABLE IF NOT EXISTS `pk_lb_products` ( `lb_product_id` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `code` varchar(150) DEFAULT NULL, `price` bigint(20) DEFAULT NULL, `length` double DEFAULT NULL, `width` double DEFAULT NULL, `area` double DEFAULT NULL...
true
5d90fd19a4fe8009b7bf6a4ca17f8e777d628432
SQL
JPesel/Challenge7
/Queries/Employee_Database_challenge.sql
UTF-8
1,029
4.46875
4
[]
no_license
--Create retirement_titles table SELECT e.emp_no , e.first_name , e.last_name , e.birth_date , ti.title , ti.from_date , ti.to_date INTO retirement_titles FROM employees e left join titles ti on e.emp_no = ti.emp_no where e.birth_date between '1952-01-01' AND '1955-12-31' order by e.emp_no -- Use Dictinct with Orderb...
true
93274e3ddd8704bd47f971c6469d2ebba5b93d83
SQL
greginns/QnD
/2021-10-28T20-15-30.307Z.sql
UTF-8
770
2.875
3
[]
no_license
CREATE TABLE IF NOT EXISTS "gm"."items_Actminp" ( "rateno" INT NOT NULL, "year" INT NOT NULL, "month" INT NOT NULL, "minppl" JSONB NULL, "activity" VARCHAR(8) NOT NULL, PRIMARY KEY("activity","rateno","year","month") ); CREATE TABLE IF NOT EXISTS "gm"."items_Lodgminp" ( "rateno" INT NOT NULL, "year" INT NOT NULL, "mont...
true
061e9a1c013ac38f6d4ae6cce70eff6b59f2caf4
SQL
EBignardi/BasicSQL
/esame18-06-2018.sql
UTF-8
2,872
3.859375
4
[]
no_license
use master use DB_2018_06_18 --------------------------------------------------------------------------------------------- alter table Cantante add constraint chk_maggiorenne check (datediff(year,data_nascita, getdate()) >= 18) ---------------------------------------------------------------------------------------...
true
e0b93c55fc9a15ae2fa1147d5ba6d552d0ded30a
SQL
almyhanifan/Opendoor-Monitoring
/opendoortable.sql
UTF-8
3,418
2.515625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Feb 03, 2017 at 06:37 PM -- Server version: 10.1.16-MariaDB -- PHP Version: 5.6.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
6ea0f8b400d0bde96dbb2716e5a66c02f0ae8292
SQL
ChristopherZuraff/w4-coursework
/data.pirates.sql
UTF-8
1,174
2.578125
3
[]
no_license
INSERT INTO shoulderPets (typeOfAnimal, isDead, phrase, name) VALUES ("monkey","false","ook","frank"), ("raven","true","quoth","henrietta"), ("catapillar","true","better fly <shank>","timothy"), ("crab","false","pinch that noise","vegas"); INSERT INTO ships (name, class, durability, numCrew) VALUES ("Dirty Dragon","De...
true
43dbee418a89f30812b933286a786077b3039fe4
SQL
rissins/SQL
/ROUND, TRUNC ,To__CHAR.sql
UTF-8
1,319
3.140625
3
[]
no_license
SELECT ROUND (987.654,2) "1" ,ROUND (987.654,1) "1" ,ROUND (987.654,0) "1" ,ROUND (987.654,-1) "1" ,ROUND (987.654,-2) "1" ,ROUND (987.654,-3) "1" FROM dual; SELECT TRUNC (987.654,2) "1" ,TRUNC (987.654,1) "1" ,TRUNC (987.654,0) "1" ,TRUNC (987.654,-1) "1" FROM ...
true
a91f238012d3c0f80588e086abb93904ac1ada31
SQL
kimcharli/src-pe-tools
/classes/CS579/dbclass/_EmpApp/Test/access-ExecutiveActions.sql
UTF-8
2,567
3
3
[]
no_license
-- Team: Data Junkies -- Employee Database Application prompt prompt $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$ prompt pause Hit Return to test ExecutiveActions prompt prompt *** ExecutiveActions Test prompt prompt This tests the enforcement of ExecutiveActions: prompt An employee can only be hir...
true
e4648cc4733b31c7a4e4356236fcbb61c0b459bd
SQL
sunnysidesh/SQL_Drills
/SQL Drills.sql
UTF-8
4,115
4.53125
5
[]
no_license
-- 1. How mnay records are in the vehicles table? -- Provide the query you'd use to determine this as well as the answer to the equation. SELECT COUNT(*) FROM vehicles; -- Answer: 33,442 vehicles -- 2. Write a query that returns all the records in the vehicles table. SELECT * from vehicles; -- 3. Write a query that...
true
312138c45b844449aeae9ac85823462ba642104d
SQL
cocopelli96/inventory_mgt_WEB320
/database/insert_employee_data.sql
UTF-8
2,656
3.390625
3
[]
no_license
use CampChamp_Employee; delete from EmployeeJobHistory where uid > 0 or pos_id > 0; delete from EmployeeJob where uid > 0 or pos_id > 0; delete from Position where pos_id > 0; delete from Employee where uid > 0; delete from PromotionType where prom_id > 0; delete from Department where did > 0; insert into Department ...
true
536df4ca43e0159cececa96a06874f376e07ef20
SQL
andmos/Game-Scoreboard-Server
/Database/createGameScoreboardDatabase.sql
UTF-8
278
2.59375
3
[ "MIT" ]
permissive
CREATE TABLE `GameScoreBoard` ( `GameName` varchar(15) DEFAULT NULL, `PlayerName` varchar(15) DEFAULT NULL, `Score` int(15) unsigned, `recordId` int(11) unique key AUTO_INCREMENT, PRIMARY KEY (`recordId`)) ENGINE=InnoDB AUTO_INCREMENT=1 DEFAULT CHARSET=utf8
true
61d32b1ba299fb382e22ded88bd714043311193d
SQL
cckmit/xinfu
/ccms/WebContent/WEB-INF/action/ccms/module/campaign/objob/doc/search/query-base.sql
UTF-8
290
3
3
[]
no_license
select f.tuid ,t.tuid as document_id ,t.document_name ,case when f.form_type='0' then '客户信息' when f.form_type='1' then '快速新增' else '其他' end as form_type ,f.show_order from cs_job_form f inner join t_document t on f.document_id=t.tuid WHERE 1=1 ${filter}
true
8737f88bf551058f5de629079b8bdcdc64d8c024
SQL
xuehongzhi/pginstaller
/createview.sql
UTF-8
1,801
3.046875
3
[]
no_license
CREATE OR REPLACE VIEW equipmgr_repairrcdview AS SELECT equipmgr_repairrcd.id, equipmgr_repairrcd.device_id, equipmgr_repairrcd.fromcompany, equipmgr_repairrcd.repaircompany, equipmgr_repairrcd.content, equipmgr_repairrcd.total, equipmgr_repairrcd.repairdate, equipmgr_repairrcd.endrepairdat...
true
18149ca4d15b4fb9a5160d40374928b3bf7e7db0
SQL
kinshuk4/codesignal-solutions
/arcade/2.database/1.welcome-to-the-table.sql
UTF-8
931
3.515625
4
[ "MIT" ]
permissive
-- 1. projectList CREATE PROCEDURE projectList() BEGIN select project_name, team_lead, income from Projects; END ------------------------------------------------------- -- 2. countriesSelection CREATE PROCEDURE countriesSelection() BEGIN select * from countries where continent = "Africa"; END ------------------...
true
b9a881edb21e57dc835a6a66bc9705bc93d461c2
SQL
EricChiou/minecraft-ws
/db/mysql/schema.sql
UTF-8
314
2.59375
3
[]
no_license
CREATE TABLE IF NOT EXISTS `config` ( `key` VARCHAR(30) NOT NULL, `code` VARCHAR(30) NOT NULL, `description` VARCHAR(30) NOT NULL, `created_date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_date` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`key`) );
true
ee9dda7b4feeeffdf687115d9561318e019fcfdc
SQL
Jorgelbl/Apirest_Carrera
/carrera.sql
UTF-8
2,195
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 06-07-2021 a las 07:08:40 -- Versión del servidor: 10.4.18-MariaDB -- Versión de PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
81932853261bfd077522075abbbf7ed193382ec4
SQL
sorgerlab/sbwiki
/mediawiki/extensions/SemanticBiology/maintenance/resources/sbw_create.sql
UTF-8
557
2.625
3
[]
no_license
CREATE TABLE /*$wgDBprefix*/sbw_uid ( id serial, type_code char(2) NOT NULL, creator_initials char(3) NOT NULL, annotation varchar(255), PRIMARY KEY id (id) ) /*$wgDBTableOptions*/; -- Force id numbering to start at 100 (just an aesth...
true
b741a301552d6a980f6a571ecbb09e5d3ffdc0e3
SQL
derrickdjoe/CSE111
/derrick-joe-lab4/10.sql
UTF-8
123
3.171875
3
[]
no_license
SELECT p_type, MAX(l_discount) FROM lineitem, part WHERE p_partkey == l_partkey AND p_type LIKE '%ECONOMY%' GROUP BY p_type
true
d604edaa0d89d503c90d2d22fc6fdf70523b2fa2
SQL
Rhaster/PROJEKT-MYSQL-PAWEL-DEPTULA
/PROJEKT MYSQL PAWEL DEPTULA/PROJEKT0/WIDOKI/WIDOK LACZENIE 3 TABEL.sql
UTF-8
794
3.25
3
[]
no_license
CREATE ALGORITHM = UNDEFINED DEFINER = `root`@`localhost` SQL SECURITY DEFINER VIEW `laczenie 3 tabel pokaz pracownikow bankierow` AS SELECT `panowie`.`IMIE` AS `IMIE`, `panowie`.`ROLA` AS `ROLA`, `panowie`.`id_pana` AS `id_pana`, `sludzy`.`IMIE` AS `IMIESZEFAPOSREDNI...
true
040551fe13331d70c18a557f4dd58e8eedec213b
SQL
JonZudell/ghcn-pull-load
/database/create/create_ghcn_data_ghcn_summary.sql
UTF-8
457
2.90625
3
[]
no_license
CREATE TABLE "GHCN_DATA"."GHCN_SUMMARY" ( "ID" character varying(11) NOT NULL, -- ID is the GHCN Daily Identification Number "TYPE" character varying(20) NOT NULL, "VALUE" real NOT NULL, -- VALUE is the value of the observation "MONTH" integer NOT NULL, -- MONTH is the Month of observation CONSTRAINT "GHCN_SU...
true
53c081058d5eb749acb93e14cd5fa689eca22ecc
SQL
simran-s4460/mySEJavaProejct
/Documents/mySEJavaProejct-master/mySEJavaProejct-master/query1.sql
UTF-8
419
2.90625
3
[]
no_license
CREATE DATABASE library; use library; create table users (userid int(100) primary key, username VARCHAR(20) not null, userpassword VARCHAR(20) not null, email VARCHAR(50) not null, mobno int(100) not null , address VARCHAR(50) not null); create table books ( bookid int(100) primary key , bookname VARCHAR(20) n...
true
79da8c4f497bcf11599f90861e8871581c0afa6f
SQL
g-grace/itc240-fl15-retro
/images/cookies.sql
UTF-8
3,585
3.109375
3
[]
no_license
-- Adminer 4.2.2 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; DROP TABLE IF EXISTS `Cookies`; CREATE TABLE `Cookies` ( `CookiesID` int(10) unsigned NOT NULL AUTO_INCREMENT, `Cookie` varchar(50) DEFAULT NULL, `Brand` varchar(50) DEFAULT ...
true
af4563188636bbe84c844331967f6c473c9d3f2d
SQL
MarcceloSelv/DBA
/Performance/Plan_Attributte.sql
UTF-8
1,757
3.828125
4
[]
no_license
Select Cast(((Cast(135015 as numeric(15,3))/1000)/1000) as numeric(15,3)) AS [Duration (sec)] SELECT attribute = '<xmp>' + Cast(pa.attribute as varchar) + '</xmp>', value = '<xmp>' + Cast(pa.value as varchar) + '</xmp>', ps.max_elapsed_time, ps.max_worker_time, ps.execution_count, ps.cached_time, ps.last_e...
true
92845b60fd5ebaf145f373634fb1dec58f2bef88
SQL
Denovo1998/experiment-flink-cdc-connectors-postgres-datastream
/setup_source_db1.sql
UTF-8
922
3.171875
3
[]
no_license
CREATE SCHEMA schema1; CREATE TABLE schema1.users ( id BIGSERIAL PRIMARY KEY, full_name VARCHAR ); -- NOTE: REPLICA IDENDITY needs to be set to FULL -- https://ci.apache.org/projects/flink/flink-docs-stable/dev/table/connectors/formats/debezium.html#consuming-data- -- https://debezium.io/documentation/reference/1...
true
5b10b371724d4cda1c397be5a8e392f3d829ce20
SQL
holon-platform/holon-datastore-jpa-querydsl
/core/src/test/resources/test-db-schema.sql
UTF-8
686
2.625
3
[ "Apache-2.0" ]
permissive
create table if not exists test1 ( keycode bigint primary key ,strv varchar(100) ,decv double ,datv date ,enmv int ,nbv int not null ,nst1 varchar(10) ,nst2 numeric(19,2) ,nss1 varchar(10) ,nss2 timestamp ); create table if not exists test1bis ( keycode bigint primary key ,strv va...
true
c10a3fb30e3975d880451a7efc4105b143f118b1
SQL
jellenm/my_blog
/data/jellenimooc1.sql
UTF-8
3,282
3.328125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50505 Source Host : localhost:3306 Source Database : jellenimooc Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2017-03-30 23:13:16 */ SET FOREIGN_KEY_CHECKS...
true
1dfc7d39c7f8ea41b631663484ff716894a627b6
SQL
desl0451/ACCP8.0S203MYSQL
/Chapter03/5.上机素材.sql
UTF-8
6,950
3.8125
4
[]
no_license
#show variables like 'character%' #创建数据库 #create database myschool; CREATE DATABASE IF NOT EXISTS `MySchool`; #选择数据库 USE `MySchool`; CREATE TABLE `Student`( `StudentNo` INT(4) NOT NULL PRIMARY KEY COMMENT '学号', `LoginPwd` VARCHAR(20) NOT NULL, `StudentName` VARCHAR(50) NOT NULL COMMENT '学...
true
e50dfdf2bb39f1e216ec1fc16218f8a8b049ba20
SQL
adelinataralunga/Datacamp_SQL_Fundamentals
/PostgreSQL Summary Stats and Window Functions/4.Beyond Window Functions.sql
UTF-8
3,094
4.5625
5
[]
no_license
-- A basic pivot CREATE EXTENSION IF NOT EXISTS tablefunc; SELECT * FROM CROSSTAB($$ SELECT Gender, Year, Country FROM Summer_Medals WHERE Year IN (2008, 2012) AND Medal = 'Gold' AND Event = 'Pole Vault' ORDER By Gender ASC, Year ASC; $$) AS ct (Gender VARCHAR, Year VARCHAR, ...
true
7f0f1eadcc4e523bcc0dfb67a438110285825bff
SQL
pfull-coder/sql_study
/2. 연습문제/5.select 연습문제05.sql
UHC
2,714
4.625
5
[]
no_license
-- OUTER JOIN SELECT * FROM job_history; -- ̷ SELECT * FROM employees; -- ȸ ̷ ִٸ ش ȸϰ -- ̷ ִ ȸϰ ȴ. SELECT E.employee_id, E.first_name, E.hire_date, E.job_id AS "cur_job_id", J.start_date, J.end_date, J.job_id, J.department_id FROM employees E, job_history J WHERE E.employee_id = J.employee_id(+) --...
true
b93afbe8259405f1a07bb7f713e086e50bd046b4
SQL
davidsonsns/journaly
/packages/j-db-client/prisma/migrations/20210507181000_re_init/migration.sql
UTF-8
17,409
3.640625
4
[]
no_license
-- CreateEnum CREATE TYPE "LanguageLevel" AS ENUM ('BEGINNER', 'INTERMEDIATE', 'ADVANCED', 'NATIVE'); -- CreateEnum CREATE TYPE "UserRole" AS ENUM ('ADMIN', 'MODERATOR', 'USER'); -- CreateEnum CREATE TYPE "PostStatus" AS ENUM ('DRAFT', 'PUBLISHED'); -- CreateEnum CREATE TYPE "ImageRole" AS ENUM ('HEADLINE', 'INLINE'...
true
54cb4568e472b2ef3b44a95c1eed48d39460c2f7
SQL
dkswldms12/StudyCafe
/StudyCafe/src/main/webapp/owmember/owmember.sql
UTF-8
533
3.40625
3
[]
no_license
-- 점주회원 테이블 create table owmember( owid varchar(50) not null, -- 아이디 owpasswd varchar(50)not null, -- 비밀번호 owname varchar(20) not null, -- 이름 owgender varchar(10) not null, -- 성별(1:남자, 2:여자) owbirth varchar(20) not null, -- 생년월일 owphone varchar(50) not null, -- 전화번호 owemail varchar(100) not null, -- 이메일 ...
true
e17ff23c9ac2a9ecf168972d9b322e4f687d0c52
SQL
poshjosh/personneldatamanager
/src/META-INF/3_populate_units.sql
UTF-8
16,396
2.84375
3
[]
no_license
-- unitid, unit, unittype, abbreviation, parentunit, unitsortorder insert into `loosebox_pdm`.unit VALUES(1, 'Presidency', 1, 'Presidency', null, 100); insert into `loosebox_pdm`.unit VALUES(2, 'National Security Agency', 1, 'NSA', 1, 200); insert into `loosebox_pdm`.unit VALUES(3, 'Ministry of Defence', 2, 'MOD', 1, 3...
true
73a536d883e137ee1ac1c754c922f24afe2ee299
SQL
LOL-TOGETHER/LOL-TOGETHER-SERVER
/sql/V1__init.sql
UTF-8
1,180
2.875
3
[]
no_license
CREATE TABLE IF NOT EXISTS comment ( `id` BIGINT NOT NULL AUTO_INCREMENT, `board_id` BIGINT NOT NULL, `member_id` BIGINT NOT NULL, `content` VARCHAR(300) NULL, `created_data_time` TIMESTAMP NOT NULL, CONS...
true
5688439cc4dd896c92673425f42cf2c8d28d6d03
SQL
michelle-shaina/Projekt151
/Projekt151/SQLQuery1.sql
UTF-8
2,531
3.890625
4
[]
no_license
 use Projekt151; create table Kategorie ( KategorieId int identity not null primary key, KategorieName varchar(50) not null, Beschreibung varchar(MAX) ); create table Stadt ( StadtId int identity not null primary key, StadtName varchar(150) not null ); create table Role ( RoleId int identity not ...
true
03212c8c4a74d9d28447025876debae3e78ac895
SQL
masakiando/ihp-blog
/Application/Fixtures.sql
UTF-8
1,708
2.546875
3
[]
no_license
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 r...
true
923fe0e6aa5b17ac2ce41cafc82b68c7e230a99d
SQL
Martin-Stamenkov/Csharp-SoftUni
/C# Database/C# DB Basic/Table Relations/Self-Referencing.sql
UTF-8
299
3.015625
3
[ "MIT" ]
permissive
CREATE TABLE Teachers ( TeacherId INT PRIMARY KEY IDENTITY(101,1), [Name] NVARCHAR(30) NOT NULL, ManagerID INT FOREIGN KEY REFERENCES Teachers(TeacherId) ) INSERT INTO Teachers([Name],ManagerID) VALUES ('John',NULL), ('Maya',106), ('Silvia',106), ('Ted',105), ('Mark',101), ('Greta',101)
true
64e40792511a2ef1e2074682e1a7e376c1b0cea4
SQL
bigboy1122/flyway_postgres
/flyway/sql/V1__schema.sql
UTF-8
327
3.046875
3
[]
no_license
CREATE SCHEMA IF NOT EXISTS bar; CREATE SEQUENCE bar.person_id INCREMENT BY 1 START WITH 1 MAXVALUE 9223372036854775807 MINVALUE 1 NO CYCLE; CREATE TABLE IF NOT EXISTS bar.person( person_id NUMERIC(10,0) NOT NULL, last_name CHARACTER VARYING(255) NOT NULL, first_name CHARACTER VARYING(255), notes CHARACTER VARYING(10...
true
a5dfb9e002d73b9230a62768dec2a7d2f7f32075
SQL
marclevetin/danverunnalstest
/schema.sql
UTF-8
1,530
3.671875
4
[]
no_license
DROP DATABASE IF EXISTS paknplay_db; CREATE DATABASE paknplay_db; USE paknplay_db; CREATE TABLE user_accounts ( user_id INT(11) NOT NULL AUTO_INCREMENT, first_name VARCHAR(20) NOT NULL, last_name VARCHAR(20) NOT NULL, password VARCHAR(20) NOT NULL, street_address VARCHAR(45) NOT NULL, city VARCHAR(20) NOT...
true
d55723af19ac3c3547b9d60e176e395eac9a4c3b
SQL
rushingbrendan/Relational-Databases
/a4-Car-Dealership-PHP-frontend-MySQL-backend-db/PHP Front End/BRWallyWorld/Includes/spGetVehiclesForSale.sql
UTF-8
170
2.640625
3
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `spGetVehiclesForSale`() BEGIN SELECT VIN_Number, Year, Make, Model, Color, Km, wPrice FROM vehicle WHERE inStock = 'Yes'; END
true
ca34c8ecaacff55660863434da0dabbc1ae7ef63
SQL
clockworm/BBS_JDBC
/SQL/fornum.sql
UTF-8
534
3.453125
3
[]
no_license
create table fornum( id int primary key not null, name varchar(255) default null, description varchar(255) default null, order_ int default null, topicCount int default 0, articleCount int default 0, lastTopicID int default null, lastArticePostTime datetime default null, categoryID int default null, KEY FK903A938CA091B...
true
d84c6c51a0a1b16e4bf7b944084023bab99e99b7
SQL
MariaDelCarmenLuque/Challenge-MariaLuque
/db/database.sql
UTF-8
905
3.5
4
[]
no_license
--Create Database CREATE DATABASE db_ravn_challenge; --Create tables CREATE TABLE authors ( id serial PRIMARY KEY, name text, date_of_birth timestamp ); CREATE TABLE books ( id serial PRIMARY KEY, author_id integer REFERENCES authors (id), isbn text ); CREATE TABLE sale_items ( id serial PR...
true
0bb76e2dece08955346f57a17e53aaeb4f655124
SQL
radtek/Telecommunication
/GSM/DataBase/PROCEDURES/Get_VipGroup.sql
WINDOWS-1251
10,291
3.1875
3
[]
no_license
CREATE OR REPLACE FUNCTION Get_VipGroup(pPHONE_NUMBER IN VARCHAR2) RETURN NUMBER IS tmpVar NUMBER; /****************************************************************************** NAME: GetVipGroup v.1 ******************************************************************************/ VGP Varch...
true
1a90bd10866d6ee6d28544337fef5243a4c945c5
SQL
liugenghao/yljydata
/college_data_back_2018-05-22/jobentries.sql
UTF-8
1,618
3.21875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50719 Source Host : localhost:3306 Source Database : employertest Target Server Type : MYSQL Target Server Version : 50719 File Encoding : 65001 Date: 2018-05-22 19:23:47 */ SET FOREIGN_KEY_CHECK...
true
33df874c9fb2253c211ede6d2a9d6876ae16dd47
SQL
hbianchini/Data-Science-Bootcamp-IGTI-
/car-sale-database-creation-script.sql
UTF-8
3,369
3.4375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Thu Sep 23 16:38:12 2021 -- 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='ON...
true
05f1dc3a376df229c2366892c9852492f1aa62ce
SQL
gradyhouston/bamazon
/bamazon_db.sql
UTF-8
1,500
3.375
3
[]
no_license
-- Create a database called "bamazon_db" and use it -- CREATE DATABASE bamazon_db; USE bamazon_db; -- Create a table called "products" which will contain the store inventory -- CREATE TABLE products ( item_id INTEGER(11) AUTO_INCREMENT NOT NULL, product_name VARCHAR(30) NOT NULL, department_name VARCHAR(20) NOT NUL...
true
f03d5a03caf65166a4cf6fd509bcc8fc559e7c90
SQL
haoyayoi/Acme-MoeCanChange
/sql/sqlite.sql
UTF-8
1,016
2.890625
3
[]
no_license
CREATE TABLE 'type' ( id INTEGER PRIMARY KEY, name VARCHAR(50) NOT NULL DEFAULT '', name_en VARCHAR(50) NOT NULL DEFAULT '', kind INTEGER NOT NULL DEFAULT 0, mischief INTEGER NOT NULL DEFAULT 0, graceful INTEGER NOT NULL DEFAULT 0, showy INTEGER ...
true
fc15e4b9c0804aa34f4b24f9aca218ec58269983
SQL
golinka/active-record-pattern
/lesson_6.sql
UTF-8
2,095
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.9 -- http://www.phpmyadmin.net -- -- Host: 172.17.0.1:3306 -- Generation Time: Dec 02, 2018 at 09:55 AM -- Server version: 5.7.19 -- PHP Version: 7.1.6 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT *...
true
b102ba177c98fd2fb4fc4c15862ae42504c26bb6
SQL
skadjsdn/Sql
/2_테이블 설정.sql
UTF-8
779
2.9375
3
[]
no_license
CREATE TABLE `USER5`( `seq` INT AUTO_INCREMENT PRIMARY KEY, `name` VARCHAR(10), `gender` TINYINT, `age` INT, `addr` VARCHAR(255) ); INSERT INTO `USER5` (`name`,`gender`,`age`,`addr`)VALUES ('김유신',1,25,'김해시'); INSERT INTO `USER5` (`name`,`gender`,`age`,`addr`)VALUES ('선덕여왕',2,27,'경주시'); INSERT INTO `USER5` (`na...
true
e2bd0c1650a48144563645c9370ddd648fc1efcc
SQL
eduardo-amorim7/newvideo
/updatedb/updateDb.v4.4.sql
UTF-8
790
2.96875
3
[ "MIT" ]
permissive
-- MySQL Workbench Synchronization -- Generated: 2017-10-05 11:15 -- Model: New Model -- Version: 1.0 -- Project: Name of the project -- Author: Daniel 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...
true
1be59f1bbee3dfb4c88db69b9ceb6c3fd59f2543
SQL
ignalexeyp/otus-mssql-2021-03-ignatenko
/HW5_WINDOW_FUNCTIONS/hw_window_functions_tasks-1801-9f6402.sql
UTF-8
8,845
4.125
4
[]
no_license
/* Домашнее задание по курсу MS SQL Server Developer в OTUS. Занятие "06 - Оконные функции". Задания выполняются с использованием базы данных WideWorldImporters. Бэкап БД можно скачать отсюда: https://github.com/Microsoft/sql-server-samples/releases/tag/wide-world-importers-v1.0 Нужен WideWorldImporters-Full.bak Оп...
true
4e2915dde3fbfce160ce251512782073c3e7d6bf
SQL
alpozka/sql_practice
/sql_p7.sql
UTF-8
383
3.0625
3
[]
no_license
-- SELECT * FROM FILM ORDER BY RATING; --Q.1 -- SELECT COUNT(REPLACEMENT_COST), -- REPLACEMENT_COST -- FROM FILM -- GROUP BY REPLACEMENT_COST -- HAVING COUNT(REPLACEMENT_COST) > 50; --Q.2 --SELECT COUNT(store_id),store_id FROM customer GROUP BY store_id; --Q.3 --SELECT COUNT(city), country_id FROM city GROUP BY co...
true
252966c67e702030d1b3d51f4e00b27b190eab76
SQL
annegopal/Test
/ODI/KT/W_SLA_XACT_F_Partition.sql
UTF-8
8,403
2.5625
3
[]
no_license
-- -- Partition Table Script for W_Sla_Xact_F -- Created by Accenture offshore -- Execute directly on warehouse schema TCGIT3 -- ================================================ -- Step 1: Backup Table -- ================================================ RENAME W_SLA_XACT_F TO W_SLA_XACT_F_BKP_ORG; -- =...
true
7765b243b31078f07421d5941f5ada4217020eac
SQL
VERTICA-FAST/FAST
/vsql/CALLIDUS/CS_Period.sql
UTF-8
3,327
3.609375
4
[]
no_license
/**** ****Script Name : CS_Period.sql ****Description : Incremental data load for CS_Period ****/ /* Setting timing on**/ \timing /* SET SESSION AUTOCOMMIT TO OFF; */ \set ON_ERROR_STOP on CREATE LOCAL TEMP TABLE Start_Time_Tmp ON COMMIT PRESERVE ROWS AS select sysdate st from dual; /* Inser...
true
500c857edec9fd1cec05b1bed9a4d714c7e8be1c
SQL
hansteve/hopapapa
/db/patch_view.sql
UTF-8
3,457
3.625
4
[]
no_license
-- 20170419 -- 视频资源view DROP VIEW view_video; CREATE VIEW view_video AS SELECT id as res_id,type as res_type,name,poster,status,letv_video_id,user_id, letv_video_unique,url,ext,description,unix_timestamp(create_ts) as create_ts, concat('http://www.hopapapa.com/fabu/le_video.html?res_id=',id) as detail_url FROM vide...
true
f0c63bb4ccb564b7fba6be02059eb04feae94a21
SQL
Javier-Larroca/Ejercicios-BBDD
/Ejercicio 2.1/consultas.sql
UTF-8
4,857
3.953125
4
[]
no_license
Use Blueprint -- 1) Listado de todos los clientes. Select * From Clientes -- 2) Listado de todos los proyectos. Select * From Proyectos -- 3) Listado con nombre, descripción, costo, fecha de inicio y de fin de todos los proyectos. Select Nombre, Descripcion, Costo, FechaInicio, FechaFin From Proyectos -- 4) List...
true
c58c879de54a12598033e266cf91e37c9a7876c6
SQL
kristinaizergina/project
/vk_ht_4.sql
UTF-8
1,203
3.6875
4
[]
no_license
-- Написать скрипт, возвращающий список имен (только firstname) пользователей без повторений в алфавитном порядке select distinct firstname from users order by firstname; -- Написать скрипт, отмечающий несовершеннолетних пользователей как неактивных (поле is_active = false). -- Предварительно добавить такое поле...
true
744cbbb50c9527ac5d1d11deccb258d2405276e6
SQL
BLumia/BLumiaGist
/PHP/PHPTopicBar/Attachment/install.sql
UTF-8
1,769
3.125
3
[]
no_license
set names utf8; CREATE TABLE `tb_users` ( `UserID` int(11) NOT NULL AUTO_INCREMENT, -- 用户编号 `Name` varchar(20) NOT NULL, -- 用户名称(代码中的UID通常是Name) `Password` varchar(32) NOT NULL, -- 用户密码 `status` int(2) NOT NULL DEFAULT '0', -- 用户状态(待定) `ip` varchar(30) NOT NULL, -- 注册地IP...
true
68c515ad76e55263a5bb62da69e5d1df08dd2f24
SQL
angelnmara/appEngineSEMAFOROV
/src/main/database/semaforovBD.sql
UTF-8
5,704
3.3125
3
[]
no_license
-- Database: SEMAFOROV -- DROP DATABASE "SEMAFOROV"; /* CREATE DATABASE "SEMAFOROV" WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'C' LC_CTYPE = 'UTF-8' TABLESPACE = pg_default CONNECTION LIMIT = -1; */ begin transaction; /* drop table if exists tbDatosGeneraRutas; drop table if...
true
2bf8d337298431a2f40a5c6f568f39bd48c9be68
SQL
fstanchese/corporativo
/corporativo/sql/TurmaOfe/TurmaOfe_qPLetProvao.sql
UTF-8
557
3.4375
3
[]
no_license
select turmaofe.id, currofe_id, turma_id, turma_gsrecognize(turma_id) as recognize, curso_gsrecognize(curso.id) as curso_r from duracxci, turma, turmaofe, curso, curr, currofe where currofe.provao='on' and duracxci.id = turma.duracxci_id and turma.id = turmaofe.turma_id and turmaofe_gn...
true
490efe9245e9ecd95d21bd10d1626a2eb6b41edc
SQL
johnnyvaca/ICT-105-JVA
/Tennis/tennisStatements.sql
UTF-8
974
3.625
4
[]
no_license
/* Titre : tennisStatements.sql*/ /* Auteur : raphael.favre@cpnv.ch*/ /* Version : 28-SEP-2019*/ -- 1ère requête SELECT players.id, players.firstName, players.lastName, sponsors.name AS sponsorName FROM players inner join sponsors on players.sponsor_id = sponsors.id; -- 2ème requête SELECT players.id AS player_id, s...
true
066d2f2a31d43889220de8f20e12be41d67aee6c
SQL
Hanselnp/sisfo_4007_api
/sql_folders/db_wholesale.sql
UTF-8
3,088
3.1875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 14, 2019 at 05:30 PM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
e9cc6bc38a6f317899d18291dce1e8c9c63bd350
SQL
postgrespro/jsquery
/sql/jsquery.sql
UTF-8
35,565
2.84375
3
[ "PostgreSQL" ]
permissive
CREATE EXTENSION jsquery; set escape_string_warning=off; set standard_conforming_strings=on; CREATE TABLE test_jsquery (v jsonb); \copy test_jsquery from 'data/test_jsquery.data' select 'asd.zzz = 13'::jsquery; select 'asd.zzz < 13'::jsquery; select 'asd(zzz < 13)'::jsquery; select 'asd(zzz < 13 AND x = true)'::jsq...
true
9d5a867c8b221752620d7d5d3c5944af5c5fda37
SQL
rlg4scx/lcbo-app
/conf/evolutions/default/1.sql
UTF-8
680
2.78125
3
[ "Apache-2.0" ]
permissive
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table beer_of_the_week ( product_id bigint not null, epoch_day bigint, name varchar(255), category varchar(255),...
true
22bacd6c84f292948b88440251d49535cf9c1732
SQL
zhuyuemings/demo
/src/main/resources/sql/schema.sql
UTF-8
4,105
3.03125
3
[]
no_license
-- 创建数据库 CREATE DATABASE `demo` /*!40100 DEFAULT CHARACTER SET utf8 */; -- 创建用户表 CREATE TABLE `sys_user` ( `id` varchar(36) NOT NULL COMMENT '用户主键', `username` varchar(40) NOT NULL COMMENT '用户名', `password` varchar(40) NOT NULL COMMENT '用户密码', `status` tinyint(4) NOT NULL COMMENT '用户状态(0:删除,1启用)', `...
true
1553c1683242afd93191b8c55f660f6d28c2e1f3
SQL
vanhieu255/C0221G1-nguyen-van-hieu
/module3/03_db_database manipulation/practice/practice2/quan_li_sinh_vien_thuc_hanh2.sql
UTF-8
724
3.5
4
[]
no_license
use quan_li_sinh_vien; SELECT * FROM Student; SELECT * FROM Student WHERE Status = true; SELECT* FROM class; SELECT * FROM Subject WHERE Credit < 10; select s.student_id,student_name,c.class_name from student s join class c on s.class_id = c.class_id; select s.student_id,student_name,c.class_name from student s jo...
true
fd0f76481ec14b919df40c5f9e5d89488283f1e4
SQL
hehuiling3242/dingdong
/fenlei2/src/dingdong.sql
UTF-8
3,876
3.140625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : ceshi Source Server Type : MariaDB Source Server Version : 100119 Source Host : localhost:3306 Source Schema : dingdong Target Server Type : MariaDB Target Server Version : 100119 File Encoding : 65001 Date: 03/08/2020...
true
20d33ea5c04cb3caf94f50ea2687ae98dffa2186
SQL
JLevanoArbizu/ORACLE
/Levano.sql
UTF-8
4,219
3.171875
3
[]
no_license
insert into COURSES (CODE,DESCRIPTION,CATEGORY,DURATION) VALUES ('JAV','Java for Oracle','developers','BLD',4);-- Created by Vertabelo (http://vertabelo.com) -- Last modification date: 2019-09-12 23:07:52.594 -- tables -- Table: COURSES CREATE TABLE COURSES ( CODE varchar2(6) NOT NULL, DESCRIPTION v...
true
5e5cbcf43fdbbf59686295782deb3f5647787584
SQL
cecepsutisna13/JadwalJaga
/Database/db_anggota.sql
UTF-8
5,413
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 01, 2018 at 05:42 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
681247f914dc91d2f68150654fbd54770b7f5e2d
SQL
DrewTbay/Exercise_DB
/Views/view_exercises.sql
UTF-8
384
3.265625
3
[]
no_license
\c exercise_db; -- View: view_exercises DROP VIEW IF EXISTS view_exercises; CREATE OR REPLACE VIEW view_exercises AS SELECT w.workout_name, e.exercise_name, we.set_order, we.record_weight, we.record_repetition FROM exercises e JOIN workout_exercise we ON e.exercise_id = we.exercise_i...
true
2bc62b03ad14fded02506e88e6fd18692aa17365
SQL
rojinadeuja/Practice-Problems-SQL
/1549-The-Most-Recent-Orders-for-Each-Product.sql
UTF-8
714
4.53125
5
[]
no_license
/* Leetcode Q1549- https://leetcode.com/problems/the-most-recent-orders-for-each-product/ The Most Recent Orders for Each Product */ /* Thoughts: Find most recent order(s) of each product. **One product may have more than one order in same max date. MAX(Date) won't work because we need MAX by grouping so use RANK(...
true
1de7e452d87375a15059f40c8d38278d381ad80a
SQL
M4th3m4tic4l/wow-emulator-archive
/WoWD - 03.2006/wowd-sql/inventory.sql
UTF-8
429
2.9375
3
[]
no_license
SET FOREIGN_KEY_CHECKS=0; #---------------------------- # Table structure for inventory #---------------------------- CREATE TABLE `inventory` ( `player_guid` bigint(20) NOT NULL default '0', `slot` int(11) NOT NULL default '0', `item_guid` bigint(20) NOT NULL default '0', PRIMARY KEY (`item_guid`) ) TYPE=...
true
985ffbb08f15e91e6b3c99c494287bf7eaaa614e
SQL
Rimanas/friendsDB
/resources/data.sql
UTF-8
724
2.859375
3
[]
no_license
INSERT INTO users (id, name) VALUES (1, 'Lee Jong Suk'), (2, 'Park Seo Joon'), (3, 'Park Shin Hye'), (4, 'Bae Suzy'), (5, 'IU'); INSERT INTO status (id, status) VALUES (1, 'sent'), (2, 'read'), (3, 'unread'); INSERT INTO friends (id, user_one, user_two) VALUES (1, 1, 2), (2, 1, 3), (3, 1, 4); INSERT INTO messages (i...
true
4e0852664b346c660051f77c14d8aa3fe8f9318b
SQL
tismith/device-checkout-rs
/migrations/2019-08-22-053425_add-pools/up.sql
UTF-8
1,906
4.1875
4
[ "MIT" ]
permissive
-- Your SQL goes here create table pools ( id integer primary key not null, pool_name text not null, created_at timestamp default current_timestamp not null, updated_at timestamp default current_timestamp not null, check (pool_name <> '') ); create trigger pools after update on pools begin update pools set upda...
true
f50c69943aaa397c1bc68f424a67d52a7449c67b
SQL
Anu00parajuli/Medi
/patient.sql
UTF-8
2,477
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 16, 2021 at 03:32 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.3.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
e4a9e88bcea711f0202e8de5d4e8d0f7d014de1b
SQL
buddhascoopa/buddhascoopa-git
/pessoal/Scripts/Sql/Sql/Replicação/SNAP.SQL
UTF-8
332
2.71875
3
[]
no_license
col data for a17 col owner for a6 col master_link for a17 select owner, name, to_char(start_with,'ddmmyy hh24:mi:ss') data, master_link from sys.dba_snapshots where sysdate > start_with order by owner, data; ...
true
d43e50e85d072fc23e09c6806afa174dff09d41e
SQL
caburchin/twitter-clone-finatra
/docker/mysql/db/01-create-tables.sql
UTF-8
1,527
4.0625
4
[]
no_license
drop table if exists tweet; drop table if exists user; drop table if exists profile; drop table if exists follow; drop table if exists likes; drop table if exists retweet; create table tweet( `id` int not null auto_increment, `user_id` bigint not null, `user_name` varchar(255), `user_subname` varchar(255), `...
true
3b91f9e6054b6306e40773af843801154d87a2fe
SQL
honeybeeChu/xiuniang_sync_server
/src/main/resources/sqls/wx_shops.sql
UTF-8
2,433
3.71875
4
[]
no_license
--mysql SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `wx_shops` -- ---------------------------- DROP TABLE IF EXISTS `wx_shops`; CREATE TABLE `wx_shops` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '主键id', `account_id` int(11) DEFAULT NULL COMMENT '所属公众号id', `sid` ...
true
0528988a22bf6c42b1ff3a628574d65188dfe52f
SQL
chandrahaskondle/practice
/oracle-commands.sql
UTF-8
725
4.1875
4
[]
no_license
/* fetch top n salaries - using rownum */ SELECT * FROM (select DISTINCT SALARY from HR.EMPLOYEES ORDER BY SALARY DESC) WHERE ROWNUM <= 5; /* fetch top n salaries - using FETCH FIRST n ROWS */ SELECT DISTINCT SALARY FROM HR.EMPLOYEES ORDER BY SALARY DESC FETCH FIRST 5 ROWS ONLY; /* nth highest salary - using rown...
true
19feaa290dd6c0bb915786ab3b9a34405e7b0463
SQL
sohn0356-git/TIL
/DBStudy/210128_1.sql
UTF-8
779
2.953125
3
[]
no_license
DROP DATABASE IF EXISTS shop; CREATE DATABASE IF NOT EXISTS shop; USE shop; CREATE TABLE IF NOT EXISTS usertb( id NVARCHAR(10) PRIMARY KEY, pwd NVARCHAR(10), name NVARCHAR(20) ); CREATE TABLE IF NOT EXISTS itemtb( id INT(10) AUTO_INCREMENT PRIMARY KEY, name NVARCHAR(20), price INT(10), regdate DATE, imgname N...
true
addd1743692af410e20e40cc550004d272bbc9db
SQL
bpasbuddies/buddies2
/MyProjects/eEMRT/EEMRT/Tables/CONTRACT.sql
UTF-8
1,089
2.625
3
[]
no_license
CREATE TABLE eemrt.contract ( contract_number VARCHAR2(200 BYTE) NOT NULL, contract_start_date DATE, contract_end_date DATE, contract_ceiling_value NUMBER(18,2), contract_ceiling_hours NUMBER(8), vendor VARCHAR2(200 BYTE), subcontract_vendor VARCHAR2(200 BYTE), routing_symbol VARCHAR2(100 BYTE),...
true