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
e19d55d0aa38d72c076b72444bf26d89ed6bcfd4
SQL
aushakanuj/gitsql
/Date-time/date.sql
UTF-8
1,119
3.53125
4
[]
no_license
CREATE TABLE people ( name VARCHAR(100), birthdate DATE, birthtime TIME, birthdt DATETIME ); INSERT INTO people (name, birthdate, birthtime, birthdt) VALUES('Padma', '1983-11-11', '10:07:35', '1983-11-11 10:07:35'); INSERT INTO people (name, birthdate, birthtime, birthdt) VALUES('Larry', '1943...
true
44058d1f1250e202fbdff4c72d9eeebff7fc6d25
SQL
Rajagunasekaran/Code-Backup
/OLD PROJECT SQL/SAMPLE/CUST PEROSNAL DETAILS/SP_TRG_CUSTOMER_PERSONAL_DETAILS_VER_0.1_24062014.sql
UTF-8
1,776
3.96875
4
[]
no_license
-- VERSION 0.6 STARTDATE:24/06/2014 ENDDATE:24/06/2014 DESC: CHECK CONSTRAINS FOR THE EP_DATE AND PASSPORT_DATE IN CUSTOMER PERSONAL DETAILS. DONE BY :RAJA DROP PROCEDURE IF EXISTS SP_TRG_CUSTOMER_PERSONAL_DETAILS; CREATE PROCEDURE SP_TRG_CUSTOMER_PERSONAL_DETAILS( IN NEWCUSTOMERID INTEGER, IN NEWNCID INTEGER, IN NEWE...
true
6598496b76ad74a0a5acd0bcba58037a70589205
SQL
sorryb/Northwind.ASP.NET.Core
/NorthwindDB/dbo/Views/1.Orders Qry.sql
UTF-8
543
3.046875
3
[]
no_license
 CREATE VIEW "Orders Qry" AS SELECT Orders.OrderID, Orders.CustomerID, Orders.EmployeeID, Orders.OrderDate, Orders.RequiredDate, Orders.ShippedDate, Orders.ShipVia, Orders.Freight, Orders.ShipName, Orders.ShipAddress, Orders.ShipCity, Orders.ShipRegion, Orders.ShipPostalCode, Orders.ShipCo...
true
4f6a62ddf95bf384c1ef23d8822be74ae7504619
SQL
OlafMd/MedCon1.0
/mm-libs/dbaccess/Level 3/CL3_Offices/Atomic/Retrieval/SQL/cls_Get_PracticeType_MessageData_for_TypeID.sql
UTF-8
378
2.65625
3
[]
no_license
Select hec_medicalpractice_types.MedicalPracticeType_Name_DictID, hec_medicalpractice_types.MedicalPracticeTypeITL, hec_medicalpractice_types.IsDeleted, hec_medicalpractice_types.HEC_MedicalPractice_TypeID From hec_medicalpractice_types Where hec_medicalpractice_types.Tenant_RefID = @TenantID And hec_med...
true
942941d3e875ad74e4c594730834b00dc218c416
SQL
SonjaH2001/Midterm
/schema.sql
UTF-8
1,015
3.046875
3
[]
no_license
-- #database table --find instruction or research the GUI (how to add table). -- #-->https://superuser.com/questions/461154/easy-simple-sqlite-table-database-gui -- #-->https://github.com/coleifer/sqlite-web --maybe just get 2 tables to start (cookie type, customer,...) drop table if exists cookie_type; create table...
true
7f3efa53329c55d9665b8e66323728b62662b917
SQL
Akoitanov/Bamazon
/bamazon.sql
UTF-8
957
2.9375
3
[]
no_license
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products ( product_id INTEGER(11) NOT NULL AUTO_INCREMENT, product_name VARCHAR(255) NOT NULL, department_name VARCHAR(255) NOT NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INTEGER(11) NOT NULL, PRIMARY K...
true
fc86b11740aafabfec7270088366fcd3c2d17215
SQL
RicardoSpardelotto/Mon_CEC-2.0
/DUMP_DATABASE/Correções e adições.sql
UTF-8
1,217
3.4375
3
[]
no_license
ALTER TABLE paciente CHANGE sexpac sexpac enum('M','F') not null; ALTER TABLE questionario CHANGE bebe bebe enum('S','N') not null; ALTER TABLE questionario CHANGE fuma fuma enum('S','N') not null; ALTER TABLE questionario CHANGE relacsex relacsex enum('S','N') not null; alter table Instrutor add sexo enum('M','F'); al...
true
30a8927b19b5bfaedf0072c59a5972b16fb35607
SQL
NGTS/hardware-changes-python-srw
/hardware_changes/data/schema.sql
UTF-8
2,390
3.921875
4
[]
no_license
drop database if exists ngts_hwlog; create database ngts_hwlog; use ngts_hwlog; drop table if exists camera; create table camera ( id integer primary key auto_increment, camera_name integer not null, unique index unique_camera_name (camera_name) ); drop table if exists telescope; create table telescope (...
true
f0268c1dba93ad789bb6e282631299f31a1a15c1
SQL
asbin-bhadra/user-auth-play
/conf/evolutions/default/2.sql
UTF-8
264
2.609375
3
[]
no_license
-- Session schema -- !Ups CREATE TABLE User_AUTH.Session_Details ( `SESSION_ID` BINARY(16) NOT NULL, `TOKEN` VARCHAR(45) NULL, `USERNAME` VARCHAR(45) NULL, `EXPIRATION` DATETIME NULL, PRIMARY KEY (`SESSION_ID`)); -- !Downs DROP TABLE Session_Details;
true
e1202bfcc674f55c412d7a76c32fd68e979d5ab7
SQL
CornyhorseProjects/ZionsSample
/clock/sql/insert_clock_times.sql
UTF-8
5,519
4.71875
5
[]
no_license
--First, we'll add just the clock_date to the table. This lets us add a row number and partition -- by the date of the clock in. drop table if exists add_clock_date; create temp table add_clock_date as select employee_id , date(clock_time) as clock_date , clock_time from clock_staging; --Next...
true
c399be4bd208bf38701452b6f3c916adf67895b3
SQL
thomasklemm/database-schema-examples
/mysql/fluxbb/schema.sql
UTF-8
15,519
2.640625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.5.62, for debian-linux-gnu (x86_64) -- -- Host: db816449196.hosting-data.io Database: db816449196 -- ------------------------------------------------------ -- Server version 5.5.60-0+deb7u1-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
true
64dd2371d7e4af22e34fe40cbdd6544ba6caf8d9
SQL
okyapu/EXPJ.OPF
/OPF/CommonLib/DBProj/Function/FncGetRound.sql
SHIFT_JIS
5,102
3.140625
3
[]
no_license
CREATE OR REPLACE FUNCTION FNCGETROUND( /*------------------------------------------------------------------------------ ' ' version : 1.00.01 ' ' C ' 2003.07.26 ' 2003.08.16 [敪KlłȂꍇAľܓƂ ' ' @\ : [ ' ' ߂l : Boolean ' True :I ' False:ُI ' ' : pFileHandle - (i)t@Cnh ' ...
true
37c4fcae75c0017d7da4fb292bddb5ab7b8388b9
SQL
VeteransHealthAdministrationNorCal/Resident_Inpatient
/Resident_inpatient_list.sql
UTF-8
965
3.9375
4
[]
no_license
SELECT DISTINCT Location.WardLocationName, RoomBed.RoomBed, SPatient.PatientSSN, SPatient.PatientName, Inpatient.AdmitDateTime, ACSC.cMort_1y, ACSC.cMort_90d, ACSC.pMort_1y, ACSC.pMort_90d, ACSC.Risk_Date FROM LSV.BISL_R1VX.AR3Y_Inpat_Inpatient as Inpatient INNER JOIN LSV.Dim.Ward...
true
d2f37eea932345b9efa187a396cf372987693cf1
SQL
gladiopeace/digital-data-syn
/documents/oms/TB_SUPAG.sql
GB18030
2,007
3.328125
3
[]
no_license
/* ================================================================================ ṹ:TB_SUPAG ṹ:̻ ṹĿ: ================================================================================ */ drop sequence SEQ_TB_SUPAG; drop index AK_TB_SUPAG; drop table TB_SUPAG; create table TB_SUPAG ( SUPAG_ID INTEGER ...
true
ca1fd24ddf632d02e0ace05d4b3925dab9375c83
SQL
rsg71/Employee_Tracker
/seeds.sql
UTF-8
654
2.65625
3
[ "MIT" ]
permissive
INSERT INTO department (name) VALUES ("Sales"), ("Engineering"), ("Finance"), ("Legal"); INSERT INTO role (role) VALUES ("Sales Lead"), ("Salesperson"), ("Lead Engineer"), ("Software Engineer"), ("Accountant"), ("Legal Team Lead") ("Lawyer"); INSERT INTO employees (first_name, last_name, role_id, manager_id) VAL...
true
8e85ac9675c9cc374307016682cb4c3a06078c6b
SQL
Manouillle/ExamenPOO_MCAYROLLES
/examen_poo.sql
UTF-8
2,354
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mer. 07 avr. 2021 à 18:41 -- Version du serveur : 5.7.31 -- Version de PHP : 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
ed191f08611a2308d637801c06bf48f25c4d87e3
SQL
EvMad/sector-7G
/schema.sql
UTF-8
571
3.53125
4
[]
no_license
DROP DATABASE IF EXISTS employees_db; CREATE DATABASE employees_db; USE employees_db; CREATE TABLE department( id VARCHAR(30) NOT NULL, dept_name VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE roles( id VARCHAR(30) NOT NULL, title VARCHAR(30) NOT NULL, salary DECIMAL(10,2) NOT NULL, dept_id VARCHAR(30) DEFAUL...
true
3be780a6871c15c0b9377e775c97f03ec5088148
SQL
zhangzhongyu/Ximage
/MySQL/Tables/ObjResult.sql
UTF-8
541
3.25
3
[]
no_license
USE core_db; DROP TABLE IF EXISTS ObjResult; CREATE TABLE ObjResult ( ResultId INT NOT NULL AUTO_INCREMENT, FileId INT NOT NULL, ObjectId SMALLINT NOT NULL, ObjectType SMALLINT NOT NULL, ShelfId TINYINT NULL, PosX DECIMAL(7, 3) NOT NULL, PosY DECIMAL(7, 3) NOT NULL, Width ...
true
8e0e978d6b22f83a6665902953da2dedf4211fed
SQL
jhon-as/ProyectoFinal_Programacion
/ScriptPrograma.sql
UTF-8
4,634
3.265625
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Mon Aug 17 20:56:12 2020 -- 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
9de157ae623acceb46033084a4d973e26786b575
SQL
kjh0816/php_blog_2021
/db.sql
UTF-8
2,756
4.03125
4
[]
no_license
# DB 생성 DROP DATABASE st__2021_04_full__site03; CREATE DATABASE st__2021_04_full__site03; USE st__2021_04_full__site03; # 게시물 테이블 생성 CREATE TABLE article ( id INT(10) UNSIGNED NOT NULL PRIMARY KEY AUTO_INCREMENT, regDate DATETIME NOT NULL, updateDate DATETIME NOT NULL, title CHAR(100) NOT NULL, `...
true
27becc93babbc7df1081c5406fbe16452893ec35
SQL
sam-cogan/sessions
/sqlAgent/ElasticJobs/SQL/createIndexRebuildJob.sql
UTF-8
386
2.59375
3
[ "MIT" ]
permissive
--Connect to the job database specified when creating the job agent --Add job for create table EXEC jobs.sp_add_job @job_name='RebuildAllIndexes', @description='Rebuild All Indexes' -- Add job step for create table EXEC jobs.sp_add_jobstep @job_name='RebuildIndex', @command=N'ALTER INDEX ALL ON Table_name REBUILD ;...
true
60261243292db670ee2c86fc5218e0a95c16efed
SQL
vhooloo/REG_Patient
/sql/reg_patient_risk.sql
UTF-8
1,713
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.8 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: Oct 16, 2013 at 06:08 PM -- Server version: 5.5.16 -- PHP Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
b207e8683247248acda69baf54ddb3c750b52d82
SQL
Francois-Cierpucha/SQL
/partie 1/index.sql
UTF-8
768
2.640625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `frameworks CHARACTER SET 'UTF8'; DROP DATABASE IF EXISTS `FRAMEWORKS` CHARACTER SET 'utf8'; CREATE DATABASE IF NOT EXISTS `languages` CHARACTER SET 'utf8'; mysql> DROP DATABASE `languages`; Query OK, 0 rows affected (0.02 sec) mysql> show databases; +--------------------+ | Database ...
true
4050064ee4e2c56802c3bd905c5fd15b9fd432b3
SQL
Jafectnez/proyectoIngenieria
/archivos-bd/scripts/PROCEDURES_EMPLEADO.sql
UTF-8
23,081
3.8125
4
[]
no_license
USE DB_EMANUEL; #Procedimiento para Insertar Persona DROP PROCEDURE IF EXISTS `SP_INSERTAR_PERSONA`; CREATE PROCEDURE `SP_INSERTAR_PERSONA`( IN P_NOMBRE VARCHAR(50), IN P_APELLIDO VARCHAR(50), IN P_ID_GENERO INT, IN P_DIRECCION VARCHAR(300), IN P_EMAIL VARCHAR(100), IN P_IDENTIDAD VARCHAR(13), IN P_FECHA_...
true
de7854129268b97a18f10e2b4fe168be23a88b13
SQL
guandaxia/12306
/train.sql
UTF-8
132,742
2.90625
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.25) # Database: train # Generation Time: 2019-05-16 05:59:52 +0000 # *************************************************...
true
e13275b662f6f9c61e310a9f4dd7fc2ab0e3a7e1
SQL
ZerocoolVishal/medinfi-hindi-blog
/sql/blogBackend.sql
UTF-8
2,376
3.640625
4
[]
no_license
CREATE TABLE IF NOT EXISTS `blog_task` ( `id` int(11) NOT NULL AUTO_INCREMENT, `blog_topic` text NOT NULL, `focus_keyword` text NOT NULL, `action_id` int(11) NOT NULL, `created_on` datetime NOT NULL, `target_submission_date` datetime NOT NULL, `payout_type` varchar(200) NOT NULL, `payout_amount` float(1...
true
0cb56dea6ca10df8764414822a59db02a378795f
SQL
AdrianPalacios04/laptop
/config_races_day.sql
UTF-8
2,291
2.84375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 07-06-2021 a las 17:43:29 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
3bac861ecf135601685fbd2fd1efd90866337157
SQL
alexeysa83/internship
/scheduler/sql-scripts.sql
UTF-8
1,042
4.03125
4
[]
no_license
# DATABASE CREATION DROP DATABASE IF EXISTS scheduler; CREATE DATABASE IF NOT EXISTS scheduler; USE scheduler; # USER DROP TABLE IF EXISTS user; CREATE TABLE user ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, login VARCHAR(24) NOT NULL, password VARCHAR(24) NOT NULL, role VARCHAR(12) NOT ...
true
a1add090b4e5e0a3dfef826dd79489b40c48a7a8
SQL
thaond/nsscttdt
/src/ext-lltnxp/sql/update-5.0.1-5.1.0/update-5.0.1-5.1.0-firebird.sql
UTF-8
4,775
2.90625
3
[]
no_license
alter table BlogsEntry add draft smallint; alter table BlogsEntry add allowTrackbacks smallint; alter table BlogsEntry add trackbacks blob; commit; alter table Contact_ add facebookSn varchar(75); alter table Contact_ add mySpaceSn varchar(75); alter table Contact_ add twitterSn varchar(75); drop table ExpandoRow;...
true
0983a04afab4625c74a08d86ddd109a80a339bbe
SQL
keipham/e-commerce_website_PL-SQL
/apex/5.0/f179/application/pages/page_00014.sql
UTF-8
14,660
2.6875
3
[ "MIT" ]
permissive
prompt --application/pages/page_00014 begin wwv_flow_api.create_page( p_id=>14 ,p_user_interface_id=>wwv_flow_api.id(327304041051455600) ,p_name=>'Orders' ,p_page_mode=>'NORMAL' ,p_step_title=>'Orders' ,p_step_sub_title_type=>'TEXT_WITH_SUBSTITUTIONS' ,p_first_item=>'NO_FIRST_ITEM' ,p_autocomplete_on_off=>'OFF' ,p_inl...
true
72f36373c9c70cc4aa01e0873b190d81c123393e
SQL
boranyldrm/Bilkent-Courses
/CS353/ProgrammingAssignmentPart2/tables.sql
UTF-8
720
3.390625
3
[]
no_license
CREATE TABLE customer ( cid CHAR(12), name VARCHAR(50), bdate DATE, address VARCHAR(50), city VARCHAR(20), nationality VARCHAR(20), PRIMARY KEY (cid) ) ENGINE = InnoDB; CREATE TABLE account ( aid CHAR(8), branch VARCHAR(20), balance FLOAT, openDate DATE, PRIMARY KEY (aid) ) ENGINE = InnoDB; CR...
true
31d237535fba6f0be847e7a928bc190b00c0c540
SQL
jekunauto/snaker-core
/src/main/resources/db/core/schema-mysql.sql
UTF-8
7,553
3.1875
3
[]
no_license
CREATE TABLE t_wf_process ( id VARCHAR(32) PRIMARY KEY NOT NULL comment '主键ID', name VARCHAR(100) comment '流程名称', display_Name VARCHAR(200) comment '流程显示名称', type VARCHAR(100) comment '流程类型', instance_Url VARCHAR(200) comment '实例url', state ...
true
55292ebc7749f9c39551d7f9e3aa514fa07b6507
SQL
yellowbright/docs
/gyxr/国誉91/91docker_config/clickhouse/ga/metadata/view_superset/pm_sale_logs.sql
UTF-8
2,394
3.5625
4
[]
no_license
ATTACH MATERIALIZED VIEW pm_sale_logs ( `ordered_at` DateTime, `shop_code` String, `shop_name` Nullable(String), `sku` String, `pay_prd_qty` Nullable(Int64), `pay_amt` Nullable(Float32), `cat1name` Nullable(String), `cat2name` Nullable(String), `cat3name` Nullable(String), ...
true
fdb6552cb313b7d25c404f2eea810f9b777a435e
SQL
xiaolin5933/zixapp
/sql/table/dict/dict_yspz.sql
UTF-8
5,719
3.21875
3
[]
no_license
-- -- 原始凭证描述表 -- drop table dict_yspz; create table dict_yspz ( code char(4) not null primary key, name varchar(128) not null, memo varchar(512) not null, ts_c timestamp default current timestamp ) in tbs_dat index in tbs_idx; -- -- 原始凭证类型信息 -- comment on table dict_yspz ...
true
7e7b35763a0957b6751ce7ecd6cb9d8cd1eb2b2c
SQL
pablodacampo/SQL
/tp03.sql
UTF-8
3,242
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 20, 2020 at 04:20 PM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
54b825681d1e5fd13012b8f9c87b14df9c781608
SQL
digideskio/Spring-MVC
/sqlScripts/createSchema.sql
UTF-8
1,380
3.359375
3
[]
no_license
###================ STEP 1: CREATE DATABASES ================### # create database fitness_tracker CREATE SCHEMA `fitness_tracker` ; ###================ STEP 2: CREATE TABLES ================### # create table user CREATE TABLE `fitness_tracker`.`user` ( `id` INT NOT NULL AUTO_INCREMENT, `username` VARCHAR(45) NULL...
true
58e4b5ed90b47a6b5a3ea2334411fbaaa9eda9e8
SQL
moisesmember/python_suicidio
/DB/amostra_temporal_suicidio.sql
UTF-8
244
2.5625
3
[]
no_license
CREATE OR REPLACE VIEW VIEW_AMOSTRA_TEMPORAL_SUICIDIO AS SELECT SUICIDIO_BRA.year, SUICIDIO_BRA.sex, SUICIDIO_BRA.age, SUICIDIO_BRA.suicides_no FROM VIEW_SUICIDIO SUICIDIO_BRA ORDER BY SUICIDIO_BRA.year ,SUICIDIO_BRA.sex, SUICIDIO_BRA.age;
true
db0ec71f85de220fecbee7c4172d8abd2ec91392
SQL
lautaroMustang/Avecino-1
/public/avecino.sql
UTF-8
7,332
3.5
4
[ "MIT" ]
permissive
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'; DROP SCHEMA IF EXISTS `avecino` ; CREATE SCHEMA IF NOT EXISTS `avecino` DEFAULT CHARACTER SET latin1 ; USE `avecino`...
true
1d9317bce2d9e3a980283220d8cfb1e1b73d130e
SQL
0opslab/useful-scripts
/oralce/miscellaneous/compile_all_specs.sql
UTF-8
927
3.0625
3
[]
no_license
-- ----------------------------------------------------------------------------------- -- File Name : http://www.oracle-base.com/dba/miscellaneous/compile_all_specs.sql -- Author : DR Timothy S Hall -- Description : Compiles all invalid package specifications for specified schema, or all schema. -- Call S...
true
d225fa85a6e3ac24dad8d03e8b260204455c44ad
SQL
katooshka/sqlex
/005.sql
UTF-8
221
3.28125
3
[]
no_license
-- Schema: Computer firm -- Find the model number, speed and hard drive capacity of PCs cheaper than $600 having a 12x or a 24x CD drive. SELECT model, speed, hd FROM pc WHERE (cd = '12x' OR cd = '24x') AND price < 600
true
796b817df0973713d9282aa0c6435e5d4f746961
SQL
zeinu117/Gestor-de-gastos
/bd/gastos.sql
UTF-8
951
3.640625
4
[]
no_license
CREATE SCHEMA `gastos` DEFAULT CHARACTER SET utf8mb4 ; CREATE TABLE `t_fechas` ( `id_fecha` int(11) NOT NULL, `fecha` date NOT NULL, `fechaInsert` datetime NOT NULL DEFAULT CURRENT_TIMESTAMP ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; ALTER TABLE `gastos`.`t_fechas` CHANGE COLUMN `id_fecha` `id_fecha` INT(11) NOT ...
true
cd0327e98400f23d61d226cce59596ef132c7265
SQL
privatejfx141/teq-data-platform
/teq-data-platform/scripts/values/Create_Occupation.sql
UTF-8
2,941
2.828125
3
[]
no_license
CREATE TABLE Occupation ( id CHAR(2) PRIMARY KEY NOT NULL, description VARCHAR(255) NOT NULL ); INSERT INTO Occupation (id, description) VALUES ('00', 'Senior management occupations'), ('05', 'Specialized middle management occupations'), ('06', 'Middle management occupations in retail and wholesale trad...
true
2682c6dd5aabb5ac999d58ea81480fcf576faba8
SQL
DxTania/MapKeep
/db/structure.sql
UTF-8
8,311
3.078125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.6.24, for osx10.10 (x86_64) -- -- Host: 127.0.0.1 Database: mapkeep_dev -- ------------------------------------------------------ -- Server version 5.6.24 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
cd4d3a2d01b6aa6913a97f23b28d53076bd9bb15
SQL
CUBRID/cubrid-testcases
/medium/_02_xtests/cases/last_day.sql
UTF-8
2,202
2.578125
3
[ "BSD-3-Clause" ]
permissive
autocommit off; create table test_last_day( c1 date, i2 integer, c3 date, i4 integer ); insert into test_last_day(c1) values(date '9/6/1976'); select last_day(date '1/01/1999') from test_last_day; select last_day(date '2/01/1999') from test_last_day; select last_day(date '3/01/1999') from test_last_day; select ...
true
dbcc94a679c4e3b9b9c5e3d29133130d631f1d01
SQL
CHOI-sw123/GoChu
/hellpaty/src/main/java/kr/smhrd/mybatis/Sql.sql
UTF-8
5,970
3.78125
4
[]
no_license
DROP TABLE company cascade constraints; --사용기업 테이블 CREATE TABLE company (code varchar2(10) not null, --회사별 구분 코드 company_name varchar2(100) not null, --회사이름 constraints company_code_pk primary key(code) ); --------------------------------------------------------------- DROP TABLE manager cascade constraints; -...
true
38a862b4e1f780cfaa95ddcdc87d66a0efaca433
SQL
williamdee1/CIV_Modded_Civilization_SQL
/SQL Game Mod Files/Leader/Leader_Colors.sql
UTF-8
1,030
3.109375
3
[]
no_license
/* Leader Badge Colours Authors: MC */ ----------------------------------------------- -- PlayerColors -- This assigns the civilization's colours to the leader - when selecting the leader, this will control the order in which the colour-combinations appear (with PrimaryColor and SecondaryColor representing the defa...
true
cd5f81bb0c05dc0c84823586a29b115a62143273
SQL
subjitdas/travel-agent-chatbot
/sql-files/tables.sql
UTF-8
1,272
2.984375
3
[]
no_license
Create table bus ( id int Primary key AUTO_INCREMENT, from_city varchar(100) not null, to_city varchar(100) not null, bus_name varchar(100) not null, bus_number varchar(100) not null, bus_time varchar(100) not null, bus_date varchar(100) not null, available_seats int not null default 0 ); Create table train ( ...
true
eeeb2810a12848903ab6fc8aeb21d898376d3175
SQL
geoolekom/bookstore-db
/queries/top_5_popular.sql
UTF-8
841
4.59375
5
[]
no_license
WITH RECURSIVE full_genre AS ( SELECT genre_id as original_id, genre_id, parent_genre, genre.name AS name FROM genre --- UNION --- SELECT original_id, genre.genre_id as genre_id, genre.parent_genre, concat(genre.name, '/', full_genre.name)::VARCHAR(100) AS name FROM full_genre INNER JOIN genre ON full...
true
57ea8321f1b317c6a149cf24ad3ca3da57b3af8e
SQL
sprudhom/krakatoa
/testselector/load_selected_tests.sql
UTF-8
575
3.015625
3
[ "Apache-2.0" ]
permissive
-- usage: -- $BUILD_URL is set by jenkins -- mysql -u smartuser -ppassword -P 3520 -h esekilx0007-sql8.rnd.ki.sw.ericsson.se -e "set @build_url='${BUILD_URL}'; source load_selected_tests.sql ;" USE smarttestdb; LOAD DATA LOCAL INFILE 'selected_test_count.csv' INTO TABLE tests_selected COLUMNS TERMINATED BY ',' OPTIO...
true
12965291194e279679e80e35fbd884b52dafe620
SQL
azure2439/APA_Azure_DataWarehouse
/APA_SQLDB_Project/APA_SQLDB_Project/stg/Tables/dj_myapa_individualprofile.sql
UTF-8
1,295
2.515625
3
[]
no_license
CREATE TABLE [stg].[dj_myapa_individualprofile] ( [id] INT NOT NULL, [slug] VARCHAR (50) NULL, [share_profile] VARCHAR (50) NOT NULL, [share_contact] VARCHAR (50) NOT NULL, [share_bio] VARCHAR (50) NOT NULL, [share_social] VARCHAR (50) NOT NUL...
true
2fc9f08675706c0c0d232169963ce224d77bf319
SQL
642861958/student-system
/src/test/java/test/test.sql
UTF-8
2,071
4.5625
5
[]
no_license
CREATE TABLE IF NOT EXISTS class ( cid INT(11) NOT NULL AUTO_INCREMENT, cname VARCHAR(20) NOT NULL , cgrade INT(11) NOT NULL , PRIMARY KEY (cid), CONSTRAINT class_pk UNIQUE (cname, cgrade) ); CREATE TABLE IF NOT EXISTS student ( sid INT(11) NOT NULL AUTO_INCREMENT, sname ...
true
8539329f16364c4e824f7f366260089acb2501be
SQL
MAGI-KORP/SwordsAndShields
/db/Schema.sql
UTF-8
734
3.109375
3
[]
no_license
drop database Swords_and_Shields_db; create database Swords_and_Shields_db; use Swords_and_Shields_db; CREATE TABLE characters ( id INT AUTO_INCREMENT, name VARCHAR(45) NOT NULL, attack INT, defense INT, hp INT, wins INT not null default 0, losses INT ...
true
977607b5ba343a8745de223f2e35f98b089441ca
SQL
JadaShipp/Database-Exercises
/3.5.3_limit_exercises.sql
UTF-8
1,412
4.09375
4
[]
no_license
USE employees; SELECT * FROM employees; #all employees with first names 'Irena', 'Vidya', or 'Maya' SELECT * FROM employees WHERE (first_name = 'Irena' OR first_name = 'Vidya' OR first_name = 'Maya') AND gender = 'M' ORDER BY last_name, first_name DESC; #all employees whose last name starts with 'E' SELECT * FROM emp...
true
24284d069f1444e99913fe8caa9d8d06935d3c82
SQL
aiemelyanov/RedGate
/RG_TEST7avsTEST7b/CI_DB_TESTUSER2/Tables/EMP_TEST2.sql
UTF-8
219
2.59375
3
[]
no_license
CREATE TABLE ci_db_testuser2.emp_test2 ( "ID" NUMBER(8,2) NOT NULL, first_name VARCHAR2(100 BYTE) NOT NULL, last_name VARCHAR2(250 BYTE), salary NUMBER(5,2), CONSTRAINT emp_test2_pk PRIMARY KEY ("ID") );
true
187f19088bd017f9214c6a49d67589bcdcae76e4
SQL
Bimmr/MySQL
/A3/RBA3Task2.sql
UTF-8
1,550
3.234375
3
[]
no_license
SELECT '' AS 'Randy Bimm'; SELECT '' AS 'PROG2220: Section 1'; SELECT '' AS 'Assignment 3: Task 2'; SELECT SYSDATE() AS 'Current System Date'; USE my_guitar_shop; SELECT ''; SELECT '' AS '*** Task 2, Q1, A. MGS Exercise 5-1 [8 points] ***'; INSERT INTO categories ( category_id, category_name ) VALUES ( NULL, 'W...
true
afc666d6cb8b19881e65d2b930a8194db79029b3
SQL
dupadhyay3/e-commerce
/SQL/Old.productCategorySub.sql
UTF-8
187
2.6875
3
[]
no_license
CREATE TABLE IF NOT EXISTS pCategorySub ( pcsId INT(5) AUTO_INCREMENT PRIMARY KEY, pcmId INT(5), pcsName VARCHAR(20), FOREIGN KEY (pcmId) REFERENCES pCategoryMain(pcmId) )
true
5d2c8f1370c0bda2f62d6888df721345ba6587e3
SQL
yhjohn163/wm.program
/wm-applications/application-basicmanager/src/main/resources/sqls/001-init-tables.sql
UTF-8
8,393
3.53125
4
[ "MIT" ]
permissive
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2018/6/23 16:43:56 */ /*==============================================================*/ drop table if exists t_base_dict; drop table if e...
true
ce1bb19a86c0ed1e2325e6a7a673768774be7c22
SQL
porterwilcox/burgershack
/SQL/db-setup.sql
UTF-8
1,282
4.09375
4
[]
no_license
-- CREATE TABLE smoothies ( -- id int NOT NULL AUTO_INCREMENT, -- name VARCHAR(50) NOT NULL, -- description VARCHAR(255) NOT NULL, -- price DECIMAL(10, 2) NOT NULL, -- PRIMARY KEY(id) -- ); -- INSERT INTO smoothies ( -- name, -- description, -- price) -- VALUES ( -- "Man...
true
1ddf7e534137968af75c643b9e799d80356b5db6
SQL
BrunoAguiarJorge/logistic-api
/src/main/resources/db/migration/V003__cria-tabela-entrega.sql
UTF-8
544
3.203125
3
[]
no_license
create table entrega( id bigint not null auto_increment, client_id bigint not null, taxa decimal(10,2) not null, status varchar(20) not null, data_pedido datetime not null, data_finalizacao datetime, destinatario_nome varchar(60) not null, destinatario_logradouro varchar(255) not null, destinatario_numero varchar(30...
true
53c39c65a03a520342bc48790bb17097a0cda321
SQL
arnaud-gelly-ac-aix-marseille/itop-queries
/billing_start_os_support_std.sql
UTF-8
1,873
3.71875
4
[]
no_license
### OS Support ### ### We bill Extended for extended plus standard ### SELECT "R" As TYPE, "" As `USER ID`, CASE WHEN sla_name = 'Standard OS Support' AND service_name = 'Windows Systems Administration' THEN 'W-STD' WHEN sla_name = 'Standard OS Support' AND service_name = 'Linux Systems Administration' THEN 'UNI...
true
8cc17e6d6f2fe49a0bf019ceb921f6909772fa86
SQL
synthrootcoding/Capstone4
/Capstone4.sql
UTF-8
366
2.90625
3
[]
no_license
--CREATE DATABASE TodoList; --CREATE TABLE Userof( --Id int PRIMARY KEY IDENTITY(1,1), --Email NVARCHAR(50) NOT NULL, --Password NVARCHAR(25) NOT NULL, --); --CREATE TABLE TodoItem( --Id int PRIMARY KEY IDENTITY(1,1), --Description NVARCHAR(100) NOT NULL, --DueDate DATE NOT NULL, --Complete BIT NOT NULL, --IdNetUsers...
true
b14e2c1f63018bb8e1abc9cb22183424d26ba1de
SQL
KYurtseven/DataBaseManagementSystems_CENG352
/HW3/Solutions/access_control.sql
UTF-8
1,789
3.890625
4
[]
no_license
-- delete previous roles DROP ROLE guest; DROP ROLE secretary; DROP ROLE metusaisadmin; -- delete previous users DROP USER guest1; DROP USER secreter1; DROP USER admin1; -- create roles CREATE ROLE guest; CREATE ROLE secretary; CREATE ROLE metusaisadmin; -- create users CREATE USER guest1; CREATE USER secreter1; C...
true
1cc8979c1284b3830c8c42eda2f5b0e1b596c3e3
SQL
bkiers/sqlite-parser
/src/test/resources/tkt-cbd054fa6b.test_1.sql
UTF-8
1,067
2.59375
3
[ "MIT" ]
permissive
-- tkt-cbd054fa6b.test -- -- db eval { -- CREATE TABLE t1(a INTEGER PRIMARY KEY, b TEXT UNIQUE NOT NULL); -- CREATE INDEX t1_x ON t1(b); -- INSERT INTO t1 VALUES (NULL, ''); -- INSERT INTO t1 VALUES (NULL, 'A'); -- INSERT INTO t1 VALUES (NULL, 'B'); -- INSERT INTO t1 VALUES (NULL, 'C'); -- ...
true
e4af522f7042eaa149082726956f2dbca105eba9
SQL
VedangJoshi/MySQL_Queries
/case.sql
UTF-8
198
2.53125
3
[]
no_license
create procedure proc_case(IN a INT) begin declare b INT; declare c INT; set b=10; case a when 0 then select c+b; when 1 then select c+b; else select c+b; end case; end;
true
7d881088e4564834acd7460b8ed97ee47e2a8c85
SQL
jerrica-mj/bootcampX
/2_queries_joins/1_student_total_assignment_duration.sql
UTF-8
456
3.90625
4
[]
no_license
-- Get the total amount of time that a student has spent on all assignments. -- This should work for any student but use 'Ibrahim Schimmel' for now. -- Select only the total amount of time as a single column. SELECT sum(assignment_submissions.duration) as total_duration FROM students JOIN assignment_submissions ON st...
true
de29fe9800969c6562a4abcbada2a777cb3abed6
SQL
mnatsakanyan/transacrionchart
/charttransaction.sql
UTF-8
5,849
3.28125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 26, 2018 at 08:42 AM -- Server version: 5.6.39 -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
cb81828e88cf4085bd69fa9607b0a43595562667
SQL
jezhische/SQL_learning
/schema.sql
UTF-8
1,978
3.546875
4
[]
no_license
CREATE TABLE public."USER" ( id integer NOT NULL, name character varying(255) COLLATE pg_catalog."default" NOT NULL, password character varying(255) COLLATE pg_catalog."default" NOT NULL, CONSTRAINT "USER_pkey" PRIMARY KEY (id) ) WITH ( OIDS = FALSE ) TABLESPACE pg_default; ALTER TABLE public."USER...
true
03069a984dedbb86cdf185dffe402d15e3e00f6f
SQL
peytonmford/Pewlett-Hackard-Analysis
/schema.sql
UTF-8
1,925
4
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 not null, gender varch...
true
2a97c2186bbf0b07f9e1757f2235dfcf856e48d6
SQL
DarthThanatos/BD
/PBD/zad1_dodatkowe/Zad1_generator.sql
UTF-8
119,789
2.59375
3
[]
no_license
use bielas_a delete from wplaty delete from naleznosci delete from stawki insert into stawki values('1992-08-15',60) insert into stawki values('1993-05-01',54) insert into stawki values('1995-12-15',46) insert into stawki values('1997-01-01',35) insert into stawki values('1998-04-15',33) insert into stawki values('199...
true
0f7e0b7bc818b38135788761824024ea88e5d3af
SQL
ding19930316/house
/file/setting/group.sql
UTF-8
4,335
3.0625
3
[]
no_license
DROP TABLE IF EXISTS `aijiacms_group`; CREATE TABLE `aijiacms_group` ( `itemid` bigint(20) unsigned NOT NULL AUTO_INCREMENT, `catid` int(10) unsigned NOT NULL DEFAULT '0', `areaid` int(10) unsigned NOT NULL DEFAULT '0', `level` tinyint(1) unsigned NOT NULL DEFAULT '0', `title` varchar(100) NOT NULL DEFAULT ''...
true
1940cb1fa8c480a50019d7a654c81511d3e20aff
SQL
RonaldRendon/Ejercicios
/Ejercicio Funciones.sql
WINDOWS-1250
1,016
3.40625
3
[]
no_license
--1. CREAR UNA FUNCION QUE RECIBA 2 CATETOS Y RETORNE LA HIPOTENUSA --2. CREAR UNA FUNCION QUE RECIBA UN VALOR EN MEGABYTES Y LO CONVIERTA A BYTES; --3. CREAR UN PROCEDIMIENTO QUE RECIBA UN NUMERO E IMPRIMA POR CONSOLA LA TABLA DE MULTIPLICAR DESDE EL 1 HASTA EL 20. --4. CREAR UNA FUNCION QUE DEVUELVA EL REA DE UN TRIA...
true
6033b8fa82880a8e5045d0c9c66da8e91e3c55b3
SQL
embajean/CIEmbajeans
/db/embajeans/user.sql
UTF-8
1,435
2.734375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Versi server: 5.6.26 - MySQL Community Server (GPL) -- OS Server: Win32 -- HeidiSQL Versi: 9.5.0.5196 -- -------------------------------------------------------- /*...
true
49dacc58fcc6ed3ce707aee2036f306bdff6cb09
SQL
zakir360hossain/MyProgramming
/Database/MySQL/learning/WHERE.sql
UTF-8
256
3.015625
3
[]
no_license
SELECT* FROM customers WHERE points > 3000; SELECT* FROM customers WHERE state != 'VA'; -- in MYSQL != is same as <>. Both can be used SELECT * FROM customers WHERE birth_date > '1990-01-01'; -- MYSQL date format is YYYY-MM-DD
true
8c27520017dba06dfa45d5982946755748b3a66b
SQL
chirodev/sistema_estudio
/db_focus.sql
UTF-8
65,616
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 13-01-2021 a las 20:52:08 -- Versión del servidor: 10.4.13-MariaDB -- Versión de PHP: 7.2.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
4aa93c2eaffd1bf639b81049488f1787dee5cddf
SQL
Matrix278/laptops
/SQLs/vn_category.sql
UTF-8
2,684
3.296875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Хост: localhost:3306 -- Время создания: Июн 09 2018 г., 09:55 -- Версия сервера: 10.1.31-MariaDB -- Версия PHP: 7.0.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
fa6fa7f0f631c6a24cfbf7db36b43082429b9ce7
SQL
felipemalheirosb/BDII
/SQL_Query_Exercicio_Stored_Procedures/SQLQuery_CURRICULOS_Script_1208.sql
UTF-8
1,856
3.859375
4
[]
no_license
CREATE DATABASE Curriculos USE Curriculos CREATE TABLE Pessoas ( id_pessoa INT NOT NULL IDENTITY, nome VARCHAR(30) NOT NULL, cpf VARCHAR(13) NOT NULL, idade INT NOT NULL, profissao VARCHAR(30) NOT NULL, CONSTRAINT pessoa_PK PRIMARY KEY(id_pessoa) ); CREATE TABLE Telefone ( id_telefone INT NOT NU...
true
46d25ddf8762c4e23d05a2b991ddc23654172e39
SQL
rjunaedi88/stage_rigging_ci
/db/stage_rigging_ci.sql
UTF-8
4,930
2.96875
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 27, 2021 at 01:27 PM -- 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
75639cb25a2dd3540c9c3e7d8c9e4cacaefb2b0e
SQL
nogo/feedbox
/src/Nogo/Feedbox/Resources/sql/sqlite/1368823260.sql
UTF-8
680
3.515625
4
[ "MIT" ]
permissive
PRAGMA foreign_keys = ON; CREATE TABLE IF NOT EXISTS sources ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, uri TEXT NOT NULL, icon TEXT, active INTEGER DEFAULT 1, unread INTEGER DEFAULT 0, errors TEXT, period TEXT, last_update DATETIME, created_at DATETIME, updated_at DATETIME ); CREATE TABLE IF...
true
0686de03b36e3e7f6a2b31438f0534682c93b215
SQL
Mirai2699/GCMS
/db/gcms_v2 (06-03-19).sql
UTF-8
50,063
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 03, 2019 at 09:56 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 5.6.36 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
true
617a4b690fd50c186832f7ebcb498dc57cb9ffe6
SQL
enderdwt/todo-demo
/conf/evolutions/default/1.sql
UTF-8
412
3.015625
3
[ "MIT" ]
permissive
# --- !Ups CREATE SEQUENCE public."TODO_id_seq" INCREMENT 1 MINVALUE 1 MAXVALUE 9223372036854775807 START 1 CACHE 1; CREATE TABLE "TODO" ( id integer NOT NULL DEFAULT nextval('"TODO_id_seq"'::regclass), description character varying NOT NULL, done boolean NOT NULL, CONSTRAINT "TODO_pkey" PRIMARY KEY...
true
a3706583cde113735531343b3f9bfeb909235e2d
SQL
egalli64/Oved290Red
/scripts/clients.sql
UTF-8
1,970
3.203125
3
[]
no_license
DROP TABLE CLIENTS; create table CLIENTS ( CLIENT_ID integer primary key, FIRST_NAME varchar (40), LAST_NAME varchar (40), BIRTHDAY_DATE varchar (40), CITY_NAME varchar (40), GENER_ID integer references CLIENTS (GENER_ID), AUTHOR_ID integer references CLIENTS(AUTHOR_ID)); insert into CLIENTS (CLIENT_...
true
928c7ad167302f65c2aa83c997993d42d2d7258d
SQL
dmtwood/JDBC
/src/main/resources/bieren.sql
UTF-8
73,215
2.734375
3
[]
no_license
set names utf8mb4; set charset utf8mb4; drop database if exists bieren; CREATE DATABASE bieren charset utf8mb4; USE bieren; CREATE TABLE brouwers ( id int unsigned NOT NULL AUTO_INCREMENT primary key, naam varchar(50) NOT NULL, adres varchar(50) NOT NULL, postcode smallint unsigned NOT NULL, gemeente varch...
true
ec350fbb6672a78457783e11e6811ad375ea7118
SQL
karasu21/TrabajoClase1DAM
/Base De Datos/BASE DE DATOS/Bases de datos/pedidos_clientes.sql
WINDOWS-1250
3,404
3.375
3
[]
no_license
/*DROP TABLE IF EXISTS PEDIDOS; DROP TABLE IF EXISTS PRODUCTOS; DROP TABLE IF EXISTS CLIENTES; */ CREATE TABLE CLIENTES (CLIENTE_NO INT(4), NOMBRE VARCHAR(25), LOCALIDAD VARCHAR(14), VENDEDOR_NO INT(4), DEBE FLOAT(9,2), HABER FLOAT(9,2), LIMITE_CREDITO FLOAT(9,2), CONSTRAINT PK_CLIENTE_NO PRIMARY KE...
true
f43a253cbeef6349d0c4f4eb2d40638dd653950e
SQL
dipeshpatil2497/Dipesh_DBMS_Assignments
/Assignments/Assignment_1_Ans.sql
UTF-8
2,214
3.609375
4
[]
no_license
create database Cdac_Demo; show databases; use Cdac_Demo; -- query use for select database-- -- Query for create table-- create table SALESPEOPLE ( Snum int(4), Sname varchar(10), City varchar(10), Comm float(3,2) ); create table CUSTOMERS ( Cnum int(4), Cname varchar(10), City varchar(10), Rating int(4), Snu...
true
df249ee7b1ca3dd081915a939d20c11aca64e77c
SQL
waleedelzoghby/OS_scripts
/LVM_Commands.sql
UTF-8
1,503
2.78125
3
[]
no_license
##########LVM_Commands ----------------------- lsvg # display all VGs on machine (online and offline) lsvg -o # display online VGs lsvg rootvg # display all details on VG lsvg -l rootvg # display all LVs contained in rootvg lsvg -p rootvg # display all PVs contained in rootvg ##########################...
true
2f64f5c783f3ee306e90b29412d74f8b1bda851e
SQL
chaipolu/Learning
/CreatingUsers_HelpDesk.sql
UTF-8
1,611
2.84375
3
[]
no_license
select * from tblusers where lastname = 'Powell' LASTNAME LIKE '%-%' --delete from tblusers where empno = '011700' firstname = 'Harrison' NTACCOUNT LIKE '%JROBLES%' select * from tblusers where Firstname = 'Chaitanya' --Update tblusers set Password = 'JPdfw44$' where EmpNo = '011700' select * from tblmen...
true
60dfb489fbe0d5d3f0047b5ca9adef6830b1dc2b
SQL
keioni/ink_01
/tests/test_table_schema2.sql
UTF-8
1,383
3.734375
4
[ "MIT" ]
permissive
-- Test SQL reading and coverting system -- used in pytest (tests/test_database.py) -- -- format does not match correctly, -- but there are the same create table tokens ( rowid integer auto_increment, token bigint, user_id integer, ctime datetime not null, ...
true
b1811c7d88edb617583a995dd40c546b9ae5bc40
SQL
lovely111/database
/sql/b.sql
UTF-8
1,801
3.859375
4
[]
no_license
DROP DATABASE IF EXISTS db_b; CREATE DATABASE db_b; -- table admin DROP TABLE IF EXISTS db_b.admin; CREATE TABLE db_b.admin ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, email VARCHAR(255), password VARCHAR(255) ); -- table product DROP TABLE IF EXISTS db_b.product; CREATE TABLE db_b.product ( id IN...
true
3237e56a41fe0f68e525b3cb497d0c90fa8a6a90
SQL
Urvashimeena/aloreBooking
/sqldump/aloreBooking_customerReview.sql
UTF-8
2,303
3.0625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.29, for Linux (x86_64) -- -- Host: localhost Database: aloreBooking -- ------------------------------------------------------ -- Server version 5.7.29-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT...
true
b8701b5785d740f869e0515ff1a073544bb21f49
SQL
azimemory/oracle
/DB수업자료/a_select/b_SUBQUERY.sql
UHC
22,422
4.53125
5
[]
no_license
-- SUBQUERY() /* - ϳ SQL ȿ Ե Ǵٸ SQL. - ( ) ϴ . */ -- μڵ尡 ö Ҽ ȸ -- 1) ö μ ȸ SELECT DEPT_CODE FROM EMPLOYEE WHERE EMP_NAME = 'ö'; -- 2) μڵ尡 D9 ȸ SELECT EMP_NAME FROM EMPLOYEE WHERE DEPT_CODE = 'D9'; -- 3) μڵ尡 ö Ҽ ȸ SELECT EMP_NAME FROM EMPLOYEE WHERE DEPT_CODE = (SELECT DEPT_CODE FRO...
true
bcc5ceabd51f6dd56018350c8594690d98a4feff
SQL
antoniomendescontador/itcd-api
/src/main/resources/db/migration/V12__criar_e_registrar_imovel_urbano_indice_atualizacao.sql
UTF-8
747
2.546875
3
[]
no_license
CREATE TABLE imovel_urbano_indice_atualizacao ( imovel_urbano_codigo BIGINT(20), indice_atualizacao_codigo BIGINT(20), FOREIGN KEY (imovel_urbano_codigo) REFERENCES imovel_urbano(codigo), FOREIGN KEY (indice_atualizacao_codigo) REFERENCES indice_atualizacao(codigo) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSER...
true
829a36e8c3cbf3d9b40f01e2b43112832c26e5cc
SQL
satyams6710/Sparksinternship
/allusers.sql
UTF-8
2,360
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 19, 2021 at 09:21 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
4a6de55a74f5168b56fa2d6113394cc028d69c38
SQL
pursuit/forum
/src/main/resources/db/migration/V4__Create_thread.sql
UTF-8
267
3.609375
4
[]
no_license
CREATE TABLE threads ( id INT PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY CHECK (id > 0), category_id INT NOT NULL, title VARCHAR(255) NOT NULL, created_at TIMESTAMP NOT NULL, CONSTRAINT fk_threads_category FOREIGN KEY(category_id) REFERENCES categories(id) );
true
8ce37895e9f10d88899574ee1d7ca59291bf45b8
SQL
tsukaharakazuki/td
/tieup_report/queries/p2/p2009_click_kv.sql
UTF-8
1,436
3.28125
3
[]
no_license
WITH t1 AS ( SELECT '01' AS click_num, c_1 AS click_key, c_1_cnt AS click_val, total_pv AS total_pv, 'click_total_kv' AS label FROM tieup_${td.each.db_client_name}_${td.each.db_label} WHERE c_1 is not NULL UNION ALL SELECT '02' AS click_num, c_2 AS click_key, c_2_cnt AS click_val, total_pv AS total_pv, 'click_...
true
a9bb59acd2d1409df8a510cf48762221cd48255d
SQL
BastienAM/FaceReco
/src/main/sql/database_creation.sql
UTF-8
2,936
3.703125
4
[]
no_license
CREATE TABLE Student ( Number integer NOT NULL, Last_Name varchar(255) NOT NULL, First_Name varchar(255) NOT NULL, FK_Group_Student integer NOT NULL, CONSTRAINT "Student_pk" PRIMARY KEY (Number) ) WITH ( OIDS=FALSE ); CREATE TABLE Account ( PK serial NOT NULL, Username varchar(255) NOT NULL UNIQUE, Passwor...
true
864080e24c16b9a06fbecd99d2b837596c8d7918
SQL
mariam199911/Cs50-pset7
/movies/13.sql
UTF-8
232
3.90625
4
[]
no_license
SELECT DISTINCT(name) FROM people WHERE name IS NOT 'Kevin Bacon' AND id IN (SELECT person_id FROM stars WHERE movie_id in (select movie_id from stars where person_id in (select id from people where name = "Kevin Bacon"and birth = 1958) ));
true
fe6bade3b7509d6d34a45e38e2ebf1f209d08829
SQL
djgonza/BADA
/UT-6/Pedidos/funciones_procedimientos_bdpedidos.sql
UTF-8
4,965
4.0625
4
[]
no_license
-- ***************************************************************************************** -- EJERCICIOS BASE DE DATOS PARA REPASO -- ***************************************************************************************** -- Crea una función para calcular un importe a pagar (precio*cantidad) -- drop functio...
true
cf9e43f6b23286ae6c137d54764300ac845fd1f2
SQL
inverthermit/php-Social-Network-Techy
/data/social_userinfo.sql
UTF-8
2,366
3.046875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `social` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `social`; -- MySQL dump 10.13 Distrib 5.6.13, for Win32 (x86) -- -- Host: localhost Database: social -- ------------------------------------------------------ -- Server version 5.6.14 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
true
27f93f20e6ddad41b2d58723f265a69fe49f7ad3
SQL
xurand/encuesta
/BD.sql
UTF-8
2,729
2.8125
3
[]
no_license
CREATE DATABASE `encuesta` DEFAULT CHARACTER SET utf8 COLLATE utf8_spanish_ci; USE `encuesta`; CREATE TABLE IF NOT EXISTS `preguntas` ( `id` int(11) NOT NULL AUTO_INCREMENT, `pregunta` varchar(400) CHARACTER SET utf8 COLLATE utf8_unicode_ci DEFAULT NULL, KEY `id` (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLL...
true
6b9f7c603307f3dd4833103deeabc1195ce62d88
SQL
MarcoDiFrancesco/LittleProjects
/Sql/Database assignment 2/query_2.sql
UTF-8
198
2.9375
3
[]
no_license
SELECT sells1.bar FROM "Sells" sells1, "Sells" sells2 WHERE sells1.bar = sells2.bar AND sells1.beer = 'Miller' AND sells2.beer = 'Bud' AND sells1.beer <> sells2.beer AND sells1.price = sells2.price;
true