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
6f7fc74538e4db473b57b9c45d024c52a29772f8
SQL
GabrielIwazaki/HROADS---Odirlei-Gabriel
/HROADS_MANIPULACAO_02.sql
ISO-8859-1
807
2.546875
3
[]
no_license
INSERT INTO CLASSES VALUES ('BRBARO'), ('CRUZADO'), ('CAADORA DE DEMNIOS'), ('MONGE'), ('NECROMANTE'), ('FEITICEIRO'), ('ARCANISTA') INSERT INTO TIPO_HABILIDADE VALUES ('ATAQUE'), ('DEFESA'), ('CURA'), ('MAGIA') INSERT INTO HABILIDADE (NOME, ID_TIPO_HABIL) VALUES ('LANA MORT...
true
26ad1451566fd0988a187859fe1650bbe79fdbc8
SQL
lcls-psana/psddldata
/data/partition.ddl
UTF-8
2,432
2.71875
3
[]
no_license
@include "psddldata/xtc.ddl" [[headers("pdsdata/xtc/Src.hh")]]; @package Partition { //------------------ Source ------------------ @type Source [[value_type]] [[pack(4)]] { Pds.Src _src -> src; uint32_t _group -> group; /* Constructor which takes values for every attribute */ @init() [[auto]]; } //...
true
48f4b647cafea67264a534a499574cd0c197487d
SQL
bigSiebs/cs148
/assignment3.0/sql/q08.sql
UTF-8
343
3.625
4
[]
no_license
SELECT fldFirstName, fldLastName, COUNT(fnkStudentId) AS total, fldSalary, fldSalary / COUNT(fnkStudentId) AS IBB FROM tblTeachers JOIN tblSections ON fnkTeacherNetId = pmkNetId JOIN tblEnrolls ON tblSections.fnkCourseId = tblEnrolls.fnkCourseId AND fldCRN = fnkSectionId WHERE fldType <> 'LAB' GROUP BY fldFirstName, fl...
true
f9eeb6938c61e89cfd92cba93c22ba6935d329f9
SQL
France-ioi/AlgoreaBackend
/db/migrations/1907251939_alter_table_sessions_to_use_long_tokens.sql
UTF-8
400
2.78125
3
[ "MIT" ]
permissive
-- +migrate Up ALTER TABLE `sessions` DROP PRIMARY KEY; ALTER TABLE `sessions` MODIFY COLUMN `sAccessToken` VARBINARY(2000); ALTER TABLE `sessions` ADD INDEX `sAccessTokenPrefix` (`sAccessToken`(767)); -- +migrate Down ALTER TABLE `sessions` DROP INDEX `sAccessTokenPrefix`; ALTER TABLE `sessions` MODIFY COLUMN `sAcces...
true
40caee7c417c51b78de03061c5c86ba85a20a53b
SQL
Loga-Thrim/computer-store-system
/com_store-db.sql
UTF-8
4,931
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Mar 20, 2021 at 11:42 PM -- Server version: 8.0.18 -- PHP Version: 7.4.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@...
true
c94c6636bc5e47d3f4024b9212d221f6d947d678
SQL
SophM/One-Day
/db/schema.sql
UTF-8
708
3.796875
4
[]
no_license
-- Drops the oneDay_db if it exists currently DROP DATABASE IF EXISTS oneDay_db; -- Creates the "oneDay_db" database CREATE DATABASE oneDay_db; -- specify that all of the following code will affect oneDay_db USE oneDay_db; -- create a table called "bucketLists" within oneDay_db CREATE TABLE bucketLists ( -- create...
true
506b233b6a8a1e58b1fba8bc30947f7cb27bb12d
SQL
Lucas128/libertya
/sqlj/postgresql/createDDL.sql
UTF-8
8,410
3.515625
4
[]
no_license
------------------ -- Created by: Andre Whittick Nasser, OCP -- Email: andre_nasser@yahoo.com.br -- Website: www.geocities.com/andre_nasser -- Date: Oct 24, 2001 -- Description: Reverse Engineer your existing schema objects ------------------ set termout off set feedback off set serveroutput on size 1000000 spool tab...
true
14fe965ff4fb8b3f47e0abab930dff28ca88242b
SQL
pavanastechie/UserManagement-spring-basic-hibernate
/UserManagement/sql/MySQL_script.sql
UTF-8
371
2.65625
3
[]
no_license
create database usersdb; CREATE TABLE `users` ( `user_id` int(11) NOT NULL AUTO_INCREMENT, `username` varchar(45) NOT NULL, `password` varchar(45) NOT NULL, `email` varchar(45) NOT NULL, PRIMARY KEY (`user_id`) ) ENGINE=InnoDB AUTO_INCREMENT=16 DEFAULT CHARSET=latin1; INSERT INTO users ( username, password...
true
55835dd88bc0144efcc5e403715ef1b3e80cb24b
SQL
macaleks/oracledb
/SQL/pivot_unpivot.sql
UTF-8
2,172
4.03125
4
[]
no_license
drop table plch_sales / create table plch_sales ( region varchar2(4) , month date , private number , corporate number , government number ) / insert into plch_sales values ( 'AMER', date '2015-01-01', 15000, 45500, 22250) / insert into plch_sales values ( 'ASOC', date '2015-01-01', 8500...
true
aba8d0466fc2b792b911f8d6afb339552edb939d
SQL
Alexandresl/trabalho-bd-oracle
/create.sql
UTF-8
1,033
3.640625
4
[]
no_license
CREATE TABLE cliente (id_cliente NUMBER CONSTRAINT PK_CLIENTE PRIMARY KEY, nome VARCHAR2(20), endereco VARCHAR2(20), telefone VARCHAR2(20)); CREATE SEQUENCE cliente_sequence START WITH 1; CREATE TABLE produto (id_produto NUMBER CONSTRAINT PK_PRODUTO PRIMARY KEY, nome VARCHAR2(20), preco NUMBER, quantidade_estoque NUMBE...
true
26a268a0f251e1fe66bf84de13eb2cfe956389ed
SQL
k2003/HospitalOSV3
/Report/app/config/rp_18file_clinic08/18file_clinic08_epi.sql
UTF-8
2,200
3.5
4
[]
no_license
SELECT b_site.b_visit_office_id AS PCUCODE , case when (t_health_family.patient_pid IS NULL or t_health_family.patient_pid = '') then t_patient.patient_pid else t_health_family.patient_pid end as CID ,t_visit.visit_vn AS SEQ , CASE WHEN length(t_v...
true
8c620c9380f6b70f5c31ae9aabe78adecd59c80d
SQL
pelisker/dh
/OLAP/Stock_Cube_AS_V2/OLAP_DATA/bi/Views/OstatqClients_fact.sql
UTF-8
192
2.671875
3
[]
no_license
 CREATE VIEW [bi].[OstatqClients_fact] AS SELECT date, productID, clientID, reservClient, reservClientAmount FROM dbo.OstatqClients_fact WHERE (row_status = 'I')
true
489913c159e4aa11ad543be84871c41924bdf96c
SQL
Devoyno/employee_tracker
/db/schema.sql
UTF-8
1,191
4.21875
4
[]
no_license
DROP database if exists employee_tracker; CREATE database employee_tracker; USE employee_tracker; CREATE table department ( id INT AUTO_INCREMENT NOT NULL PRIMARY KEY, dep_name VARCHAR(30) NOT NULL UNIQUE ); CREATE table role ( id INT auto_increment NOT NULL, title VARCHAR(30) NOT NULL UNIQUE, salary DECIMAL NOT NUL...
true
7840e82b39aa18ef0f06d36077f8d4293820c25a
SQL
tiffmaelite/hotel-precheck
/src/Database/postgresql/1-dbCrea-ChargedServicesMain-pgSQL.sql
UTF-8
1,697
3.09375
3
[]
no_license
CREATE TABLE CHARGEDSERVICES ( SERVICE_ID INTEGER NOT NULL, BILL_ID INTEGER NOT NULL, RECEPTIONIST_ID INTEGER NOT NULL, INVOICINGDATE DATE NOT NULL, QUANTITY SMALLINT NOT NULL, CHARGEDUNITPRICE DECIMAL, VAT_PERCENTAGE DECIMAL, ISPRINTED BOOLEAN DEFAULT '0' NOT NULL, ISPAYED BOOLEAN DEFAULT '0' NOT NUL...
true
04d7509f228d638ca5c1e36e8ee875fc762b4719
SQL
Kbuchanan032/bamazon
/bamazonDB.sql
UTF-8
1,968
2.96875
3
[]
no_license
DROP DATABASE IF EXISTS bamazon_db; CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products ( id INT NOT NULL AUTO_INCREMENT, item_id INT NOT NULL, product_name VARCHAR (50) NOT NULL, department_name VARCHAR (50) NOT NULL, price INT NOT NULL, stock_quantity INT NOT NULL, ...
true
0f66ee6cf18034dd7ee26a89d35f666e4578fb84
SQL
CodecoolBP20161/from-python-to-java-microservices-codelebuj
/src/main/resources/sql/init_db.sql
UTF-8
344
3.3125
3
[]
no_license
drop table if exists paid_products; drop table if exists client; create table client ( client_id SERIAL PRIMARY KEY , client_identifier varchar UNIQUE , client_name VARCHAR ); create table paid_products ( product_id int, quantity int, purchase_time date, client_id INTEGER REFERENCES client(client_id) on delete casca...
true
3be035bd5eb850e2e151fe8790350bdc0f995ed3
SQL
sintsou/beer_reviews
/scripts/avg_rating_beer_styles.sql
UTF-8
981
4.3125
4
[]
no_license
/* Tableau visualization: https://public.tableau.com/views/Averageratingofmostpopularbeerstyles/Dashboard1?:language=en&:display_count=y&:origin=viz_share_link */ WITH times2 AS (SELECT time_id, YEAR, MONTH FROM times) SELECT DISTINCT beer_style as "Beer Style", time_id...
true
1115d497f5d318a1f236c8bcdb347286015ad063
SQL
goryszewskig/presentation-scripts
/MiningAWRv1/awr_top_fms_demo.sql
UTF-8
1,211
2.796875
3
[]
no_license
set pages 50000 lines 238 tab off serverout on echo off col sql_text for a100 col force_matching_signature for 999999999999999999999999 col exact_matching_signature for 999999999999999999999999 col fms for 999999999999999999999999 col sql_length for 9999999999 set echo on alter session set container = sample; -- Let's...
true
a54af736d29cef91a2d58bc549557dbb0f60092b
SQL
TsvetomirAleksandrov/Software-University
/Databases Basics - MS SQL Server - May 2020/Exam-22.10.2017/Exam-22.10.2017/20.CategoriesRevision.sql
UTF-8
1,057
4.40625
4
[]
no_license
WITH cte_CategoryStatus AS ( SELECT c.Name AS [Category Name], COUNT(s.Label) AS [Reports Number], SUM(CASE WHEN s.Label = 'in progress' THEN 1 ELSE 0 END) AS [CountInProgress], SUM(CASE ...
true
a6a9cfdf29983db8abc10a8b9782a40fa5211033
SQL
DianaGumar/DataBaseComparable
/qbq.EPCIS.Repository/Callback/Functions/svf_Check_Schedule_Part.sql
UTF-8
1,243
2.640625
3
[]
no_license
----------------------------------------------------------------------------------------- -- Projekt: EPCIS -- Firma: QUIBIQ -- (c) 2013 QUIBIQ Schweiz AG ----------------------------------------------------------------------------------------- -- -- -- -- Datum | Version | Autor | Kommentar ...
true
832f7c68088d7ee8ee8b714b9516698d2e7d15ef
SQL
bayjosh/Fun2Do
/db/schema.sql
UTF-8
1,826
3.796875
4
[]
no_license
DROP DATABASE IF EXISTS fun_db; CREATE DATABASE fun_db; USE fun_db; CREATE TABLE users ( id INT AUTO_INCREMENT NOT NULL, username VARCHAR(50) NOT NULL, email VARCHAR(50) NOT NULL, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NOT NULL, user_password VARCHAR(50) NOT NULL, PRIMARY K...
true
e73a9d73c96a9ed1baf9858f88fb0c6772cc818c
SQL
AKASH-2019/Database-
/mysql_BASIC/19_db_join.sql
UTF-8
1,025
4.34375
4
[ "MIT" ]
permissive
##CREATE DATABASE company; USE company; CREATE TABLE employees ( id INT AUTO_INCREMENT PRIMARY KEY, first_name VARCHAR(100), last_name VARCHAR(100), email VARCHAR(100) ); CREATE TABLE salaries( id INT AUTO_INCREMENT PRIMARY KEY, salary DECIMAL(15,2), salary_date DAT...
true
3f7febe545f1686f125edc01856ef491ac45d9f9
SQL
MEspuche/proxibanqueV4
/BDD/proxibanqueStructureEtData.sql
UTF-8
7,431
3.15625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Ven 26 Mai 2017 à 12:56 -- Version du serveur : 5.7.14 -- Version de PHP : 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
true
dba419538e9e95de05ae2de02fc1b5370ea87fe3
SQL
GodFavorHGH/haugv-java-study
/docker-deployment/src/main/resources/db/db.sql
UTF-8
396
3.046875
3
[]
no_license
drop database if exists dockerdb; create database dockerdb; use dockerdb; drop table if exists user; create table user( id int not null auto_increment, login_name varchar(64) not null, password varchar(256) not null, email varchar(64) not null, phone varchar(16) not null, primary key pk_id(id), ...
true
84db0da9c3ae9b3cab973e08b10bdd8557c4c132
SQL
guojianbin/T4SQL
/T4SQLTemplateLibrary/Databases/SqlServer/Schema Objects/Schemas/T4SQL/Tables/T4SQL.TEMPLATE_CLASS.table.sql
UTF-8
1,058
2.96875
3
[ "Apache-2.0" ]
permissive
CREATE TABLE T4SQL.TEMPLATE_CLASS ( FULL_NAME VARCHAR(128) NOT NULL, MODULE NVARCHAR(128) NOT NULL, ASSEMBLY_STRING VARCHAR(256) NOT NULL, CREATED_TIME DATETIME NOT NULL, START_TIME DATETIME NOT NULL, IS_ACTIVE BIT NOT NULL, CLASS_DESCRIPTION NVARCHAR(1024), CONSTRAINT PK_TEMPLATE_C...
true
fda092a8bf1b5843432ea4f73c8e1cf62b92225a
SQL
jojobear2020/Hewlett-Hackard-Analysis
/Queries/Employee_Database_Challenge.sql
UTF-8
1,887
4.59375
5
[]
no_license
-- CHALLENGE PART 1 -- REFACTORING: -- Create a new table with the specific criterias SELECT e.emp_no, e.first_name, e.last_name, ttl.title, ttl.from_date, ttl.to_date INTO retirement_titles FROM employees as e INNER JOIN titles as ttl ON (e.emp_no = ttl.emp_no) WHERE (e.birth_date BETWEEN '1952-01-01' AND '19...
true
3cb5e4f20980912e03c50be3291b48c921c240ab
SQL
javaclinic/hsqldb-runner
/src/main/resources/database/schema.sql
UTF-8
513
2.640625
3
[ "Apache-2.0" ]
permissive
-- -- schema.sql -- -- THIS IS A COMMENT. -- -- DEFINE YOUR SCHEMA (DDLs) HERE -- -- e.g. -- -- DROP TABLE users IF EXISTS; -- CREATE TABLE users ( -- id BIGINT GENERATED BY DEFAULT AS IDENTITY (START WITH 1, INCREMENT BY 1) NOT NULL PRIMARY KEY, -- email VARCHAR(255) NOT NULL UNIQUE, -- firstname VARCHAR(2...
true
88bba69136559181f7e581a998fd287e6908758c
SQL
jdcollahuazo1/FUNCTIONS
/dep_jobs.sql
UTF-8
337
3.171875
3
[]
no_license
CREATE OR REPLACE FUNCTION QUERY_DEPT (d_id IN employees.department_id%TYPE) RETURN NUMBER IS v_contador NUMBER:=0; BEGIN select COUNT(DISTINCT j.job_id) INTO v_contador from departments d,jobs j,employees e where e.department_id=d.department_id and j.job_id=e.job_id and d.department_id=d_id; RETURN v_contador; EN...
true
1e992d537040b971eba1aa9b38cf4c22d33aa951
SQL
badcab/EMAx
/configure/EMAx_Create_Table.sql
UTF-8
5,722
3.28125
3
[ "BSD-3-Clause" ]
permissive
CREATE TABLE IF NOT EXISTS `EMAx_State` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(25) NOT NULL, PRIMARY KEY (`ID`), UNIQUE (`name`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ; CREATE TABLE IF NOT EXISTS `EMAx_City` ( `ID` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(50) NOT ...
true
b4a48bc196ba89602677bc8a60678f9c0f71a698
SQL
lle22/ViNET_Soft
/DB_update/aaaaaaa.sql
UTF-8
1,057
3.9375
4
[]
no_license
SELECT COUNT(*) FROM DM_VATTU SELECT * FROM PS_CHITIET WHERE VAtTUID not in (SELECT ID FROM DM_VATTU) SELECT * FROM DM_VATTU WHERE id = ' ' SELECT * FROM PS_DONHANGCHITIET WHERE VAtTUID is null select * from sysobjects where xtype = 'F' select so.name 'FK_PS_ChiTiet_DM_VatTu', OBJECT_NAME(parent_obj) 'table',...
true
3ce673ace2163579058c88cb51dad30e4fef655d
SQL
jjohnson2/SEPTA-iOS
/SeptaSchedule/SeptaSchedule/Commands/Find Stop by Stop Name/sql/railFindStopByStopName.sql
UTF-8
231
2.90625
3
[]
no_license
SELECT S.stop_id stopId, S.stop_name stopName, cast(S.stop_lat AS DECIMAL) stopLatitude, cast(S.stop_lon AS DECIMAL) stopLongitude FROM stops_rail S where S.stop_name Like '%:stop_name%'
true
fd50b98b2c6c285311496e96412203423a9f8a0b
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day26/select1719.sql
UTF-8
266
2.921875
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['4216','3100_3','5214','4212','2091','4202','5100_5','4091','6039','4092'])
true
c0f59441bf0a5fac6365415a4eef7bc92bcefd11
SQL
drewilliams22/f1
/python_bash_trials/csv_dump/Query_test.sql
UTF-8
3,744
3.703125
4
[]
no_license
use f1test; select * from qualifying; with base as ( select re.race_id + 1 as upcoming_race, ra.year as prior_race_year, re.race_id as prior_race , concat(re.race_id, '-', re.driver_id) as comp_key , re.driver_id, re.constructor_id , re.points as prior_points_driver , re.position as prior_position_driver ...
true
60f9320461685fd63b6ba5a21058324406b6b24c
SQL
bimsaradesilva1/PAF_GadgetBadget
/GadgetBadget/DatabaseFiles/promotions.sql
UTF-8
1,453
3.015625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 25, 2021 at 10:51 AM -- 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
24d6b893899b4d90e749a73aac5ba1e1a48237f6
SQL
dhumphrey21/RestaurantReservationForm
/127_0_0_1 (1).sql
UTF-8
1,614
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 30, 2020 at 05:35 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
f69d2330ed8c0b8480db2b91b7d6faf09e023680
SQL
Akhileshkumarkc/DataBaseRelatedProject
/Empolyee data with query/five_new_employees.sql
UTF-8
2,545
2.921875
3
[]
no_license
/**New Employeedata**/ INSERT INTO EMPLOYEE (FNAME, MINIT, LNAME, SSN, BDATE, ADDRESS, SEX, SALARY, SUPER_SSN, DNO) VALUES ('Akhilesh','K','Kumar','666666619',to_date('1977-11-10', 'RRRR-MM-DD'),'450 Stone, Houston, TX','M',55000.0,888665555,1); INSERT INTO EMPLOYEE (FNAME, MINIT, LNAME, SSN, BDATE, ADDRESS, SEX, SALAR...
true
acdaa06128bf37f124dfd91773d52e4083524474
SQL
somya99/PostgreSQL-Assignment
/DatabaseAssignment.sql
UTF-8
14,077
3.890625
4
[]
no_license
-- Database: departmental_store -- DROP DATABASE departmental_store; CREATE DATABASE departmental_store WITH OWNER = postgres ENCODING = 'UTF8' LC_COLLATE = 'English_United States.1252' LC_CTYPE = 'English_United States.1252' TABLESPACE = pg_default CONNECTION LIMIT = -1; -- Creating st...
true
325dd78d8a90f39ad82ca2022f76fdaa9374834d
SQL
ToborTheGreat/Repository01
/stg.sam_evdo_bts_fa_sector_band_class_index_params.sql
UTF-8
1,656
2.96875
3
[]
no_license
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; SET search_path = stg, pg_catalog; ALTER TABLE ONLY stg.sam_evdo_bts_fa_sector_band_...
true
a0e14f3a458f55f985c6007f0c055f0f3016c770
SQL
zjmacm/shop
/shop-web/src/main/schema/shop_offline_order.sql
UTF-8
733
3.21875
3
[]
no_license
-- ---------------------------- -- 线下交易订单表 -- ---------------------------- DROP TABLE IF EXISTS `shop_offline_order`; CREATE TABLE `shop_offline_order`( `id` VARCHAR(32) NOT NULL , `seller_mobile` VARCHAR(30) NOT NULL , `seller_phone` VARCHAR(30), `seller_email` VARCHAR(50), `seller_message` LONGTEXT, `user_mobile` ...
true
bfa01274d334f921f93b6c74af1d1099a1e54adf
SQL
RickyMendez/Eventers
/repositories/Events_database.sql
UTF-8
462
3.265625
3
[ "MIT" ]
permissive
CREATE DATABASE Events; CREATE TABLE Event( Id INT PRIMARY KEY AUTO_INCREMENT NOT NULL, Email VARCHAR(200) NOT NULL REFERENCES User(Email), Title VARCHAR(100) NOT NULL, Description VARCHAR(300) NOT NULL, StartTime TIME NOT NULL, EventDate VARCHAR(10) NOT NULL ); CREATE TABLE User( Id INT PRIMARY KEY AUT...
true
8eac06160c5bc5c17ea9bf29d4482e005e8eca4e
SQL
tmanoop/gamesense
/PlaysEJB/scripts/user_study_results.sql
UTF-8
10,857
3.0625
3
[]
no_license
-- below query to get max signal of each square having NJIT signal from mcsense data select square_id, max(SIGNALLEVEL) as avg_signal_level from APP.MCSENSE_READINGS where SSID = 'njit' and square_id >= 0 and square_id in (select a.sqaure_id from APP.AREA a where a.rutgers_ind = 'N') and created_time b...
true
41835ba76186145aeb46e7e956710a61c04748bc
SQL
bit-it-krayina/bit
/datas/sql/role.sql
UTF-8
424
2.84375
3
[ "BSD-3-Clause" ]
permissive
– -- Table structure for table `flance_role` – CREATE TABLE `flance_role` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `role` varchar(255) CHARACTER SET utf8 NOT NULL, PRIMARY KEY (`id`), UNIQUE KEY `role` (`role`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci AUTO_INCREMENT=1 ; ALTER TABLE `fl...
true
93ab2cd6a1455c28fc42aaa7f469c0b23591d714
SQL
ViElectronicEntertainment/PAMI
/Doc/PAMI_mysql_create.sql
UTF-8
1,405
3.75
4
[ "MIT" ]
permissive
CREATE TABLE `Usuario` ( `ID` VARCHAR(255) NOT NULL, `Nombre` varchar NOT NULL, `Email` varchar NOT NULL, `Celular` varchar(10) NOT NULL, `Rango` varchar NOT NULL, `Pts Acumulados` VARCHAR(255) NOT NULL, PRIMARY KEY (`ID`) ); CREATE TABLE `Proyecto` ( `IDProyecto` VARCHAR(255) NOT NULL AUTO_INCREMENT, `Nombre...
true
061d6442e649927c169a041f2ed9cc9e6b3391be
SQL
MLClark/Bookmarks
/REPORTING/REVIEW PAYROLL/research.sql
UTF-8
722
2.609375
3
[]
no_license
select * from payroll.staged_transaction where personid = '1632' and paycode = 'VB1'; select * from payroll.cognos_proposedpayrollregisterdeductions where personid = '4666' and etv_id = 'V21' and payscheduleperiodid in (select * from payroll.staged_transaction where personid = '4666' and paycode = 'V21'); select * fr...
true
759b9e04f8dcf7924bb479814e9ca8893c0949ba
SQL
jonamuen/sql-reduce
/test/sqlsmith/sqlite/4683.sql
UTF-8
2,513
3.59375
4
[ "MIT" ]
permissive
select subq_0.c0 as c0, case when cast(coalesce(subq_0.c4, subq_0.c6) as INT) is not NULL then cast(coalesce(subq_0.c3, subq_0.c3) as INT) else cast(coalesce(subq_0.c3, subq_0.c3) as INT) end as c1, 53 as c2, subq_0.c2 as c3, subq_0.c5 as c4, subq_0.c8 as c5, subq_0.c9 as ...
true
e871ab83220751248ea1ceac2557fbe7a712fb6b
SQL
Velocity-Engineering/airbyte
/airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/bigquery/test_primary_key_streams/final/airbyte_tables/test_normalization/conflict_stream_array.sql
UTF-8
1,655
3.1875
3
[ "MIT", "Elastic-2.0" ]
permissive
create or replace table `dataline-integration-testing`.test_normalization.`conflict_stream_array` OPTIONS() as ( with __dbt__CTE__conflict_stream_array_ab1 as ( -- SQL model to parse JSON blob stored in a single column and extract into separated field columns as described by the JSON Schema select ...
true
d7d441034e1f7fa9beb231a0f69a127fd2b0a207
SQL
newpiero/blogPHP
/SQL/blog_db.sql
UTF-8
5,421
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Сен 27 2020 г., 10:34 -- Версия сервера: 10.4.13-MariaDB -- Версия PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
6d852e1cd2928dda79f457b88e1f6a81c2be6098
SQL
sahildjain/Equivalences-Tutor
/Equivalences Tutor/src/database/init.sql
UTF-8
362
3.34375
3
[]
no_license
DROP TABLE IF EXISTS accounts CASCADE; DROP TABLE IF EXISTS equivalence CASCADE; CREATE TABLE accounts ( id SERIAL PRIMARY KEY, username VARCHAR(12) NOT NULL, password VARCHAR(100) NOT NULL, ); CREATE TABLE equivalence ( id SERIAL PRIMARY KEY, account INTEGER REFERENCES accounts (id), lefteq VARCHAR(300) NOT...
true
c5de4e60266dbb265803e6597d41b51e6adae467
SQL
17-193VaniaC/ETS_PBKK_2020
/petrichor.sql
UTF-8
3,145
3
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 06, 2020 at 12:51 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
ad67791269a5b633166b35e459d01628575b7715
SQL
Innos/Soft-Uni-Homework
/DB Fundamentals/01HomeworkDataDefinitionsAndDataTypes/17SoftuniInsert.sql
UTF-8
1,205
2.9375
3
[]
no_license
USE Softuni; INSERT INTO Towns(Name) VALUES ('Sofia'), ('Plovdiv'), ('Varna'), ('Burgas') INSERT INTO Softuni.dbo.Departments(Name) VALUES ('Engineering'), ('Sales'), ('Marketing'), ('Software Development'), ('Quality Assurance') INSERT INTO Addresses(AddressText, TownId) VALUES ('Softuni',1), ('Peikata v parka',4) ...
true
786b6d96b11e803d8c067e97f063aa4d009dd6a2
SQL
shuklabhawna/SamplePB
/target/classes/data.sql
UTF-8
315
2.96875
3
[]
no_license
CREATE TABLE IF NOT EXISTS shedlock ( name VARCHAR(64), lock_until TIMESTAMP(3) NULL, locked_at TIMESTAMP(3) NULL, locked_by VARCHAR(255), PRIMARY KEY (name) ); CREATE TABLE IF NOT EXISTS marketData ( source VARCHAR(20) NOT NULL, bid NUMBER NOT NULL, ask NUMBER NOT NULL, PRIMARY KEY (source) );
true
c40c60f9a179fd8e42ddb2fefe22d7b0bdb87f6e
SQL
LightNight0/ProjectAir-Course_Work
/Server/Data base/ProjectAir_DBFill.sql
WINDOWS-1251
1,266
3.171875
3
[]
no_license
USE project_air; INSERT INTO aircraft (id, name, type, seats_amount, business_seats_amount) VALUES (1, 'Boeing 777', '', 400, 50); INSERT INTO crew (id, captain, quantity) VALUES (1, '', 3); INSERT INTO runway (id, name, status) VALUES (1, ' 1', ''), (2, ' 2', ''); INSERT INTO route (id, departure_po...
true
fc324a6f59d2b90595f7775eba4e8ab2e28d027a
SQL
jospero/indigoProjet
/base de donnee/indigo (2).sql
UTF-8
7,333
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Client : 127.0.0.1 -- Généré le : Lun 19 Février 2018 à 14:55 -- Version du serveur : 5.7.14 -- Version de PHP : 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER...
true
b2a677bb41139c43d1e0fbebbca61c322b9414e7
SQL
nyilasviktor0625/InfRendszerekBeadando
/dbfile.sql
UTF-8
5,719
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Gép: 127.0.0.1 -- Létrehozás ideje: 2021. Ápr 26. 12:11 -- Kiszolgáló verziója: 10.4.18-MariaDB -- PHP verzió: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT...
true
3216196b13f468a09cd2a207068676e4d7734167
SQL
manuelvalverde/BD1819
/starschema.sql
UTF-8
2,658
4.3125
4
[]
no_license
drop table if exists d_evento; drop table if exists d_meio; drop table if exists d_tempo; drop table if exists f_eventoemergencia; create table d_evento (id_evento int not null AUTO_INCREMENT, num_telefone numeric(15,0) not null, instante_chamada timestamp not null, constraint pk_d_evento primary key(id_evento...
true
5bc45ea13ee89424443ac77d4eaf856e721e8050
SQL
1newstar/KKDiveIntoMysqlBook
/ch21/02--optInnoDbMemo.sql
UTF-8
588
2.609375
3
[]
no_license
#### #优化InnoDB存储的内存 ### #### #配置文件修改 InnoDB 缓存池的大小 ### innodb_buffer_pool_size=8M #查看旧子列表的比例 #——》默认37% SHOW GLOBAL VARIABLES LIKE '%innodb_old_blocks_pct%'; #配置文件修改 InnoDB 的旧子表超时时间 innodb_old_blocks_time=1000 #配置文件修改 InnoDB 缓存池的实例数量 innodb_buffer_pool_instances=8 #查看双写状态 #——》默认是开启的 SHOW GLOBAL VARIABLES LIKE '%dou...
true
8870ccdaf9864bb4b6ecca7ea46b8c822b33cbeb
SQL
dhxoghks95/sql_start
/입문/70_78.sql
UHC
1,847
3.796875
4
[]
no_license
SELECT ename, sal, job, deptno FROM emp WHERE deptno in (10,20) MINUS SELECT ename, sal, job, deptno FROM emp WHERE deptno in (20,30); SELECT ename, sal FROM emp WHERE sal > (SELECT sal FROM emp WHERE ename = 'JONES'); SELECT ename, sal FROM emp WH...
true
80502ae1cad7162cc170f9ad5c20034c1c6ef74f
SQL
jvondie/mmadata
/tSQLscripts/INITIALIZATIONQUERY.sql
UTF-8
344
2.546875
3
[]
no_license
CREATE TABLE GYMS (gymID CHAR(3) PRIMARY KEY, GYM_NAME NVARCHAR(40), GYM CITY NVARCHAR(30), GYM STATE NVARCHAR(2), GYM OWNER CREATE TABLE COACHES (ID INT PRIMARY KEY, CREATE TABLE EVENTS (ID INT PRIMARY KEY, NAME NVARCHAR(1000) IS_PPV NVARCHAR(1) FIGHT_ID ); CREATE TABLE VENUES (ID INT PRIMARY KEY, NAME, CITY, S...
true
e0e232f5f72ef30f5436ce8842b7eda893314081
SQL
jmccordova/VERSION_AB5L_GROUP1
/db/build.sql
UTF-8
826
3.109375
3
[]
no_license
drop database if exists garciadb; CREATE database garciadb; use garciadb; create table __users( username VARCHAR(16) primary key, password VARCHAR(40) NOT NULL, email VARCHAR(32) NOT NULL, firstName VARCHAR(40) NOT NULL, lastName VARCHAR(30) NOT NULL, address VARCHAR(100) NOT NULL, contact VARCHAR(30...
true
72808c44d43e4ecc6c94fb31d73a507b1b21cf34
SQL
aramarok/uvt-orion
/branches/b1/uvt-orion/orion-project/etc/SQL/createTable_useri_lista8.sql
UTF-8
270
2.609375
3
[]
no_license
CREATE TABLE `useri_lista8` ( `user_id` bigint(20) NOT NULL, `id_lista8` bigint(20) NOT NULL, PRIMARY KEY (`user_id`,`id_lista8`), KEY `FK_user_id` (`user_id`), KEY `FK_id_lista8` (`id_lista8`) )ENGINE=INNODB CHARSET=latin1;
true
d658df090ceb20715a2c25ec4fc64b59bcf3c917
SQL
TushGoel/Database_Management_Systems
/Assignment-5/ade_start.sql
UTF-8
6,546
4.34375
4
[]
no_license
-- HW5: Identifying Adverse Drug Events (ADEs) with Stored Programs -- Prof. Rachlin -- CS 3200 / CS5200: Databases -- We've already setup the ade database by running ade_setup.sql -- First, make ade the active database. Note, this database is actually based on -- the emr_sp schema used in the lab, but it included s...
true
0301ba0e7b4962880c3d19d2ac041b45f66c26d2
SQL
henriquegaia/T-SQL-Gizmos
/T-SQL-Gizmos/Gizmos/stuff-to-try.sql
UTF-8
357
2.71875
3
[]
no_license
/* When is the semocolon required There are two situations in which you must use the semicolon. The first situation is where you use a Common Table Expression (CTE), and the CTE is not the first statement in the batch. The second is where you issue a Service Broker statement and the Service Broker statement is not...
true
66c672f3a6574c9bd8d16c83fea20b039e2155ee
SQL
suganthvijay/Stage3
/Spring Data JPA/885245/Day 1 Handson/orm-learn/Practice Check/Sql/Practice_check.sql
UTF-8
832
2.75
3
[]
no_license
create database truyum_practice; use truyum_practice; CREATE TABLE `menu_item` ( `id` int NOT NULL, `active` bit(1) NOT NULL, `category` varchar(255) DEFAULT NULL, `date_of_launch` datetime(6) DEFAULT NULL, `free_delivery` bit(1) NOT NULL, `name` varchar(255) DEFAULT NULL, `price` float NOT NULL, PRIMA...
true
a7649c9a217a3023f5f7dcd822d19afb805774f1
SQL
andrei4002/qWat
/sql/create/09_subscriber/vw_subscriber_pipe_relation.sql
UTF-8
469
3.40625
3
[]
no_license
/* qWat - QGIS Water Module SQL file :: draw lines from subscriber to their pipe */ CREATE OR REPLACE VIEW distribution.od_subscriber_pipe_relation AS SELECT a.id as id, a._identification_full as _identification_full, ST_MakeLine(a.geometry,ST_Line_Interpolate_Point(b.geometry,.5))::geometry(LineString,2...
true
19c6e624ac810a5d5cfece7cf9029f6d71f1279f
SQL
maxsad1/oracle_ready2run_scripts
/fsess_wait_all_now.sql
UTF-8
1,608
3.40625
3
[]
no_license
set pagesize 999 set lines 999 col event format a30 trunc col p1text format a30 trunc col p2text format a30 trunc col p3text format a30 trunc col sql_text format a50 trunc col kill_session_sql format a50 trunc alter session set NLS_DATE_FORMAT = 'dd-mm-yyyy HH24:mi:ss' / prompt Find where all session are waiting righ...
true
cb49aeb336a4805128add5eacce87679f3466691
SQL
kriauto/kriauto-batch
/script/kriauto_create.sql
UTF-8
5,711
3.234375
3
[]
no_license
DROP TABLE car; DROP TABLE profile; DROP TABLE agency; DROP TABLE contact; DROP TABLE messages; -- -- Name: profile; Type: TABLE; Schema: public; Owner: postgres -- CREATE TABLE profile ( id integer NOT NULL, agencyid integer NOT NULL, login character varying(50) NOT NULL, password character varying(...
true
75409b7b3a9bc2f6db625e7afa7946b17228e7a0
SQL
99brendanallen/mysql
/EXERCISE2_WHERE.sql
UTF-8
120
2.6875
3
[]
no_license
/* EXERCISE 2: GET THE ORDERS PLACED THIS YEAR */ SELECT * FROM sql_store.orders WHERE order_date >= '2019-01-01'
true
f68e1199946d0bd8cd72d14e5b15b4ae72f4e637
SQL
joms09/InventorySystem
/database/pos.sql
UTF-8
4,518
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 18, 2018 at 11:15 AM -- Server version: 10.1.22-MariaDB -- PHP Version: 7.1.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
6eb65781b67bf80dde7ae3e2bfd7bb6e6d27fd41
SQL
muditmarda/Training
/DBMS/Database Schemas E-R Model/Food Delivery/Food Delivery.sql
UTF-8
4,585
3.765625
4
[]
no_license
-- MySQL Script generated by MySQL Workbench -- Thursday 21 September 2017 04:39:35 PM IST -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering -- Primary Keys, Strong and Weak Entities mentioned in COMMENT after CREATE TABLES. SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_F...
true
1ca91212c9a4f4c3f550e270dc3daa597c324faf
SQL
zhangbaiquan/notes
/2018-11/存储过程/adQueryProductsAdsReport.SQL
UTF-8
3,432
3.8125
4
[ "MIT" ]
permissive
CREATE DEFINER=`root`@`%` PROCEDURE `adQueryProductsAdsReport`( IN `userId` INT, IN `shopId` INT, IN `saleChannel` VARCHAR(20), IN startDate DATETIME, IN endDate DATETIME, IN userType VARCHAR(20), IN firstDimension VARCHAR(30), IN secondDimension VARCHAR(30), in selectElement VARCHAR(30...
true
b06e393576680bcfba882826c33d006cd89523ef
SQL
andreipall/MySQL-Stored-Procedure-Programming
/Ch06/ex06-21.sql
UTF-8
723
3.140625
3
[]
no_license
CREATE PROCEDURE sp_add_department (p_department_name varchar(30), p_manager_surname VARCHAR(30), p_manager_firstname VARCHAR(30), p_location varchar(30), out p_sqlcode int, out p_status_message varchar(100)) MODIFIES SQL DATA BEGIN DECLAR...
true
2907e6d557ece7d6bc78ec2720317fe173e84c43
SQL
LuisMedinaSanchez/eVisitas
/BD.sql
UTF-8
1,782
3.640625
4
[]
no_license
-- Base de datos: eVisitas CREATE DATABASE IF NOT EXISTS `eVisitas` DEFAULT CHARACTER SET utf8; USE `eVisitas`; -- Estructura de tabla para la tabla `usuarios` CREATE TABLE `usuarios` ( `id_usuarios` int(11) NOT NULL, `nombre` varchar(30) NOT NULL, `email` varchar(255) NOT NULL, `password` varchar(255) NOT NU...
true
8a45d5b5cc6ceb991bd94d55e75acc89ccd7aa03
SQL
ParsingTeam/MassMailer
/MassMailerDB/dbo/Stored Procedures/MailSetState.sql
UTF-8
263
2.640625
3
[]
no_license
 CREATE proc dbo.MailSetState @ID int, @MailStateID int, @UserName varchar(250), @SelectID int = null, @SelectedQty int = null as begin update Mailing set MailStateID = @MailStateID, StateChangeMoment = GetDate() where ID = @ID end
true
1133eefa51b48488114000d7bb14824951ea1e2f
SQL
vjasieg/php_e14
/baza/matematycy.sql
UTF-8
2,222
3.265625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 13 Kwi 2021, 10:39 -- Wersja serwera: 10.4.16-MariaDB -- Wersja PHP: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
true
e5ca192175ec1f9fa2178167f721eb0892b07c81
SQL
LifebellAI/mimiciv-queries
/BigQuery/2_hourly_cultures.sql
UTF-8
1,973
3.828125
4
[]
no_license
-- This query right now is restricted to the main cultures we anticipate -- Including blood, urine, stool, BAL, pleural, and CSF -- We are notably excluding less common things like joint aspirations and swabs that we aren't currently using as -- indications of clinical supsicion of infection CREATE OR REPLACE TABLE `p...
true
42ca93101ea5a92341bb3d319cf5eac691d3e955
SQL
wsws0521/IDEA-Vincent-MyJavaTools
/SpringQuartzDB/src/main/centlec/mig/mig_3_1(表计).sql
UTF-8
5,332
3.34375
3
[]
no_license
select * from p_sys_code where CODE_TYPE = 'bjxh' AND value = '72' and name = 'Public#Dict.bjxh.?.*.*.#*'; select * from p_sys_code_language where text = 'Actaris Elec(1 Phase) Keypad (STS)'; select * from p_sys_code_language where text_id = 'Public#Dict.bjxh.6.*.*.#*' and text = 'INHEMETER (STS)'; select * from p_sys_...
true
ac1ba53a541d8662eccd29bd22049e9fb6eab835
SQL
lalkota/I4
/I4.sql
UTF-8
16,872
2.90625
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.12, for Linux (x86_64) -- -- Host: localhost Database: I4 -- ------------------------------------------------------ -- Server version 5.7.12 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101...
true
5e5b2934a5f17a5f5e5d1b53a2cdf07ac63fb2a5
SQL
LigiaCoelho/FindSchools
/dump/findschools_tb_found.sql
UTF-8
2,571
3.03125
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: findschools -- ------------------------------------------------------ -- Server version 5.5.5-10.1.35-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_...
true
346b227c5309cb5af2ccda0c1466e279c911cb85
SQL
curlycarla2004/Cours
/podvadeni/logement.sql
UTF-8
2,196
3.171875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 17, 2019 at 10:32 AM -- Server version: 5.7.24 -- PHP Version: 7.2.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
f2f82b68b294967a9951eb7a3baa25c52a568b95
SQL
FAREWELLblue/AID1912_personal
/day14/mysql_1.sql
UTF-8
610
3.265625
3
[]
no_license
create database books character set utf8; use books; create table book(id int primary key auto_increment, title varchar(30) not null , author varchar(30) not null, publication varchar(50), price float , comment text); insert into class_1 values(1,'Lily',12,'w',91.5),(2,'tom',13,'m','76'); select * from class_1; ins...
true
4fb4755bca3c1603a5a8414e31f471b677ccbf27
SQL
vaster/Telerik.vasko
/homeworks/C#/Database/SQL- Advanced/Task10.sql
UTF-8
408
4.15625
4
[]
no_license
--Write a SQL query to find the count of all employees in each department and for each town. /* In Each departament */ select COUNT(*) as [Employees Count], DepartmentID from Employees group by DepartmentID /* In Each Town */ select COUNT(*) as [Employess Count], t.TownID from Employees e join Addresses...
true
2e2fb5a50613f70e84d5ef0243a302ce7aedc753
SQL
EquipoDDSI/DDSIProyecto
/backend/src/procedures/cargo.sql
UTF-8
461
2.9375
3
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `cargoAddOrEdit`( IN _codeCargo INT, IN _nombreCargo VARCHAR(20) ) BEGIN IF _codeCargo = 0 THEN INSERT INTO cargo (nombreCargo) VALUES (_nombreCargo); SET _codeCargo = LAST_INSERT_ID(); ELSE UPDATE cargo ...
true
a3c3cc08a72817bd85aa2739c4bd18030cac24cc
SQL
isa11003/cs313_project02
/myDb.sql
UTF-8
2,370
4.125
4
[]
no_license
CREATE DATABASE rentals; CREATE TABLE item ( id SERIAL NOT NULL PRIMARY KEY, name VARCHAR(100) NOT NULL, description TEXT NOT NULL ); /* These tables were deleted and made into one table, I made it this way originally because I thought it would be great and could be used for multiple reserved items and not creati...
true
f721e65ee69b850cdf10fab46ebb09d7248c0e03
SQL
iFeddy/unla-bd1
/Procedimientos/sp_pedido_etapa.sql
UTF-8
1,994
3.390625
3
[]
no_license
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_pedido_etapa`( in iPatente VARCHAR(8), out cMensaje VARCHAR(255), out nResultado INT ) BEGIN IF(EXISTS(SELECT * FROM terminal_produccion_etapa WHERE patente = iPatente ORDER BY id ASC LIMIT 1)) THEN /*Necesito saber en que estacion esta*/ SET @iEstacio...
true
c341249bd4561c54e0979c15aef19d8a9c53bc9c
SQL
aneeshbhat1/SQL-Scripts
/GetUserDetails.sql
UTF-8
166
2.515625
3
[]
no_license
ALTER PROCEDURE GetUserDetails(@MobileNumber VARCHAR(50)) AS BEGIN SELECT * FROM USERS(nolock) WHERE MobileNumber = @MobileNumber --AND Password = @Password END
true
a4121bf18128b9facc27c9b95c3175ec1b5ddef9
SQL
plebeiathon/MotleyMoves
/Back-end/Database/Queries/SELECT Queries/rewardsQuery.sql
UTF-8
187
3.265625
3
[]
no_license
SELECT M.fullName, Rt.name, dateGiven FROM modestomovesdb.rewards as R, modestomovesdb.members as M, modestomovesdb.rewardtype as Rt WHERE R.memberID = M.mermberID AND R.rtID = Rt.rtID;
true
fca20a348fd74e761142704f0b526eb3fa38a3ff
SQL
chrgu000/ACxchange
/database/Mysql/k_lines.sql
UTF-8
1,284
3.28125
3
[]
no_license
-- ---------------------------- -- create Table k_lines -- ---------------------------- CREATE TABLE `k_lines` ( `id` int(11) unsigned NOT NULL AUTO_INCREMENT, `open` DECIMAL (17,8) unsigned NOT NULL DEFAULT 0 COMMENT '开始价格', `low` DECIMAL (17,8) unsigned NOT NULL DEFAULT 0 COMMENT '最低价格', `high` DECIMAL (17...
true
e42f6bd4ab2e900ebf4c487c7b16b23df8930fa7
SQL
jsflavioalves/Repositorio
/Projetos PHP/telessaude/integracao/lais_para_nuteds.sql
UTF-8
3,091
3.15625
3
[]
no_license
04872401387 01785766384 01253988676 80631908315 02464432350 01227685319 04180695499 --Inserindo tb_usuario INSERT INTO tb_usuario(nm_usuario, nm_login, nm_senha, ds_email, fl_sexo, fl_ativo, tp_nivelacesso, fl_profissional) --testar antes... select upper(tal.profissional_nome), tal.profissional_cpf, md5('123456')...
true
ba069e9d63a640b9fb018397851aeb72643a7237
SQL
yves40/python
/SQL/pizzastables.sql
UTF-8
559
3.015625
3
[]
no_license
drop table clients; drop table commandes; drop table ingredients; drop table pizzas; -- Describe CLIENTS CREATE TABLE clients ( "nom" TEXT, "prenom" TEXT, "adresse" TEXT, "numero" INTEGER ); -- Describe COMMANDE CREATE TABLE commandes ( "numero_client" INTEGER, "nom_pizza" TEXT, "prix" RE...
true
2933ba721f8a9d0ee22c16fa6f31fe6b8ecf0a1d
SQL
shivdeepmodi/Setup
/sqlpath/skew_number.sql
UTF-8
704
3.171875
3
[]
no_license
REM http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:707586567563 REM WIDTH_BUCKET function to measure skewness for numeric columns Accept Column_name char prompt 'Give the column name: ' Accept Table_name char prompt 'Give the table name: ' Accept buckets number prompt 'Give the bucket nu...
true
a85e89ae884e4e876d3cf92467e7daebc9c46630
SQL
kevintoro/mysql
/covid.sql
UTF-8
7,578
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3308 -- Tiempo de generación: 17-04-2020 a las 19:54:13 -- Versión del servidor: 8.0.18 -- Versión de PHP: 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /...
true
e17a8a37cc56d20b8a2dd841ceaa07e91b2d1215
SQL
kifi/keepit
/kifi-backend/modules/common/conf/evolutions/shoebox/26.sql
UTF-8
745
3.09375
3
[]
no_license
# SHOEBOX # --- !Ups alter TABLE scrape_info add column destination_url varchar(2048); CREATE TABLE duplicate_document ( id bigint(20) NOT NULL AUTO_INCREMENT, uri1_id bigint(20) NOT NULL, uri2_id bigint(20) NOT NULL, percent_match decimal(3,2) NOT NULL, state varchar(20) NOT NULL, created_...
true
b71235b562073fc0f2ce0955dc75cdac5de0005f
SQL
aaokunade/Cyf-Knowledge-CheckList
/cyf-data.sql
UTF-8
15,249
3.734375
4
[ "ISC" ]
permissive
drop table if exists region cascade; drop table if exists roles cascade; drop table if exists users cascade; drop table if exists techskills cascade; drop table if exists learningobjectives cascade; drop table if exists competencylevels cascade; drop table if exists mappingskills cascade; drop table if exists tokens ca...
true
b71ae8127dcd695faac7966719f1ea9c4c0cee77
SQL
urianchang/DojoAssignments
/Python/MySQL/sakila/myanswers.sql
UTF-8
5,757
4.40625
4
[]
no_license
USE sakila; -- 1. What query would you run to get all the customers inside city_id = 312? -- Your query should return customer first name, last name, email, and address. SELECT customer.first_name, customer.last_name, customer.email, address.address, city.city, address.city_id FROM customer LEFT JOIN address ON cus...
true
2a609a358f622595934e6b019bac3a608f30cd98
SQL
wobblefish/record-store-php
/db/inventory.sql
UTF-8
10,147
2.84375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.0.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Mar 22, 2011 at 05:07 AM -- Server version: 5.1.36 -- PHP Version: 5.3.0 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER...
true
c676d1536b21619fd6c094a0d841bc3a5f36d035
SQL
sllzzgg/product
/hql/dm/DM_history_shop_products_flow.sql
UTF-8
601
3
3
[]
no_license
set hive.exec.dynamic.partition=true; set hive.exec.dynamic.partition.mode=nostrick; set hive.exec.max.dynamic.partitions.pernode=1000; INSERT INTO dm_shop.DM_daily_shop_products_flow PARTITION(dt) SELECT t1.orderdate, t1.sku, t1.name, t1.brandid, t1.brandname, sum(t1.ShipmentQuantity) , t1.SellPrice, sum(t1....
true
806308b06fa447f6140afc6da7c23f1f88c6fc9d
SQL
arunsasi/TAB_Portal
/html_dev/DB/natana_portal-chinnu-7-4-2018.sql
UTF-8
4,195
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6deb5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Apr 07, 2019 at 09:23 PM -- Server version: 5.7.25-0ubuntu0.18.10.2 -- PHP Version: 7.2.15-0ubuntu0.18.10.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
2738683a558adc9292cad076177a38c389af6d8e
SQL
simi-so/mig_trafo
/migration_data/aufraeumen.sql
UTF-8
1,688
2.640625
3
[]
no_license
update simidata_postgres_table set remarks = NULL; update simidata_table_field set type_name = 'Stellvertreter'; delete from simidata_data_set_view where id in (select id from simiproduct_data_product where dtype = '1'); delete from simiproduct_single_actor where id in (select id from simiproduct_data_product where d...
true
66fd776ce17c911b4a2c314b275df77c93f0bf51
SQL
JanithaT/Employee-Management-System
/db/emp-management-sys.sql
UTF-8
25,578
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3306 -- Generation Time: Sep 07, 2021 at 04:22 PM -- Server version: 5.7.21 -- PHP Version: 7.2.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
true
ed046aabf6fe9e79f755f1507472626b1e9bb811
SQL
cboylan43/SQL-codes
/MRC create.sql
UTF-8
459
2.578125
3
[]
no_license
use adppctu2012 --- create MCR table SELECT [MigrationComputerRegistrationTEST _1].* FROM ComputerTEST LEFT OUTER JOIN MigrationGroupTEST ON ComputerTEST.LocationID = MigrationGroupTEST.LocationID LEFT OUTER JOIN [MigrationComputerRegistrationTEST ] AS [Mig...
true