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
eb893b0b07b838ec760207ae8c23ad84210a7894
SQL
PranilDahal/AttendanceApp
/src/main/resources/sql/mySQL.sql
UTF-8
3,311
3.359375
3
[]
no_license
drop table if exists Students; drop table if exists Courses; drop table if exists Attendances; drop table if exists student_course; create table Students( id integer auto_increment, student_name varchar(255), CIN integer(10), primary key (id) ); insert into Students(student_name,CIN) value('Olin',558...
true
9a9937033483fc1249bbc7ecba242dd5c601cc53
SQL
rhuidean/python_april_2017
/Jason/mySQL_Countries.sql
UTF-8
1,293
4.125
4
[]
no_license
/*What countries speek Sloven? */ select countries.name, languages.language, languages.percentage from countries join languages on countries.id=languages.country_id where (select languages.id from languages where languages.language='Slovene' limit 1) order by languages.percentage; /*Total number cities for each coun...
true
26531cb4f9b5ecc3d8ba3ca196974c5844b292de
SQL
kangajos/web-peramalan-harga-beras-gabah-dengan-metode-regresi-trend-parabola
/dump_database/app_regresi_linier.sql
UTF-8
313,918
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 25, 2019 at 09:29 AM -- Server version: 10.1.39-MariaDB -- PHP Version: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
9fc2285bc2a8a058c89c6b7b19609a876245bd43
SQL
clairehu9/SQL_Leetcode_database
/184_Department_Highest_Salary.sql
UTF-8
622
4.375
4
[]
no_license
#184_Department_Highest_Salary # find employees who have the highest salary in each of the departments SELECT d.name as Department ,e.name as Employee ,e.salary as Salary FROM Employee e JOIN Department d ON e.DepartmentId = d.id WHERE (e.DepartmentId, e.salary) IN ( SELECT DepartmentId, MAX(Salar...
true
ac09ef0c3e597e1dee042cde893f5e67ce641f4f
SQL
Justin8452/Portfolio
/SQL cleaning computer jobs.sql
UTF-8
3,764
3.640625
4
[]
no_license
-- cleaning cleaned_jobs (renamed uncleaned_jobs) -- -- making dupicate table Select * Into PortfolioProject..cleaned_jobs From PortfolioProject..uncleaned_jobs; -- updaing salary_estimate_USD column with the following code Update PortfolioProject..cleaned_jobs SET salary_estimate_USD = REPLACE('$137K-$171...
true
e1910e2ad49d0ded2bd7b4e6bbf69e997779e156
SQL
bluedragon1120/Import-data-from-csv-to-mysql-with-PHP
/csv_db.sql
UTF-8
8,452
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 16, 2020 at 11:04 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
6df325b5337ff15e24e1efed9dd1d33c3b412885
SQL
meerapatelmd/OncoRegimenFinder
/inst/sql/processRegimens.sql
UTF-8
2,921
3.59375
4
[]
no_license
--2: After @writeDatabaseSchema.@regimenTable is written in CohortBuild.sql, it is: ----a) modified based on ingredient_start_date overlaps ----b) iterated by number of regimen_repeats parameter ---Grouping by person_id, drug_exposure_id, ingredient_name, and ingredient_start_date, and joining back to the same table to...
true
c9aa095963474084af393d96c8bb6cbe4710cc43
SQL
fnurishi/twitterapp
/query/twiterapp-db.sql
UTF-8
1,375
3.53125
4
[]
no_license
CREATE DATABASE twiterdb; USE twiterdb; CREATE TABLE tbl_user ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, name VARCHAR(255), gender VARCHAR(255), department VARCHAR(255), dob DATE ); CREATE TABLE tbl_tweet ( id INT NOT NULL PRIMARY KEY AUTO_INCREMENT, user_id INT NOT NULL, message VARCHAR...
true
c0af055d52340ccce67336b102b016461d8f3664
SQL
shu000/too-simple-twitter
/initdb/init.sql
UTF-8
3,388
3.28125
3
[]
no_license
-- Adminer 4.8.0 PostgreSQL 11.5 (Debian 11.5-3.pgdg90+1) dump DROP TABLE IF EXISTS "followers"; CREATE TABLE "public"."followers" ( "following_user_id" character varying(80) NOT NULL, "followed_user_id" character varying(80) NOT NULL, CONSTRAINT "follower_following_user_id_followed_user_id" PRIMARY KEY ("...
true
31110d57eb0cec8eb806daee0321bbdbc8a15482
SQL
Memleakz/class_schedule
/classShedule/db_dump_01-06-2019.sql
UTF-8
88,840
2.890625
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 11.3 -- Dumped by pg_dump version 11.3 -- Started on 2019-06-01 22:02:27 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_catalo...
true
9391799103b378d92319999bce97edbd897d0aba
SQL
AbubakarSaad/learning-PHP
/queries.sql
UTF-8
6,431
3.515625
4
[]
no_license
-- * overlap constriants -- person could be both --PHEs should be able to: --Select a region and by that region, --Find the health numbers, names and addresses of all patients who have received a vaccine against ETCC. SELECT P.Healthnum, P.pName,P.Housenum, A.Street, A.Pcode FROM Region R NATURAL JOIN ...
true
0743c94afabfe1399edd41378f87988b76cd4221
SQL
MertYumer/CSharp-DB-Exams
/MS SQL Exams/Exam - 20.10.2019/11.HoursToCompete.sql
UTF-8
234
2.515625
3
[ "MIT" ]
permissive
CREATE FUNCTION udf_HoursToComplete(@StartDate DATETIME, @EndDate DATETIME) RETURNS INT BEGIN IF(@StartDate IS NULL OR @EndDate IS NULL) BEGIN RETURN 0; END RETURN DATEDIFF(HOUR, @StartDate, @EndDate) END
true
835f0034657561da55f772f9eed38255cabdd926
SQL
zhaeng/monitor
/console/migrations/monitor.sql
UTF-8
8,283
3.203125
3
[ "BSD-3-Clause" ]
permissive
DROP TABLE IF EXISTS `monitor_app`; CREATE TABLE `monitor_app` ( `id` int(11) NOT NULL AUTO_INCREMENT, `uid` int(11) NOT NULL DEFAULT '0', `app_key` varchar(32) NOT NULL, `app_secret` varchar(32) NOT NULL, `name` varchar(255) NOT NULL COMMENT '名字', `en_name` varchar(255) NOT NULL COMMENT '英文名字', `version...
true
a16734fe1fc63c998d071dc43dd2a9259551f7c3
SQL
leopoldoag/dba-tools
/CHISMOSOIP.sql
UTF-8
1,968
3.625
4
[]
no_license
select distinct CLIENT_INFO from v$session select nvl(CLIENT_INFO,'bgprocessess:LOCAL:ORCL' ), count(*) from v$session group by CLIENT_INFO; ------------------------------------------------------------------------------------------------------------------------------------------------ create table sesiones (fecha da...
true
6ba1755c14797e4e7f89b2e27050770cac1332e2
SQL
s20154/RBD_baza
/s20154.sql
UTF-8
6,231
3.28125
3
[]
no_license
use s20154; set foreign_key_checks=0; drop table if exists aukcje, oferty, uzytkownicy, adres, statusy, kategorie_statusow, przedmiot, kategorie_przedmiotow; set foreign_key_checks=1; create table aukcje ( id int not null auto_increment, data_stworzenia datetime not null, data_koncowa datetime not null, ...
true
206d6fff56e636ec85a94cd34b335cb7b2c420df
SQL
MarianaS8a/A01702593_tc2005b_labs
/Lab 15 - Conociendo el ambiente de SQL Server/crear.sql
WINDOWS-1250
465
2.75
3
[]
no_license
CREATE TABLE Materiales ( Clave numeric(5), Descripcion varchar(50), Costo numeric(8,2) ) CREATE TABLE Proveedores ( RFC CHAR(13), RazonSocial VARCHAR(50) ) CREATE TABLE Proyectos ( Numero NUMERIC (5), Denominacin VARCHAR(50) ) CREATE TABLE Entregan ( Clave numeric(5), RFC CHAR(13), Numero NUMERIC (5), ...
true
1ee12bea69e06bdf8989d9a93af3d90c7347d637
SQL
VinzZ00/Gamestore-with-java-SwingxAWT
/gamestore.sql
UTF-8
2,638
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 05, 2021 at 08:40 AM -- Server version: 10.4.20-MariaDB -- PHP Version: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
b3a77c16cff918dcb102dd8a38002d81c5c1adff
SQL
alexy/life-language
/cells.sql
UTF-8
385
3.625
4
[]
no_license
create table cellspan_periods as select person_oid,count(*) as "total" from cellspan group by person_oid; -- repeat this for all month ranges, now 2004-07-01..2005-05-01 update cellspan_periods as t set "2004-11-01" = c from (select person_oid,count(*) as c from cellspan where starttime < '2004-11-01' gr...
true
ce4c8ef3b94a20656dfcac432b34534b2e260a58
SQL
Metronomed/Software-Engineering-Project
/shopping_cart.sql
UTF-8
12,095
2.515625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 15, 2014 at 11:26 PM -- Server version: 5.1.44 -- 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
c62e85afe61d167e13de3c9890ae9e0e4eae1051
SQL
cslisenka/distributed-transactions
/travel-backend/sql/travel-agency.sql
UTF-8
3,447
3.25
3
[ "LicenseRef-scancode-unknown-license-reference", "Apache-2.0" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: travel_agency -- ------------------------------------------------------ -- Server version 5.7.12-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
341f05e3c6dad35cf248d4bfa70a8280eb882ba7
SQL
mkotte/Employee-Tracker
/db/seed.sql
UTF-8
1,362
3.25
3
[ "MIT" ]
permissive
-- seed file used to fill out tables prior to queries USE employee_db; ​ INSERT INTO department_table(id, department_name) VALUES (001, "Sales"), (002, "Marketing"), (003, "Engineering"), (004, "Finance"), (005, "Legal"); INSERT INTO role_table(id, title, salary, department_id) VALUES (41, "Salesperson", 40000, 001), ...
true
f2a1019b6a15d1391457e78de01b17da267e5cf1
SQL
ThomasItMe/CUBA_virus
/modules/core/db/init/mysql/20.create-db.sql
UTF-8
805
2.90625
3
[]
no_license
-- begin CMS_EXT_COMPANY alter table CMS_EXT_COMPANY add constraint FK_CMS_EXT_COMPANY_ON_COMPANY_LICENSE_PHOTO foreign key (COMPANY_LICENSE_PHOTO_ID) references SYS_FILE(ID)^ alter table CMS_EXT_COMPANY add constraint FK_CMS_EXT_COMPANY_ON_AUTHORIZATION_LETTER_PHOTO foreign key (AUTHORIZATION_LETTER_PHOTO_ID) referenc...
true
6f186b07d39c69633880a5d7d4732476dac5828c
SQL
hemio-ev/carnivora
/schemas/user/functions.d/del_login.sql
UTF-8
332
2.546875
3
[ "MIT" ]
permissive
--- name: del_login description: | Try to logout returns: void priv_execute: [userlogin] security_definer: true owner: system --- DELETE FROM "user".session WHERE id = "user"._session_id(); IF NOT FOUND THEN RAISE 'Carnivora: user logout failed, not logged in' USING DETAIL = '$carnivora:user:logout_failed$...
true
93bd545236aca751d274b719c0e31afde0e47fbb
SQL
taezatria/eazybanking
/eazybanking.sql
UTF-8
7,751
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 01, 2017 at 10:17 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
34603984c58e26ee6ee670de5f31c915c2ba6beb
SQL
soverc/writehive_server
/sql/schema/user.sql
UTF-8
1,638
3.46875
3
[]
no_license
-- -- Table structure for table `users` -- SET @saved_cs_client = @@character_set_client; SET character_set_client = utf8; CREATE TABLE IF NOT EXISTS `user` ( -- `id` int(255) unsigned NOT NULL auto_increment, `user_id` CHAR(37) NOT NULL default '', `display_name` varchar(50) default NULL, `passwd` varchar(...
true
afe536421c7ef30ae249e88dccb3f1ff87d99442
SQL
yanru-jasmine/LeetCode-SQL-Summary
/Window-Function/1077_Project_Employees_III.sql
UTF-8
255
4
4
[]
no_license
SELECT project_id, employee_id FROM ( SELECT p.project_id, p.employee_id, RANK() OVER (PARTITION BY project_id ORDER BY experience_years DESC) AS r FROM Project p JOIN Employee e ON p.employee_id = e.employee_id ) tb1 WHERE r = 1;
true
2e878bddf736386f78885eabbef58c00cf3538a5
SQL
Clover-Z/gc-platform
/gc-server/sql/table.sql
UTF-8
10,040
3.6875
4
[ "Apache-2.0" ]
permissive
SET NAMES utf8mb4; SET FOREIGN_KEY_CHECKS = 0; -- ---------------------------- -- Table structure for sys_dept -- ---------------------------- DROP TABLE IF EXISTS `sys_dept`; CREATE TABLE `sys_dept` ( `dept_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID', `pid` bigint(20) DEFAULT NULL COMMENT '上级部门', `sub_co...
true
7313caeb0e3aace424f8c0a19a482f99e40ba8fe
SQL
jprieto96/UCM_Componentes
/UCMComponentes-codigo/bbdd/ucmcomponentes.sql
UTF-8
7,516
3.140625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: ucmcomponentes -- ------------------------------------------------------ -- Server version 5.7.19-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESU...
true
84e2df3e3b2a5f7504fbdaef0d666d69d3412ee4
SQL
jblang94/bookstore-sql
/exercises/ex11.sql
UTF-8
251
3.8125
4
[]
no_license
SELECT authors.id AS "ID", authors.first_name || ' ' || authors.last_name AS "Full Name", COUNT(books.author_id) FROM authors JOIN books ON authors.id = books.author_id GROUP BY authors.id, books.author_id ORDER BY COUNT(books.author_id) DESC;
true
bb984810bb84ab47603e10bae8073f855ce6e4be
SQL
ZeusPhucNguyen/Database
/SQL/vd1.sql
UTF-8
65
2.546875
3
[]
no_license
SELECT LoginID FROM Employee WHERE JobTitle = 'Design Engineer'
true
d30b077621e64bfaa4c70968632acd5e7512430f
SQL
cross-team/clublink
/backend/app/adapter/sqldb/migration/28_add_api_key_table.sql
UTF-8
313
3.046875
3
[ "MIT" ]
permissive
-- +migrate Up CREATE TABLE "api_key" ( "app_id" VARCHAR(10) NOT NULL REFERENCES "app"("id"), "key" VARCHAR(10) NOT NULL, "disabled" BIT(1) NOT NULL, "created_at" TIMESTAMP WITH TIME ZONE NOT NULL, CONSTRAINT pk_api_key PRIMARY KEY ("app_id", "key") ); -- +migrate Down DROP TABLE "api_key";
true
a4bdcddf47323e195b8ebdf8164ae0c5b4bbe440
SQL
DEANMICK/neobis_1st_week
/Week3/URI_JUDGE/2613.sql
UTF-8
114
3.125
3
[]
no_license
SELECT movies.id, movies.name FROM movies JOIN prices ON movies.id_prices = prices.id WHERE prices.value > 2.00;
true
8d23f24a05973e2b22efa26c5bd9d4b23d6ef564
SQL
gpuli/Database-Management-Systems
/Views.sql
UTF-8
3,617
4.4375
4
[]
no_license
/* View to show the list of scheduled flights with following details: FlightNumber FlightStatus ScheduledTime ActualTime AirplaneModelNo DepartingAirport ArrivalAirport */ CREATE VIEW ListOfScheduledFlights (FlightNumber, Status, ScheduledTime, ActualTime, AirplaneModelNo, DepartingAirport, A...
true
fd94c7edb398ff96dc69c68f75ab6a65ab123793
SQL
ricdezen/dezen-varotto-db
/query/generi_collana.sql
UTF-8
122
2.796875
3
[]
no_license
SELECT DISTINCT genere AS "Genere" FROM libro JOIN appartiene ON libro.isbn = appartiene.libro WHERE nome_collana = XXXX;
true
4cf6fa7dd63c9ba5611747a79bb9b28a17e91599
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day13/select0954.sql
UTF-8
262
2.984375
3
[]
no_license
SELECT sen.name FROM SENSOR sen, SENSOR_TYPE st, COVERAGE_INFRASTRUCTURE ci WHERE sen.SENSOR_TYPE_ID=st.id AND st.name='WiFiAP' AND sen.id=ci.SENSOR_ID AND ci.INFRASTRUCTURE_ID=ANY(array['4089','6082','4099','4084','6086','2062','5026','2013','5099','4226'])
true
f4f2310442c3fdadf2ab7c08fcfa95faafc6fcd4
SQL
MurielPinho/FEUP-BDAD-Project
/3rd Delivery/Gatilhos/gatilho2_adiciona.sql
UTF-8
528
3.640625
4
[]
no_license
.mode columns .header on .nullvalue NULL PRAGMA foreign_keys = ON; /* Add a follower to a channel */ CREATE TRIGGER IF NOT EXISTS AddFollower AFTER INSERT ON follows FOR EACH ROW BEGIN UPDATE channel SET followerCount = followerCount + 1 WHERE channelID = New.channelID; END; /* Removes a follower fro...
true
9879c8d9e47206c19d247043eef7e9e6bcce786f
SQL
gcoronelc/ISIL-EMP-SQL-SERVER-01
/Clase02/PREGUNTA 9 - VICTORIANO RAMOS.SQL
UTF-8
348
3.203125
3
[]
no_license
SELECT al.alu_nombre , cu.cur_nombre, CASE WHEN ma.mat_nota <10 THEN 'Malo' WHEN ma.mat_nota <14 THEN 'Regular' WHEN ma.mat_nota <18 THEN 'Bueno' WHEN ma.mat_nota <=20 THEN 'Excelente' END CALIFICACION FROM dbo.MATRICULA ma INNER JOIN dbo.CURSO cu ON ma.cur_id = cu.cur_id INNER JOIN dbo.ALUMNO al ON ma.a...
true
f6554188581dd02132f43b965ff3f90511d0baba
SQL
kangyonggan/cms-server
/cs-dao/src/main/resources/schema.sql
UTF-8
6,091
3.5625
4
[]
no_license
DROP DATABASE IF EXISTS cs; CREATE DATABASE cs DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; USE cs; -- ---------------------------- -- Table structure for tb_user -- ---------------------------- DROP TABLE IF EXISTS tb_user; CREATE TABLE tb_user ( id BIGINT(20) PRIMARY KEY AUTO_INCREMENT NO...
true
b67ca3d17b3feb560db7627ea1be3186291e050b
SQL
akshayub/ITlabSem5
/dbs_it301/0823lab2_0830lab3.sql
UTF-8
1,670
4.0625
4
[]
no_license
CREATE DATABASE IF NOT EXISTS rand_company; USE rand_company; CREATE TABLE IF NOT EXISTS department( dept_num INT NOT NULL PRIMARY KEY, name VARCHAR(30) NOT NULL UNIQUE, manager_start_date DATE NOT NULL, manager_id CHAR(4) NOT NULL UNIQUE ); CREATE TABLE IF NOT EXISTS locations( id INT NOT NULL AUT...
true
b1af353747af40524d2855a49957227ec05b104c
SQL
Alexhdz131/ejemplo
/data/schema.sql
UTF-8
2,028
3.796875
4
[]
no_license
CREATE DATABASE craftsystem; USE craftsystem; CREATE TABLE users( username varchar(20) NOT NULL PRIMARY KEY, password varchar(32) NOT NULL, privilege integer NOT NULL DEFAULT -1, status integer NOT NULL DEFAULT 1, name varchar(150) NOT NULL, email varchar(100) NOT NULL, other_data varchar(...
true
07575dd640173ebaf41843b17646faaebb6c7303
SQL
MoNorth/forumapi
/store/sql.sql
UTF-8
1,704
3.75
4
[]
no_license
select comment.comment_id,comment.comment_context,comment.comment_comment,comment.comment_date,comment.project_id,comment.login_id,login.login_name from comment left join login on (comment.login_id=login.login_id) where comment.project_id = 9 order by comment.comment_id desc; select project.project_id,project.project...
true
7fa8753893c7e7100cbe95464bdf36e665bfc75d
SQL
bulentgucuk/DBA-Scripts
/Grant Permissions For User Defined Functions.sql
UTF-8
480
3.453125
3
[]
no_license
-- Grant permissions on functions SELECT CASE WHEN type in ('tf','if') then 'GRANT SELECT ON ' + QUOTENAME(SCHEMA_NAME(schema_id)) + '.' + QUOTENAME (name) + ' TO [PUBLIC];' WHEN type in ('fn') then 'GRANT EXECUTE ON ' + QUOTENAME(SCHEMA_NAME(schema_id)) + '.' + QUOTENAME (name) + ' TO [PUBLIC];' END AS GrantSt...
true
5110af6fef9be747325e22a45a325fe7c1a068ce
SQL
Meena-Chowdary/Test
/Products_Management/data.sql
UTF-8
992
3.359375
3
[]
no_license
CREATE DATABASE productmanagement; USE productmanagement; CREATE TABLE PRODUCTS( ID INT PRIMARY KEY AUTO_INCREMENT, VID INT REFERENCES VENDORS(VID), NAME VARCHAR(200) NOT NULL, PRICE NUMERIC NOT NULL, description VARCHAR(600) NOT NULL ); CREATE TABLE VENDORS( VID INT PRIMARY KEY AUTO_I...
true
f53487f34cfb0f5eaf1f8185f5ef724fc8cd705a
SQL
Kinjalrk2k/Pharmaceutical-Management-System
/pharma.sql
UTF-8
9,999
3.125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 20, 2021 at 04:30 PM -- Server version: 10.4.18-MariaDB -- PHP Version: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
708f40bfaf7822826e6ac60d9536073a351d4231
SQL
OsaAjani/cours-php-b2
/databases/create_test_db.sql
UTF-8
998
3.6875
4
[]
no_license
create database test; use test; create table adress (id int not null auto_increment, city varchar(200) not null, primary key (id)); create table subscription (id int not null auto_increment, price float(6,2) not null, primary key (id)); create table user (id int not null auto_increment, name varchar(200) not null, a...
true
96ac649a8f5cb1c978a98001e0af559976ecf39f
SQL
lyudmila-petrova/usml_python_backend_homework
/Lesson 06. Web Scraping/schema.sql
UTF-8
1,446
3.734375
4
[]
no_license
drop table if exists specializations; create table specializations ( id integer PRIMARY KEY, code text, title text ); drop table if exists statuses; create table statuses ( slug text PRIMARY KEY, title text ); drop table if exists schools; create table schools ( id integer PRIMARY KEY, slu...
true
ddb15402b19b34d76a7e787caf5f59e7ea964fd1
SQL
dbuskariol-org/chromium
/tools/perf/core/tbmv3/metrics/janky_time_per_scroll_processing_time.sql
UTF-8
21,615
4.28125
4
[ "BSD-3-Clause", "Zlib", "LicenseRef-scancode-unknown-license-reference", "Apache-2.0", "LGPL-2.0-only", "LicenseRef-scancode-unknown", "APSL-2.0", "LGPL-2.1-only", "MIT", "LGPL-2.0-or-later" ]
permissive
-- -- A collection of metrics related to GestureScroll events. -- -- We compute a couple different metrics. -- -- 1) GestureScrollMilliseconds -- The time spent scrolling during the trace. Measured as the timestamp of -- the GestureScrollBegin to the end timestamp of the last event (either -- GestureScro...
true
31120a2762285e41aa087b06fa71c82bd67f93ee
SQL
Myran1972/ProjectX
/StaffSchedule.sql
UTF-8
236
2.640625
3
[]
no_license
PRAGMA foreign_keys=ON; BEGIN TRANSACTION; CREATE TABLE IF NOT EXISTS StaffSchedule(Schedule TEXT UNIQUE); INSERT INTO StaffSchedule VALUES ('MF'); INSERT INTO StaffSchedule VALUES ('LS'); INSERT INTO StaffSchedule VALUES ('S'); COMMIT;
true
eb426e6227a4cabc2613e4aad431edc6aa321e77
SQL
Kajta01/RPi_kontrolniStanice
/sql/1_hlavni.sql
UTF-8
2,210
3.125
3
[]
no_license
CREATE VIEW V_000_Vysledky AS SELECT Ucastnik.ID as ID_Ucastnik, Ucastnik.Prezdivka, Ucastnik.Vyloucen, IfNull(ZtraceneZivoty.Pocet,0) as Zivoty, IfNull(ZtraceneZivoty.Pocet * 0_Pravidla.Zivoty,0) as ZivotyBody, Time(V_001_Start.Cas) as Start, Time(V_002_Cil.Cas) AS Cil, IfNull(V_RUN_01.Body, 0) as RUN_01, IfNull(V...
true
af494a9320aeb18aff9b2ea5fdc6000554386566
SQL
lijingzhuang/Mysql_Use
/stage2_model1_1/lianxi01/SQL1.sql
UTF-8
4,168
4.375
4
[]
no_license
#创建数据库 CREATE DATABASE lianxi01 CHARACTER SET utf8; #使用数据库lianxi01 USE lianxi01; #创建表 CREATE TABLE product( pid INT PRIMARY KEY, pname VARCHAR(20), price DOUBLE , category_name VARCHAR(32) ); #导入数据 INSERT INTO product(pid,pname,price,category_name) VALUES(1,'联想电脑',5000,'电脑办公'); INSERT INTO product(pid,pname,price,...
true
1a109a13e42ff57e88f5477d91f9d7d781034ec6
SQL
mahachaouch/maha
/_maha.sql
UTF-8
25,167
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Client : 127.0.0.1 -- Généré le : Lun 01 Juin 2015 à 18:08 -- Version du serveur : 5.6.17 -- Version de PHP : 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
true
0eaadcefa8b528b4c1e8c13b4df59c01b632536d
SQL
rushingbrendan/Relational-Databases
/a3-MySQL-queries-using-Northwind-db/rd-a3-BR.sql
UTF-8
5,450
4.40625
4
[]
no_license
/* Student Name: Brendan Rushing Student Number: 6020895 Course: Relational Databases - Assignment #3 Description: SQL QUERY script using the premade northwind database. Answers to each question are written below. Tested in MySQL. */ -- QUERY SCRIPT is using no...
true
a5b39ec55f346b74597b5de1d3a705bf2e50e209
SQL
abeverley/Crash
/share/migrations/PostgreSQL/deploy/1/001-auto.sql
UTF-8
1,267
3.328125
3
[]
no_license
-- -- Created by SQL::Translator::Producer::PostgreSQL -- Created on Sat Sep 28 18:53:11 2019 -- ; -- -- Table: casualty -- CREATE TABLE "casualty" ( "id" serial NOT NULL, "crash_id" integer, "casualty_class" integer, "casualty_mode" integer, "severity" integer, PRIMARY KEY ("id") ); CREATE INDEX "casualt...
true
8d66e8949bca78f4a86e51afe1079e0822b4c60d
SQL
tdm1223/Algorithm
/programmers/source/sql-8.sql
UTF-8
118
2.5625
3
[ "MIT" ]
permissive
# 여러 기준으로 정렬하기 SELECT ANIMAL_ID, NAME, DATETIME FROM ANIMAL_INS ORDER BY NAME ASC, DATETIME DESC;
true
432f0dfbd3d743272fed055412763939697bff89
SQL
indus3a/DB_work
/02_SQL_Tables/02b_db_table_SQL.sql
UTF-8
1,149
3.46875
3
[]
no_license
/* -------- Strukturen ------------ */ /* Anlegen DB */ CREATE DATABASE IF NOT EXISTS work; /* DB auswählen */ USE work; /* Tabelle anlegen, falls neu */ DROP TABLE IF EXISTS cats; /* Tabelle mit id als PRIMARY KEY --> KEINE Duplikate mรถglich DEFAULT-Werte eintragen */ /* CREATE TABLE IF NOT EXISTS cats ...
true
ef9dbdb4f99848b7ef5175da3fcf2e0305b70c6a
SQL
MarioCastro14/BaseDeDatos
/Datos PIA.sql
UTF-8
3,203
2.671875
3
[]
no_license
insert into proveedor values(100, 'ABC del Norte', 'Río Pilon'); insert into proveedor values(200, 'Bio-Mac Group', 'Carretera Lago de Guadalupe'); insert into proveedor values(300, 'CPI', 'Avenida Santa Fé'); insert into proveedor values(400, 'Lini', 'Av. Centenario de la Educación'); insert into medicamento values...
true
311199e5764956edec410f59d3217ea317bcfbe9
SQL
bulayevmoscow/Camagru
/database_backup/postgres_public_posts.sql
UTF-8
5,110
2.71875
3
[]
no_license
create table posts ( id serial not null, creator varchar(100) not null, path varchar(200) not null, times timestamp default CURRENT_TIMESTAMP not null ); alter table posts owner to php_test; INSERT INTO public.pos...
true
978cf8c62e9660526487d18ca1b8b24beb60fe0f
SQL
NI54Oficina/fronteras
/protected/config/tbl_provincia.sql
UTF-8
1,830
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 03-06-2016 a las 16:59:19 -- Versión del servidor: 5.5.24 -- Versión de PHP: 5.4.45 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
true
b973a3987e60dd55366a1da894991e20a3db5339
SQL
marcoaduartegomes/TienInterface
/BD/tien.sql
UTF-8
2,329
3.3125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 28-Maio-2019 às 00:50 -- Versão do servidor: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
6d8053b7fe00c5a4957f463c83f1da92b4eb14a4
SQL
herlyn25/Sprint4
/scriptSprint4.sql
UTF-8
8,637
2.96875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `proyectospring` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_0900_ai_ci */ /*!80016 DEFAULT ENCRYPTION='N' */; USE `proyectospring`; -- MySQL dump 10.13 Distrib 8.0.26, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: proyectospring -- ------------------------------------...
true
c65e44acd0722a405f8fe2ab1dffcf6a5f0f0b1b
SQL
jhderojasUVa/Paperturn
/sql/paperturn.sql
UTF-8
1,259
2.71875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 08-06-2018 a las 20:41:15 -- Versión del servidor: 10.1.26-MariaDB -- Versión de PHP: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
true
751fedeeab0471e8529c7e0548c50226f420c380
SQL
Greg-Turner/Chinook
/sales_agent_total_sales.sql
UTF-8
324
3.765625
4
[]
no_license
-- sales_agent_total_sales.sql: Provide a query that shows total sales made by each sales agent. SELECT e.FirstName || " " || e.LastName AS 'Sales Agent', '$' || ROUND(SUM(i.Total), 2) AS Sales FROM Employee e, Invoice i, Customer c WHERE i.CustomerId == c.CustomerId AND c.SupportRepId = e.EmployeeId GROUP BY e.Employe...
true
83cb176cdfc6edb6396f2069828a7391ad4616bd
SQL
PedroTorreGue/ProyectoFinalAccesoDatos
/trigger_borrado.sql
UTF-8
220
2.71875
3
[]
no_license
use biblioteca; DROP TRIGGER IF EXISTS devolver_libro; DELIMITER // CREATE TRIGGER devolver_libro AFTER DELETE ON Alquiler FOR EACH ROW UPDATE Libros SET prestado = false where isbn=old.isbn_libro // DELIMITER ;
true
0fa647749cf1e869a1e7cf3e2420287fb57a44e6
SQL
s13005/oracle
/141023-4.sql
UTF-8
127
3
3
[]
no_license
SELECT empno, ename,sal, grade FROM employees JOIN salgrades ON employees.sal BETWEEN salgrades.losal AND salgrades.hisal /
true
0b7daa10267c2b29e6b0bed4499d844e1ac21941
SQL
igraemvtanki/dockerized-mariadb-for-dcm4chee
/update-schema/update-5.4-mysql.sql
UTF-8
2,599
3.15625
3
[]
no_license
create table mwl_item (pk bigint not null auto_increment, accession_no varchar(255) not null, created_time datetime not null, modality varchar(255) not null, req_proc_id varchar(255) not null, sps_id varchar(255) not null, sps_start_date varchar(255) not null, sps_start_time varchar(255) not null, sps_status integer no...
true
80a6977e49a84403364e59b329700af9f070bd24
SQL
mattmezza/repominerEvo
/sql/Tests/repominer_modified.sql
UTF-8
10,498
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Giu 04, 2014 alle 16:43 -- Versione del server: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT...
true
cc015796471eeaf78ac28e0dfb97a2a89a25c0ac
SQL
lshlsh1/Oracle
/20190328_01_scott.sql
UHC
42,621
3.53125
4
[]
no_license
SELECT USER FROM DUAL; --==>> SCOTT SELECT * FROM EMP WHERE JOB='salesman'; --==>> ȸ -- UPPER(), LOWER(), INITCAP() SELECT 'oRaCLe' "1", UPPER('oRaCLe') "2", LOWER('oRaCLe') "3", INITCAP('oRaCLe') "4" FROM DUAL; --==>> oRaCLe ORACLE oracle Oracle --> UPPER() 빮ڷ ȯ -- LOWER() ҹڷ ȯ -- INIT...
true
fef8be343d4c1fb3133e6cc642524780537aacff
SQL
axelsheva/experience
/SQL-Tuning/ifi.uzh.ch/vn/ThucHanhCoSoDuLieu/N04_55354/DangVanHoan_20091123_N0355354.sql
UTF-8
1,192
3.78125
4
[]
no_license
use AdventureWorks2008; /*cau 1 phan 1*/ select Production.Product.Name, Production.Product.ProductNumber,Production.Product.ListPrice From Production.Product where Production.Product.ProductID in (Select Sales.SalesOrderDetail.SalesOrderDetailID From Sales.SalesOrderDetail where Sales.SalesOrderDetail.SalesOrde...
true
93eb6c9b3f66bfae12de69c644532a0095a84a75
SQL
ROBERTHUTN/mia2019
/miaEJB/bdd/reporteTest.sql
UTF-8
2,083
2.984375
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 12.2 -- Dumped by pg_dump version 12.2 -- Started on 2020-06-13 10:00:48 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_catalo...
true
c87d2d195a96d1d8c1243043cc9f106696825675
SQL
lakshit1307/member
/src/main/resources/db/liquibase/changesets/baseSchema.sql
UTF-8
343
2.96875
3
[]
no_license
CREATE TABLE M_MEMBER ( MEMBER_ID serial NOT NULL, MEMBER_NAME varchar NOT NULL, MEMBER_EMAIL varchar NOT NULL, MEMBER_PASSWORD varchar NOT NULL, MEMBER_DESCRIPTION varchar NOT NULL, CONSTRAINT M_MEMBER_PK PRIMARY KEY (MEMBER_ID), CONSTRAINT M_MEMBER_UK_NAME UNIQUE (MEMBER_NAME), CONSTRAINT M_MEMBER_UK_EMAIL UN...
true
2f44ecb374888d3ad02048707b9237d18cad12b6
SQL
dscheel42/productor
/airflow/scripts/sql/materialized_views/materialized_views.sql
UTF-8
11,315
3.984375
4
[]
no_license
drop materialized view if exists public.mat_submissions_by_second; -- SPLIT create materialized view public.mat_submissions_by_second as ( select created_utc, count(*) as n_observations from public.stream_submissions_all group by created_utc order by created_utc desc ); -- SPLIT drop materialized view i...
true
8bc63fd6c92547756b4a8c5fcb4a732e76c4317d
SQL
ncoden/42_PHP_pool
/d05/ex17/ex17.sql
UTF-8
128
2.578125
3
[ "Apache-2.0" ]
permissive
SELECT COUNT(*) AS 'nb_abo', FLOOR(AVG(`prix`)) AS 'moy_abo', MOD(SUM(`duree_abo`), 42) AS 'ft' FROM `db_ncoden`.`abonnement`
true
a37f0ab93b34794730b06562917ccedabfe15a6c
SQL
Singularity0909/LeetCode
/Problemset/count-student-number-in-departments/count-student-number-in-departments.sql
UTF-8
383
3.5
4
[ "MIT" ]
permissive
-- @Title: 统计各专业学生人数 (Count Student Number in Departments) -- @Author: Singularity0909 -- @Date: 2020-09-19 12:03:28 -- @Runtime: 585 ms -- @Memory: 0 B select department.dept_name, count(distinct student.student_id) student_number from department left join student on department.dept_id = student.dept_id group by dep...
true
148ed47c3b2d629c435601e9f076ea0d11372875
SQL
podiumdesu/Theme_store
/themelist.sql
UTF-8
2,129
2.984375
3
[]
no_license
USE theme; DROP TABLES ts_list; CREATE TABLE `ts_list` ( `theme_id` int PRIMARY KEY AUTO_INCREMENT, `theme_uid` varchar(36) NOT NULL, `theme_authorname` varchar(255) DEFAULT NULL, `theme_authoruid` varchar(255) NOT NULL, `theme_version` varchar(50) NOT NULL, `theme_filesrc` varchar(255) NOT NULL, `theme_n...
true
123b318e98787e5c677628c08af70b464cc6c88d
SQL
ashutoshjv661/notes-todo-list
/_db/notes-todo.sql
UTF-8
3,456
3.515625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Apr 17, 2020 at 08:35 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
ce25259c1cba643cdc80ee5153573c4faee68ea3
SQL
aidandang/node-db3-project
/queries.sql
UTF-8
1,094
4.40625
4
[]
no_license
-- Multi-Table Query Practice -- Display the ProductName and CategoryName for all products in the database. Shows 77 records. SELECT ProductName, CategoryName FROM Product AS P JOIN Category AS C ON P.CategoryId = C.Id; -- Display the order Id and shipper CompanyName for all orders placed before August 9 2012. Show...
true
1adfefc27538a620d64ea4285dd4e8ba6140a5bd
SQL
matthcol/SpringHibernate20210128
/sql/my_cine_ddl.sql
UTF-8
898
4.0625
4
[]
no_license
DROP TABLE if exists play; DROP TABLE if exists movies; DROP TABLE if exists stars; create table stars ( id integer auto_increment, name varchar(150) not null, birthdate date null, deathdate date null, constraint pk_star primary key(id) ); create table movies ( id integer auto_increment, title varchar(250) not...
true
85dd394c23983af951ed042847f578cfe58d26e8
SQL
aimkiray/simple-manage
/src/main/resources/schema.sql
UTF-8
443
3.234375
3
[]
no_license
CREATE TABLE user ( user_id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, user_name VARCHAR(100), user_password VARCHAR(100), email VARCHAR(100) ); CREATE UNIQUE INDEX user_user_id_uindex ON user (user_id); CREATE TABLE customer ( id INT AUTO_INCREMENT PRIMARY KEY NOT NULL, name VARCHAR(100), email VARCHAR(10...
true
1e1ca2b6bf59b963759852bcdc6c7f053f031edb
SQL
nrgtwithers/burger
/db/schema.sql
UTF-8
353
2.90625
3
[]
no_license
DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id INT AUTO_INCREMENT, burger_name VARCHAR(30) NOT NULL, devoured BOOLEAN DEFAULT true, createdAt TIMESTAMP NOT NULL, PRIMARY KEY(id) ); SELECT * FROM burgers; ALTER USER 'root'@'localhost' IDENTIFIED W...
true
a2a6d8ba96f10c7f9128fb6547a857606b09cab4
SQL
CBreakSoft/ClassSy
/mysqldata/c_table.sql
UTF-8
1,663
3.171875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : SD Source Server Version : 50173 Source Host : localhost:3306 Source Database : dbbjglxt Target Server Type : MYSQL Target Server Version : 50173 File Encoding : 65001 Date: 2017-05-16 16:26:09 */ SET FOREIGN_KEY_CHECKS=0; -- -------...
true
4b6449d407ef1e2411a85a8f231ec3b638a3252a
SQL
jentix/lararatings
/lararating.sql
UTF-8
3,033
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1:3306 -- Время создания: Июл 05 2013 г., 15:53 -- Версия сервера: 5.6.12-log -- Версия PHP: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT ...
true
0dac4be68f33acf76e423f513b4e0af29274be3f
SQL
yir17/prueba3
/8_inter_client4.sql
UTF-8
2,957
2.796875
3
[]
no_license
INSERT INTO bills(clients_id) VALUES (4); INSERT INTO products_list(product_id, bill_id, quantity, total_price) VALUES (5, 7, 3, ((SELECT unit_value FROM products WHERE id=5) * 3)); INSERT INTO products_list(product_id, bill_id, quantity, total_price) VALUES (8, 7, 25, ((SELECT unit_value FROM products WHERE id=8) * ...
true
13e4e4fb8d7c0ca674bddea7d0facdfd04ba6151
SQL
swarmfund/swarm-horizon
/db2/history/schema/migrations/014_balance_history.sql
UTF-8
349
3.109375
3
[]
no_license
-- +migrate Up create table history_balance_updates ( id bigserial primary key, balance_id varchar(64) references history_balances (balance_id) not null, amount bigint not null, updated_at timestamp with time zone not null -- time zone is intentional, for easier JSON parsing ); -- +migrate Down drop t...
true
c38a3671035fc05ce7bba6161d837c141e091f33
SQL
danielchk/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/11-genre_id_all_shows.sql
UTF-8
267
3.625
4
[]
no_license
-- lists all shows contained in the database hbtn_0d_tvshows or Null if don't have genre SELECT tv_shows.title, tv_show_genres.genre_id FROM tv_shows LEFT JOIN tv_show_genres ON tv_shows.id = tv_show_genres.show_id ORDER BY tv_shows.title, tv_show_genres.genre_id;
true
0b981d066bb34c846f9efcc22f7d91c145b383ee
SQL
wufengfu/lighthousemanager
/sql/db.sql
UTF-8
870
3.828125
4
[]
no_license
-- 用户 create table my_user ( id int not null primary key auto_increment, create_time date not null, update_time date not null, name varchar(16) not null comment '用户名', pass varchar(64) not null comment '密码', card_no varchar(32) comment '实体卡号', del_flag tinyint not null default 0 comment '删除...
true
7ba8f16d21421e72f11afcf0a4bfb40a2c6a7eb5
SQL
academey/algorithims_solutions
/code_signal/arcade/db/always-leave-table-in-order/mischievousNephws.sql
UTF-8
441
2.828125
3
[]
no_license
/*Please add ; after each select statement*/ CREATE PROCEDURE mischievousNephews() BEGIN SELECT weekday(mischief_date) as weekday, mischief_date, author, title from mischief order by weekday, ( case author when 'Huey' then 1 when 'Dewey' then 2 ...
true
6187c29bf958e46d51c633d7bd4a4453a5505a52
SQL
pylrichard/web_service_study
/roncoo_study/roncoo_book_shop/shop_admin/src/main/resources/schema-mysql.sql
UTF-8
839
3.421875
3
[]
no_license
USE book_shop; CREATE TABLE SPRING_SESSION ( SESSION_ID CHAR(36), CREATION_TIME BIGINT NOT NULL, LAST_ACCESS_TIME BIGINT NOT NULL, MAX_INACTIVE_INTERVAL INT NOT NULL, PRINCIPAL_NAME VARCHAR(100), CONSTRAINT SPRING_SESSION_PK PRIMARY KEY (SESSION_ID) ) ENGINE = InnoDB; C...
true
f898e2cf00868626c6539cd1322b24da8d5fd555
SQL
erichlee9/DailyPush
/20-9-30 Revature/Sql_BMSdemo.sql
UTF-8
2,527
4.21875
4
[]
no_license
-- 3.Please follow instructions given below. -- Write a query to display the customer number, customer firstname,account number for the -- customer’s whose accounts were created after 15th of any month. -- Display the records sorted in ascending order based on customer number and then by account -- number. -- SELECT...
true
0271213f48cfe32f123271fb4da2b34825160989
SQL
andrstom/topdrive_events
/events.sql
UTF-8
1,611
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Počítač: 127.0.0.1 -- Vytvořeno: Sob 18. čec 2020, 11:01 -- Verze serveru: 10.4.11-MariaDB -- Verze PHP: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
e314b3ca2f2c57896471b6f36c148fa85b4b2fa8
SQL
aodn/aatams
/scripts/sql/tims_reports/project_list.sql
UTF-8
285
3.65625
4
[]
no_license
select project.name as "project name", count(project.name) as "number of stations" from installation_station join installation on installation_station.installation_id = installation.id join project on installation.project_id = project.id group by project.name order by project.name;
true
1bec3be326d537a1576006a3c6c88161feee98d0
SQL
vietlinh9712/project_ki1
/sql/project-ki1.sql
UTF-8
782
3.140625
3
[]
no_license
CREATE DATABASE Project_ki1 CREATE TABLE DanhMuc( DanhMucID int IDENTITY(1,1) PRIMARY KEY, TenDanhMuc Nvarchar(255) ); CREATE TABLE DonVi( ID int IDENTITY(1,1) PRIMARY KEY, TenDonVi Nvarchar(225), KiHieu Nvarchar(25), DanhMucID int FOREIGN KEY REFERENCES DanhMuc(DanhMucID), ); CREATE TABLE SoSanh( MaSoSanh int ...
true
e58a31be2ea9f19599a19bf167c3c6fd87f6b9ef
SQL
Peter-Rambeck/CupcakeMaster
/src/main/resources/tables.sql
UTF-8
960
3.828125
4
[]
no_license
USE cupcake; CREATE TABLE topping ( topping_id INT NOT NULL AUTO_INCREMENT, name VARCHAR(15), price INT, PRIMARY KEY ( topping_id ) ); CREATE TABLE bottom ( bottom_id INT NOT NULL AUTO_INCREMENT, name VARCHAR(15), price INT, PRIMARY KEY ( bottom_id ) ); CREATE TABLE customer ( customer_id INT NOT NULL AUTO_INCREMENT...
true
3fcb14cc187f00f446b689f0446379656579d931
SQL
LaxmiNarayanaK/DBMS
/ASSIGNMENT-3/MOVIES .sql
UTF-8
4,128
3.9375
4
[]
no_license
show databases; create database movies; use movies; create table movie(film_id int primary key,title varchar(45),date1 date,genre varchar(45),rating float); insert into movie values(1,'pushpa','2021-07-21','action',8); insert into movie values(2,'acharya','2021-05-10','drama',9); insert into movie values(3,'RRR','2022-...
true
a2c2c96c57c4456f45b924cabe5f2e774aaf86d7
SQL
amolbais05/Udaan
/spring-boot-app/src/main/resources/db/migration/V1.0__add_person_table.sql
UTF-8
352
2.640625
3
[]
no_license
CREATE TABLE person ( emp_id BIGINT PRIMARY KEY, first_name VARCHAR(100) NOT NULL, last_name VARCHAR(100) NOT NULL, gender CHAR(1) NOT NULL, phone_number INTEGER(15) NOT NULL, pin_code INTEGER(8) NOT NULL, user_type VARCHAR(10) NOT_NULL, admin_id VARCHAR(10) NOT_NULL, covid_result CHAR(2) NOT_NULL ); CREATE...
true
de008a8d1905ba98cba44bfd0e544303b763d957
SQL
manpreet91/DatabaseManagement
/Assignment1_Module3/Location.sql
UTF-8
244
3.953125
4
[]
no_license
CREATE TABLE Location( Locno CHAR(8) NOT NULL, Facno CHAR(8) NOT NULL, Locname VARCHAR(50) NOT NULL, constraint PK_Location primary key(Locno), constraint FK_facno foreign key(Facno) references Facility (Facno) ); select * from Location
true
8b573783befef2d8ea4b2ecdc5632309f0c404a8
SQL
MaiconCanedo/curso-jdbc-devmedia2.0
/backup_do_banco/MySQL/curso_backup/curso_usuario.sql
UTF-8
2,289
2.96875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.11, for Win64 (x86_64) -- -- Host: localhost Database: curso -- ------------------------------------------------------ -- Server version 8.0.11 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40...
true
c57e827b66bda35c061eba588bd42cad8c5a3405
SQL
rbensassi/Recommendation_voyageurs
/Requests/Requete4.sql
UTF-8
1,172
3.625
4
[]
no_license
SET foreign_key_checks = 0; DROP VIEW IF EXISTS Avis; DROP VIEW IF EXISTS brico3; DROP VIEW IF EXISTS TermUser; DROP VIEW IF EXISTS GPSEtab; DROP VIEW IF EXISTS GPS; SET foreign_key_checks = 1; Create view Avis as select Etablissement.idEtab,nomEtab,avg(nbEtoileAvis) as moyenne,typeEtab from AvisVoy,Etablisse...
true
5f50f00d52f1335406e414ca540060f95c0ba11b
SQL
youn-soyeon/genietour
/src/main/java/com/genietour/www/flight/flight/flight.sql
UTF-8
809
3.5625
4
[]
no_license
SELECT * FROM Flight; INSERT INTO Flight VALUES (2, 'B001', '아시아나항공', '홍콩', '인천', '2016/04/12', '2016/04/16'); INSERT INTO Flight VALUES (8, 'B001', '대한항공', '프라하', '인천', '2016-05-10 12:00:00', '2016-05-10 15:00:00'); INSERT INTO Flight VALUES (1, 'B001', '대한항공', '프라하', '인천', NOW(), NOW()); UPDATE ...
true
058159dc38b37b851e448206b04c2aaaa5e3b1e6
SQL
AstunTechnology/Loader
/extras/ordnancesurvey/addressbase/premium/pgdump/create-indexes.sql
UTF-8
435
2.984375
3
[ "Apache-2.0", "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- Loader. Copyright (c) Astun Technology Ltd. (http://astuntechnology.com). -- Licensed under [MIT License](https://git.io/fAxH0). -- Creates a spatial index for each table with geometry CREATE INDEX "basiclandpropertyunit_wkb_geometry_geom_idx" ON "addressbase_premium"."basiclandpropertyunit" USING GIST ("wkb_geome...
true
b62932ffa3a28dc4f6056af9767b5e79e7a77473
SQL
tarsaxena/altan
/api_db.sql
UTF-8
7,242
2.984375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 30, 2020 at 12:52 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true