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
20fccec2f2d684001f17f95f4f0bd06ca340ec4c
SQL
krodve/Karina_PWeb
/KarinaRodriguez_Ejercicio02/SQL/chat.sql
UTF-8
3,343
2.765625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 02-10-2014 a las 20:18:58 -- Versión del servidor: 5.6.16 -- Versión de PHP: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
84ba19a93727ed5a210286c4e4c9cccc99f37ebd
SQL
sikale/wisdompcb
/二层/鸿泰源代码/acessexe/file/EP267销售退货单的提交审核过程.sql
GB18030
1,400
3.4375
3
[]
no_license
-- exec sp_executesql N'SELECT USER_PTR,seq_no FROM data0077 WHERE ttype=2 and (UPPER_LIMIT >=@P1) AND (LOWER_LIMIT <= @P2) and (whouse_ptr = 0 or whouse_ptr =@P3) ORDER BY SEQ_NO ',N'@P1 money,@P2 money,@P3 int',$450.0000,$450.0000,2 --дϢ exec sp_executesql N'SET NOCOUNT OFF; INSERT INTO "SJ_V20_live".."data0274" ...
true
91efb98d30c609234997d7bc163c99dc2ed2806b
SQL
drsm/sqt
/scripts/postgres/content/sessions.sql
UTF-8
1,014
2.734375
3
[ "MIT" ]
permissive
/* if version 100000 */ select s.datname, s.pid, now() - s.xact_start xact_duration, case when s.wait_event_type like '%Lock' then pg_blocking_pids(s.pid) end blocking_pids, s.backend_type, s.usename, s.application_name, s.client_addr, s.client_hostname, s.backend_start, s.xact_start, s.query_start...
true
bbea61a091099a9844c30528a93bafd44a127053
SQL
lehduc/19php03_php
/session7/learn_mysql/fig18-03.sql
UTF-8
287
2.765625
3
[]
no_license
SELECT productID, productName FROM products /* limit 3 la lay ra 3 san pham dau tien*/ LIMIT 3; SELECT productID, productName FROM products /* limit lay 3 san pham tu vi tri so 0*/ LIMIT 0 , 3; SELECT productID, productName FROM products /* lay 3 san pham tu vi tri so 1*/ LIMIT 1, 3;
true
3101ea81f59ca9516181e3ecf13cf03800a1b200
SQL
anandeka/my-project
/DBScripts/CorporateScripts/CorporateScripts_90_DML_RPC_RFP_Scripts.sql
UTF-8
27,886
2.75
3
[]
no_license
begin for cc in (select * from AK_CORPORATE akc where AKC.IS_ACTIVE = 'Y' and AKC.IS_INTERNAL_CORPORATE = 'N') loop Insert into RFC_REPORT_FILTER_CONFIG (CORPORATE_ID, REPORT_ID, LABEL_ID, LABEL_COLUMN_NUMBER, LABEL_ROW_NUMBER, LABEL, FIELD_ID, COLSPAN, IS_MANDATORY) Values (cc.CORPORATE_ID, '361...
true
36ecbb8bf2d78ec5137f4cd1679b26c71cf45dfc
SQL
tttp/politwoops-tweet-collector
/database/schema.sql
UTF-8
1,958
3.546875
4
[]
no_license
DROP TABLE IF EXISTS `tweets`; CREATE TABLE `tweets` ( `id` BIGINT UNSIGNED AUTO_INCREMENT, `user_name` VARCHAR(64), `content` VARCHAR(255), `deleted` TINYINT(1) NOT NULL DEFAULT 0, `created` DATETIME NOT NULL, `modified` DATETIME NOT NULL, `tweet` TEXT, PRIMARY KEY(`id`), KEY(`user_name`), KEY(`deleted`), K...
true
176ea78e043890bb94714c467b92fa043bb190fb
SQL
juhedata/magic_mirror_service
/document/sql/magic_mirror.sql
UTF-8
10,657
3.890625
4
[ "Apache-2.0" ]
permissive
/*==============================================================*/ /* Table: admin */ /*==============================================================*/ create table admin ( id bigint(20) not null auto_increment, username varchar(64) comment '用户名', ...
true
fb5b70a29205d323bc12f4feda50b97d139ff656
SQL
patselover/COEN-177-178
/COEN 178/LAB 3/init.sql
UTF-8
792
3.109375
3
[]
no_license
-- COEN 178L: Lab 3 -- Winter 2018 -- init.sql -- drop existing tables DROP TABLE L_EMP; DROP TABLE L_DEPT; -- recreate tables CREATE TABLE L_EMP ( empno INTEGER PRIMARY KEY, empname VARCHAR(10), deptid VARCHAR(5) ); CREATE TABLE L_DEPT ( deptid VARCHAR(5) PRIMARY KEY, deptname VARCHAR(10) ); -- populate...
true
af0a5372a65cfd3dc06d9ce0c995673e422b5470
SQL
codechaos87/snail
/src/main/mysql/m03/d19/tianyongxu/serchforson.sql
UTF-8
1,027
4.25
4
[]
no_license
SELECT * FROM book; SELECT * FROM borrow; SELECT * FROM penalty; SELECT * FROM reader; #第三题,题目 SELECT (SELECT r.rname FROM reader r WHERE r.rid = bw.rid), (SELECT bk.bname FROM book bk WHERE bk.bid=bw.`nif`), bw.`willdate` FROM borrow bw WHERE DATE(bw.`willdate`)>NOW(); #第四题,题目 SELECT b.`bname`, ...
true
69d770f0a8afd90c10de7819916b494280fcb236
SQL
pstetz/SQL-Solutions
/Window-Functions/over_3.sql
UTF-8
144
3.125
3
[]
no_license
SELECT name, SUM(weight) OVER ( ORDER BY weight DESC ROWS UNBOUNDED PRECEDING ) AS running_total_weight FROM cats ORDER BY weight DESC;
true
99e7e6d878abfebea22d4b8cd172662f0847ce62
SQL
tomasvvv/gametrader
/gametrader.sql
UTF-8
5,186
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 15, 2020 at 09:19 PM -- Server version: 10.1.33-MariaDB -- PHP Version: 7.2.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
b0b5eb29460833f96e6cd60050d163990b90690e
SQL
bogdanovmn/ur-tools
/sql/deck.sql
UTF-8
574
3.03125
3
[]
no_license
create table gen_deck ( id bigint unsigned not null primary key, clan_id int unsigned not null, stars int unsigned not null, common_count int unsigned not null, uncommon_count int unsigned not null, rare_count int unsigned not null, legend_count int unsigned not null, cr_count int unsigned not null, rate int n...
true
6c676607715309002bd4d0cdacd943a00b0907da
SQL
hacheG/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/8-cities_of_california_subquery.sql
UTF-8
156
3.171875
3
[]
no_license
-- script that creates the table id_not_null SELECT id, name FROM cities WHERE state_id = (SELECT id FROM states WHERE name = "California");
true
8efc5ee17e2c4ea0b7d5a27d28916fbceca26485
SQL
marekITLearning/java5
/product1_backend/product1_pers/src/main/resources/sql/app-db-schema-postgres-create.sql
UTF-8
574
3.046875
3
[]
no_license
CREATE TABLE public.title ( tconst text, titleType text, primaryTitle text, originalTitle text, isAdult boolean, startYear integer, endYear integer, runtimeMinutes integer, genres text, CONSTRAINT title_pkey PRIMARY KEY (tconst) ) WITH ( OIDS = FALSE ) TABLESPACE pg_default; ALTER TABLE public.title O...
true
8caff1563e7e92d1ffab284c0befa86d50c2aa66
SQL
jakusz1/DyploSysPol
/db/structure.sql
UTF-8
10,074
3.125
3
[]
no_license
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; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS plpgsql WITH SC...
true
38f207b1d1346f2d57deb7b051cfe779ac33affe
SQL
ibso-ml-deep-learnnig/DemoJam2019
/src/db/sql/init.sql
UTF-8
895
3.265625
3
[ "Apache-2.0" ]
permissive
use grpc; CREATE TABLE user ( user_id VARCHAR(10), user_name VARCHAR(20), password VARCHAR(16) ); CREATE TABLE log ( api_log VARCHAR(50), db_log VARCHAR(50), error VARCHAR(50) ); CREATE TABLE asset ( asset_id char(36) CHARACTER SET ascii COLLATE ascii_bin NOT NULL, asset_class char(8) NOT NULL, des...
true
cda976e9e0066c729ad933f9a9a5d61663172561
SQL
Caritochoa/Sql-Scripts
/script1.sql
UTF-8
1,730
3.71875
4
[]
no_license
#SCRIPT 1 #Entrega 2 Modulo 1, administración de Bases de Datos. #Carolina Ochoa Guzman, Estudiante de Ingniería de Software. DROP DATABASE IF EXISTS prueba5 CREATE DATABASE prueba5;# creación de la base de datos prueba5 USE prueba5; CREATE TABLE ejemplo (id INTEGER, name TEXT, Age INTEGER); PRIMARY KEY ('id'); #A...
true
baad4a669b86c34796ec875603842cf9fb3a63c0
SQL
agalobart/MyScripts
/examples/sql/datatype_integer_lenth.sql
UTF-8
2,147
3.625
4
[]
no_license
-- https://dev.mysql.com/doc/refman/5.6/en/numeric-type-attributes.html Investigando me consegui con esta documentación y probando pude demostrar para que sirve la longitud al momento de declarar el tipo de dato entero, se usa para definir la longitud de relleno de "0" a la izquierda cuando se hace un SELECT, y esto s...
true
49b357e13a8b9b7946126bcfaee82a9ba55c03ab
SQL
Zio7711/BootcampX
/4_queries/2_num_assistance_requests_student.sql
UTF-8
174
3.515625
4
[]
no_license
SELECT COUNT(*) AS total_assistances, students.name FROM assistance_requests JOIN students ON (student_id = students.id) WHERE students.name = 'Elliot Dickinson' GROUP BY students.name
true
c8aa1381c2007e984e6e5b6a9dfc05f09d9b7f42
SQL
shashanktest/advance_php
/db/blogs.sql
UTF-8
3,200
3.375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 22, 2015 at 03:37 PM -- 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
9f624916c1070069455396739a434d53b94e7edb
SQL
tq21/honors-thesis
/data_query/data_iv_full.sql
UTF-8
7,043
3.84375
4
[]
no_license
-- type 2 diabetes patients SUBJECT_ID, HADM_ID (54521) WITH dm_patients AS ( SELECT SUBJECT_ID, HADM_ID, FROM `physionet-data.mimic_hosp.diagnoses_icd` AS A WHERE icd_code LIKE 'E11%' ), -- first admission time, SUBJECT_ID, ADMIT_TIME (17606) first_admit AS ( SELECT A.SUBJECT_...
true
32c4e2adfda9fc90c6a0bc5cebfe8c68cdabdf81
SQL
echalkpad/node-admin
/db/backup/chardb_2016-06-23.sql
UTF-8
6,168
3.046875
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4499 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 192.168.99.100 (MySQL 5.6.30-76.3) # Database: chardb # Generation Time: 2016-06-23 12:38:43 +0000 # **************************************...
true
afc694eb2d5aa8814903d62c08d48e1dd30d413b
SQL
Henry-NS-2021/BE_21_PHP_Day-3_Henry-Elnaz
/Henry/challenge/restaurant.sql
UTF-8
2,330
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 12, 2021 at 04:08 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
bca8fe3b4cac3d0717bcd4d2ff44ef3bdd11945f
SQL
Sadia0730/Restaurant-Management-System
/array.sql
UTF-8
340
2.5625
3
[]
no_license
declare type namearray is varray(12) of MENU.NAME%type; t_name namearray :=namearray(); counter number(2); begin for counter in 1..6 loop t_name.extend; select name into t_name(counter) from menu where menu_id=counter; end loop; for counter in 1..6 loop dbms_output.put_line(counter||'.'||t_name(counter))...
true
b944d17d54b8f8f2a671e37257a83b702864956f
SQL
ffuurrqqaann/CrowdPickUp
/database/survey.sql
UTF-8
1,961
3.1875
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.6.17 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 8.3.0.4694 -- -------------------------------------------------------- /*...
true
add2b04c821bc67b0f1fcc1692fb4c86c90e2fd9
SQL
chen669712/SQL
/张辰/城市维度订单转化率/城市维度订单转化率日统计adhoc_home.sql
UTF-8
4,970
3.6875
4
[]
no_license
select city.cityname , count (distinct search_d.cid ) as DAU , count (distinct pay_d.orderid) as order_d , concat(round(count (distinct pay_d.orderid)/count (distinct search_d.cid )*100,2),'%') as conversion_d , count (distinct bnbpay_d.orderid ) as bnborder_d , count (distinct hotelpay_d.orderid) as hotelor...
true
9ae9a24ecb56ae63c7c325afad27b4045d35bdc7
SQL
a-wallen/PersonalFinanceDatabase
/DataDefinition/ACCT_HISTORY.SQL
UTF-8
279
2.9375
3
[]
no_license
USE jw_group05_db; CREATE TABLE IF NOT EXISTS ACCT_HISTORY( TRANSACTION_ID VARCHAR(20) PRIMARY KEY, ACCOUNT_NUM VARCHAR(1) NOT NULL, DATE DATE NOT NULL, BALANCE FLOAT(10,2), FOREIGN KEY(ACCOUNT_NUM) REFERENCES ACCOUNT(ACCOUNT_NUM) );
true
21e208532c7ca797f4781634942633bd1311c2c6
SQL
MrSiriusBlack/AlphaTest
/starter/src/main/resources/db/migration/V6__add_test_data.sql
UTF-8
841
2.625
3
[]
no_license
INSERT INTO demo.provider VALUES (1, 'Поставщик ТВ', 5000); INSERT INTO demo.provider VALUES (2, 'Поставщик Интернет', 7500); INSERT INTO demo.product VALUES ('ТВ', 1); INSERT INTO demo.product VALUES ('Интернет', 2); INSERT INTO demo.client VALUES (1, 'Иван Петров', 1000); INSERT INTO demo.client VALUES (2, 'Петр Ив...
true
3d89d17297958d891583886adb96cc11bd778453
SQL
MariGMartinez/bamazon
/bamazon.sql
UTF-8
789
2.953125
3
[]
no_license
CREATE DATABASE bamazon USE bamazon CREATE TABLE products ( item_id INTEGER (11) NOT NULL AUTO_INCREMENT PRIMARY KEY, product_name VARCHAR(30) NOT NULL, department_name VARCHAR (30) NOT NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INTEGER(11) NOT NULL ) INSERT INTO products (product_name, department_name, pri...
true
80af906017783da2e3782731df91319d185d9b88
SQL
dhanusha-a/DD-s-cafe
/dd.sql
UTF-8
12,547
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Dec 23, 2019 at 01:35 PM -- Server version: 5.7.26 -- 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 @OLD_CH...
true
5235d6b49ff25e5d9cde34f1b18a0bfe0e5bc2db
SQL
qdriven/walkthough-backend
/scripts/sql/bugs.sql
UTF-8
819
3.84375
4
[]
no_license
Drop TABLE Bugs; CREATE TABLE Bugs ( -- other columns status VARCHAR(20) CHECK (status IN ('NEW', 'IN PROGRESS', 'FIXED')), status_enum ENUM ('NEW', 'IN PROGRESS', 'FIXED') ); ALTER TABLE Bugs MODIFY COLUMN status ENUM ('NEW', 'IN PROGRESS', 'FIXED', 'DUPLICATE'); CREATE TABLE BugStatus ( status VAR...
true
15c975420a2e93e71e2eb3824c5357a595d40feb
SQL
fracchan/HackerRank_Solutions
/SQL/Basic_Join/HackerRank_BasicJoin.sql
UTF-8
3,438
4.71875
5
[]
no_license
-- Asia Population select sum(ci.population) from city ci join country co on ci.countrycode = co.code where co.continent = 'asia' ; -- African Cities select ci.name from city ci join country co on ci.countrycode = co.code where co.continent = 'africa' ; -- Average Population of Each Continent select co.continent , fl...
true
424c5154026df106db01c330f022d37d9b23f493
SQL
besthird/rbac-api
/.build/rbac.sql
UTF-8
7,568
3.28125
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 5438 # # https://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: test01.besthird.org (MySQL 5.7.26) # Database: rbac # Generation Time: 2019-07-01 07:17:56 +0000 # ***************************************...
true
32e29f5f896224aec7c1a33dd4c661d09fb5ea58
SQL
beatethalmann/Generic-Civil-Infrastructure-Simulation
/SQLscripts/WaterDemandByGOR.sql
UTF-8
340
3.390625
3
[ "MIT" ]
permissive
INSERT INTO "WS_LU_WaterDemandByGor"( gor_id, year, modelrun_id, demand) SELECT gor_id, year, modelrun_id, SUM(totaldemand) FROM ( "WS_LU_WrzMappingOnGors" INNER JOIN ( SELECT * FROM "WS_O_WRZones" WHERE modelrun_id = 1802) AS intermed ON intermed.wrz_id = "WS_LU_WrzMappingOnGors".wrz_id ) GROUP BY gor_id,...
true
a9e58b64dc83cb1c3a234f048635edf2eee54330
SQL
jaskarans-optimus/Induction
/sql_induction/SQL Assignment2/SQLAssignment2.sql
UTF-8
5,384
4.125
4
[]
no_license
USE Shipment; CREATE TABLE t_emp( Emp_id INT PRIMARY KEY IDENTITY(1001,2) , Emp_Code VARCHAR(255), Emp_f_name VARCHAR(255) NOT NULL, Emp_m_name VARCHAR(255), Emp_L_name VARCHAR(255), Emp_DOB DATE CHECK((DATEPART(yyyy,Emp_DOB)*365+DATEPART(M,Emp_DOB)*30+DATEPART(d,Emp_DOB))>(18*365)), Emp_DOJ DATE NOT NULL ); INSERT INT...
true
9ffd2e24bbace44c4045a3cd41be209ef6ece3f6
SQL
MARK-42/Store_Management
/packageSpecification.sql
UTF-8
2,208
2.765625
3
[]
no_license
create or replace PACKAGE management IS FUNCTION get_hash (p_username IN VARCHAR2, p_password IN VARCHAR2) RETURN VARCHAR2; PROCEDURE insertEmployee (fn tabEmployee.firstName%type, ln tabEmployee.lastName%type, un tabEmployee.username%type, ps tabEmployee.password%type, pn tabEmployee.phoneNumber%type...
true
5869b81e1efe49445aa2579f695209f52dd26c79
SQL
chanduhvg/ADB
/ADB Nathan/Assignments/Assignment07/createTables.sql
UTF-8
1,519
3.34375
3
[]
no_license
drop table Customer cascade constraints; drop table POSrep cascade constraints; drop table Order_Table cascade constraints; drop table Contact_Details cascade constraints; drop table State cascade constraints; drop table Product cascade constraints; drop table POLine cascade constraints; drop table Address cascade ...
true
d312b7696c04a4c4984dcc139eb053aa2f40ecae
SQL
massudaw/schema-browser
/sql/move_db_create.sql
UTF-8
578
2.84375
3
[]
no_license
DROP TABLE metadata.oid_table_map; DROP TABLE metadata.oid_schema_map; DROP TABLE metadata.oid_user_map; CREATE TABLE metadata.oid_table_map AS SELECT oid, schema_name, table_name FROM metadata.tables; CREATE TABLE metadata.oid_schema_map AS SELECT oid, name FROM metadata.schema; CREATE...
true
99aeda6efd831fcfb07508ab5984648974177672
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day28/select2317.sql
UTF-8
191
2.796875
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerObservation WHERE timestamp>'2017-11-27T23:17:00Z' AND timestamp<'2017-11-28T23:17:00Z' AND SENSOR_ID='6da8d9e4_a9b2_44c8_a2fa_f5263784ca6d'
true
8af88c8a5f2146a901f6525e847d29d2653d24c6
SQL
danielhong98/MSDA-Fall
/SQL Final.sql
UTF-8
2,840
4.625
5
[]
no_license
#Create BuildingEnergy database DROP Database IF EXISTS BuildingEnergy; CREATE Database BuildingEnergy; USE BuildingEnergy; #EnergyCategories and EnergyTypes tables Drop Table if Exists EnergyCategories; Create Table EnergyCategories (CategoryID Int Primary Key, EnergyCategory Varchar (200) Not Null); Insert into Ener...
true
72afdf97e190199b32af48f6fe40b1dd39680f60
SQL
VaishnaviReddyGuddeti/SQL--MySQL
/Task 1.sql
UTF-8
413
3.984375
4
[]
no_license
# Create a visualization that provides a breakdown between the male and female employees working in the company each year, starting from 1990. SELECT YEAR(d.from_date) AS calendar_year, e.gender, COUNT(e.emp_no) AS num_of_employees FROM t_employees e JOIN t_dept_...
true
d61080ec6953073c0b34c4a71603e06e184c75bb
SQL
tmac531/seckill
/seckill/src/main/sql/schema.sql
GB18030
1,682
3.84375
4
[]
no_license
--ݿʼű --ݿ create database seckill; --ʹݿ use seckill; --ɱ create table seckill( seckill_id bigint NOT NULL AUTO_INCREMENT COMMENT 'Ʒid', name varchar(120) NOT NULL COMMENT 'Ʒ', number int NOT NULL COMMENT 'Ʒ', start_time timestamp NULL COMMENT 'ɱʼʱ', end_time timestamp NULL COMMENT 'ɱʱ', create_time timestamp NOT...
true
4d6a3e0f8d0a474b2e11c0108e47a29d89f74869
SQL
jimmyalf/temp
/Spinit.Wpc.Synologen.Database/dbo/Stored Procedures/spForumsecurity_ValidateUserPasswordAnswer.sql
UTF-8
285
2.9375
3
[]
no_license
CREATE PROCEDURE spForumsecurity_ValidateUserPasswordAnswer ( @UserID int, @PasswordAnswer nvarchar(256) ) AS BEGIN SELECT COUNT(UserID) FROM tblForumUsers WHERE UserID = @UserID AND (PasswordAnswer = @PasswordAnswer OR PasswordAnswer = NULL) END
true
12dffa8e5c18aa60ca626d16d89005494de05167
SQL
m2gpie/know-how
/Oracle/exp-imp/oracle-drop-schema.sql
UTF-8
898
2.828125
3
[]
no_license
-- Version: 1.0 -- -- How to run: -- sqlplus system @"oracle-drop-schema.sql" -- prompt Please enter accept ARG_SCHEMA prompt "Schema name: " default ISSUE_NOSCHEMA accept ARG_TABSPACE prompt "TabSpace name (def=&ARG_SCHEMA.space): " default &ARG_SCHEMA.space accept ARG_TABSPACE_TEMP prompt "Temp TabSp...
true
8c27f408c9a88ff33b6a632ae41040115784a1da
SQL
danielcashion/Clublacrosse-Scrape
/Databases/ClubSports/obj_v_player_team_games_outcomes.sql
UTF-8
2,029
3.375
3
[]
no_license
/* SQLyog Job Agent v12.09 (64 bit) Copyright(c) Webyog Inc. All Rights Reserved. MySQL - 5.7.12 : Database - clubsports ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNI...
true
f3f86c455f8fd82feb9e95a106929e20d3a53893
SQL
tanzuhao/git-tan
/spring-boot-project/spring-boot-security-web-V1.0/src/main/resources/static/附件/spring_boot-security-web-V1.0全量.sql
UTF-8
4,521
3.046875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 本地连接 Source Server Version : 50533 Source Host : 127.0.0.1:3306 Source Database : spring_boot Target Server Type : MYSQL Target Server Version : 50533 File Encoding : 65001 Date: 2019-09-10 18:03:41 */ create database spring_boot def...
true
04900a9abb02eb8eb93f29c546d92eb343ff7579
SQL
DirkThalheim/deegree-elf
/scripts/sql/setup_tna.sql
UTF-8
59,689
3.5
4
[ "Apache-2.0" ]
permissive
-- Schema: tna -- DROP SCHEMA tna CASCADE; CREATE SCHEMA tna AUTHORIZATION elf_admin; COMMENT ON SCHEMA tna IS 'Schemata für Transport Network Air'; -- == INSPIRE Transport Network == CREATE TABLE tna.accessrestriction ( localid text, beginlifespanversion timestamp, beginlifespanversion_nilreason ...
true
a3bf2fc91e3366af84be54f7b44853d5ed7f8a24
SQL
RuglesChaves/estoque
/novo.sql
UTF-8
18,399
2.859375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 24-Jan-2019 às 21:12 -- Versão do servidor: 10.1.19-MariaDB -- PHP Version: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
707be24551374f0e06525cb8f01db07240a42677
SQL
SASCopenhaver/References
/AA/Style/Upd_Del_Create/cleanup slvoak IVs dups .sql
UTF-8
16,976
3.578125
4
[]
no_license
--set show_almn_ind to 'N' update alumni.almn set show_almn_ind = 'N' where almn_id = 251016 and pgm_src_nm = 'MERIDIAN II IV'; commit; --55 records updated --set show_pgm_ind to 'N' update alumni.pgm set show_pgm_ind = 'N' where pgm_almn_id = 251016 and pgm_src_nm = 'MERIDIAN II IV'; commit; s...
true
17c5a2f03e9d8c5eed76b0c9cc91cba220ddf321
SQL
roman-yarosh/sql
/initDB.sql
UTF-8
8,106
3.5
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 06/01/17 17:27:23 -- 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='TRADITION...
true
b73a99a2a21124af75544bcbe5957327bbdffefa
SQL
PauloCarneiro99/Processamento-Analitico-de-Dados
/src/sqls/indicadores_sociais.sql
UTF-8
733
2.890625
3
[]
no_license
CREATE TABLE IF NOT EXISTS SCHEMA_INDI_SOCIAIS.INDICADORES_SOCIAIS ( CHAVE_PAIS UUID, ANO INT, ID_SEXO UUID, IDH FLOAT, ANOS_ESCOLARIDADE FLOAT, EXPECTATIVA_VIDA FLOAT, CONSTRAINT SCHEMA_INDI_SOCIAIS_INDICADORES_SOCIAIS_PK PRIMARY KEY (CHAVE_PAI...
true
9904d3b4544a70c33a43f2ad617b43fcb4d7237b
SQL
jlalovi/JAVA_DAW_fuentezuelas
/RSS SQL XML/BBDD.sql
UTF-8
291
3.109375
3
[]
no_license
-- DROP DATABASE rss_data; CREATE DATABASE IF NOT EXISTS rss_data; USE rss_data; CREATE TABLE feed ( codigo_feed INT AUTO_INCREMENT, titulo VARCHAR(500), enlace VARCHAR(500), descripcion VARCHAR(1500), CONSTRAINT pk_feed PRIMARY KEY (codigo_feed) ); SELECT * FROM feed;
true
debad17296932e37eb7f7c6f6cdb7600fd9857ab
SQL
jaydattdesai/multi-tenancy
/testdb2_sample_entity.sql
UTF-8
332
2.8125
3
[]
no_license
create database testdb2; use testdb2; DROP TABLE IF EXISTS `sample_entity`; SET character_set_client = utf8mb4 ; CREATE TABLE `sample_entity` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(45) DEFAULT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=5 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_09...
true
b572f755ed7e3be4830f436e2edef5a640d83521
SQL
kethort/Commerce-App
/create_tables.sql
UTF-8
2,984
3
3
[]
no_license
drop table if exists product; CREATE TABLE [product] ( [productID] INTEGER NOT NULL PRIMARY KEY , [name] TEXT NOT NULL DEFAULT '' , [description] TEXT NOT NULL DEFAULT '' , [price] double(10, 2) NOT NULL , [active] bit NOT NULL DEFAULT 1 , [hasSN] bit NOT NULL DEFAULT 1 ); drop table if exists customers; CREATE TA...
true
4a830cd95acd9144942007e02b2665f5a31e1a30
SQL
flanciskinho/FIC.EI.IS.Java.minibay.TestUI
/src/sql/1-MySQLCreateTables.sql
UTF-8
3,663
3.984375
4
[]
no_license
-- Indexes for primary keys have been explicitly created. -- ---------- Table for validation queries from the connection pool. ---------- DROP TABLE PingTable; CREATE TABLE PingTable (foo CHAR(1)); SET FOREIGN_KEY_CHECKS=0; -- to disable them DROP TABLE IF EXISTS Card; DROP TABLE IF EXISTS Category; DROP TABLE IF EXI...
true
f9ea5519e5059025d1b68e82a9a60ad3d70e2bef
SQL
arfas/PL-SQL
/nested_expressions.sql
UTF-8
106
2.890625
3
[]
no_license
SELECT address, CURSOR(SELECT name, salary FROM customers c WHERE c.id = d.id) FROM customers d;
true
466d0441ba3a8ef5809ba35581b0ac10f5f0a56a
SQL
dwdw520533/mhzx
/sql/table.sql
UTF-8
183
3.109375
3
[]
no_license
create table dbo.roles ( roleid int not null, userid int not null, name varchar(32) not null, PRIMARY KEY (roleid) ) create index user_id_index on dbo.roles (userid);
true
b67796b37f078a82c6d3c32c4858545cd6cd5156
SQL
Mvhaynes/sql-employee-db
/table.sql
UTF-8
1,030
3.75
4
[]
no_license
-- Titles table create table titles ( title_id varchar primary key not null, title varchar ); -- Employees table create table employees ( emp_no int primary key not null, emp_title_id varchar not null, birth_date date, first_name varchar, last_name varchar, sex varchar, hire_date date, foreign key (emp_title...
true
bc8b036528ebd0bcb6703107674a1cc0cc64dcea
SQL
jamessushum/sql_musicHistory
/mh_12.sql
UTF-8
300
4.1875
4
[]
no_license
/* Write a SELECT statement to display how many songs exist for each artist. You'll need to use the COUNT() function and the GROUP BY keyword sequence. */ SELECT Artist.ArtistName, COUNT(Song.Id) AS NumberOfSongs FROM Song LEFT JOIN Artist ON Song.ArtistId = Artist.Id GROUP BY Artist.ArtistName;
true
59a557f6b0748a17a78dc91ade2cd25062adaf63
SQL
jameswyh/Oracle_Teaching_Management_System
/6_function/2_fun_std_avg_gra.sql
UTF-8
470
3.203125
3
[]
no_license
CREATE OR REPLACE FUNCTION fun_std_avg_gra(v_reg_no db_grade.Register_no%type,v_term char) RETURN number IS v_std_avg_grade number ; BEGIN select avg(Final_Grade) into v_std_avg_grade from db_grade where Register_no=v_reg_no and Registered_term=v_term; RETURN v_std_avg_grade; EXCEPTION when no_data_found t...
true
eef4f62f923afc0dac48f6aec2e9f48a621e0474
SQL
piotrturski/tw-loan
/src/main/resources/db/migration/V1__apps_and_blacklist.sql
UTF-8
707
3.25
3
[]
no_license
create table loan_application ( id bigserial not null primary key, amount NUMERIC(17, 2) not null, term bigserial not null, personal_id bigserial not null, country_code char(2) not null, application_date timestamp with time zone not null, accepted boolean not null, name text not null, ...
true
0eae807e087333d0f3ae4ba12c3ceba8bda08bbc
SQL
15140575236/HouseKeeping
/logs/df_info__20190415.sql
UTF-8
7,413
2.546875
3
[]
no_license
start the dailyUpdate select kwvalue from SAPR3.KEYWORD_T where name = 'keepingUpdate' and category ='ParkingKeeping' with ur 2019-04-15 MERGE INTO sapr3.ZDM_LOGHDR_FULL AS F USING(select * from sapr3.ZDM_LOGHDR where CREATE_TIME >='2019-04-15' ) AS S ON S.ZSESSION = F.ZSESSION WHEN MATCHED THEN UPDATE SET (F.MANDT,F...
true
926404daff984db930a503bdcd85b95770ec3d78
SQL
CamBrown101/BootcampX
/1_queries/7_rollover_students.sql
UTF-8
255
3.953125
4
[]
no_license
SELECT students.name, cohorts.name, cohorts.start_date as cohort_start_date, students.start_date as student_start_date FROM students JOIN cohorts ON cohort_id = cohorts.id WHERE cohorts.start_date != students.start_date ORDER BY cohort_start_date;
true
4e8ee72c42c593b4a95fade6c4a1b6390ea120f2
SQL
WorldofFantasy/Lab_6
/sql.sql
UTF-8
1,032
3.796875
4
[]
no_license
CREATE USER ‘dbuser’@'localhost' IDENTIFIED BY '123'; create database `first_db` character set utf8 collate utf8_general_ci; GRANT ALL PRIVILEGES ON first_db.* TO 'dbuser'@'localhost'; use first_db; create table `dz_v1_musicalgroup` ( `id` int(11) not null auto_increment, `name` char(30) not null, `date_cr...
true
8e0577d213f697d3800896e671e49ddfb6282492
SQL
cdenzin/data_analytics_class_assignments
/SQL/7_3 Exercise 3.sql
UTF-8
1,721
4.59375
5
[]
no_license
--Create a query that returns all of the distinct event types and the number of times that an event has occurred for each event value. --Add the meal_id and meal type to the query to return the distinct events, the meal_id, the meal type and the count of the number of rows for each distinct event, meal_id, and meal typ...
true
c8ff5fb74cae0cc5d11ba8e0b6c579e85ec41fdd
SQL
WeiyiDeng/Dataset_code
/create_BAND_dt5_broad.sql
UTF-8
249
3.65625
4
[]
no_license
create table BAND_dt5_broad(BAND_ID char, Broad int); insert into BAND_dt5_broad SELECT BAND_ID, sum(Yes) as Broad FROM ( select BAND_ID, Yes from BAND_dt5, tracks_broad_appeal where tracks_broad_appeal.rowid = BAND_dt5.rowid ) GROUP BY BAND_ID
true
df51d16555bc996b2b709784a98d25d087f67773
SQL
tanvirraihan142/Database-Project-with-ASP.NET
/project.sql
UTF-8
14,060
2.859375
3
[]
no_license
/* Navicat Oracle Data Transfer Oracle Client Version : 10.2.0.5.0 Source Server : project Source Server Version : 110200 Source Host : localhost:1521 Source Schema : PROJECTDB Target Server Type : ORACLE Target Server Version : 110200 File Encoding : 65001 Date: 201...
true
dab08b769cf0223eec0efa118a9c40faf3f85e91
SQL
outlau/codenamestiandroid
/apps/backend/db/migrate.sql
UTF-8
1,150
3.421875
3
[]
no_license
DROP TABLE coordinates; DROP TABLE times; DROP TABLE quotes; DROP TABLE sti; CREATE TABLE coordinates ( id int NOT NULL AUTO_INCREMENT, name varchar(255), latitude float, longitude float, PRIMARY KEY (id) ); create table times ( id int NOT NULL AUTO_INCREMENT, datetime datetime not null, ...
true
ef22cbcf5ff06180d530e0ee64d7807912bc5faf
SQL
sli33t/LeafGenerator
/leaf_gen.sql
UTF-8
1,695
3.21875
3
[]
no_license
/* SQLyog Ultimate - MySQL GUI v8.2 MySQL - 8.0.20 : Database - leaf_gen ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHE...
true
14acf48d8c12b2a5f3ff21e4d1419cd5163031d5
SQL
Esillicher/MAI-projects
/Databases ERwin/Labs/q2.2.sql
UTF-8
486
3.3125
3
[]
no_license
# Посчитать кол-во заказов, в которых участвует каждый товар (вывести № товара, название, цвет, кол-во заказов) SELECT Zakazy.n_tovara, COUNT(Zakazy.n_zakaza) AS number_of_orders; FROM ; p1!zakazy; GROUP BY Zakazy.n_tovara; INTO CURSOR tmp SELECT DISTINCT tmp.n_tovara, Tovary.tname, Tovary.color, ...
true
91a46ad52785471183681411ba9eac48ba94ea9b
SQL
GachonSpring/PhampnetProject
/sample.sql
UTF-8
3,894
3.5625
4
[]
no_license
DROP TABLE IF EXISTS user_TB; create table IF NOT EXISTS user_TB( userCode int NOT NULL, primary key(userCode) ); DROP TABLE IF EXISTS category_TB; create table IF NOT EXISTS category_TB( categoryNo INT UNSIGNED NOT NULL, categoryNameBig varchar(40), categoryNameSmall varchar(40), primary key(categoryNo) ); DROP ...
true
54d4444068f9b39f47f7eefd27e6237061f4d673
SQL
Czesvanila/mgvpcws
/database/mgvpcdb.sql
UTF-8
8,803
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONN...
true
07029958ad9714faf7a54fe2ac91b2611d08db82
SQL
rudi-bruchez/tsql-scripts
/database-information/tables-information/search-by-column-types.sql
UTF-8
607
3.34375
3
[ "MIT" ]
permissive
----------------------------------------------------------------- -- Search all columns in the current database that have a -- specific data type -- -- rudi@babaluga.com, go ahead license ----------------------------------------------------------------- SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED; SELECT T...
true
1db367d8a7be87c999d3456f985cdf0f6e849047
SQL
imf26/Data-Science
/Business_intelligence/queries.sql
UTF-8
16,629
4.0625
4
[]
no_license
######--- 0.1 Conversione dtappello to date alter table appelli add datanuova date null; update appelli set appelli.datanuova = str_to_date(dtappello, '%d/%m/%Y'); alter table appelli drop dtappello; alter table appelli change datanuova dtappello date null; ######--- 0.2 Conversione dtappello to date alt...
true
03155913a8f9c9c88d27ac13a88a8e9b3d4a562e
SQL
r8420/Webshop-Wide-World-Importers
/MySQLStoredProcedures&Functions/StoredProcedures/insert_customer_account.sql
UTF-8
629
3.203125
3
[]
no_license
DELIMITER $$ CREATE DEFINER=`***REMOVED***_root`@`%` PROCEDURE `insert_customer_account`( personID INT, streetNumber VARCHAR(60), postcode VARCHAR(10), city VARCHAR(60), province VARCHAR(60), country VARCHAR(60) ) BEGIN INSERT INTO customers (CustomerID, PrimaryContactPersonID, DeliveryCityID, DeliveryAddressLine2, D...
true
bfff6fcdfaa26ddfd4fe14a60cce2d0aef96289c
SQL
matt-barton/tempmon
/Website/database/tempmon.sql
UTF-8
822
3.484375
3
[]
no_license
DROP TABLE IF EXISTS tempmon_Monitor; CREATE TABLE tempmon_Monitor ( monitorId INT(11) UNSIGNED NOT NULL AUTO_INCREMENT, location VARCHAR(32), PRIMARY KEY (monitorId) ); DROP TABLE IF EXISTS tempmon_MonitorIdentity; CREATE TABLE tempmon_MonitorIdentity ( identityId InT(11) UNSIGNED NOT NULL AUTO_INCRE...
true
3a7e7827037136a7522a3f3a025b827037be53ee
SQL
hi-noikiy/project
/91ns/schemas/web/20150414/pre_task_log.sql
UTF-8
1,041
2.890625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50621 Source Host : localhost:3306 Source Database : 91ns Target Server Type : MYSQL Target Server Version : 50621 File Encoding : 65001 Date: 2015-04-14 11:04:05 */ SET FOREIGN_KEY_CHECKS=0; --...
true
d3fd696f1c659ef9a048ffa3ea4439bf3be9113e
SQL
omingle/Online-Feedback-and-Complaint-Management-System
/barGraph/visitors.sql
UTF-8
3,566
2.703125
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 30, 2017 at 03:52 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
bcb1a08bcdf06b8937a2817070cbdb12e639796e
SQL
mirnor890/Labbaplied
/Database.sql
UTF-8
2,816
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.2 -- https://www.phpmyadmin.net/ -- -- Värd: localhost -- Tid vid skapande: 12 feb 2018 kl 11:28 -- Serverversion: 5.6.35 -- PHP-version: 7.1.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Databas: `Book club` -- -- ------------------------------------...
true
c65260a9f458803e84ded700855c9cc80e8c6a65
SQL
epaschke22/holbertonschool-higher_level_programming
/0x0E-SQL_more_queries/15-comedy_only.sql
UTF-8
261
3.8125
4
[]
no_license
-- Lists all names of a single genre SELECT tv_shows.title FROM tv_genres LEFT JOIN tv_show_genres ON tv_genres.id = tv_show_genres.genre_id LEFT JOIN tv_shows ON tv_show_genres.show_id = tv_shows.id WHERE tv_genres.name = "Comedy" ORDER BY tv_shows.title ASC;
true
495d27cd549105943705312d3499abb9951dbc22
SQL
turpure/search
/cameracatagory/table.sql
UTF-8
478
2.59375
3
[]
no_license
#建表 camerasearch create table camerasearch ( id int not null primary key auto_increment, sellerid varchar(30), location varchar(30), itemnumber char(12), title varchar(85), sales varchar(8), price varchar(10), shipping varchar(7), url varchar(300), ctime date )charset utf8; #建表 camerasalesdetails create table camer...
true
ec5ee5dd59ec17e2cb22d8da7868a2a9a1871ee4
SQL
Teanlouise/shared-world-data
/src/linear_regression/regression_input/country_data.sql
UTF-8
964
3.5625
4
[]
no_license
-- QUERY 1 -- From 'World Bank - Indicators' public dataset on BigQuery -- View of all countries with indicators that match chosen factors SELECT * FROM `bigquery-public-data.world_bank_wdi.indicators_data` WHERE indicator_name="International tourism, number of arrivals" OR indicator_name="Population, t...
true
bff37574eb54f1544b0aeeda6169071889567b8f
SQL
danvop/yuma-test
/migrations/users.sql
UTF-8
599
3.109375
3
[]
no_license
USE `yuma`; DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `password` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `role` varchar(255) ...
true
e75d57af8a8fdf9e2f1daabfc50328bb339872a4
SQL
vieira-alexandre/orange-talents-07-template-ecommerce
/src/main/resources/db/migration/V008__create-pergunta_produto.sql
UTF-8
414
3.171875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE pergunta_produto ( id bigint NOT NULL auto_increment, criada_em datetime(6) NOT NULL, titulo varchar(255) NOT NULL, produto_id bigint NOT NULL, usuario_id bigint NOT NULL, PRIMARY KEY (id), CONSTRAINT fk_perguntaproduto_produtoid FOREIGN KEY (produto_id) REFERENCES produto(id), ...
true
af8aff29b8994a2d90e25e5fb03fc506826af627
SQL
rmedina09/Proyecto2_RedesComputadoras2019-1
/script_database_pokemon.sql
UTF-8
1,046
3.59375
4
[]
no_license
-- Author : Raul Medina Peña -- Version: 1.0.0 -- Fecha : 19/12/2018 -- Creamos la base de datos CREATE DATABASE dbpokemon; -- Nos cambiamos a la base de datos 'dbpokemon' \c dbpokemon; -- Creamos la tabla usuario CREATE TABLE usuario( id_usuario int PRIMARY KEY, nombre varchar(100) ); -- Creamo...
true
31dbbc25467aab15406d3b5dfa78e893c00cf701
SQL
bmreddy11/content-management-system
/CrossFitGuildWithForeignKeys.sql
UTF-8
5,806
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Nov 16, 2016 at 11:42 AM -- Server version: 5.7.16-0ubuntu0.16.04.1 -- PHP Version: 7.0.8-0ubuntu0.16.04.3 DROP TABLE IF EXISTS `Hashtag`; DROP TABLE IF EXISTS `PostHashtag`; DROP TABLE IF EXISTS...
true
a43dc3df353cf43c136ae0eeef4212a9b0eba472
SQL
quantmcNEOLabVN/camLogger
/Untitled.sql
UTF-8
553
3.703125
4
[]
no_license
SELECT 'Person with ID=' || p.PERSON_ID || ' appeared in Camera at ' || to_char(img.TIMERECORDED, 'DD/MM/YYYY HH24:MI:SS.FF ') as "Reports" FROM PEOPLE p JOIN EMP_IMG ei ON (p.Person_ID = ei.Person_ID) join IMAGES img on (img.Img_ID=ei.Img_ID) order by img.TIMERECORDED desc; Select * from IMAGES; Select ...
true
e5bba7ef99273d15398d969c6f5c9d62593c469e
SQL
thethao129/demoapi
/src/main/resources/account.sql
UTF-8
1,711
3.078125
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 172.16.210.39 Source Server Type : MySQL Source Server Version : 100320 Source Host : 172.16.210.39:3306 Source Schema : demo_api Target Server Type : MySQL Target Server Version : 100320 File Encoding : 65001 Date: 20...
true
470feecadc6e0ba4ed5d4acfe98cf0d879dcbeaa
SQL
glewan/Database_model_dental_clinic
/Project_2_Dental_clinic_DDL.sql
UTF-8
8,094
3.5
4
[]
no_license
#DROP DATABASE IF EXISTS SIBD_dental_clinic; #CREATE database SIBD_dental_clinic; #use SIBD_dental_clinic; DROP TABLE IF EXISTS procedure_charting; DROP TABLE IF EXISTS teeth; DROP TABLE IF EXISTS procedure_radiology; DROP TABLE IF EXISTS procedure_in_consultation; DROP TABLE IF EXISTS procedure_clinic; DROP TAB...
true
e80fd03c4551dde625000a1cce4ed584aaffcd7c
SQL
juananmonte/MySQL
/capitulo 7 subqueries.sql
UTF-8
4,687
4.53125
5
[]
no_license
/*-------------SUBQUERIES-------------*/ /* 4 WAYS TO MAKE A SUBQUERY 1. In a WHERE clause as a *search* condition 2. In a HAVING clause as a *search* condition 3. In the FROM clause as a *table* specification 4. In the SELECT clause as a *column* specification*/ SELECT invoice_number, invoice_date, invoice_total ...
true
dbb8c0c99d42293e7390471462dbb8bcb0f2ceef
SQL
MrridulaS/Assignment-
/queries.SQL
UTF-8
1,836
3.671875
4
[]
no_license
--Minimum price approx local currency SELECT min(price_aprox_local_currency) as Price_Local_Currency FROM `properati-data-public.properties_ar.properties_rent_201501` LIMIT 100 --Maximum price approx local currency SELECT max(price_aprox_local_currency) as Price_Local_Currency FROM `properati-data-public.properties_ar...
true
ef5462e709b5f7729050f4863470d1a1475b53ce
SQL
souravrrp/AKG-SCIL-SQL
/DBA/Table Key Details.sql
UTF-8
4,767
3.140625
3
[]
no_license
select col.owner as schema_name, col.table_name, col.column_name, col.data_type, decode(char_length, 0, data_type, data_type || '(' || char_length || ')') as data_type_ext, col.data_length, col.data_precision, col.data_scale, co...
true
6ed5009c45cb4dab556f76de2ed11bb2924d1086
SQL
AhsanRiyad/adbms_nodejs_new
/sql files/node_project(1).sql
UTF-8
22,105
3.125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 10, 2019 at 01:04 AM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
6fe8c55a7d0ffc3c9cc3bc44973c001f965d0f52
SQL
wxyBUPT/leetCode.py
/sql/deleteDuplicateEmails.sql
UTF-8
965
4.0625
4
[]
no_license
/** 196. Delete Duplicate Emails Write a SQL query to delete all duplicate email entries in a table named Person, keeping only unique emails based on its smallest Id. +----+------------------+ | Id | Email | +----+------------------+ | 1 | john@example.com | | 2 | bob@example.com | | 3 | john@example.c...
true
1485b95475f704cdc96c0420d14628dedff7d5cc
SQL
giordanobuffon/KnowledgeSharingSystem
/kssDB.sql
UTF-8
4,142
4.09375
4
[]
no_license
-- Creation of Database CREATE DATABASE knowledge_sharing_system; USE knowledge_sharing_system; -- Creation of tables CREATE TABLE discipline ( id INTEGER AUTO_INCREMENT, description VARCHAR(40) NOT NULL, semester VARCHAR(6), PRIMARY KEY (id)); CREATE TABLE student ( id INTEGER AUTO_INCREMENT, ...
true
f6ad4f967bdfd1ca922fa3acecfcdf4623f3b7f2
SQL
LittleGeorgeWatchingStar/Rialto2020
/data_migrations/completed/mantis2824.sql
UTF-8
212
3.109375
3
[]
no_license
alter table Suppliers add column parentID bigint unsigned null default null; alter table Suppliers add constraint Suppliers_fk_parentID foreign key (parentID) references Suppliers (SupplierID) on delete restrict;
true
dd404f125446e909962a409f58e27dc97f2ac431
SQL
liweijian-LWJ/SpringBoot-crud-lwj
/springboot-crud/src/main/resources/crud.sql
UTF-8
2,026,174
2.796875
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50519 Source Host : localhost:3306 Source Database : crud Target Server Type : MYSQL Target Server Version : 50519 File Encoding : 65001 Date: 2018-03-23 17:13:36 */ drop database if exists crud; /*==...
true
8bed5a32c35545371883fc617183a583dc54f6f3
SQL
leopeli/bikraft
/bikraft.sql
UTF-8
13,975
3.25
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Fri May 17 21:13:41 2019 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='ON...
true
86778a412fc13a8cb3a97f062ddd0181fbba1d2b
SQL
NoahGoldstein13/ETL_Project
/table_schema.sql
UTF-8
1,201
3.921875
4
[]
no_license
-- creating tablse schema to load data from CSV CREATE TABLE streaming_data ( id Serial PRIMARY KEY, title VARCHAR, age VARCHAR, imdb FLOAT, rotten_tomatoes VARCHAR, director VARCHAR, genres VARCHAR, country VARCHAR, language VARCHAR, runtime FLOAT , on_platforms_besides_netflix VARCHAR, title_for_join VARCHAR ); CREA...
true
db69267fe1cc9dfa0a3a41b6963e9073760cacb5
SQL
yennanliu/CS_basics
/leetcode_SQL/find-cumulative-salary-of-an-employee.sql
UTF-8
5,176
4.5
4
[]
no_license
-- Leetcode 579. Find Cumulative Salary of an Employee -- drop table employees2 -- Create table employees2(Id int,[Month] int,salary int); -- insert into employees2 values(1,1,20); -- insert into employees2 values(2,1,20); -- insert into employees2 values(1,2,30); -- insert into employees2 values(2,2,30); -- insert ...
true