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
0997d3c2c035f62131a6ef822f1d857f94126681
SQL
zuston/tiny-web-framework
/todo.sql
UTF-8
2,261
3.171875
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4500 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.1.63) # Database: todo # Generation Time: 2016-11-30 05:45:46 +0000 # **************************************************...
true
df41d28bbcccfb8c7ee797e04de6b9bca33e8bdd
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day25/select1402.sql
UTF-8
178
2.671875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-24T14:02:00Z' AND timestamp<'2017-11-25T14:02:00Z' AND temperature>=35 AND temperature<=98
true
ecc54a1ba474e229c0c669175471aa38493b05f6
SQL
gcoronelc/UNI-EPIES-ADS-2019-2
/Sem01/s3_Chavez - no es.sql
UTF-8
406
3.625
4
[]
no_license
--28. Desarrolle una sentencia SELECT para encontrar el importe recaudado por curso.Base de datos EDUCA. select [cur_id], sum(cur_precio) importe_recaudado from EDUCA.dbo.CURSO GROUP BY cur_id; with v3 as ( select cur_id, sum(cur_precio) importe_recaudado from EDUCA.dbo.CURSO GROUP BY cur_id ) select v3.cur_id, n....
true
6c8485e73b6b2d652c282a67fb8f3f442fb8cc40
SQL
MarkZhuYiQi/weChat
/weChat.sql
UTF-8
8,034
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 25, 2016 at 12:34 PM -- Server version: 5.7.15 -- PHP Version: 7.0.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
true
09bff46ef979a316a78a4b209982b3fafddfd244
SQL
JHottaAlh/IdeaProjects
/BulletinBoard-SQL/user_control.sql
UTF-8
303
3.1875
3
[]
no_license
alter view user_control as select users.id ,login_id ,users.name ,is_stopped ,password ,branch_id ,department_id ,branches.name as branch_name ,departments.name as department_name from users, branches, departments WHERE users.branch_id = branches.id and users.department_id = departments.id
true
e7c2c10e6ddd51a6f27a09d71da6b736b1d8ee9f
SQL
courtneylynngarner/sql-basics
/sql-basics/person.sql
UTF-8
1,195
3.390625
3
[]
no_license
create table person ( person_id SERIAL PRIMARY KEY, first_name varchar(50), age int, height_cm int, city varchar(30), fave_color varchar(30) ); INSERT INTO person ( first_name, age, height_cm, city, fave_color ) VALUES ('Mia Lynn', 3, 91, 'Ogden', 'purple'), ('Steph...
true
d0dde26504a32757ab9cb78999555f682db94b11
SQL
armlesswunder/ACQueryFiles
/ACNLqueryFiles/sql files/wet_suit_query.sql
UTF-8
984
2.734375
3
[]
no_license
drop table if exists acnl_wet_suit; create table acnl_wet_suit ("Index" int primary key, Selected int, Name varchar(255), "From" varchar(63), Color1 varchar(31), Color2 varchar(31)); insert into acnl_wet_suit values(1, 0, 'Black Wet Suit', 'Island', 'yellow', 'black'); insert into acnl_wet_suit values(2, 0, 'Blue Wet ...
true
1d187ab52a603077d4744a215983c07d11165e78
SQL
LeonardoAleix0/Amazon_Vine_Analysis
/Vine_Review_Analysis.sql
UTF-8
1,329
4.21875
4
[]
no_license
Select * Into Total_votes From vine_table Where total_votes >= 20; Select * Into helpful_votes_perc From Total_Votes Where Cast(helpful_votes AS FLOAT)/CAST(total_votes AS Float) >=0.5; Select * Into paid_vine From helpful_votes_perc Where vine = 'Y'; Select * Into unpaid_vine From helpful_votes_perc Where vine = 'N...
true
6f5889cd1f221ea85f4f85ad13c5b20f96bee980
SQL
alysoncp/bootcampx
/4_queries/assistance_requests_data.sql
UTF-8
509
3.40625
3
[]
no_license
SELECT teachers.name AS teacher, students.name AS student, assignments.name AS assignment, assistance_requests.completed_at-assistance_requests.started_at AS duration FROM assistance_requests JOIN students ON assistance_requests.student_id = students.id JOIN assignments ON assistance_requests.assignment_id = assignment...
true
d225caa45d88b5b205c8d0d07128e72f05c93e8e
SQL
juliusregalado/bbandida
/server/db/seed.sql
UTF-8
618
2.578125
3
[ "MIT" ]
permissive
\c bbandida; INSERT INTO users (email, password) VALUES ( 'casey@casey.com', '$2a$10$eH0zRDbUwcFX7lr/4avi5O5XvfV0wSCidNs0pfcBxaPGtqFCbeMUO' ); INSERT INTO contributor (name, role, link) VALUES ( 'Casey R Harding', 'Photographer', 'www.caseyharding.com' ); INSERT INTO contributor (name, ro...
true
989e7a43534381e69f6a26f7bef8ac59f391f215
SQL
DavidRafaelDev/Banco-de-dados-Estudo
/programas.sql
UTF-8
1,272
3.453125
3
[]
no_license
create database programa; use programa; create table programa ( idPrograma int primary key, nome varchar(40), genero varchar(30), emissora varchar(20) ); insert into programa values (1,'Silvio Santos','Auditorio','sbt'), (2,'Domingo legal','Auditorio','sbt'), (3,'Bom dia SP','jornal','sbt'), ...
true
26d0232b13ff55252db94f5f39d9935bdd14b5ab
SQL
darth-raijin/kea-wishlist
/init.sql
UTF-8
624
3.53125
4
[]
no_license
CREATE DATABASE wishlist; USE wishlist; CREATE TABLE Wishlist ( id int AUTO_INCREMENT primary key, name VARCHAR(255) NOT NULL, description VARCHAR(255) NOT NULL, ); CREATE TABLE Items ( id int AUTO_INCREMENT primary key, ...
true
8412cad1e5ec1e032447e97eeaefa6adb7bd73e4
SQL
tony-hub/HIVESQL
/累加/test.sql
UTF-8
4,906
3.40625
3
[]
no_license
INSERT OVERWRITE TABLE service_security.passenger_order_info_y PARTITION(year,month,day) SELECT updata.pas_id AS pas_id, SUM(updata.passenger_complaint_orders) AS passenger_complaint_orders, SUM(updata.driver_complaint_orders) AS driver_complaint_orders, SUM(updata.cancel_before_count) AS cancel_before_count, SUM(up...
true
6f17bed233e5f64d7f1771e0ffed048e61f0c849
SQL
azulcontrole/projetos
/classes_sql/classCompraCab_proc.sql
UTF-8
3,778
3.390625
3
[]
no_license
USE `azul_controlev2`; DROP procedure IF EXISTS `classCompraCab_proc`; /* USE azul_controlev2; SELECT * FROM testenome WHERE coluna like ('%TAR%VER%'); select * from testenome WHERE MATCH(coluna) AGAINST ('%TAR%VER%' IN BOOLEAN MODE); */ DELIMITER $$ USE `azul_controlev2`$$ CREATE PROCEDURE `classCompraCab_proc`( in ...
true
93ae022f2e858e87f2cd4d552b4c6b2fee28855d
SQL
ryanesper/Dodge-Cycle-Parts-and-General-Merchandize
/cpgm.sql
UTF-8
6,914
3.109375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 15, 2017 at 05:56 AM -- 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
d116c65070071676d35bdfab1a5be534cfbae4e5
SQL
Bilgetz/angularGeneratorStrategySample
/src/main/resources/schema.sql
UTF-8
268
3.234375
3
[]
no_license
CREATE TABLE team ( id BIGSERIAL PRIMARY KEY, name VARCHAR(128) NOT NULL, ); CREATE TABLE player ( id BIGSERIAL PRIMARY KEY, name VARCHAR(128) NOT NULL, idteam BIGINT, CONSTRAINT playerteam FOREIGN KEY (idteam ) REFERENCES team (id) );
true
d47a5a5af2c7a2fb136051981a3fac537642f4b0
SQL
mebelousov/antlr_psql
/src/test/resources/sql/explain/4117744b.sql
UTF-8
156
2.671875
3
[ "MIT" ]
permissive
-- file:join.sql ln:1397 expect:true explain (costs off) select i8.* from int8_tbl i8 left join (select f1 from int4_tbl group by f1) i4 on i8.q1 = i4.f1
true
bc1f80369d9ec5642160e2bdcc9c94a8f83c0713
SQL
rajeshsantha/DataStructuresAndAlgorithmsInScala
/src/com/concept/scala/hackerrank/sql/WeatherObservationStation14.sql
UTF-8
136
2.921875
3
[]
no_license
--https://www.hackerrank.com/challenges/weather-observation-station-14 select round(max(LAT_N),4) from Station where LAT_N <= 137.2345;
true
1683f114223f8f5e9320b719aa762e95f3fb70e5
SQL
stefanmanojlovic/auto_skola
/auto_skola.sql
UTF-8
9,922
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Feb 07, 2021 at 05:37 PM -- Server version: 8.0.18 -- PHP Version: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
true
2b20d7200a48eb2fd5c307d1e7752e16a7511908
SQL
roeldingle/salcalc
/docs/db_salcalc.sql
UTF-8
6,141
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Sep 02, 2013 at 01:59 AM -- Server version: 5.1.41 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
239edaaada88c5fa73ef7981ae0912741f7328f2
SQL
pubgolf/pubgolf
/api/internal/db/queries/venues.sql
UTF-8
233
3.375
3
[]
no_license
-- name: VenueByKey :one SELECT v.id, v.name, v.address, v.image_url FROM stages s JOIN venues v ON s.venue_id = v.id WHERE s.event_id = $1 AND s.venue_key = $2 AND s.deleted_at IS NULL AND v.deleted_at IS NULL;
true
58911c054877ba115db76c537559942fbd872b0f
SQL
leandrorochaadm/apolo_relatorios_auxiliares
/sql/ROI60.sql
UTF-8
431
3.796875
4
[]
no_license
create view roi60 ( codproduto, lucro, entrada, roi60 ) as select ps.codproduto, sum(ps.lucro) as lucro, sum(pe.entrada) as entrada, (sum(ps.lucro)/sum(pe.entrada)) as roi60 from produtolucro ps inner join produtoentrada pe on (pe.codproduto=ps.codproduto) where ps.data between cast('today' as date)-45 and cast('today...
true
e04722b3fe5cf8bb2176191fd5a7c0c21b8e33e3
SQL
519984307/WCS_JKR_YH
/file/update.sql
UTF-8
19,220
3.15625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : TEST Source Server Type : MySQL Source Server Version : 80016 Source Host : localhost:3306 Source Schema : 2020_wcs_jkr_bzq Target Server Type : MySQL Target Server Version : 80016 File Encoding : 65001 Date: 16/12/202...
true
eb3e2b69f6cd4354d47b4c9227298710470bdef2
SQL
hiro-engineer/spring-batch-basic
/docker/postgres/init.sql
UTF-8
272
2.5625
3
[]
no_license
create database testdb ENCODING = 'UTF8'; \c testdb; CREATE TABLE people ( first_name varchar(20), last_name varchar(20) ); INSERT INTO people (first_name, last_name) VALUES ('taro', 'tanaka'); INSERT INTO people (first_name, last_name) VALUES ('hanako', 'suzuki');
true
fbd9ec48365be261a8f32c20e85d3f8cbf60175a
SQL
Neutar/tecrubesi-user
/src/main/resources/db/migration/V1_001__initial.sql
UTF-8
490
3.15625
3
[]
no_license
create table neutar_user_detail ( id uuid PRIMARY KEY, bio varchar(255), points int8, profile_picture_url varchar(255)); create table neutar_user (id uuid PRIMARY KEY, email varchar(255) UNIQUE, name varchar(255), password varchar(255), surname varchar(255), username varchar(255) UNIQUE, neutar_user_detail_i...
true
e2c8f6bcc63d7949dcd5c2b5c004fd8e316d544f
SQL
Andresuca/kinesiologia
/reciboskinesiologia/dataBase/querys_n_stuff.sql
UTF-8
1,520
3.3125
3
[]
no_license
DELIMITER // CREATE PROCEDURE stored_getPrecio( IN txtPaciente INT(6) ,IN txtTerapia INT(6) ) BEGIN SELECT costo FROM tc_precio_terapiayservicio WHERE idTipoPaciente = txtPaciente AND idTerapia = txtTerapia; END // DELIMITER ; DELIMITER // CREATE PROCEDURE stored_getCostoTerapia(...
true
022d3b3bc3dad0f7dd1f583e23c842630b45ba5d
SQL
vorobey9/english
/diploma24-04-2016.sql
UTF-8
16,659
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Апр 24 2016 г., 18:10 -- Версия сервера: 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 */; /*!4010...
true
eaa9974f52810cd0e3490dfd5f68d7fe6b9338a4
SQL
riffert/textgroup-em
/language.sql
UTF-8
27,871
2.5625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.8 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Feb 06, 2017 at 03:43 PM -- Server version: 5.6.23-1~dotdeb.3 -- PHP Version: 5.6.8-1~dotdeb+wheezy.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
11166628c197f9a68d5e4fbae7c06147c58a973f
SQL
JLLeitschuh/hgl
/doc/sql/菜单修改.sql
UTF-8
8,237
2.609375
3
[]
no_license
##修改前的对照 INSERT INTO `tb_web_permission` VALUES ('1', '订单中心', '', '1', '1', '订单中心', '0', '0'); INSERT INTO `tb_web_permission` VALUES ('11', '我的订单', '/myOrderGroup/index', '1', '11', '我的订单', '0', '0'); INSERT INTO `tb_web_permission` VALUES ('13', '收货地址', '', '1', '13', '收货地址', '0', '0'); INSERT INTO `tb_web_permission...
true
92713aacaa20b85ce4a8a21aaeb85b96d2368101
SQL
alzo91/TestORMPrisma
/prisma/migrations/20211001141226_change_tables/migration.sql
UTF-8
1,595
4.09375
4
[]
no_license
-- CreateTable CREATE TABLE "Cars" ( "id" TEXT NOT NULL, "name" TEXT NOT NULL, "model" TEXT NOT NULL, "available" BOOLEAN NOT NULL DEFAULT true, CONSTRAINT "Cars_pkey" PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Users" ( "id" SERIAL NOT NULL, "name" TEXT, "email" TEXT NOT NULL, ...
true
edcccc6928e8472f90bcb64b031278df76c682bf
SQL
jamesbong93/Portfolio
/capital market/Assignment Sql/registration_list.sql
UTF-8
2,114
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.6 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 01, 2015 at 03:01 AM -- Server version: 5.6.16 -- PHP Version: 5.5.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /...
true
2f9e141c269ac80bc48eabf1af9c64bd636708eb
SQL
rentsoftSAS/rentsoft
/RentSoft/scriptsBD/udp_cliente.sql
UTF-8
969
3.34375
3
[]
no_license
use rentsoftbd; DELIMITER $$ DROP PROCEDURE IF EXISTS udp_cliente $$ CREATE PROCEDURE udp_cliente (in p_id int, in p_Documento varchar(50), in p_Nombre varchar(200), in p_Direccion varchar(200), in p_Apellido varchar(200), in p_Correo varchar(200), in p_idTipoDocumento int, in p_IdUsuarioModifica int) BEGIN d...
true
65115342175b7dc5eb87b99315ad4c36bbebe4fe
SQL
yasmineerita/ChoreCenter
/Backend/db/create-tables.sql
UTF-8
1,911
3.640625
4
[]
no_license
CREATE TABLE Parents ( Name VARCHAR(255), Email VARCHAR(255), GoogleTokenId VARCHAR(2048), GoogleAccountId VARCHAR(2048), ParentCode uniqueidentifier NOT NULL DEFAULT newid(), PRIMARY KEY (GoogleAccountId) ); CREATE TABLE Children ( Name VARCHAR(255), Email VARCHAR(255), ParentGoogl...
true
80c4f1fef2919174ff8c1f9f2bf025023ea3b7a6
SQL
Typo3graf/SmartVerein
/vm_club/ext_tables.sql
UTF-8
2,480
2.953125
3
[]
no_license
# # Table structure for table 'tx_vmclub_domain_model_club' # CREATE TABLE tx_vmclub_domain_model_club ( uid int(11) NOT NULL auto_increment, pid int(11) DEFAULT '0' NOT NULL, club_name varchar(255) DEFAULT '' NOT NULL, club_short_name varchar(255) DEFAULT '' NOT NULL, club_founding_year varchar(255) DEFAULT '' ...
true
650a074aeda2b2500b745e1b9ec1f012f8d50d92
SQL
Mesverrum/MyPublicWork
/SQL_to_update_NodePropertiesOnTooltip.sql
UTF-8
746
3.578125
4
[]
no_license
--ensures all node properties have been added to the table insert into [CustomPropertyUsage] select targettable, name, 'IsForEntityDetail', 1 from [CustomPropertyMetadata] where targettable = 'NodesCustomProperties' and name not in (select distinct name from [CustomPropertyUsage] where targettable = 'NodesCustomPropert...
true
fbd40671f550231f881d7cab8869679bcf539c62
SQL
NGASHBAUGH/SQL-Queries
/SQL/table_schemata.sql
UTF-8
635
3.453125
3
[]
no_license
CREATE TABLE departments( dept_no VARCHAR(4) PRIMARY KEY NOT NULL, dept_name VARCHAR(25) NOT NULL ); CREATE TABLE titles( title_id VARCHAR(5) PRIMARY KEY NOT NULL, title VARCHAR(25) NOT NULL ); CREATE TABLE employees( emp_no INTEGER PRIMARY KEY NOT NULL, emp_title VARCHAR(5) NOT NULL, FOREIGN KEY (emp_ti...
true
e332bce1c832e8e3548dca32b5640fbafe6a051d
SQL
cckmit/xinfu
/ccms/WebContent/WEB-INF/action/project/fitness/system/target/targetstaff/skillsearch/query-base.sql
UTF-8
219
3.40625
3
[]
no_license
select staff.user_id, staff.userlogin, staff.name from hr_staff staff left join hr_staff_skill ss on staff.user_id = ss.user_id where staff.org_id = ${def:org} and ss.skill_id = ${fld:skill_id} and staff.status=1
true
16ce829dfe9a7254defdc0f0d52219f942a8b555
SQL
jcpantunes/puc-projetos
/net/WebCrawler/webcrowler.sql
UTF-8
860
3.046875
3
[]
no_license
-- DELETE FROM Automovel; -- DELETE FROM Automovel where marca <> 'Chevrolet' DELETE FROM link; DELETE FROM Indice; DELETE FROM log; -- DELETE FROM link where contexto = 'http://www.seminovosbh.com.br' select * from Automovel order by id desc; select * from link order by id desc; select * from indice order by id ...
true
2b0bda5824039e65eeac19275b0278783c91bc28
SQL
keylxiao/Oilfield_backend
/Desktop/Oilfield_backend/createsql.sql
UTF-8
10,311
3.515625
4
[]
no_license
-- ---------------------------- -- 用户数据库 -- ---------------------------- DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int NOT NULL AUTO_INCREMENT COMMENT '自增主键', `account` varchar(11) DEFAULT NULL COMMENT '登录账号', `password` varchar(40) DEFAULT NULL COMMENT '登录密码', `user_name...
true
f8fb847ec46065de627335491df8fc2d690d4670
SQL
seevibes/sql-workshop
/e01.sql
UTF-8
3,895
4.3125
4
[]
no_license
SET work_mem='64MB'; SHOW work_mem; -- EXPLAIN ANALYZE -- SELECT show_id, name, SUM(interactions_count * followers_count) AS impressions -- FROM ( -- SELECT -- show_id -- , interactions_count -- , CASE followers_count -- WHEN 0 THEN 130 -- ELSE followers_count END --...
true
01cbb35662f0f51ac554d3d3a50889e6b31554cf
SQL
fjbatresv/miconta
/codigo/webApp/db/20160529.sql
UTF-8
9,513
2.921875
3
[ "MIT" ]
permissive
-- MySQL dump 10.15 Distrib 10.0.20-MariaDB, for Linux (x86_64) -- -- Host: localhost Database: metapod -- ------------------------------------------------------ -- Server version 10.0.20-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
true
33aedd638300ed5ffa8119114d62ea4686898e75
SQL
alexanderfedin/monad
/VehicleDatabase/vehicles.sql
UTF-8
3,517
3.953125
4
[ "Apache-2.0" ]
permissive
/* Copyright 2015 Ericsson AB Licensed under the Apache License, Version 2.0 (the 'License'); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
true
f485d46bf876b44aec31a1b970f831a821792463
SQL
not4win/5th-sem-dbms
/lab3/dept_location.sql
UTF-8
85
2.71875
3
[]
no_license
CREATE dept_location( FOREIGN KEY (Dno) REFERENCES dept(Dnumber), PRIMARY KEY )
true
cf5ffdd8c1b4c10a5f747603b3db2cd8553c54fd
SQL
dominikjanak/NNPIA_backend
/src/main/resources/db/migration/V1__createTable.sql
UTF-8
2,140
3.671875
4
[]
no_license
CREATE TABLE author ( id int(11) NOT NULL, country varchar(3) DEFAULT NULL, firstname varchar(50) NOT NULL, surname varchar(50) NOT NULL ) DEFAULT CHARSET=utf8mb4; CREATE TABLE category ( id int(11) NOT NULL, name varchar(50) NOT NULL ) DEFAULT CHARSET=utf8mb4; CREATE TABLE quote ( id int(...
true
c9bab0b42fb0dc4a9f46bfa57c7f8b760dc2cd9e
SQL
codacy-badger/sample
/module/position/install/0.0.1.sql
UTF-8
816
2.765625
3
[ "MIT" ]
permissive
DROP TABLE IF EXISTS `position`; CREATE TABLE `position` ( `position_id` int(10) UNSIGNED NOT NULL auto_increment, `position_active` int(1) UNSIGNED NOT NULL DEFAULT 1, `position_created` datetime NOT NULL, `position_updated` datetime NOT NULL, `position_name` varchar(255) NOT NULL, `position_d...
true
d2a62cd81e305c4adaf7d4fb8a3c12d44e3063af
SQL
Chris24jay/online-garage
/db/orders/getUserCart.sql
UTF-8
240
3.125
3
[]
no_license
SELECT orderItems.id, orderItems.order_id, orderItems.part_id, parts.parts_id, parts.part_name, orderItems.quantity, orderItems.total_price FROM orderItems INNER JOIN parts ON orderItems.part_id = parts.id WHERE order_id = ${order_id};
true
8771688b958d019940554e90de8796d36432291f
SQL
abdullahgilani/MySQL
/on delete.sql
UTF-8
262
3
3
[]
no_license
CREATE TABLE branch_supplier( branch_id INT, supplier_name VARCHAR(40), supplier_type VARCHAR(40), PRIMARY KEY (branch_id,supplier_name), FOREIGN KEY (branch_id) REFERENCES branch(branch_id) ON DELETE SET NULL -- CASCADE ); DELETE FROM branch WHERE branch_id=2;
true
2045eee36f47ea89a7e3f0a5a84336bcc4d6e8ff
SQL
GrandJah/rest_api
/auth/src/main/resources/db/update_002.sql
UTF-8
335
3.078125
3
[]
no_license
create table employee ( id serial primary key not null, first_name varchar(100), last_name varchar(100), INN varchar(12) ); create table employee_accounts ( employee_id int not null references employee, accounts_id int not null references person, primary key (accounts_id, e...
true
70a990b4bd04c25918ad8fc6ef945cbe009ad754
SQL
albertonebotoliva/api-from-scratch
/deezerdb.sql
UTF-8
4,995
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 09-08-2017 a las 19:35:09 -- Versión del servidor: 10.1.25-MariaDB -- Versión de PHP: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
4888d25ef65859f52ebac03fa024f78608594043
SQL
jingwen-z/SQL
/Project-AFD/démo.sql
UTF-8
1,423
3.171875
3
[]
no_license
-- MEJ-Update "Impayés-Date du 1er impayé survenu" UPDATE MEJ SET [Impayés-Date du 1er impayé survenu] = "01/11/2013" WHERE [Impayés-Date du 1er impayé survenu] = "nov.-13"; -- MEJ-Standardization of "Impayés-Date du 1er impayé survenu"'s format UPDATE MEJ SET [Impayés-Date du 1er impayé survenu] = Format([Impayés-D...
true
e5693fc50ff7ad90166adf0eb26dbcce473a28f8
SQL
Zahco/s7
/BDD/Projet/donnees.sql
UTF-8
573
2.53125
3
[]
no_license
insert into patient values ('Dupont', 'Pierre', 22); insert into patient values ('Dupont', 'Paul', 22); insert into patient values ('Lorem', 'Ipsum', 22); insert into patient values ('Dupont-Lorem', 'Jack', 23); insert into carateristique values ('Femme'); insert into carateristique values ('Homme'); insert into carat...
true
a73fb13536aa1d00f84548b7987f55b06e83d3ed
SQL
petrbalat/kdsl-jpa-spec
/src/test/resources/db/migration/V1__init.sql
UTF-8
503
2.953125
3
[ "MIT" ]
permissive
drop table if exists products; create table products ( id INTEGER GENERATED BY DEFAULT AS IDENTITY(START WITH 1, INCREMENT BY 1) PRIMARY KEY, name VARCHAR(30) not null, weight float, visible boolean default true not null, deleted datetime, dto object ); insert into PRODUCTS(name, weight) valu...
true
a3ffffeef730e95db5712bf6efd40188af2d5140
SQL
adj-dev/burger
/db/schema.sql
UTF-8
271
2.84375
3
[]
no_license
-- Create the database -- DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; -- Create the table -- CREATE TABLE burgers ( id INT AUTO_INCREMENT PRIMARY KEY, burger_name VARCHAR(100) NOT NULL, devoured BOOLEAN NOT NULL DEFAULT FALSE );
true
0f54fea32d40a3ba5666215545464588158b60b8
SQL
SQLauto/PyroSQL
/dynamic/DSQLT-master/DSQLT/DSQLT2012/Sample/Stored Procedures/@Test.sql
UTF-8
420
3.4375
3
[]
no_license
CREATE PROCEDURE [Sample].[@Test] AS RETURN BEGIN select S.name+'.'+O.name as SchemaTable ,QUOTENAME(S.name)+'.'+QUOTENAME(O.name) as SchemaTableQ ,S.name as [Schema] ,QUOTENAME(S.name) as [SchemaQ] ,O.name as [Table] ,QUOTENAME(O.name) as [TableQ] from sys.tables O join sys.schemas S on O.schema_id=S.schema_id WH...
true
1be1a72f0bdff3d6937df5a427235908800c6a11
SQL
shangbo/select_courses_system
/InsertDataToSchool.sql
UTF-8
6,583
2.90625
3
[]
no_license
use school SET NAMES 'utf8'; insert into Departments(departId,departName,departAddress,departPhoneNum) values(01,'计算机学院','上大东校区三号楼',65347567); insert into Departments(departId,departName,departAddress,departPhoneNum) values(02,'通讯学院','上大东校区二号楼',65341234); insert into Departments(departId,departName,departAdd...
true
6db64f91eb1c8a26404e5894d37c9105bf886d9a
SQL
kirrencovey/chinook-kirrencovey
/sql-queries/09_total_sales_2011.sql
UTF-8
127
3.03125
3
[]
no_license
-- What are the total sales for 2011? SELECT SUM(Total) TotalSales2011 FROM Invoice WHERE DATEPART(yyyy, InvoiceDate) = 2011 ;
true
4346615c524f63b1a2bff6aa64dde7dfbd8e3adf
SQL
alexZhukov/practice
/lib/practice/db_schema.sql
UTF-8
1,009
3.515625
4
[]
no_license
CREATE TABLE sequel_users ( id serial primary key, email varchar(40) unique, hashed_password varchar(80) not null, salt varchar(40), created_at timestamp, permission_level integer default 1 ); CREATE TYPE state as enum ('nothing', 'data', 'report', 'processing', 'failed'); CREATE TABLE sites ( id serial...
true
9f11610afe890a1fc587711d46e76c460bdaa48b
SQL
theshohidul/GP-Hotel-Management-System
/core/.docker/postgres/init.sql
UTF-8
1,765
3.484375
3
[]
no_license
CREATE TABLE IF NOT EXISTS customers ( id serial PRIMARY KEY, first_name character varying(100) NOT NULL, last_name character varying(100) NOT NULL, email character varying(255) NOT NULL UNIQUE , phone character varying(255) NOT NULL UNIQUE , password character varying(255) NOT NULL, registered_at TIMESTAMP DEFA...
true
0b6b04f6e0c6c2c3d148ad6ed2f0882a9f6fecdf
SQL
sergiocontrino/come
/curation/show.sql
UTF-8
1,764
3.046875
3
[]
no_license
-- **************************************************************************** -- -- Purpose: -- -- Usage: sqlplus username/password @skeleton.sql -- -- -- $Source$ -- $Date$ -- $Author$ -- ____________________________________________________________________________ -- -- $Log$ -- *****************...
true
1105391717ea68cf102ab7967f2001f9d2813962
SQL
panchis7u7/Android_Development_Kotlin
/DADM_U2P2_Cine/Database/cine.sql
UTF-8
8,753
3.34375
3
[]
no_license
#DROP DATABASE cine; CREATE DATABASE cine; use cine; CREATE TABLE horarios ( id_horario INTEGER PRIMARY KEY auto_increment, horario TEXT NOT NULL ); CREATE TABLE fechas ( id_fecha INTEGER PRIMARY KEY NOT NULL auto_increment, fecha TEXT NOT NULL ); CREATE TABLE peliculas ( id_pelicula INTEGER PRIMARY KEY auto_in...
true
913e8022b541a753d3d682ecf8ba2c3ab51b7805
SQL
marccolm/databaseProject
/creacion_tablas.sql
UTF-8
3,488
3.453125
3
[]
no_license
/* HECHOS VENTAS EMPLEADO */ DROP TABLE D_TIEMPO_VENTAS_EMPLEADO CASCADE CONSTRAINTS; DROP TABLE D_MEDICAMENTO_VENTAS_EMPLEADO CASCADE CONSTRAINTS; DROP TABLE D_EMPLEADO_VENTAS_EMPLEADO CASCADE CONSTRAINTS; DROP TABLE H_VENTAS_EMPLEADO CASCADE CONSTRAINTS; CREATE TABLE D_TIEMPO_VENTAS_EMPLEADO( ID NUMBER PRIMARY...
true
075c04e06d4069bfa616e5635f2ab4d6d5fce21b
SQL
rahmantouhid/Hospital_Management_System
/hospitalmanagement.sql
UTF-8
9,204
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 25, 2021 at 04:45 AM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
3862e73f6907829ae6c75f5124565c57a668c6fc
SQL
AndyOsei/phpblog
/phpblog.sql
UTF-8
7,475
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 01, 2017 at 06:48 PM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
a6ea39d0f065d2552c735a7c2e4178e692960849
SQL
kgtdbx/OracleScript
/Udemy/1Z0-144/chapter_21/chapter-21-part-3.sql
UTF-8
1,536
3.734375
4
[]
no_license
drop table students; drop view v1_students; drop view v2_students; drop procedure print_all_students; drop procedure print_all_students_from_v1; create table students (student_id number, student_name varchar2(100), dob date ); insert into students(student_id,student_name,dob) values (1,'aya ahmed','1-jan-1980')...
true
bc1590c17fac3a6389b60b3a0a53727ddeb29834
SQL
schemahq/schemainspect
/schemainspect/pg/sql/schema-privileges.sql
UTF-8
446
3.359375
3
[ "Unlicense" ]
permissive
select nspname as schema, r.rolname as user, pg_catalog.has_schema_privilege(r.rolname, nspname, 'CREATE') as create, pg_catalog.has_schema_privilege(r.rolname, nspname, 'USAGE') as usage from pg_namespace pn, pg_catalog.pg_roles r where array_to_string(nspacl,',') like '%'||r.rolname||'%' and nspo...
true
b5d5f743bb238392153a56672ef0eda4589ff0d3
SQL
zahiddlopez/Nutritec
/Ambiente virtual/tablas_nutritec_fk.sql
UTF-8
2,509
2.703125
3
[]
no_license
/*-------------------------------------------------Llaves Foraneas--------------------------------------------------------------*/ ALTER TABLE NUTRITEC.ALUMNOS ADD CONSTRAINT IALUMNO1 FOREIGN KEY (CARRERA_ID) REFERENCES NUTRITEC.CAT_CARRERAS(CARRERA_ID); ALTER TABLE NUTRITEC.ALUMNOS ADD CONSTRAINT IALUMNO2 FOREIG...
true
cc2b91183becae718d273476c0a82c598b4e3c5e
SQL
zhangyingforest/TicketsSellingSys
/src/sql/创建表.sql
GB18030
3,856
3.9375
4
[]
no_license
--------------------------------λͱ----------------------------------------- create table T_Seat( S_Id char(4) primary key, S_Name varchar(10) not null ); drop table T_Seat select * from T_Seat --------------------------------ɫ----------------------------------------- create table T_Role( R_Id char(4) primar...
true
aeb0dff68570b4b49225b86eb8f8a59aa5d20a70
SQL
Faiznurullah/Tabung_aspirasi
/challange1/sql/database.sql
UTF-8
745
2.78125
3
[]
no_license
CREATE DATABASE challange; CREATE TABLE nick( id int(20) NOT NULL AUTO_INCREMENT, username varchar(100) NOT NULL, password varchar(100) NOT NULL, PRIMARY KEY(id) ); CREATE TABLE aspirasi( id int(20) NOT NULL AUTO_INCREMENT, nama varchar(100) NOT NULL, bagus varchar(90) NOT NULL, sekolah varchar...
true
30b110767fc7a8b69c16d847a49fa408055d58bb
SQL
dav7824/SQL_tutorial
/08-Wildcards.sql
UTF-8
416
3.234375
3
[]
no_license
/* Database created in 06-CreateDatabase.sql needed */ -- % = any number of characters, _ = one character -- Find any cilent who are an LLC SELECT * FROM client WHERE client_name LIKE '%LLC'; -- Find any branch suppliers who are in the label business SELECT * FROM branch_supplier WHERE supplier_name LIKE '% Label%';...
true
6c70d45032d5523f16a6c25908d95a4d7a9ee502
SQL
anly2/web-eltech-site
/eltech.sql
UTF-8
3,446
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 05, 2012 at 11:31 AM -- Server version: 5.1.41 -- PHP Version: 5.3.2 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
2e65ad9c8fbaf4ab1cae3b54a3396009a6622e58
SQL
avns-ajit/userManagement
/user_management.sql
UTF-8
8,519
3.4375
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.6.23) # Database: user_management # Generation Time: 2019-04-21 08:28:45 +0000 # ***************************************...
true
60555d2423e7f2e85744af70e5207307994ed394
SQL
kiyomizuhi/sql_recipe
/script/ch04_01/query_01.sql
UTF-8
191
2.875
3
[]
no_license
SELECT dt , COUNT(*) AS purchase_count , ROUND(AVG(purchase_amount), 2) AS avg_amount , SUM(purchase_amount) AS total_amount FROM purchase_log GROUP BY dt ORDER BY dt ;
true
24313d2dc6085a001d1b797ec2fe90c555cb79db
SQL
indratbg/code
/SP_T_STK_MOVEMENT_APPROVE.sql
UTF-8
31,944
2.6875
3
[]
no_license
create or replace PROCEDURE SP_T_STK_MOVEMENT_APPROVE ( p_menu_name T_MANY_HEADER.menu_name%TYPE, p_update_date T_MANY_HEADER.update_date%TYPE, p_update_seq T_MANY_HEADER.update_seq%TYPE, p_approved_user_id T_MANY_HEADER.user_id%TYPE, p_approved_ip_address T_MANY_HEADER.ip_address%TY...
true
cfd33c87aabeee1f2121cb1b8a685eb1335fb058
SQL
thangduong3010/PL-SQL
/EODA/scripts/ch12/demo13.sql
UTF-8
309
2.90625
3
[]
no_license
-- Coping with Legacy LONG Types set echo on select * from all_views where text like '%HELLO%'; col table_name form a30 col column_name form a30 select table_name, column_name from dba_tab_columns where data_type in ( 'LONG', 'LONG RAW' ) and owner = 'SYS' and table_name like 'DBA%' order by table_name;
true
b5a82f5c7d1332b81eb55e8b91be1e889e45f84c
SQL
solsensor/sol
/migrations/2019-05-09-133919_sensors_add_name_description/down.sql
UTF-8
357
3.390625
3
[]
no_license
ALTER TABLE sensors RENAME TO sensors_tmp; CREATE TABLE sensors ( id INTEGER PRIMARY KEY NOT NULL, owner_id INTEGER NOT NULL, hardware_id INTEGER NOT NULL, active BOOLEAN NOT NULL DEFAULT 1, FOREIGN KEY(owner_id) REFERENCES users(id) ); INSERT INTO sensors SELECT id, owner_id, hardware_id, active FROM s...
true
181d685c4c2c5b3496c7a3b67d6ee55257007622
SQL
CivBR/CBRX-S2
/() Gameplay Changes/JFD's Gameplay - Great Revolutionaries (CBR Version) (v 1)/Core/GreatRevolutionaries_Defines.sql
UTF-8
2,272
2.625
3
[]
no_license
--======================================================================================================================= -- GAME DEFINES --======================================================================================================================= -- BuildingClasses -----------------------------------------...
true
121606da7a783007385db34d9205c81560a2233f
SQL
MrDarkHorse/dgpt_stats
/sql/tables/Event.sql
UTF-8
496
2.71875
3
[]
no_license
CREATE TABLE `Event` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(200) DEFAULT NULL, `pdga_event_id` int(10) unsigned DEFAULT NULL, `purse` int(45) unsigned DEFAULT NULL, `startdate` date DEFAULT NULL, `enddate` date DEFAULT NULL, `rounds` tinyint(4) DEFAULT NULL, `td` varchar(99) DEF...
true
16c5e395aa520834b3846b389db9864c1505b786
SQL
radtek/abs3
/sql/mmfo/bars/Table/ebkc_cust_types.sql
WINDOWS-1252
2,900
3.15625
3
[]
no_license
PROMPT ===================================================================================== PROMPT *** Run *** ========== Scripts /Sql/BARS/Table/EBKC_CUST_TYPES.sql =========*** Run * PROMPT ===================================================================================== PROMPT *** ALTER_POLICY_INFO...
true
13c7c7db304aea6784b6e25af194a0d39e5b4c16
SQL
mattted/sql-library-lab-onl01-seng-ft-021020
/lib/insert.sql
UTF-8
1,302
2.90625
3
[ "LicenseRef-scancode-unknown-license-reference", "LicenseRef-scancode-public-domain" ]
permissive
INSERT INTO series (title, author_id, subgenre_id) VALUES ("First Law Trilogy", 1, 1), ("Stormlight Archives", 2, 2); INSERT INTO authors (name) VALUES ("Joe Abercrombie"), ("Brandon Sanderson"); INSERT INTO subgenres (name) VALUES ("Grim"), ("Cosmere"); INSERT INTO books (title, year, series_id) VALUES ...
true
6bc39765a99c9d7f6013fed835182abf4af99663
SQL
srdczk/online_judge
/sql/A0608.sql
UTF-8
186
3.09375
3
[]
no_license
# Write your MySQL query statement below select a.id, if (a.p_id is null, 'Root', if ((select count(id) from tree where p_id = a.id) = 0, 'Leaf', 'Inner')) as type from tree as a;
true
be62ec71122e8dea41f4c05c0c1972ff3ae4eeaa
SQL
cggs/llkbeta
/database/llk_schema.sql
UTF-8
23,359
3.421875
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Sat Jul 4 12:14:48 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_M...
true
26261437155c7b7aa120d35772ecce59aa6542ab
SQL
SherryJ-SK/Employee-Tracker
/develop/db/seeds.sql
UTF-8
1,876
3.15625
3
[]
no_license
SELECT * FROM employeeTracker_db.employee; INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ("John", "Doe", "1", "2"); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES ("Mike", "Chan", "2", null); INSERT INTO employee (first_name, last_name, role_id, manager_id) VALUES (...
true
03898a75fa6b827865c0a181c1f328f47325a086
SQL
BogdanDenis/JavaOracleCourse
/java/src/main/resources/workload/create-table.sql
UTF-8
335
3.125
3
[]
no_license
CREATE TABLE Workload( id INTEGER PRIMARY KEY, developerId INTEGER NOT NULL, projectKey VARCHAR2(100) NOT NULL, isActive NUMBER(1, 0) NOT NULL, CONSTRAINT fk_workload_developer FOREIGN KEY (developerId) REFERENCES Developer(id), CONSTRAINT fk_workload_project FOREIGN KEY (projectKey) REFERENCES ...
true
727337f7d6ea7b6282d920d2f818862939e47164
SQL
yositune/MBA-Fixed-Speed-Data-Import-Tools
/mba_schema.sql
UTF-8
18,107
2.609375
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 9.5.4 -- Dumped by pg_dump version 9.5.4 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; SET row_security = off; ...
true
9cad14083a4951f37def6c202cae7526fa794cdc
SQL
josepitteloud/VESPA
/ad_hoc/BB Churn process/Original code/Proc_FORECAST_Create_Fcast_Loop2_Table.sql
UTF-8
7,822
3.171875
3
[]
no_license
----------------------------------------------------------------------------------------------- ----PART I: CUSCAN RATES ------------------------------------------------------------------- ----------------------------------------------------------------------------------------------- CREATE variable Y2W01 INT; CREA...
true
7f5a16c63cdbd3336f950ed88c1905fa29d0e2ac
SQL
mlars84/ultimate-mysql
/logical_operators.sql
UTF-8
3,167
4.5
4
[]
no_license
-- != SELECT title, released_year as 'All years except 2003' FROM books WHERE released_year != 2003 ORDER BY released_year; SELECT title, author_lname as 'Last Name' FROM books WHERE author_lname != 'Carver'; -- NOT LIKE SELECT title FROM books WHERE title NOT LIKE 'W%'; -- GREATER THAN / ...
true
9c296f4dffb794ba9b683ac0a5f1a9ae38eead01
SQL
Shreya151999/FreelanceJobWebsite
/fmarket.sql
UTF-8
11,352
3
3
[]
no_license
-- -- Database: `fmarket` -- -- -------------------------------------------------------- -- -- Table structure for table `apply` -- CREATE TABLE `apply` ( `f_username` varchar(200) NOT NULL, `job_id` varchar(30) NOT NULL, `bid` int(11) NOT NULL, `cover_letter` varchar(1000) NOT NULL ) ENGINE=InnoDB DEFAULT C...
true
24b435475e595af44f6faf7e9119f57278b82756
SQL
sandragv/COLIVING-API
/database/script.sql
UTF-8
1,731
3.796875
4
[]
no_license
create table if not exists colivers ( id serial primary key, name text, surname text, email text unique, password text, country text, profession text ); create table if not exists colivings ( id serial primary key, name text, street text, zip_code text, city text, country text, apartments_count int, room...
true
0458b81b01999a8b81d355a9f5f90771188a46e1
SQL
shenjunjiekoda/booking-platform
/sql/db.sql
UTF-8
3,986
3.625
4
[]
no_license
CREATE TABLE `book` ( `id` bigint(20) unsigned NOT NULL AUTO_INCREMENT COMMENT '自增主键id', `name` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '书名', `isbn` varchar(64) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '书的ISBN号', `author` varchar(64) CHARACTER SET utf8 COLLATE ...
true
a02187d440cb3605ef67d507e89617e1bc1b1570
SQL
soyoungkim9/cyberProject
/fileUpload/src/main/java/setup/ddl.sql
UTF-8
545
2.671875
3
[]
no_license
------------------------------------------------------------- -- CREATE TABLE ------------------------------------------------------------- CREATE TABLE fileList ( fno number(5) primary key, name varchar2(100) not null, sdt date default sysdate, fpath varchar2(300) not null ); CREATE sequence filelist_seq ...
true
dc09f01f036e711ffa1f7492d88c3bb668e88843
SQL
Mercerice/students
/Practic Alex/AlexDB.sql
WINDOWS-1251
9,987
3.171875
3
[]
no_license
-- -- SQLiteStudio v3.1.1 18 07:08:06 2017 -- -- : System -- PRAGMA foreign_keys = off; BEGIN TRANSACTION; -- : Bookkeeping CREATE TABLE " Bookkeeping" (ID INTEGER PRIMARY KEY AUTOINCREMENT UNIQUE, TEXT NOT NULL, TEXT NOT NULL, TEXT NOT NULL, " " DATE NOT NULL, INTEGER NOT NULL); INSERT INTO " Bookkeepi...
true
91b6c326f690430075ae1a8b5fb0cf19cfc7e73c
SQL
Boomatang/ProjectF
/fayino/db/db redesign V2/Company_Schema/company_schema-create.sql
UTF-8
6,281
3.96875
4
[]
no_license
DROP SCHEMA `company_schema_example`; CREATE SCHEMA IF NOT EXISTS `company_schema_example`; USE `company_schema_example`; -- At top of script 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='TRADITIO...
true
bdcc9c1e43272107fa608d076c6e31350e7add9c
SQL
vautheman/Book-2019
/assets/include/portfolio_base.sql
UTF-8
1,625
3.671875
4
[]
no_license
-- Base de donées portfolio crée le 22 septembre 2019 -- Par AUTHEMAN Victor -- sqlite -- Suppression des tables existantes DROP TABLE if exists articles; DROP TABLE if exists card; DROP TABLE if exists membres; DROP TABLE if exists commentaires; DROP TABLE if exists portfolio; DROP TABLE if exists projets; CREATE ...
true
ad08917c50ab8cb4c8fd367f73260ad435f43371
SQL
lakhdarhaminad2NIH/ERNIE
/Pubs/Automation/Updates_Processing/de_duplicate_new_wos_tables.sql
UTF-8
2,780
3.28125
3
[ "MIT" ]
permissive
-- Author: Samet Keserci, revised from DK's De-Duplication.sql -- Create Date: 12/26/2017 \set ECHO all \set ON_ERROR_STOP on -- region new_wos_abstracts DELETE FROM new_wos_abstracts wa1 WHERE EXISTS(SELECT 1 FROM new_wos_abstracts wa2 WHERE wa2.source_id = wa1.source_id AND ...
true
b86f6c0c1a5bef79ebd749fa227cd1639b30ed35
SQL
Marley-C-Robinson-99/database-exercises
/temp_table_exercises.sql
UTF-8
1,872
4.25
4
[]
no_license
-- Number one CREATE TEMPORARY TABLE employees_with_departments as SELECT e.first_name, e.last_name, d.dept_name FROM employees.employees as e JOIN employees.departments as d JOIN employees.dept_emp as de ON de.dept_no = d.dept_no AND de.emp_no = e.emp_no; -- 1a ALTER TABLE employees_with_departments ADD full_nam...
true
54cb99ad557c202f415da9e1d5a9ee2aec5d0641
SQL
TerakomariGandesblood/programming-learning
/sql/ex_04_01.sql
UTF-8
553
3.859375
4
[ "MIT" ]
permissive
# a select ID, name, count(course_id) from instructor natural left outer join teaches group by ID, name; # b select ID, name, ( select count(course_id) from teaches where teaches.ID = instructor.ID ) from instructor; # c select course_id, name from instructor ...
true
4f986f0715ee9ffa1c6592ff63b9ac31fbf50c50
SQL
AoifeNicAntSaoir/PostITTDB
/Phase 2/Script/Triggers/FirstNameTrigger.sql
UTF-8
308
2.625
3
[]
no_license
CREATE OR REPLACE TRIGGER userIttNameCheck BEFORE INSERT OR UPDATE ON IttUser FOR EACH ROW DECLARE firstName VARCHAR(20); BEGIN firstName := :NEW.firstname; IF (NOT(regexp_like(firstname, '[a-zA-Z '']+$'))) THEN RAISE_APPLICATION_ERROR(-3000,('First name can only contain letters')); END IF; END;
true
2fcdc97f285ef058b418ccc6c9d0e966f34819a1
SQL
saaket-fluidbn/fluidbn
/genres.sql
UTF-8
2,059
3.109375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Feb 01, 2019 at 06:00 PM -- Server version: 5.7.25 -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
ca68b2a65ddfaed56a0c6efc649ef9dca11ad70a
SQL
challenge-yo/challenge_react
/db/get_validate_list.sql
UTF-8
305
3.421875
3
[]
no_license
-- select * -- from userchallenges uc -- join challenges c on c.id = uc.challenge_id -- where uc.validator_id = $1 and uc.is_validated = 0; select * from userchallenges uc join challenges c on c.id = uc.challenge_id join users u on u.id = uc.user_id where uc.validator_id = $1 and uc.is_validated = 0;
true
51fddbd680667ee27f1cbb97bfa415456c009cdf
SQL
debanjan89/SQLProblems
/HackerRank_ContentLeaderboard.sql
UTF-8
584
4.59375
5
[]
no_license
/* Write a query to print the hacker_id, name, and total score of the hackers ordered by the descending score. If more than one hacker achieved the same total score, then sort the result by ascending hacker_id. Exclude all hackers with a total score of from your result. */ WITH CTE AS ( SELECT hacker_id,challenge_id...
true