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
badf5d6615a34c802a133b55e937dcde66193710
SQL
anirudh-kac/DBMS-LAB
/3_Movies.sql
UTF-8
3,172
4.8125
5
[]
no_license
--CREATING TABLES -- Consider the schema for Movie Database: -- ACTOR(Act_id, Act_Name, Act_Gender) -- DIRECTOR(Dir_id, Dir_Name, Dir_Phone) -- MOVIES(Mov_id, Mov_Title, Mov_Year, Mov_Lang, Dir_id) -- MOVIE_CAST(Act_id, Mov_id, Role) -- RATING(Mov_id, Rev_Stars) CREATE TABLE ACTOR( Act_id NUMBER(4), Act_name ...
true
7c60f1761818128d03dc18534686d3bca82b5e32
SQL
Phamminh202/SQL
/ss5/VD8.sql
UTF-8
193
3.1875
3
[]
no_license
Select SalesPersonID,Year(Order Date)As OrderYear From Sales.SalesOrderHeader Where CustomerID=30084 Group By SalesPersonID,Year(Order Date) Having count(*)>1 Order By SalesPersonID,Order Year;
true
2988b2deac728413b527da857002fee0472e14ab
SQL
vijaydairyf/TimelyFish
/SolomonApp/dbo/Stored Procedures/dbo.smServFault_SmCode.sql
UTF-8
319
3.09375
3
[]
no_license
 CREATE PROCEDURE smServFault_SmCode @parm1 varchar(10) ,@parm2beg smallint ,@parm2end smallint AS SELECT smcode.* FROM smcode, smservfault where smcode.Fault_ID = smservfault.faultcodeid and smservfault.ServiceCallId = @parm1 AND smservfault.LineNbr BETWEEN @parm2beg AND @parm2end ORDER BY smcode.Fault_Id
true
71f00847dcf47195e4dce57954e8b14a95e5fb81
SQL
Sohan083/Database-Project
/final/New folder/read.sql
UTF-8
649
3.28125
3
[]
no_license
SET SERVEROUTPUT ON declare f utl_file.file_type; line varchar(10000); i course.ind%type; id course.id%type; name course.name%type; cost course.cost%type; begin f:= utl_file.fopen('MYD','read.csv','R'); if(utl_file.is_open(f)) THEN utl_file.get_line(f,line,10000); LOOP begin utl_file.get_line(f...
true
54ea1af860bd8cb89e3fc5c0532b7b1654de57ad
SQL
Helsinki-Semester-i/voting-system-api
/db/queries.sql
UTF-8
6,987
3.8125
4
[ "MIT" ]
permissive
-- Hardcoded values are to be changed for parameters -- GET user SELECT row_to_json(t) FROM ( SELECT *, ( SELECT array_to_json(array_agg(row_to_json(q))) FROM ( SELECT ...
true
c52cbe68d0630614ce8bc7e15f06a95b11b07e5d
SQL
DavinderSohal/PHP
/Database/airlines.sql
UTF-8
3,099
2.78125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.2.4 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 31, 2017 at 11:27 AM -- Server version: 5.1.41 -- PHP Version: 5.3.1 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
true
2389d7b8aa0af81b3abe57eb48aae23ba2082e97
SQL
15770639358/useradminServerNest
/db/useradmin.sql
UTF-8
816,114
2.890625
3
[ "MIT" ]
permissive
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50515 Source Host : localhost:3306 Source Database : useradmin Target Server Type : MYSQL Target Server Version : 50515 File Encoding : 65001 Date: 2020-11-19 10:13:06 */ SET FOREIGN_KEY_CHECKS=0...
true
f1abe5fd837c6f1a919e1ffbfd7b2c84dabdf2d1
SQL
OtmiVi/tetsing
/testing.sql
UTF-8
6,063
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Июн 25 2020 г., 19:44 -- Версия сервера: 5.6.43 -- Версия PHP: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
true
09885a314d01cc660a1077726889a52d5518e810
SQL
Eochs/SQL-code-for-UCSD
/cse135queries.sql
UTF-8
7,326
3.734375
4
[]
no_license
-------------------------------------------------------------------------------------------- -- ********* user view ********** -------------------------------------------------------------------------------------------- -- case 0,0 -- state:off, category:off DROP TABLE IF EXISTS temp1; CREATE TABLE temp1 (u_rank SER...
true
33a8a6296ec0a30f156c018acb8265ec1dc2cdf2
SQL
hdduy110697/air-data-analysis
/db.sql
UTF-8
30,518
3.046875
3
[]
no_license
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.31-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 10.1.0.5464 -- -----------------------------------------------...
true
f221d16292b2b17210ada8609d311473b90326ac
SQL
TheGhostGroup/Bestcore
/sql/ashamane/world/2019_01_21_03.sql
UTF-8
2,544
2.671875
3
[]
no_license
ALTER TABLE `playerchoice_response` ADD COLUMN `QuestId` INT(11) DEFAULT 0 NOT NULL AFTER `Confirmation`; -- 26290/secrets-of-the-tower INSERT INTO `creature_queststarter` (id, quest) VALUES (7024, '26290') ON DUPLICATE KEY UPDATE quest = VALUES(quest); INSERT INTO `creature_questender` (id, quest) VALUES (7024, '2...
true
06b460202ab21e2b98a582754b8f5eb44390e6e9
SQL
mynt2407/EDP_03
/JAVA_ADVANCE/DemoSpecification/src/main/resources/TestingAssignment.sql
UTF-8
894
3.265625
3
[]
no_license
-- create database DROP DATABASE IF EXISTS TestingSystem; CREATE DATABASE TestingSystem; USE TestingSystem; -- create table: Department DROP TABLE IF EXISTS Department; CREATE TABLE Department( DepartmentID TINYINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, TotalMember TINYINT UNSIGNED, DepartmentName NVAR...
true
c492aa240b5a701cf344c9b918a1e0c21c89ed3c
SQL
helver/Alliances
/PHP/GeoNet/db/Views/History_Previous_Counts_View_Def.sql
UTF-8
669
3.234375
3
[]
no_license
CREATE OR REPLACE VIEW History_Previous_Counts_View AS SELECT pmh.tid_id AS tidid, pmh.interface_id as ifcid, to_char(pmh.timeentered, 'MM-DD-YYYY HH24:MI:SS') AS lasttime, to_char(pmh.timeentered, 'YYYY-MM-DD HH24:MI:SS') AS sorttime, decode( to_char(timeentered, 'MM-DD-YYYY'), to_char(SYSDATE - 1, ...
true
5a26442273d0ebafc777c87ef889810ddacd43d9
SQL
santosh32/spring-blog
/Notes_apps/template/sf-blog/sf-dao/15_Simplifying JDBC Operations With The SimpleJdbc Classes/sf-dao-simplejdbccall-stored-procedure-annotation/src/main/resources/sql/get_product_by_id.sql
UTF-8
267
2.921875
3
[]
no_license
CREATE OR REPLACE PROCEDURE get_product_by_id ( in_prod_id IN product.prod_id%TYPE, out_recordset out sys_refcursor) AS BEGIN OPEN out_recordset FOR SELECT prod_id, name, brand, price FROM product WHERE prod_id = in_prod_id; END get_product_by_id;
true
71c076f897ab16c04c849df200771388d33deed1
SQL
Orion7s/sgbd
/database/procedures/del/del_adherent.sql
UTF-8
712
3.296875
3
[]
no_license
-- =================================================================== -- = Procédure : del_adherent = -- = USAGE : begin del_adherent(id); end; = -- = Résumé ========================================================== -- = Supprime un adhérent dont l'id...
true
a89af902d2f72f0d301d961071422eae8a21977b
SQL
anlei-fu/code-generator
/test/sql/analyze.sql
UTF-8
1,955
3.96875
4
[ "MIT" ]
permissive
with r1 as (select trunc(t.report_time) time, t.account_id, sum(t.cost) cost, f_divide(sum(t.cost), 1 + avg(t1.rebate_rate)) real_cost, sum(t.show) show, sum(t.click) click, sum(t.convert) convert from ad_main_hour_report t left join put_account_info t1 ...
true
e5497352a420eb033cd4fb71d251d164e6eef2dc
SQL
xuanthai284/Railway25
/SQL/Testing_System_Assignment_5.sql
UTF-8
2,873
3.90625
4
[]
no_license
-- use testing_system_assignment_2; -- QUESTION 1: TẠO VIEW CÓ CHỨA DANH SÁCH NHÂN VIÊN THUỘC PHÒNG A DROP VIEW IF EXISTS DS_NV_PHONG_A; CREATE VIEW DS_NV_PHONG_A AS ( SELECT dep.DepartmentName as Phong, acc.AccountID, acc.FullName as 'Ten Nhan Vien' FROM department dep INNER JOIN account1 acc ON acc.D...
true
4cd88f24c54c35b06dc5fb22b295027ce72404e2
SQL
ptomulik/veetou
/share/oracle/packages/veetou/types/student_pattern.tps
UTF-8
1,433
2.796875
3
[]
no_license
CREATE OR REPLACE TYPE V2u_Student_Pattern_t FORCE AUTHID CURRENT_USER AS OBJECT ( expr_student_index VARCHAR2(256 CHAR) , expr_student_name VARCHAR2(256 CHAR) , expr_first_name VARCHAR2(256 CHAR) , expr_last_name VARCHAR2(256 CHAR) , CONSTRUCTOR FUNCTION V2u_Student_Pattern_t( SE...
true
38ff16e21c6cdaebb47606f8f3dd554e5dce02f5
SQL
mpi2/iev
/src/python/sql/all_media.sql
UTF-8
823
3.203125
3
[]
no_license
SELECT cid, lid, gid, sid, pid, qid, genotype.genotype, gene_symbol, measurement_id, value, checksum, extension, metadataGroup FROM phenodcc_media.media_file, phenodcc_media.file_extension, phenodcc_overviews.measurements_performed, phenodcc_overviews.genotype where # get the qid for the recon parameters # IMPC_EO...
true
4f99e96878f338b98f10dbd7d8615d60e78b9cd9
SQL
miguelrohdez/Diplomado
/Modulo5/Video/instrucciones.sql
UTF-8
627
2.5625
3
[]
no_license
sqlcmd -S MARH-10\SQLEXPRESS SELECT name FROM sys.databases; SELECT * FROM empleado; --HEADER,COMA BULK INSERT empleado FROM 'D:\MegaNube\Bases\Diplomado\Modulo5\Video\datos_header_coma.txt' WITH(FIELDTERMINATOR = ',', FIRSTROW = 2) --COMA BULK INSERT empleado FROM 'D:\MegaNube\Bases\Diplomado\Modulo5\Video\datos_c...
true
e7bbf50d9f9b9279a5ac91a01f25f2ae9a49e015
SQL
PrasastiKarunia/pengguna
/backup/pengguna.sql
UTF-8
10,817
2.859375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 19, 2020 at 11:43 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
844ad36323b0d5339db6c8a6b9c8b4ef7b4fd3fe
SQL
phiathao/Lees-Auto
/database.sql
UTF-8
3,154
3.296875
3
[]
no_license
CREATE TABLE "person" ( "id" SERIAL PRIMARY KEY, "username" VARCHAR (80) UNIQUE NOT NULL, "password" VARCHAR (1000) NOT NULL ); CREATE TABLE "services" ( "id" SERIAL PRIMARY KEY, "service_type" VARCHAR(255), "description" VARCHAR(255), "is_highlighted" BOOLEAN DEFAULT FALSE, "ammount" FLOAT default 0....
true
9712e08e298c6459b4d0f8c380778930ce550e3b
SQL
soysalb/udacity_capstone_project
/airflow/dags/create_all_tables.sql
UTF-8
1,320
3.390625
3
[]
no_license
CREATE TABLE IF NOT EXISTS staging_exchanges ( Symbol varchar(256), Base varchar(256), Quote varchar(256), ExchangeKey varchar(256), WebUrl varchar(65535), DocUrl varchar(65535), Version varchar(256) ); CREATE TABLE IF NOT EXISTS staging_tickers ( TickerId int, Symbol varchar(256), Buy decimal, Sell d...
true
8b7750e8032572436a89bf1f42f1becf4471d23f
SQL
cei/ceiweb
/SYSCD.sql
UTF-8
4,546
3.09375
3
[]
no_license
CREATE TABLE SYSCD ( GRP VARCHAR2(32 BYTE), CD VARCHAR2(32 BYTE), PCD VARCHAR2(32 BYTE), VAL VARCHAR2(512 BYTE), ORD NUMBER(3) DEFAULT(0) NOT NULL , USE CHAR(1 BYTE) DEFAULT('Y') NOT NULL CHECK( USE IN ('Y', 'N') ), DSC VARCHAR2(512 BYTE), ANN VARCHAR2(32 BYTE) ); COMMENT ...
true
1367def8146e97d0b37aceaba713869bb2fac985
SQL
risethi/Hackerrank-problems
/SQL/The Report/Solution.sql
UTF-8
362
3.40625
3
[]
no_license
select case when Grades.grade >= 8 then concat(students.name,' ',Grades.grade,' ',students.marks) when Grades.grade < 8 then concat("NULL",' ',grades.grade,' ',students.marks) end from Grades inner join Students on Students.marks where Grades.min_mark <= Students.marks and Students.marks <= Grades.max_mark order...
true
6d9fc7a8357a275354421ecfd8f6cd96d23e265c
SQL
nayanivijay/nova_api
/sql/update_schedules.sql
UTF-8
471
3.625
4
[]
no_license
update SCHEDULES aps inner join WINDOWS w on ((aps.win_begin >= w.win_begin and aps.win_begin <= w.win_end) or (w.win_begin <= aps.win_begin and w.win_end <= w.win_begin) or (aps.win_begin <= w.win_end and w.win_end <= w.win_begin)) and dayofweek(aps.sch_date) = w.win_dow and aps.channel_c...
true
a1bbcca1de018656e33d2997c91b5827bab87762
SQL
mebelousov/antlr_psql
/src/test/resources/sql/select/7440d17d.sql
UTF-8
239
2.640625
3
[ "MIT" ]
permissive
-- file:join.sql ln:1734 expect:true select * from ((select 2 as v) union all (select 3 as v)) as q1 cross join lateral ((select * from ((select 4 as v) union all (select 5 as v)) as q3) union all (select q1.v) ) as q2
true
4195da9177bd476b4d6f50c0c1597683f0788c7b
SQL
NoeeeTrejo/CS61A
/lab/lab12/lab12.sql
UTF-8
404
3.703125
4
[]
no_license
.read fa19data.sql CREATE TABLE obedience AS SELECT seven, instructor FROM students; CREATE TABLE smallest_int AS SELECT time, smallest FROM students WHERE smallest > 2 ORDER BY smallest limit 20; CREATE TABLE matchmaker AS SELECT s_1.pet, s_1.song, s_1.color, s_2.color FROM students AS s_1, students...
true
1aa6fb2f60ac914557700f8c8f0e13cfae05300d
SQL
AlvinKang/LogsAnalysis
/SQL-scripts/script1.sql
UTF-8
771
4
4
[]
no_license
/* QUESTION 1. What are the most popular three articles of all time? Which articles have been accessed the most? Present this information as a sorted list with the most popular article at the top. Example: "Princess Shellfish Marries Prince Handsome" — 1201 views "Baltimore Ravens Defeat Rhode Island Shoggoths" — 915...
true
ed116dcbe9b11f92864de1bb2e4b3e5cec852537
SQL
DharitShah13/OnlineShoppingwebsite_Database_Design
/FinalProjectScript_new.sql
UTF-8
11,210
3.578125
4
[]
no_license
use mydb; Select * from person; insert into person values ('SysAdmin','sysadmin@gmail.com','sysadmin','admin','admin'); insert into person values ('Dharit','d@gmail.com','dharit','dharit','dharit'); insert into person values ('Raj','raj@gmail.com','raj','raj','raj'); select * from organization; insert into organi...
true
11c059e86ac02c44913ca698e6d3626e99e1c959
SQL
jagrutee-g/Database-Foundation
/project_queries.sql
UTF-8
3,897
4.28125
4
[]
no_license
/*1*/ SELECT COUNT(city_id) AS no_of_cities, COUNT(DISTINCT state) AS no_of_states FROM city; SELECT state.state, COUNT(city_id) FROM city join state on city.state=state.state_id GROUP BY state; /*2*/ SELECT AVG(price) AS average_rent, MIN(price) AS minimum_rent, MAX(price) AS...
true
360ade16be11d43d96c8b1035fc545340a5d7547
SQL
ashamin/gibdd-system
/sql/create_gibdd_system_db.sql
UTF-8
8,111
3.328125
3
[]
no_license
/* * Model: gibdd-system * Database: MySQL 5.5 */ -- Create database section ----------------------------------------------- CREATE DATABASE gibdd_system_db; USE gibdd_system_db; -- Create tables section ------------------------------------------------- -- Table humans CREATE TABLE humans ( human_id Int UNSI...
true
8090d66c33d78291998a271accc1cb11b439dd1c
SQL
feerdiana/COOKPEDIA
/cookpedia.sql
UTF-8
2,128
3.09375
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 24, 2018 at 06:43 PM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
c66e5c79072810fcf0cf33680117cb7bebc6b9b2
SQL
failamir/nikah
/account.sql
UTF-8
1,685
3.1875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Apr 14, 2022 at 09:09 AM -- Server version: 5.7.34 -- PHP Version: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
true
63dd52389150d8bc6890f4773cf089114b38c428
SQL
leamancrews/oracle_queries
/vendor_match.sql
UTF-8
2,086
3.921875
4
[]
no_license
SELECT aps.SEGMENT1 AS SUPPLIER_NUM, aps.VENDOR_NAME, ac.ORG_ID, SITE.VENDOR_SITE_CODE, SITE.ADDRESS1, SITE.address2, SITE.CITY, SITE.STATE, SITE.POSTAL_CODE, SITE.LOCATION_ID, sum(ac.AMOUNT) AS TOTAL_PAYMENTS FROM poz_suppliers_v aps, ap_checks_all ac, ----------------------------...
true
be45518f1beb57d5a61a177ecc8d6f1e98665122
SQL
francocava/gdd_equipo_rayo
/script_test.sql
UTF-8
4,979
3.703125
4
[]
no_license
USE GD1C2020; --======Test======-- --Equipo Rayo SELECT * FROM EQUIPO_RAYO.Clientes --OK SELECT * FROM EQUIPO_RAYO.Aviones ORDER BY empresa_id --OK SELECT * FROM EQUIPO_RAYO.Empresas --OK SELECT * FROM EQUIPO_RAYO.Butacas --OK ORDER BY avion_id SELECT ruta_id,ruta_codigo,ruta_ciudad_origen,ruta...
true
7b65fa7672863178acc35cdbbc93d072a4730b7f
SQL
jesushilarioh/Learning-MySQL
/Murach's MySQL 2nd Edition/Chapter 03 - How to Retrieve Data from a Single Table/An Introduction to the SELECT Statement/Figure 3-2 --> SELECT statement examples/00.sql
UTF-8
1,629
4.1875
4
[ "MIT" ]
permissive
/************************************************************ * 1. A SELECT statement that retrieves all the data from the * Invoices table ************************************************************/ SELECT * FROM invoices; /************************************************************************ * 2. A SELECT st...
true
f0284c2d218b121edf98ec0ee8486144efb3407c
SQL
HotelQuickly/Holistics-backup
/Reports_and_Dashboards/Price-Competitiveness-plus-Mark-Up-Reports/RateGain-Price-Competitiveness(Last 30 Days)/query.sql
UTF-8
3,409
4.03125
4
[]
no_license
#standardSQL With hotel_rank AS ( SELECT hotel_id, d15_hotel_name, SUM(m07_selling_price_total_usd) as GBV, sum(case when lower(d180_order_referral_source_code) = 'trivago' then m07_selling_price_total_usd end) tv_gbv, sum(case when lower(d180_order_referral_source_code) = 'tripadvisor' then m07_selling_price_total_usd...
true
a7d2cdb00f647692ef058647060be6aadbefb213
SQL
xenex90/noname_movie
/src/helpboard.sql
UTF-8
3,209
2.796875
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: help -- ------------------------------------------------------ -- Server version 8.0.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!401...
true
bc0d1a5d88a0ed74f64c429a9b32fbc24e1f2c81
SQL
aniagut/Bazy-Danych-2020
/Zadania z laboratoriów/lab29.10.sql
WINDOWS-1250
12,058
4.125
4
[]
no_license
--1. Wybierz nazwy i adresy wszystkich klientw majcych siedziby w Londynie SELECT companyname, address, city, region, postalcode, country FROM Customers WHERE city = 'London' --2. Wybierz nazwy i adresy wszystkich klientw majcych siedziby we Francji lub w Hiszpanii SELECT companyname, address,...
true
9ccef64478157402adf2912646038c0a48c4bc14
SQL
antarus/mystra-pve
/docs/sql/20160827-raid_tracker.sql
UTF-8
89,342
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.0.10deb1 -- http://www.phpmyadmin.net -- -- Client: localhost -- Généré le: Sam 27 Août 2016 à 21:56 -- Version du serveur: 5.5.50-0ubuntu0.14.04.1 -- Version de PHP: 5.5.9-1ubuntu4.19 SET FOREIGN_KEY_CHECKS=0; SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!4...
true
94e3eaf0feddd86f7b405ce428d05798c58802c8
SQL
xaviramirezcom/electronic-invoice
/src/main/resources/database/schema.sql
UTF-8
22,587
3.59375
4
[]
no_license
SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL,ALLOW_INVALID_DATES'; CREATE SCHEMA IF NOT EXISTS `stf_db` DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci ; USE `stf_db` ; -- ---...
true
8fa7d10a47fcf1b634d67c94895b63173d31f848
SQL
madhukarmobicules/test
/lib/db/questions.sql
UTF-8
2,792
3.203125
3
[]
no_license
-- -- PostgreSQL database dump -- 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 search_path = public, pg_catalog; SET default_tablespace = ''; SET default_with_oids = fals...
true
df0f88558611c9316b200b0e1d6c2f980a41eb0f
SQL
Dirpyth/concoursesuitecrm-community
/src/sql/oracle/upgrade/2007-01-24-script01-vadim.sql
UTF-8
525
2.71875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
CREATE SEQUENCE lookup_report_type_code_seq; CREATE TABLE lookup_report_type ( code INT NOT NULL PRIMARY KEY, description NVARCHAR2(300) NOT NULL, default_item CHAR(1) DEFAULT 0, "level" INT DEFAULT 0, enabled CHAR(1) DEFAULT 1, constant INT DEFAULT 1 NOT NULL, entered TIMESTAMP DEFAULT CURRENT_TIMESTAMP ...
true
0acff387e4ecb52c346c16ca0da8db8fdfe0656b
SQL
sidgore/Pet_World
/procedures/show_animals_for_a_breed.sql
UTF-8
1,296
3.4375
3
[]
no_license
create or replace procedure show_animals_for_a_breed (breed integer) is animal_rec animal%rowtype; cursor animal_data is select * from animal where breed_id = breed and a_id not in ( select animal_id from request where app...
true
a5557f912ee0eccb8b27066d86a9000d9aa48a9e
SQL
RomanKalmutskiy/DBforCourse
/pr.sql
UTF-8
4,148
2.75
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- Хост: 127.0.0.1 -- Время создания: Фев 04 2018 г., 18:24 -- Версия сервера: 5.5.25 -- Версия PHP: 5.3.13 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!4010...
true
885aaf3bf3d7e03a6b0f59e101fc696ed8b5923a
SQL
emanuelanechei/Oracle-Email-Reports
/sql/BMX_Errors-BIM_Shelving.sql
UTF-8
4,179
3.265625
3
[]
no_license
select msi.segment1 "Part Number", planner_code "Planner Code", inventory_item_status_code "Item Status - Active", fixed_days_supply "Fixed Days Supply - 60", minimum_order_quantity "Min Order Qty - 1 month usage", greatest(round(msi.attribute7/10,0) * 10,25) "correct MOQ", fl.meaning "Recei...
true
0886ba000085ac3b94bb1b234e09f7a039bde4e0
SQL
Maruf-Reaz/SchoolManagementApp
/db_tables/db_academic_assignments.sql
UTF-8
657
3.015625
3
[]
no_license
/* SQLyog Community v13.0.1 (64 bit) MySQL - 10.1.30-MariaDB ********************************************************************* */ /*!40101 SET NAMES utf8 */; create table `db_academic_assignments` ( `id` int (11), `title` varchar (765), `deadline` date , `class_id` int (11), `subject_id` int (11), `file_nam...
true
aa0121de457ab8d5fb782dc311689fd4db1e9afc
SQL
navikt/veilarbregistrering
/src/main/resources/db/migration/veilarbregistreringDB/V1_9__registrering_legg_til_nye_felter.sql
UTF-8
702
2.953125
3
[ "MIT" ]
permissive
ALTER TABLE BRUKER_REGISTRERING add YRKESBESKRIVELSE VARCHAR(200); ALTER TABLE BRUKER_REGISTRERING add KONSEPT_ID NUMBER; UPDATE BRUKER_REGISTRERING SET YRKESBESKRIVELSE=-1, KONSEPT_ID=-1 WHERE YRKESBESKRIVELSE IS NULL AND KONSEPT_ID IS NULL; ALTER TABLE BRUKER_REGISTRERING MODIFY YRKESBESKRIVELSE VARCHAR(200) NOT NU...
true
4c464fcf2e13a4e64b7d9d96c3f3b64a91a21f9f
SQL
StephanEll/Logit
/logitdb.sql
UTF-8
2,813
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.4.5 -- http://www.phpmyadmin.net -- -- Host: localhost -- Erstellungszeit: 24. Nov 2011 um 20:03 -- Server Version: 5.5.16 -- PHP-Version: 5.3.8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!401...
true
85091211265b2304f1fd651fea7203d5eceb9301
SQL
vasylignatyev/textOvarImage
/db_struture_dump.sql
UTF-8
2,402
3.515625
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jun 10, 2020 at 05:05 AM -- Server version: 10.4.12-MariaDB -- PHP Version: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
2588227035109ada5a75eec158a4d3c7d4e4d534
SQL
sonalirangari/Codiginator-CURD-operation
/db_student_1.sql
UTF-8
1,745
3.15625
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 25, 2021 at 08:44 AM -- Server version: 10.4.11-MariaDB -- 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_CLIEN...
true
618fef4b6e5e56a6c05449fd315c6c121d49ee4d
SQL
857366255/sky
/sky-production-schedule/skyproduction.sql
UTF-8
9,619
3.4375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 127.0.0.1 Source Server Version : 50717 Source Host : localhost:3306 Source Database : skyproduction Target Server Type : MYSQL Target Server Version : 50717 File Encoding : 65001 Date: 2018-03-31 16:40:30 */ SET FOREIGN_KEY_CHECKS=0;...
true
b48a7683ff92b9aaa30925eea3c548ce33225f0e
SQL
LucianoFromTrelew/datawarehouse-patsur
/src/tablas_sistema_viejo.sql
UTF-8
1,036
3.515625
4
[ "MIT" ]
permissive
CREATE TABLE cliente ( nro_cliente integer, nombre varchar(50), tipo integer, direccion varchar(100), PRIMARY KEY (nro_cliente) ); CREATE TABLE categoria ( nro_categ integer, descripcion text, PRIMARY KEY (nro_categ) ); CREATE TABLE producto ( nro_producto integer, nombre varch...
true
7f33bb27084b3f358f4d0d4f3fdfcf274100693f
SQL
MeganSpeaks/Mod7_Challenge
/Employee_Database_challenge.sql
UTF-8
1,657
4.40625
4
[]
no_license
--Deliverable 1 SELECT emp_no, first_name, last_name FROM employees SELECT title, from_date, to_date FROM titles SELECT employees.emp_no, first_name, last_name, title, from_date, to_date INTO retirement_titles FROM employees JOIN titles ON employees.emp_no = titles.emp_no WHERE birth_date BETWEEN '1952-01-01' AND '...
true
237cd40de0c169385eb74e73d7afd30081fd6f90
SQL
adenjimmy/simadu
/persediaan.sql
UTF-8
353,953
3.109375
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jun 11, 2017 at 12:07 AM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
6157bcb3cdfd255a3cd6638116711329b5ccb3c9
SQL
shantanu64/bingefy_miniproject
/action.sql
UTF-8
3,005
2.65625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 12, 2021 at 10:47 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 7.4.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
552aec6ebafcca4eedf2fe8f80f6012004e798ed
SQL
hungndcc/Rocket-EPD_HN_20_10
/SQL/Assignment 1/Assignment 1.sql
UTF-8
632
2.90625
3
[]
no_license
DROP DATABASE IF EXISTS FresherTrainingManagement; CREATE DATABASE FresherTrainingManagement; USE FresherTrainingManagement; CREATE TABLE Trainee ( TraineeID TINYINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, FUll_Name VARCHAR(50) NOT NULL, Birth_Date DATE NOT NULL, Gender ENUM('male','female','unkno...
true
012f643823043aa0456d8308e4577261f49c9eaa
SQL
cinghioGithub/DataScienceAndDataBaseLab
/Lab_1/QUERY_2.sql
UTF-8
185
3.59375
4
[]
no_license
SELECT MESE, SUM(PREZZO) AS TOT_PREZZO, SUM(CHIAMATE) AS TOT_CHIAMATE, RANK() OVER (ORDER BY SUM(PREZZO) DESC) AS RANK FROM TEMPO T, FATTI F WHERE f.id_tempo=t.id_tempo GROUP BY MESE
true
06499ced5dfe74fa4f32ecabf8b6d28cf974de12
SQL
lcf12307/resume
/protected/data/resume.sql
UTF-8
1,309
3.09375
3
[]
no_license
//简历表的建立 CREATE TABLE `resumes` ( `id` int(11) NOT NULL AUTO_INCREMENT COMMENT '‘id', `loginname` varchar(100) NOT NULL DEFAULT '', `password` varchar(100) NOT NULL DEFAULT '', `domain` varchar(30) NOT NULL DEFAULT '', `resume_id` BIGINT(20) not null DEFAULT 0, `basic` varchar(2000) NOT NULL DEFAULT '基础信息',...
true
2ce91c00a1049ea27875c1f2422402182e143d48
SQL
ryga2016/Database-project
/createtablevalentina.sql
UTF-8
2,098
4.46875
4
[]
no_license
/*Create the table for confirmed resistance genes For the following table "accession" is the primary key since it is assigned to each sequence in UniProtKB. It gives gene name, organism, location and compound. I tried to create the following FDs: 1: accession -> gene_name, organism, location 2: gene_name, organism -> c...
true
274bb91c405ea9c039816cb05d075a9b5f2a54ca
SQL
moritzduecktw/twu-biblioteca-moritzdueck
/moritz_dueck.sql
UTF-8
1,030
3.875
4
[ "Apache-2.0" ]
permissive
-- Q1 SELECT member.name FROM ((member INNER JOIN checkout_item ON member.id = checkout_item.member_id) INNER JOIN book ON book.id = checkout_item.book_id) WHERE book.title ="The Hobbit"; -- Q2 SELECT COUNT(DISTINCT name) FROM member INNER JOIN checkout_item ON member.id = checkout_item.member_id; -- Q3 SELECT title FR...
true
2a088e7e2fdaf0a824a55b165757c81a23bccb00
SQL
Me-Yan/ChickenFarm
/documents/DB/init_DDL.sql
UTF-8
5,686
3.234375
3
[]
no_license
DROP TABLE IF EXISTS CF_classify; CREATE TABLE CF_classify ( classifyId_n INT UNSIGNED AUTO_INCREMENT NOT NULL, classifyName_m VARCHAR(20) NOT NULL, classifyClass_x VARCHAR(50) NOT NULL, seq_c INT NOT NULL, status_x VARCHAR(10) NOT NULL, crtOn_dt DATETIME NOT NULL, crtBy_m VARCHAR(20) NOT NULL, updOn_dt DATETIM...
true
1a2acc41c3bbc0262c6655e933abd00ae6f5aa6c
SQL
yangfancoming/goat-mysql
/src/main/java/com/goat/mysql/item07/temp.sql
UTF-8
1,413
4.09375
4
[]
no_license
/** * 第7章 [数据过滤](script/07-advanced-data-filtering.sql) */ SELECT * FROM products; # 由于计算次序 出现的问题 原因: SQL(像多数语言一样)在处理OR操作符前,优先处理AND操作符 # 当SQL看到下面这个WHERE子句时,它理解为 ( vend_id = 1002 ) or (vend_id = 1003 and prod_price >= 10) SELECT prod_name, prod_price, vend_id FROM products WHERE vend_id = 1002 OR vend_id = 1003 ...
true
e916a22d04fc9cd9caaffee72198afa6cbbfd83c
SQL
lbz320/Stanford-DB-Class-Exercises-and-Notes
/DB5_SQL/Movie_ratings_Extra_q7.sql
UTF-8
124
3.65625
4
[]
no_license
SELECT m.title, AVG(r1.stars) AS avg FROM Movie m JOIN Rating r1 USING (mID) GROUP BY m.title ORDER BY avg DESC, m.title ASC
true
e16e38fef0a243955770987fa721f767ef37a186
SQL
findByLike/supplybg
/supplybg.sql
UTF-8
819
2.65625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50550 Source Host : localhost:3306 Source Database : supplybg Target Server Type : MYSQL Target Server Version : 50550 File Encoding : 65001 Date: 2017-06-30 00:04:58 */ SET FOREIGN_KEY...
true
df7fb65fd6b2ae8a3138ae0ca398711e1fb858e8
SQL
SantiMarinPoli/SoundMusic
/BDScript/SOUNDMUSICDDL.sql
UTF-8
9,679
3.203125
3
[]
no_license
SELECT * FROM ALBUM; SELECT * FROM PAIS; SELECT * FROM CIUDAD; SELECT * FROM CONTACTO; SELECT * FROM ARTISTA; SELECT * FROM PERMISO; SELECT * FROM LOG_AUDITORIA; SELECT * FROM EMPRESA_DIFUSORA; SELECT * FROM ARTISTA_EMPRESA; SELECT * FROM COSTO_ACTIVITIDAD; SELECT * FROM LOGRO; SELECT * FROM LOGRO_ARTISTA; ...
true
8ccb73ff13808ecc1ffabdf318605caa44854be2
SQL
Aleejandra/Proyecto_Quicklist
/Base de datos/BD SQLServer/2 Crear y Eliminar Tablas.sql
ISO-8859-1
5,130
3.03125
3
[]
no_license
---------------------------------------------------------------------- QUICKLIST Use BaseDeDatosQuickList; ---------------------------------------------------------------------- CREAR TABLAS --FL create table T_Formato_De_Etapa_Lectiva( ID_Formato varchar(30) primary key, Version_Formato Int, Fecha_Act...
true
26c96e241b85e64822382e3169bbae0aa50eede2
SQL
hankatjac/DB_MySQL
/Queries/2_DriversWithLowRecords.sql
UTF-8
285
3.125
3
[]
no_license
select DriverID, DriverFirst, DriverLast, StartDate, EndDate, DriveRecord, if (DriveRecord='C', 'On Notice', if(DriveRecord in ('D','F'), 'Can Terminate Immediately', 'Statisfactory')) as 'Driving Record Status' from tbldriver where DriveRecord in ('C','D','F') order by DriveRecord ;
true
7fe8e196cb408ac088ba1c781132facddb45b775
SQL
rgarica311/writual-app-api
/migrations/015.do.create.treatments.sql
UTF-8
339
2.75
3
[]
no_license
create table treatments ( id int primary key generated always as identity, proj_name text, project_id uuid references projects(id) ON DELETE CASCADE, episode_id uuid references episodes(uni_id) ON DELETE CASCADE, treatment jsonb, date_updated TIMESTAMP WITH TIME ZONE DEFAULT CURRENT_TIMESTAMP, ...
true
b23d7e1b059fb338c420070563eb67782cafa282
SQL
QuickCods/BD
/teste1/F.sql
UTF-8
277
3.828125
4
[]
no_license
SELECT m.Title, SUM(s.Charge) AS Xmoney FROM MOVIE m, STREAM s, MOVIE_GENRE mg, GENRE g WHERE m.MovieId = s.MovieId AND mg.MovieId = m.MovieId AND s.MovieId = mg.MovieId AND g.GenreId = mg.GenreId AND g.Label = 'Action' GROUP BY m.Title ORDER BY Xmoney DESC, m.Title LIMIT 20;
true
66c22f7ebe1b1979d1b44293088ac1300030ccd7
SQL
VedranBrnjetic/BBCTestRecipe
/classes/db.sql
UTF-8
1,159
3.609375
4
[ "Apache-2.0" ]
permissive
drop database if exists bbctest; create database bbctest; use bbctest; drop table if exists User; create table User( id int not null primary key auto_increment, name nvarchar(50) not null, pass nvarchar(32) ); drop table if exists Recipe; create table Recipe( id int not null primary key auto_increment, name int ...
true
488087fd2fff6c7de1789d9ca63436e0fbb91f8e
SQL
mgrossbarth/CMSC-23500
/hw3/q2.sql
UTF-8
235
3.125
3
[]
no_license
SELECT * FROM (SELECT title, lname, year-birthYear AS age FROM Artists, Paintings WHERE artistID = painterID UNION SELECT title, lname, year-birthYear AS age FROM Artists, Sculptures WHERE artistID = sculptorID) ORDER BY age ASC;
true
a13fcfc8a95c7da99d5b91ea555d7d5d271dcd3e
SQL
erjan/coding_exercises
/stratascratch/medium/interview_questions/Cities With The Most Expensive Homes.sql
UTF-8
354
3.6875
4
[ "Apache-2.0" ]
permissive
Write a query that identifies cities with higher than average home prices when compared to the national average. Output the city names. with nat_avg as( select avg(mkt_price) from zillow_transactions), h2 as( select city, avg(mkt_price) from zillow_transactions group by city having avg(mkt_price) > ( select * fro...
true
0d7e3ca13a84577cbe02f51398e9a4e9f090bbb7
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/high/day22/select0036.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-21T00:36:00Z' AND timestamp<'2017-11-22T00:36:00Z' AND temperature>=15 AND temperature<=88
true
61fe28d14ffe166eeab4f516becac2f25c1533b0
SQL
Jujutsukaisen/ProbabilityPredicting
/JujutsuKaisen-DDL-queries.sql
UTF-8
2,154
3.53125
4
[]
no_license
CREATE TABLE city ( city_id NUMBER PRIMARY KEY, city_development NUMBER ); CREATE TABLE university ( university_id NUMBER PRIMARY KEY, university_name VARCHAR(255), university_ranking NUMBER, university_country VARCHAR(255) ); CREATE TABLE company ( company_id NUMBER PRIMARY KEY, ...
true
7ceeff72c61949eb39fdf76bdb63c92bc0c9fbca
SQL
believemeng/backendPro
/dspread/dspread.sql
UTF-8
8,312
3.140625
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for osx10.12 (x86_64) -- -- Host: localhost Database: dspread -- ------------------------------------------------------ -- Server version 5.7.17-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
true
e19d2e54651faf1151372135b25afc9b70484e22
SQL
masanobuimai/dba-example
/db/initdb/load07_FLIGHTAVAILABILITY2.sql
UTF-8
17,851
2.515625
3
[]
no_license
-- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. See the NOTICE file distributed with -- this work for additional information regarding copyright ownership. -- The ASF licenses this file to You under the Apache License, Version 2.0 -- (the "License"); you may not...
true
7db028280e609ccc0bbed26c26a8386981efa2d0
SQL
chaosbreakers/metagraph-auth
/docs/data/schema.sql
UTF-8
4,456
3.296875
3
[ "Apache-2.0" ]
permissive
/* Navicat MySQL Data Transfer Source Server : local-mysql Source Server Version : 50713 Source Host : localhost:3306 Source Database : metagraph Target Server Type : MYSQL Target Server Version : 50713 File Encoding : 65001 Date: 2017-05-23 16:29:19 */ CREATE TABLE IF NOT EXISTS...
true
d23d0ed5a6a91f8416e09ad24c7e82ba8c8a6bae
SQL
JuanOrtega10/Sistrans
/docs/aniadirProductosAlCarrito.sql
UTF-8
1,747
3.765625
4
[]
no_license
--Verificar que el carrito sea de la sucursal del estante. SELECT count(*) FROM A_ALMACENAMIENTO WHERE id=? AND idSucursal = (SELECT idSucursal FROM A_CARRITO WHERE id = idCarrito); --Si el resultado anterior es cero quiere decir que el estante no pertence a la sucursal donde se registró el carrito o no se ha cread...
true
25691b2de7f14ae8f1756f8ca9cec2e6e57f8588
SQL
RushanGajanayake/ACTA_Project
/database/acta_pro.sql
UTF-8
14,675
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Oct 03, 2014 at 12:35 PM -- Server version: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
true
2841f926502899e7969e7bee91f373545a0254be
SQL
MarcinBamburski1987/gallery-management-system
/uzytkownicy.sql
UTF-8
1,240
2.984375
3
[]
no_license
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_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; CREATE TABLE IF N...
true
3df3c88473e082a58f8d86b8daf88617b8a143fb
SQL
eapereira/coparticipacao
/CoParticipacaoCore/src/main/resources/20180920-005-dml-CARGILL-ISENTOS.sql
UTF-8
54,332
2.828125
3
[]
no_license
/** * Edson - 23/07/2018 * Script para criar processo Marjan */ drop procedure if exists PROC_CREATE_HOC; delimiter $$ create procedure PROC_CREATE_HOC() LANGUAGE SQL DETERMINISTIC SQL SECURITY DEFINER COMMENT 'Script para configurar o Hospital Oswaldo Cruz' BEGIN declare VAR_NM_SCRIPT_REQUIRED varchar( 400 ) d...
true
384e5e0bdc1b133ea89e7f49331fba8755fcc989
SQL
mathix420/ProjetStudent
/PiscinePHP/Day_05/ex14/ex14.sql
UTF-8
100
2.875
3
[]
no_license
SELECT floor_number AS floor, SUM(nb_seats) AS seats FROM cinema GROUP BY floor ORDER BY seats DESC;
true
5652afb6e2f14a152e9f8ab65c51891df8893b36
SQL
eliasst/studyproject
/Codes/population_comparison.sql
UTF-8
2,292
3.921875
4
[]
no_license
--Create table buildings_pop_census create table buildings_pop_census as select gid, ags, zensus_b_2, bez_krs, a.geom from erding_freising_zensusgrid_2011_srid4326 a, study_area_union b where st_intersects(a.geom,b.geom); --Rename column zensus_b_2 in buildings_pop_census to census_pop alter table buildings_pop...
true
380de5accadfdfff121e914b4644048599eff7f9
SQL
unirui/web
/Создание базы данных и таблиц в СУБД MySQL/query4.sql
UTF-8
350
3.359375
3
[]
no_license
select distinct yemets_gruppa.name, yemets_gruppa.date_begin, yemets_gruppa.date_end from college.yemets_gruppa inner join college.yemets_special on yemets_gruppa.special_id=yemets_special.special_id inner join college.yemets_otdel on yemets_special.otdel_id=yemets_otdel.otdel_id where yemets_otdel.name='Информационные...
true
31ec48134a4e88b640a7294fc2a64156f89fc95d
SQL
Shruti-Hanchate/task
/company_employee.sql
UTF-8
2,318
2.875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 19, 2021 at 09:23 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
d87a3f1adf0fe4b650952842e91918432509fa9a
SQL
accidentlywoo/sec
/db/procedure.sql
UHC
1,173
3.84375
4
[]
no_license
SET SERVEROUTPUT ON; -- ǿ ũƮ κп µǰ Default : off execute P1(1, 2); -- -- IF EXECUTE p2(88); -- LOOP EXECUTE p3; -- CURSOR : SELECT EXECUTE p4cursor; ---------------------------------------------- -- ֹϸ Ʈ ȴ. CREATE TABLE POINT( point_id VARCHAR2(10), point_score NUMBER(4) ); ALTER TABLE POINT ADD CON...
true
ebd59027ab0dfb44484bf238a5512e84e0aaa142
SQL
hogelog/batch-san
/db/migration/V5__Add_table_s3_backup.sql
UTF-8
408
2.734375
3
[ "MIT" ]
permissive
CREATE TABLE IF NOT EXISTS `s3_backup` ( `id` INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, `s3_bucket` VARCHAR(100) NOT NULL, `s3_path` VARCHAR(300) NOT NULL, `local_path` VARCHAR(300) NOT NULL, `size` INT(10) UNSIGNED NOT NULL, `created_at` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `updated_at` DATETIME ...
true
bf38282c1cb13e4cc6a3e073a1d1914ccd7e6af4
SQL
anastasiasivtseva/tweet
/127_0_0_1 (6).sql
UTF-8
6,492
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Июн 06 2019 г., 05:31 -- Версия сервера: 5.6.41 -- Версия PHP: 5.5.38 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
true
e35321b676cd1972a9dfcd056deee02f9b6c54b1
SQL
ataboo/go-natm
/migrations/20200809152450_add-projects.down.sql
UTF-8
587
2.578125
3
[]
no_license
ALTER TABLE project_associations DROP CONSTRAINT project_associations_project_id_fkey; ALTER TABLE project_associations DROP CONSTRAINT project_associations_user_id_fkey; ALTER TABLE tasks DROP CONSTRAINT tasks_assignee_id_fkey; ALTER TABLE tasks DROP CONSTRAINT tasks_project_id_fkey; ALTER TABLE tasks DROP CONSTRAINT...
true
0bfb6bc464fbe32e492f83aa03e76efae7691d1a
SQL
snowwayne1231/RVYearlyKPI
/Config/sql/seed/_old/20170818.sql
UTF-8
771
3.046875
3
[]
no_license
-- rv_year_performance_feedback 新增記錄 員工 當下的職類 ALTER TABLE `rv_year_performance_feedback` ADD COLUMN `staff_title_id` INT(2) NOT NULL DEFAULT '0' COMMENT '員工職類id' AFTER `staff_id`, ADD COLUMN `staff_title` VARCHAR(50) NOT NULL DEFAULT '0' COMMENT '員工職類' AFTER `staff_title_id`, ADD COLUMN `target_staff_title_id...
true
8b14bbda2914c36cac0d96e2a90cafe9a246a18b
SQL
silenceyeq/wichat
/src/main/resources/wichat.sql
UTF-8
1,942
3.140625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : 本机 Source Server Version : 50703 Source Host : localhost:3306 Source Database : wichat Target Server Type : MYSQL Target Server Version : 50703 File Encoding : 65001 Date: 2016-09-27 18:01:42 */ SET FOREIGN_KEY_CHECKS=0...
true
993ec27dc7f18bd02802ad2e032a57bd9d4a3ecd
SQL
gustavofvieira/luthier-F.e.R-created-in-2014
/Banco de dados/sistema.sql
UTF-8
5,121
3.078125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 14-Dez-2014 às 16:11 -- Versão do servidor: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
true
fb911a5331104eddb6662965d11f407280c1664f
SQL
manuelmayr/Switch
/spec/switch/translation/sql/complex/qry1.sql
UTF-8
432
3.484375
3
[]
no_license
WITH -- binding due to rownum operator t0000 (item1_int, item2_str, item3_dbl, pos4_nat) AS (SELECT a0000.id AS item1_int, a0000.name AS item2_str, a0000.price AS item3_dbl, ROW_NUMBER () OVER (ORDER BY a0000.name ASC) AS pos4_nat FROM article AS a0000) SELECT 1 AS iter10_nat, a0001.item2_s...
true
82f7bc2a81d6d87bc1c7fd09f180ccf4fd1541d9
SQL
jinw0909/mysqlDB
/Day03/ex01.sql
UTF-8
406
2.734375
3
[]
no_license
# DELETE 쿼리 # id가 1인 데이터 삭제하기 SELECT * FROM `user` WHERE id = 1; DELETE FROM `user` WHERE id = 1; DELETE FROM `user`; INSERT INTO `user` (`name`, `yyyymmdd`, `hobby`, `introduce`, `createdAt`, `updatedAt`, `email`) VALUES ('장진우', '19890909', '독서, 노래, 영화', '안녕하세요 \n 반가워요', now(), now(), 'jinw0909@gmail.com'); # id 초...
true
196e2a08bfe9aa85cc0fd7cb80dff728da268473
SQL
squireNben/we-cleanit
/db/create-tables.sql
UTF-8
1,685
3.34375
3
[]
no_license
create table users ( user_id serial primary key, auth_id text ); create table open_times ( time_id serial primary key, open_start_time text, open_end_time text ); create table client_appointments ( appointment_id serial primary key, client_name varchar(50), client_address varchar(150),...
true
519da8b273ff782a1f64a9a8ae66d60fbc9cd941
SQL
chance221/noteful-api
/migrations/002.do.create_notes.sql
UTF-8
314
3.21875
3
[]
no_license
DROP TABLE IF EXISTS notes; CREATE TABLE notes( id INTEGER PRIMARY KEY GENERATED BY DEFAULT AS IDENTITY (START WITH 100 INCREMENT BY 1), name TEXT NOT NULL, modified TIMESTAMP DEFAULT CURRENT_DATE NOT NULL, "folderId" INTEGER REFERENCES folders(id) ON DELETE CASCADE NOT NULL, content TEXT NOT NULL );
true
e828dfebe6487d575982fb265ace624d9e813f1c
SQL
cizmiak/ContractManagement
/Database/report/Stored Procedures/CourseAttendee.sql
UTF-8
4,213
3.234375
3
[ "MIT" ]
permissive
CREATE PROCEDURE [report].[CourseAttendee] @SkolenieID VARCHAR(MAX) = NULL, @OrganizaciaID VARCHAR(MAX) = NULL, @UskutocneneOD DATETIME = NULL, @UskutocneneDO DATETIME = NULL AS --DECLARE -- @SkolenieID INT = NULL SELECT s.[Id] ,s.[Reference] ,s.[Name] ,s.[CourseDate] ,s.[AttendeeCount] ,s.[PassedCount] ,...
true
3be22a18ef7a56778050897c6fa17a1fc922d33f
SQL
krishnamohankaruturi/secret
/aart-web-dependencies/db/ddl/712.sql
UTF-8
10,633
2.984375
3
[]
no_license
--ddl/712.sql --F671 -- Table: uploadgrffile -- DROP TABLE uploadgrffile; CREATE TABLE uploadgrffile ( id bigserial NOT NULL, assessmentprogramid bigint, batchuploadprocessid bigint NOT NULL, studentid bigint, statestudentidentifier character varying(50), aypschoolidentifier character varying(100), lo...
true