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
b8364af5dc9d3ed158caf9f49174d9a468dd0537
SQL
martinrangelov96/SoftUni-Lections-Exercises-And-Homeworks
/4.Database Basics MySQL SoftUni/08_Exam_Preparations_And_Exam/db_exam.sql
UTF-8
7,206
4.5625
5
[]
no_license
#TASK 00. Table Design CREATE TABLE `planets` ( `id` INT(11) PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(30) NOT NULL ); CREATE TABLE `spaceports` ( `id` INT(11) PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(50) NOT NULL, `planet_id` INT(11), FOREIGN KEY (`planet_id`) REFERENCES `planets`(`id`) ); CREAT...
true
c4c2ee93537088f7ddb05a397129d77c29296dcd
SQL
veep/solvewithus
/t/lib/schema.sql
UTF-8
1,635
3.078125
3
[]
no_license
CREATE TABLE user_team (user_id, team_id, member); CREATE TABLE user ( id integer primary key, google_name, google_id, display_name); CREATE TABLE team ( id integer primary key, google_group, display_name, chat_id); CREATE TABLE event (id integer primary key, team_id, display_name, state, chat_id); CREATE TABLE puzzle ...
true
4ef732776619a8740b61a161feb96e34cbe7fe10
SQL
DaoBach69/SQL
/Lab 03/SS07 - Ex1.sql
UTF-8
283
2.921875
3
[]
no_license
SELECT * FROM Person.Address SELECT DISTINCT (City) FROM Person.Address SELECT TOP 10 * FROM Person.Address SELECT TOP 25 PERCENT * FROM Person.Address SELECT AVG(Rate) FROM HumanResources.EmployeePayHistory SELECT COUNT(EmployeeID) AS TitleCount FROM HumanResources.Employee
true
da6e3c04e7ef8afb552ba3532076443a3e16b15f
SQL
Dcosta12/combo-dependente
/combo.sql
UTF-8
3,329
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 03-Jul-2020 às 23:45 -- Versão do servidor: 10.4.11-MariaDB -- versão do PHP: 7.2.26 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
true
8c8b72c05751d39ca035166dea8cb8bee5959468
SQL
MahrukhKhan/DataEngineering1
/Term-Project-1/SQL-Files/MahrukhKhan_Operational_Layer.sql
UTF-8
3,873
3.390625
3
[]
no_license
DROP SCHEMA IF EXISTS wash; CREATE SCHEMA wash; USE wash; SHOW VARIABLES LIKE "secure_file_priv"; SET GLOBAL local_infile = TRUE; SHOW VARIABLES LIKE "local_infile"; DROP TABLE IF EXISTS handwash; CREATE TABLE handwash( country VARCHAR(255), country_code VARCHAR(255), indicator VARCHAR (255), ar...
true
fb31d73a7c6692af8d2bba19f1797563acbb3565
SQL
JOHANBIN/ITCrewsHomepage
/DBSchemas/Latest/SP/SubjectInfo/UpdateSubjectInfo.sql
UTF-8
527
3.234375
3
[]
no_license
USE ITCREW; DELIMITER $$ SET collation_connection = @@collation_database; DROP PROCEDURE IF EXISTS update_subject_info $$ CREATE PROCEDURE update_subject_info( IN param_subject_id BIGINT, IN param_title varchar(50), IN param_desc varchar(5000), IN param_chg_user_no BIGINT, IN param_change_date_time datetime ) ...
true
2d15aead5bae03198b0be9d4d9507dc806bc8f25
SQL
DeyanDanailov/MS-SQL-Server
/ExamPreparation/Databases MSSQL Server Exam - 28 Jun 2020/8.Select spaceships with pilots younger than 30 years.sql
UTF-8
260
3.515625
4
[ "MIT" ]
permissive
SELECT s.[Name], s.Manufacturer FROM Colonists c JOIN TravelCards t ON t.ColonistId = c.Id JOIN Journeys j ON j.Id = t.JourneyId JOIN Spaceships s ON s.Id = j.SpaceshipId WHERE BirthDate > '1989-01-01' AND t.JobDuringJourney = 'Pilot' ORDER BY s.[Name]
true
b6139e9cb2ac9f10e0f42472552bdb503879b75f
SQL
krishnamohankaruturi/secret
/aart-web-dependencies/db/other/US17785_Update_StudentStateID_NJ.sql
UTF-8
212
2.734375
3
[]
no_license
--US17785: EP : Prod - Update student State ID - High UPDATE student SET statestudentidentifier = '7994179953' WHERE id = (SELECT id FROM student WHERE statestudentidentifier = '5187161329' AND stateid = 9634);
true
5fbd1168994854074b46feb7de54cc9e3c2449a2
SQL
tabaxy1970/social_web_api_server
/sql/shard.sql
UTF-8
4,892
3.078125
3
[ "MIT" ]
permissive
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: localhost Database: suarez_vm_shard1 -- ------------------------------------------------------ -- Server version 5.7.21 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULT...
true
8f9ae69026b1138945d637b3b7a9887058b8ad99
SQL
ISpectruM/Java_DB_Fundamentals
/A_Databases_Basics_MySQL/G_Functions_triggers_transactions/Exercises/p3_pr_start_with.sql
UTF-8
253
3.125
3
[]
no_license
USE soft_uni; DELIMITER $$ CREATE PROCEDURE usp_get_towns_starting_with(string_param VARCHAR(20)) BEGIN SELECT t.name FROM towns AS t WHERE LOWER(t.name) LIKE CONCAT(string_param,'%') ORDER BY t.name; END $$ CALL usp_get_towns_starting_with('b');
true
d9678f44b522422ed6ec33a48e5681e224ffe61e
SQL
Scrimley/phpFormativeAssement
/crypto.sql
UTF-8
1,162
3.578125
4
[]
no_license
DROP TABLE IF EXISTS `Machine`; CREATE TABLE `Machine` ( `machineId` int(10) unsigned NOT NULL AUTO_INCREMENT, `machineName` varchar(25) NOT NULL, `model` varchar(25) NOT NULL, `description` varchar(25) NOT NULL, `origin` varchar(25) NOT NULL, `imageURL`varchar(25) DEFAULT NULL, PRIMARY KEY (`mach...
true
ce073d168d8420e5d9576926b417b503fdffcde5
SQL
samaritanhu/swe_fall
/swe243p/exercise4.1.sql
UTF-8
2,309
4.4375
4
[]
no_license
# Problem 1 USE ap; SELECT vendor_id, SUM(invoice_total) AS invoice_total_sum FROM invoices GROUP BY vendor_id; # Problem 2 SELECT vendor_name, SUM(payment_total) AS payment_total_sum FROM vendors JOIN invoices ON invoices.vendor_id = vendors.vendor_id GROUP BY vendor_name ORDER BY payment_total_sum DESC; # Probl...
true
8a3a8194150e8c02b0dec8da20ee9dae8d9a2520
SQL
andresramos23/Proyecto2
/update/update_player_nationality.sql
UTF-8
290
3.015625
3
[]
no_license
USE `proyecto2`; DROP procedure IF EXISTS `update_player_nationality`; DELIMITER $$ USE `proyecto2`$$ create procedure update_player_nationality(pnationality int,pId int) BEGIN update player set id_nationality = pnationality where id_player = pId; commit; END$$ DELIMITER ;
true
a7b02b9fc134298cb5ad811a64e000341a6a2a27
SQL
marcionicolau/personal_mle
/capstone-project/Dataset/filter_food.sql
UTF-8
1,068
3.640625
4
[ "MIT" ]
permissive
SELECT fd.NDB_No, fg.FdGrp_desc, fd.Long_Desc, fd.Shrt_Desc, fd.Pro_Factor_, fd.Fat_Factor_, fd.CHO_Factor, ninfo.prot_val, ninfo.fat_val, ninfo.cho_val, fd.Pro_Factor_ * ninfo.prot_val AS pro_cal, fd.Fat_Factor_ * ninfo.fat_val AS fat_cal, ...
true
1256a3d29d77859d761a859dbc1bd3f69e904f21
SQL
kevinmmartins/node-multi-tenant-application
/tenant_2_data.sql
UTF-8
281
2.5625
3
[ "Apache-2.0" ]
permissive
CREATE TABLE users( id INT PRIMARY KEY, first_name VARCHAR(255) NOT NULL, last_name VARCHAR(255) NOT NULL, email VARCHAR(255) NOT NULL, address VARCHAR(400) ); INSERT INTO users(id,first_name, last_name, email, address) VALUES (1,'Kauan', 'Martins', 'kauanmmartins@egmail.com', 'USA');
true
13ebbc73fc35121e64fd3c49953f4df688b9e5b4
SQL
benursal/clinic
/db.sql
UTF-8
5,195
3.625
4
[]
no_license
/* SQLyog Community v12.04 (32 bit) MySQL - 5.6.21 : Database - monte ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=...
true
a3c3915983f4665091b1ba7d4a7df0834acf31ca
SQL
GarvenYu/spring-boot-all
/spring-boot-mybatis/src/main/resources/init-sql/schema.sql
UTF-8
668
2.5625
3
[ "Apache-2.0" ]
permissive
SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for `boot_user` -- ---------------------------- DROP TABLE IF EXISTS `boot_user`; CREATE TABLE `boot_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(32) DEFAULT NULL, `tel` varchar(11) DEFAULT NULL, `create_time` datetime...
true
97c7546322e7e05ca04dc5382b4509b32d43107d
SQL
ClickHouse/ClickHouse
/tests/queries/0_stateless/02185_arraySlice_negative_offset_size.sql
UTF-8
791
2.546875
3
[ "BSL-1.0", "Apache-2.0" ]
permissive
select arraySlice([1, 2, 3, 4, 5, 6, 7, 8], -2, -2); select arraySlice(materialize([1, 2, 3, 4, 5, 6, 7, 8]), -2, -2); select arraySlice(materialize([1, 2, 3, 4, 5, 6, 7, 8]), materialize(-2), materialize(-2)); select arraySlice([1, 2, 3, 4, 5, 6, 7, 8], -2, -1); select arraySlice(materialize([1, 2, 3, 4, 5, 6, 7, 8])...
true
20f2880bf9170b43adc75614730c592f05a9f85a
SQL
peterlegrand/StudentUnion0105
/StudentUnion0105/MasterDataScripts/StoredProcedures/ClassificationSelectOne.sql
UTF-8
1,103
3.671875
4
[]
no_license
CREATE PROCEDURE ClassificationSelectOne (@Id int, @LanguageId int) AS SELECT dbClassification.Id , dbClassificationLanguage.LanguageId , 0 ParentId , dbClassificationLanguage.Name , dbClassificationLanguage.Description , dbClassificationLanguage.MouseOver , dbClassificationLanguage.MenuName , dbClassification...
true
e39ee459708738a8bfaf8501ff3c96d087bfd1a9
SQL
klikaba/spring-template
/src/main/resources/db/migration/V01_01__create_countries_table.sql
UTF-8
130
2.515625
3
[]
no_license
CREATE TABLE countries ( id CHAR(36) NOT NULL, iso_code CHAR(3) NOT NULL UNIQUE, name VARCHAR(64) NOT NULL, PRIMARY KEY(id) );
true
790809a465c3ad79bc2312a1543e0f8d04c0f033
SQL
TodorNikolov89/SoftwareUniversity
/DatabasesBasicsMS_SQLServer_Jan2019/DataAggregation/DataAggregation.sql
MacCentralEurope
4,217
4.28125
4
[ "MIT" ]
permissive
--Problem 1. Records Count SELECT COUNT(WizzardDeposits.Id) AS [Count] FROM WizzardDeposits --Problem 2. Longest Magic Wand SELECT MAX(MagicWandSize) AS [LongestMagicWand] FROM WizzardDeposits --Problem 3. Longest Magic Wand per Deposit Groups SELECT TOP 2 DepositGroup FROM WizzardDeposits AS w GROUP BY w...
true
480fdc6a354f37c230fedc5777fa8905c995d3da
SQL
yangjime4/ywg_manage_sql
/sql/门或者街道为空的商位数据.sql
UTF-8
650
3.125
3
[]
no_license
select wm.market_name, sb.boothno, sb.boothmodel, so.real_name from t_shop_booth sb, t_web_market wm, t_shop s, t_sys_operator so where (MARKET_DOOR is null or market_street is null) and sb.submarket in('1001', '1003', ...
true
0ad5735eb15fa8f46e03649c88e16ff6208359a2
SQL
virtyaluk/leetcode
/problems/1468/solution.sql
UTF-8
528
4.0625
4
[]
no_license
# Write your MySQL query statement below with cte as ( select company_id, max(salary) as max_salary from Salaries group by 1 ) select s.company_id, s.employee_id, s.employee_name, round(s.salary - (s.salary * (case when cte1.max_salary < 1000 ...
true
7b01dc246d21df5f9c91fa70370cf2c2d57c2232
SQL
jkstill/oracle-script-lib
/sql/unrecoverable-files.sql
UTF-8
341
2.625
3
[ "MIT", "LicenseRef-scancode-proprietary-license" ]
permissive
--unrecoverable.sql @ttitle 'Unrecoverable Report' set line 200 trimspool on set pagesize 100 col name format a80 alter session set nls_date_format = 'yyyy-mm-dd hh24:mi:ss'; select name, unrecoverable_time, unrecoverable_change# from v$datafile where unrecoverable_time is not null and unrecoverable_change# ...
true
9d34e60f1108b7be337c7813fbdc26d83509f4d9
SQL
dingjinhui821/julive_database
/schema/julive_ods/bd_license_relation.sql
UTF-8
899
2.890625
3
[]
no_license
drop table if exists ods.bd_license_relation; create external table ods.bd_license_relation( id bigint comment '', license_id int comment '许可证id', business_type i...
true
7d4b8afe253fa18d54e2ca5aab85957d4c53b568
SQL
yuriap/OPAS
/modules/sql_trace/source/TRC_PROCESSFILE_BODY.SQL
UTF-8
47,862
2.6875
3
[]
no_license
CREATE OR REPLACE PACKAGE BODY TRC_PROCESSFILE AS cursor g_file_crsr(p_fname trc_files.filename%type) is select line_number rn, payload frow from trc$tmp_file_content order by line_number; subtype t_row_type is varchar2(100); type t_trc_row_type is table of number index by t_row_type; subtype t_token_typ...
true
03f844d393617243c4ecb3e193bfa0910544325c
SQL
9wilson6/ryanwriters
/acc_mngt.sql
UTF-8
8,750
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 22, 2018 at 06:58 PM -- 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
537ba11614cdbeac32ac193414fdfb3e21834a18
SQL
carlosfeitosa/zf_project
/rochedo/zendstudio/zf_project/scripts/db/pgsql/data/sprints_0001~0013/0025_associacoes/data_seq_200050.05.basico_form_assoccl_elem_grupo.assoccl_decorator.sql
UTF-8
6,533
2.625
3
[]
no_license
/* * SCRIPT DE POPULACAO DA TABELA basico_form_assoccl_elem_grupo.assoccl_decorator * * versao: 1.0 (POSTGRESQL 8.4.1) * por: Joao Vasconcelos (joao.vasconcelos@rochedoframework.com) * criacao: 26/09/2012 * ultimas modificacoes */ INSERT INTO basico_form_assoccl_elem_grupo.assoccl_decorator (id_grupo, id_decorator, ...
true
bc719d268b563830a36dcd1d7808bc88af8fd5f1
SQL
Leshy4/SQL-Database-Design
/4. Intro to SQL/exercise_SOLUTIONS/SQL scripts/ch11/fig11-05.sql
UTF-8
1,036
3.109375
3
[]
no_license
-- use the AP schema CONNECT ap/ap; CREATE OR REPLACE VIEW vendor_payment AS SELECT vendor_name, invoice_number, invoice_date, payment_date, invoice_total, credit_total, payment_total FROM vendors JOIN invoices ON vendors.vendor_id = invoices.vendor_id WHERE invoice_total - payment_total - credit...
true
9d2fca39c8f3a8180e7a34851c48f4d0ae360fbb
SQL
mpolson64/repertorre
/migrations/2021-02-02-194425_create/up.sql
UTF-8
329
3.390625
3
[]
no_license
CREATE TABLE IF NOT EXISTS positions ( id INTEGER PRIMARY KEY, fen VARCHAR NOT NULL ); CREATE TABLE IF NOT EXISTS moves ( id INTEGER PRIMARY KEY, san VARCHAR NOT NULL, from_id INTEGER NOT NULL, to_id INTEGER NOT NULL, FOREIGN KEY (from_id) REFERENCES positions(id) FOREIGN KEY (to_id) REFERENCES positio...
true
248b2754cca58bf67179d9ca4310fed7637409de
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day20/select0225.sql
UTF-8
178
2.65625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-19T02:25:00Z' AND timestamp<'2017-11-20T02:25:00Z' AND temperature>=15 AND temperature<=59
true
36219b7b8ed493a4fe38f8e8cf227a0780104562
SQL
simonNozaki/parallel-api
/src/main/resources/db/migration/V1_0_0__create_tables.sql
UTF-8
993
3.734375
4
[ "Apache-2.0" ]
permissive
-- DB操作ユーザを作成 --CREATE ROLE localuser WITH LOGIN PASSWORD '21405apple'; -- テーブルを作成 create table IF NOT EXISTS users( user_id CHAR(10) NOT NULL, user_name VARCHAR(50) NOT NULL, email VARCHAR(100) NOT NULL, password VARCHAR(50), used_flag CHAR(1) NOT NULL, PRIMARY KEY(user_id) ); create table IF NOT EXISTS tas...
true
2d5e812bcc04547e9b5be78922b047373ab70182
SQL
Stonnos/eca-infrastructure
/postgres/backups/eca-audit-log-backup.sql
UTF-8
20,306
2.78125
3
[]
no_license
-- -- PostgreSQL database dump -- -- Dumped from database version 13.9 (Debian 13.9-1.pgdg110+1) -- Dumped by pg_dump version 14.2 -- Started on 2023-06-30 22:14:48 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_stri...
true
47093caae021d49cfc308b869861e31c266c5929
SQL
hackerkid/DBMS-Assignment
/plsql/cursor/1.sql
UTF-8
313
3.125
3
[]
no_license
# Question 1 DECLARE id customer1.cid%type; name customer1.c_name%type; cursor c_customer is select cid, c_name from customer1; BEGIN open c_customer; LOOP fetch c_customer into id, name; dbms_output.put_line(id || ' ' || name); exit when c_customer%notfound; END LOOP; close c_customer; END;
true
a722898a8f21e6af959df6bdd0f16deffb286822
SQL
tylerlewisjcg/lookingtotomorrow
/db/current_skills_DB/select_users_current_skills.sql
UTF-8
123
2.9375
3
[]
no_license
SELECT * from users JOIN current_skills ON current_skills.id = users.id WHERE users.id = $1 ORDER BY current_skill_id ASC;
true
4a0b7d60db9cad50f4d2fadbc4d5c197ef7f07a0
SQL
rajeshghourvani/assessor
/assessorportal/AMPSQL/AMP/Packages/BYE_MGMT.sql
UTF-8
11,920
2.828125
3
[]
no_license
-------------------------------------------------------- -- DDL for Package BYE_MGMT -------------------------------------------------------- CREATE OR REPLACE EDITIONABLE PACKAGE AMP.BYE_MGMT AS /************************************************************************************************************** NAME: ...
true
8466d7a5430f9f33296519658d7705bebfddc9d2
SQL
marceloedudev/ms-auth
/pkg/postgres/dbfake/dbsql/3_managings_table.sql
UTF-8
162
2.578125
3
[]
no_license
CREATE TABLE IF NOT EXISTS managing( id INTEGER PRIMARY KEY AUTOINCREMENT, managing_id VARCHAR(32) NOT NULL, enabled BOOLEAN NOT NULL DEFAULT TRUE );
true
624b20d8dcef927b274edbbf63a71155dc5de306
SQL
david1412/KEKmodel
/spatial.sql
UTF-8
4,530
4.3125
4
[ "Apache-2.0" ]
permissive
--SET search_path = public,energymap; --CREATE EXTENSION postgis; --SELECT * FROM public.spatial_ref_sys WHERE srid = 4326 /* CREATE TABLE buildings( id SERIAL , name character varying, stories integer, area_sum numeric ) */ --SELECT version() /* CREATE TABLE energymap.buildings AS SELECT * FROM buildings WHERE...
true
a75ac78a577e353d4407fa9636af5a8aba0f6c09
SQL
bbarkji-programer/Today-what-I-have-learned
/2_DB/200106.11_index.sql
UHC
972
3.734375
4
[]
no_license
-- ȸӵ ̱ ε DROP TABLE EMP01; CREATE TABLE EMP01 AS SELECT*FROM EMP; INSERT INTO EMP01 SELECT*FROM EMP01; SELECT COUNT(*) FROM EMP01; DESC EMP01; INSERT INTO EMP01(EMPNO,ENAME) VALUES (1111,'HONG'); -- 1% HONG INSERT INTO EMP01 SELECT*FROM EMP01; -- 12? 462848row SELECT*FROM USER_INDEXES; -- EMP01 ̺ õ ε Ȯ SELECT*F...
true
b668cded54ba3de214960fbc5bc9fc6afe466a9a
SQL
ramosam/CS276-BasicSQL
/CS275/lab5/lab5-theory.sql
UTF-8
1,278
4.5625
5
[]
no_license
-- LAB 5 -- -- Nulls are not included in aggregate counts -- the only time you don't have to use group by is when you include other values -- (just the aggregate) -- select product.v_code, vendor.v_name, avg(p_price) -- from product -- join vendor on product.v_code = vendor.v_code -- group by product.v_code, vendor.v...
true
cc18af56f85c787988530f6eed40cf3ae4023a44
SQL
abhideve9/hawker29012021
/websocket/newSQLTemplate.sql
UTF-8
1,724
3.125
3
[ "MIT", "LicenseRef-scancode-unknown-license-reference" ]
permissive
begin IF EXISTS(SELECT gateway_id FROM live_records WHERE id_card= NEW.id_card AND rssi >=new.rssi) THEN UPDATE live_records SET id=new.id,time_spend= TIMEDIFF(new.time,entry_time),time=NEW.time,rssi=new.rssi WHERE id_card= NEW.id_card ; ELSEIF EXI...
true
44d175f16b01f4518822ee00587b2bbbff7fb231
SQL
Eclipse972/Dossiers_Techniques
/BD/Vue_nomenclature.sql
UTF-8
1,065
3.4375
3
[]
no_license
DROP VIEW IF EXISTS Vue_nomenclature; CREATE VIEW Vue_nomenclature AS SELECT Supports.ID AS support_ID, CONCAT('<td>',Pieces.repere,'</td>') AS repere, CONCAT( '<td><a href="/Supports/',Supports.dossier,'/fichiers/',Pieces.fichier,if((Pieces.assemblage = 0),'.EPRT','.EASM'), '" title="T&eacute;l&eacute;charger l...
true
f583a314798f56784488e83fb548b716e54a85ed
SQL
dmenges22/teacher-resources
/teachresources.sql
UTF-8
3,503
3.640625
4
[]
no_license
-- 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='TRADITIONAL,ALLOW_INVALID_DATES'; -- ----------------------------------------------------- -- Schema TeacherDa...
true
a4cd226d7ad9adb219d6874dcc1c70d112d783eb
SQL
chocoai/ebspos
/sql/ckinitstore.sql
UTF-8
2,008
2.984375
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost Source Server Version : 50145 Source Host : localhost:3306 Source Database : ebspos Target Server Type : MYSQL Target Server Version : 50145 File Encoding : 65001 Date: 2013-09-11 15:43:04 */ SET FOREIGN_KEY_CHECKS=0; -- --...
true
6fcd67221ca5e41172f8e359a16740db7ad965c6
SQL
carlos-04/command-of-sql-server
/Clausulas.sql
UTF-8
2,983
3.46875
3
[]
no_license
create table Maestro ( MaestroId int primary key identity(1,1) not null, Nombre varchar(50), Apellido varchar(50), Correo varchar(500), Direccion varchar(500), Edad int, Sueldo money, FechaIngreso Date, ); --el where me va a permitir hacer consultas en especifico por ejemplo --en este ejemplo me esta tray...
true
997fb0cfc77362a54746c2db79840237c5224788
SQL
aguaragazu/Ext-PHP
/sample-sql/sample.sql
UTF-8
2,791
3.421875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 30, 2011 at 02:54 PM -- Server version: 5.5.8 -- PHP Version: 5.3.5 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SE...
true
b1a8ba6eb6647a11fd7a6c6b0c8c4085ecbefeb9
SQL
afridiwaqar/TailorShop-Management-System
/Database/tailorshop.sql
UTF-8
14,456
3.296875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Mar 27, 2021 at 06:30 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
96ab79e1f841ddca1e03df35b4e2488cf55060d1
SQL
olegls2000/casino-demo
/src/main/resources/db/migration/V20210322182942__RoleTableCreation.sql
UTF-8
331
3.359375
3
[]
no_license
CREATE TABLE IF NOT EXISTS role ( id serial primary key, role varchar(50) unique NOT NULL ); CREATE TABLE IF NOT EXISTS user_account_x_role ( role_id int references role (id) NOT NULL, user_account_id int references user_account (id) NOT NULL, PRIMARY KEY (role_id, user_acc...
true
b9e0b7d93d8eca3166d4483b18efb5f555cbae6e
SQL
moon-lee/mywebci
/conf/docs/sql_scripts/datamining_spending.sql
UTF-8
3,050
4.09375
4
[]
no_license
/* MASTER CATEGORY */ SELECT SUBSTR(a.master_category,1sp_spend_year_month_by_category,1) as master_category, b.cat_name as master_name, sum_spend_amount FROM (SELECT CONCAT(SUBSTR(spend_category, 1, 1), '00') AS master_category, SUM(spend_amount) AS sum_spend_amount FROM wspending WHERE YEAR(spend_date) = ...
true
f4265c5d598e5e475c45bd882688d52fbd4870f8
SQL
rayacooper/HealthyHome
/db/get_todos_for_user.sql
UTF-8
211
3.28125
3
[]
no_license
select ut.users_todos_id as id, t.todo_item, t.todo_id, ut.date_added, t.frequency_id from user_todos_table as ut join list_todos_table as t on ut.todo_id = t.todo_id where user_id = $1 and ut.is_active = true
true
0229a5f7d61d93a1c0a66c1110da0bd98c4b5433
SQL
DNS-Leo/catzone
/pdns-primary_mysql/mysql-3-insert-zones.sql
UTF-8
948
2.75
3
[]
no_license
USE powerdns; -- The next 3 queries can easily be recycled to insert multiple domains -- set two variables (domain id, zone apex): SELECT 2, 'example.com' INTO @'i',@'d'; -- two insert queries INSERT INTO domains (id, name, type) VALUES (@'i', @'d', 'NATIVE'); INSERT INTO records (domain_id, name, ttl, type, prio, con...
true
b3decd2b99a86941c2c05d9ffc0c8c57650658a0
SQL
with-tang/secKillDemo
/src/main/sql/schema.sql
GB18030
3,055
3.953125
4
[]
no_license
--ݿʼű-- --ݿ create database seckill; --ʹݿ use seckill; --ɱ create table seckill ( 'seckill_id' bigint not null comment'ƷID', 'name' varchar(120) not null comment 'Ʒ', 'number' int not null comment 'Ʒ', 'start_time' timestamp not null comment 'ʼʱ', 'end_time' timestamp not null comment 'ʱ', 'create_time' timestamp n...
true
026fc41bb4a90ed53005fd88f5df1d59e30229dc
SQL
cprevallet/fitplot
/20161004162542_addtemperature.sql
UTF-8
600
3
3
[ "Apache-2.0" ]
permissive
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied ALTER TABLE "runfiles" ADD COLUMN "temperature" REAL DEFAULT 0.0; -- +goose Down -- SQL section 'Down' is executed when this migration is rolled back ALTER TABLE "runfiles" RENAME TO "temp_runfiles"; CREATE TABLE IF NOT EXISTS "runfile...
true
9d1eaf70a63b6c20c42cac5b697a9616d12ac378
SQL
semadenipaul/Node-CS313
/finalProject/insert.sql
UTF-8
12,091
2.578125
3
[]
no_license
INSERT INTO person (first_name, last_name, USER_NAME, password, person_email, new_person, city, state) VALUES ('Mike', 'Mizouski', 'MikeMizouski', 'd@tswrite88', 'mike@monsters.inc', True, 'Munster', 'Wisconsin'); INSERT INTO person (first_name, last_n...
true
89044bd1e9d9282f77a20351bafbc5435a522a3e
SQL
hce-project/hce-bundle
/src/api/python/ini_default/dc_sites_default.sql
UTF-8
5,460
3.453125
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 */; -- -- Database: `dc_sit...
true
ebd093842d807a9a76942eaa60976ffea09c7b7a
SQL
770380899/happly
/seckill/src/main/sql/schema.sql
UTF-8
1,891
3.859375
4
[ "Apache-2.0" ]
permissive
-- 数据库初始化脚本 -- 创建数据库 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 NOT...
true
c4b6e320cc2ddd482cb248fec0b40ee05b625abd
SQL
bvgWinnir/my-springcloud-alibaba
/info.sql
UTF-8
1,258
3.015625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : 本地mysql Source Server Type : MySQL Source Server Version : 50729 Source Host : localhost:5306 Source Schema : Microservice-c Target Server Type : MySQL Target Server Version : 50729 File Encoding : 65001 Date: 20/04/20...
true
cf371876f93accc05424126173eee31e2b35ed25
SQL
marcos2303/sigeconfis
/docs/ALTERS 2013-05.sql
ISO-8859-1
20,979
2.890625
3
[]
no_license
-- 2013-05-06 ALTER TABLE `siaceda`.`ap_obligaciones` ADD COLUMN `TipoObligacion` VARCHAR(2) NULL AFTER `FlagNomina` , ADD INDEX `TipoObligacion` (`TipoObligacion` ASC) ; ALTER TABLE `siaceda`.`ap_obligaciones` CHANGE COLUMN `NroControl` `NroControl` VARCHAR(25) NOT NULL ; ALTER TABLE `siaceda`.`pr_obligaciones` C...
true
f03fb131d0a3a21fc4210ab076db3f5edebb2d0a
SQL
jeffersonsevero/estudos_bd
/views.sql
UTF-8
339
3.125
3
[]
no_license
/*views são tabelas virtuais criadas apartir do resultados de alguma consultas que posteriormente você poderá fazer consultas nas views*/ SELECT * FROM usuarios WHERE faixa_salarial = 1; CREATE VIEW usuarios_faixa1 as SELECT * FROM usuarios WHERE faixa_salarial = 1; SELECT * FROM usuarios_faixa1 WHER...
true
cecf81029d377393cd2a97e5113a79b4afe04808
SQL
DanielPeixoto712/PSI-PAP3
/pap1.sql
UTF-8
5,503
3.15625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 16-Abr-2021 às 15:30 -- Versão do servidor: 10.4.18-MariaDB -- versão do PHP: 7.3.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
true
868d15b6ddc971c984479ba8ef3a4d9461a43229
SQL
viralhirani/OpenTradingPlatform
/main-server/WebSocketServer/BitcoinExchange.sql
UTF-8
3,036
3.90625
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'; DROP SCHEMA IF EXISTS `BitcoinExchange` ; CREATE SCHEMA IF NOT EXISTS `BitcoinExchange` DEFAULT CHARACTER SET cp850 ...
true
958ef24ca1d47787fe5cc9fc4a5114be53654467
SQL
Thanh0906/module3
/module3/ss4_cac_ham_thong_dung_trong_sql/bai_tap/luyen_tap_su_dung_cac_ham_trong_sql.sql
UTF-8
824
4
4
[]
no_license
use quan_li_sinh_vien; -- Hiển thị tất cả các thông tin môn học (bảng subject) có credit lớn nhất. select sub_id,sub_name,status,max(credit) as max_credit from subject; -- Hiển thị các thông tin môn học có điểm thi lớn nhất. select s.sub_id,s.sub_name,s.credit,s.status,max(m.mark) as max_mark from subject s join mark...
true
5ba39b6785e90ec3bf312c6db0bf1d6cc74b33ee
SQL
tnjohnson/personal-projec1-devmtn
/db/get_assigned_jobs.sql
UTF-8
425
3.3125
3
[]
no_license
SELECT administrator, assigned_user, completed, description, users.id as user_id, jobs.id as job_id, job_title, notes, user_name, user_role FROM users JOIN jobs ON users.id = jobs.assigned_user WHERE users.id = ${userId} AND completed = false ; -- SELECT * -- FROM use...
true
8cfb6ef36cd182227e8e91ebe897b9306ee3a7c4
SQL
klmsathish/DatabaseManagementSystem
/SelfPractice.sql
UTF-8
1,810
3.875
4
[]
no_license
create database practice; use practice; create table country(country_id int not null unique, country_name varchar(25) not null,region_id int not null unique,primary key(country_id,country_name),check (region_id>10)); create table city(city_id int primary key, city_name varchar(50),country_no int,coun_name varchar(25),...
true
ff1981e7a58fa944dda201663847f8cd0df54021
SQL
kutafin/webapp
/src/main/resources/database.sql
UTF-8
1,063
3.296875
3
[]
no_license
CREATE TABLE shorturl ( idUrl INT NOT NULL AUTO_INCREMENT PRIMARY KEY, url VARCHAR(255) NOT NULL, shortUrl VARCHAR(45) NOT NULL, description VARCHAR(255), views INT, id INT, idTag INT ); CREATE TABLE roles ( id INT NOT NULL AUTO_INCREMENT PRIMAR...
true
6d1616a8c268059bfe129b8a6adeb55afb40b640
SQL
shunyuchu/dbt5-0.1.0
/storedproc/pgsql/c/market_watch.sql
UTF-8
1,717
3.03125
3
[ "Artistic-1.0" ]
permissive
/* * This file is released under the terms of the Artistic License. Please see * the file LICENSE, included in this package, for details. * * Copyright (C) 2006-2007 Rilson Nascimento * 2007 Mark Wong * * Market Watch tr...
true
42c381641ebff8d32d22ca50fad6ae9402972678
SQL
Monica1W/Node.js-MySQL
/info/schema.sql
UTF-8
297
3.03125
3
[]
no_license
create database bamazon; use bamazon; create table products( item_id integer(10) auto_increment not null, product_name varchar(100) not null, department_name varchar(100) not null, price decimal (10,2) not null, stock_quantity integer(25) not null, primary key(item_id) );
true
e672d93737c56a0a704f4e19d10f80573458c1b0
SQL
ywang89/leetcode
/solutions/597_friends_request.sql
UTF-8
805
3.671875
4
[]
no_license
/* ** Question: https://leetcode.com/problems/friend-requests-i-overall-acceptance-rate/ ** Below is in MySQL, not Oracle. ** Reference: ** COALESCE: https://www.postgresql.org/docs/9.2/functions-conditional.html */ -- method 1 /* SELECT ROUND( IFNULL( (SELECT COUNT(*) FROM (SELECT DISTINCT requ...
true
ee87c2d752f6226b5e01b61a0a38e7a92b1bdf68
SQL
AliNisarAhmed/postgres-exercises
/aggregates/8.sql
UTF-8
340
3.921875
4
[]
no_license
-- Produce a list of facilities with more than 1000 slots booked. -- Produce an output table consisting of facility id and slots, sorted by facility id. SELECT fcs.facid, SUM(bks.slots) FROM cd.facilities AS fcs INNER JOIN cd.bookings AS bks ON bks.facid = fcs.facid GROUP BY fcs.facid HAVING SUM(bks.slots) > 1000 O...
true
816ae75c0aefa5d9fead69550f69c356c7e7fd5e
SQL
SergioCoP/CMC-System
/BDD-ACTUALIAZADA.sql
UTF-8
20,663
3.4375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 19-08-2021 a las 00:25:49 -- Versión del servidor: 10.4.20-MariaDB -- Versión de PHP: 8.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
d75ee29985fc38714d769987e72aff03ccd46538
SQL
shelmesky/ndoutils_mq
/db/queries/servicegroup_membership.sql
UTF-8
880
3.25
3
[]
no_license
SELECT nagios_instances.instance_id ,nagios_instances.instance_name ,nagios_servicegroups.servicegroup_id ,nagios_servicegroups.servicegroup_object_id ,obj1.name1 AS servicegroup_name ,nagios_servicegroups.alias AS servicegroup_alias ,nagios_services.service_object_id ,obj2.name1 AS host_name ,obj2.name2 AS service_d...
true
ba5393abcb41ab7941f562f89c5b86868afb785c
SQL
biosan11/bidata
/pdm/sql/sales_order.sql
UTF-8
12,499
3.03125
3
[]
no_license
------------------------------------程序头部---------------------------------------------- --功能:整合层订单 ------------------------------------------------------------------------------------------ --程序名称:sales_order.sql --目标模型:sales_order --源 表:ufdata.so_somain,ufdata.so_sodetails,edw.dic_customer --------------------------...
true
a7e5d64d163475502aa7d29e65e7a680d3b63c2a
SQL
MrCsabaToth/SOEMPI
/data/create_database_schema.sql
UTF-8
42,887
3.453125
3
[]
no_license
------------------------------------------ --Host : localhost --Database : openempi SET SESSION AUTHORIZATION 'openempi'; SET search_path = public, pg_catalog; -- Structure for table app_user (OID = 34479): CREATE TABLE app_user ( id bigint NOT NULL, username varchar(50) NOT NULL, email varchar(255)...
true
611d634a3f120793b3d05b26f8432bb585ae06a1
SQL
marilynpi/editorial_node_angular
/backup/data_base/editorial-26-04-final.sql
UTF-8
2,231
3.234375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 27-04-2015 a las 08:33:05 -- Versión del servidor: 5.6.17 -- Versión de PHP: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA...
true
919c40c625f09998166eb54c40af0d7706e180b3
SQL
CBIIT/onedata-mdr
/od-db-sprints/sprint42/S42_NCI_EXT_IMPORT.sql
UTF-8
12,532
3.21875
3
[]
no_license
create or replace PACKAGE nci_Ext_import AS procedure load_MedDra; procedure loadBiomarkerSyn; procedure load_Subsets_old; procedure spLoadSubset (v_data_in in clob, v_data_out out clob); end; / create or replace PACKAGE BODY nci_ext_import AS FUNCTION getWordCountGeneric (v_nm IN varchar2, v_char in varchar2) RETURN ...
true
e15dacfcca9e2ae8ba959192d079c90037c60186
SQL
denyskaduk/Vocabulary-v5.0
/MedDRA/load_stage.sql
UTF-8
23,011
3.328125
3
[ "Unlicense" ]
permissive
/************************************************************************** * Copyright 2016 Observational Health Data Sciences and Informatics (OHDSI) * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the Li...
true
a607ad1f892b937cf2bcfd72f65e1e5ca39cac8b
SQL
jplante815/meican
/db/data/acos.sql
UTF-8
1,176
2.796875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.2deb1 -- http://www.phpmyadmin.net -- -- Servidor: localhost -- Tempo de Geração: Ago 25, 2011 as 03:16 PM -- Versão do Servidor: 5.1.41 -- Versão do PHP: 5.3.2-1ubuntu4.9 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!...
true
42184fb44283a08f4fea33c9e9a5a81dd90f4518
SQL
ZVlad1980/pipelined_exam
/scripts/calc/check_assignments.sql
UTF-8
2,793
3.90625
4
[]
no_license
with w_asg as ( select distinct asg.fk_doc_with_acct from ( select asg.fk_doc_with_acct, asg.paydate, round(asg.amount, 2) amount from assignments_fnd asg where fk_asgmt_type = 2 minus select asg.fk_doc_with_acct, asg.paydate, round(asg.amount, 2) amount ...
true
1525506ce728d41e9fcfb20054625b864fd494f4
SQL
imaginaCode/turma11java
/BackEnd/MySQL/banco2.sql
UTF-8
749
3.46875
3
[]
no_license
create database Ford; drop database ford; show databases; use aula1; CREATE TABLE funcionarios ( nome VARCHAR(30), idade TINYINT, sexo CHAR(1), peso FLOAT, altura FLOAT, nacionalidade VARCHAR(20) ); insert into funcionarios values ("Juliana", 22 , 'f', 60, 1.65,"Brasileira"), ("Gabriel", 22 ...
true
eede4cb323854be8c84af1af705ed7bb1986064a
SQL
2002-feb24-net/harold-code
/Week 2 Coding Challenge/SQLQuery1.sql
UTF-8
1,949
4.5
4
[ "MIT" ]
permissive
CREATE TABLE PRODUCTS( ID INT PRIMARY KEY IDENTITY NOT NULL, NAME NVARCHAR(35), PRICE MONEY ); CREATE TABLE CUSTOMERS( ID INT PRIMARY KEY IDENTITY NOT NULL, FirstName NVARCHAR(35) NOT NULL, LastName NVARCHAR(35) NOT NULL, CardNumber CHAR(16) NOT NULL ); CREATE TABLE ORDERS( ID INT PRIMARY KEY IDENTITY NOT NULL, PRODU...
true
fc403a054367ed2a3479ed02b2b75adcbdf47e76
SQL
ppkk0906/Project_LDATA
/L_PDB.sql
UHC
2,818
4.28125
4
[]
no_license
-- purprd2 ̺ -> , б⺰ ׷ȭ -- create table purprd2 as select a.ȣ ID, category, sum(űݾ) sum, count(distinct ) count, to_char(, 'yyyy') Y, to_char(, 'q') Q from purprd A, product_class2 b where a.Һзڵ = b."Һзڵ" group by a.ȣ, , to_char(, 'yyyy'), to_char(, 'q') order by a."ȣ"; -- purprd_3539m ̺ -> 35~39 ų -- create...
true
3ac8a5903588514d87a620b57d89b17e22194630
SQL
Wang1995/trafodion
/docs/spj_guide/src/resources/source/sales_orders_table.sql
UTF-8
1,975
3.4375
3
[ "Apache-2.0", "LicenseRef-scancode-generic-export-compliance", "BSD-3-Clause", "MIT" ]
permissive
CREATE TABLE trafodion.sales.orders ( ordernum NUMERIC (6) UNSIGNED NO DEFAULT NOT NULL , order_date DATE DEFAULT DATE '2011-07-01' NOT NULL , deliv_date DATE DEFAULT DATE '2011-08-01' NOT NULL , salesrep NUMERIC (4) UNSIGNED DEFAULT 0 NOT NULL , custnu...
true
1f0f189037b90fd0f1097ababc0743033c8d850d
SQL
jnware7/Core-SQL-Solo-Study-
/sql/06-load-table-like.sql
UTF-8
273
2.90625
3
[ "MIT" ]
permissive
psql sql-exercises < /Users/Mr.Ware/Desktop/LGProjects/Core-SQL-Solo-Study-/sql-exercises/sql/03-create-table-like.sql COPY student_like(liker_id,likee_id) FROM '/Users/Mr.Ware/Desktop/LGProjects/Core-SQL-Solo-Study-/sql-exercises/data/likes.csv' DELIMITER',' CSV HEADER;
true
e04358fa85ad9ea5190d773e175116a37e6adde6
SQL
SanketDimber/Hotel-Management-System
/HOTEL/database/database.sql
UTF-8
1,583
2.6875
3
[]
no_license
create table IF NOT EXISTS room(type varchar(20) not null primary key,total_room int not null,reserv_room int not null,avail_room int not null,charge_day int not null); insert into room values('standard','50','0','50','1000'); insert into room values('suite','50','0','50','1500'); insert into room values('superd...
true
f23d156b60f7fe36b6a9e0e7751b28c3756ad7c9
SQL
robb-randall/Oracle
/DBMS_SCHEDULER-GetRemoteFile.sql
UTF-8
1,115
3.421875
3
[]
no_license
clear screen; declare v_source_file_unc varchar2(500 char) := '&path_with_file'; v_credential user_scheduler_credentials.credential_name%type := '&credential_name'; v_file_contents clob; v_line_count number; re_pattern constant varchar2(4 char) := '^.+$'; begin -- Open the temporary clob dbms_lob.createte...
true
84fdfb5dfe3b72ed38d7e3c7a6128c57def3285c
SQL
yubin154/lightflow
/src/main/resources/scripts/mysql_create.sql
UTF-8
1,215
3.4375
3
[]
no_license
-- flow session tables create table if not exists flow_session ( flow_id bigint auto_increment primary key, flow_key varchar(512), creation_date timestamp, end_date timestamp, flow_status varchar(512), target varchar(512), flow_type varchar(256), parent_id bigint references flow_session(flow_id), current...
true
bb1c89da223dfa3a74333958536aa3b2cf6a2c6c
SQL
DengDeng-Zhong/dingtalk-1
/dingtalk_db.sql
UTF-8
2,405
3.15625
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : wuxb Source Server Type : MySQL Source Server Version : 50728 Source Host : 122.51.136.84:3376 Source Schema : dingtalk_db Target Server Type : MySQL Target Server Version : 50728 File Encoding : 65001 Date: 04/01/2020...
true
0977d903acb1f524190182d94e5edc34eed3d249
SQL
jamithireddy/SQL
/Intellipaat/Intellipaat_Assignment1.sql
UTF-8
6,694
3.34375
3
[]
no_license
-- Creating a database named intellipaat CREATE DATABASE INTELLIPAAT; --Using the database intellipaat USE INTELLIPAAT; -- Creating the table studies DROP TABLE IF EXISTS STUDIES; CREATE TABLE STUDIES( PNAME VARCHAR(30), INSTITUTE VARCHAR(20), COURSE VARCHAR(10), COURSE_FEE MONEY); --Inserting Values into STU...
true
3a633a818bcf7915ccc103512a1ff22595226511
SQL
laurenzfiala/urban-trees-db
/source/schemas/application/create/report.sql
UTF-8
532
3.015625
3
[]
no_license
/** * Holds user reports. */ create table application."report" ( ID integer generated by default as identity primary key, message text not null, event_ref integer null references application.event(id) on delete set null, user_id integer null, auto_create bool null, resolved bo...
true
7aa9e2554a471aad0b11b9676b6ae4b407a83046
SQL
rgaringoy/backend
/exam_auth.sql
UTF-8
2,101
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.4.15.5 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 08, 2016 at 08:40 AM -- Server version: 5.6.30 -- PHP Version: 5.6.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `exam_auth` -- -- -----------------------------...
true
9ac431547f55fb9cb15e90535a323c213a62fe08
SQL
Rimonshil/VehicleRentalSystem-sPHP
/database/sql/select/mysql/person.sql
UTF-8
335
3.21875
3
[ "MIT" ]
permissive
SELECT {ALIAS}.*, CONCAT({ALIAS}.PersonFirstName, '') AS {ENTITY}LookupCaption,GenderName,CurrencyName, '' AS _Other FROM {PREFIX}{NAME} AS {ALIAS} LEFT JOIN sphp_gender As G ON G.GenderID={ALIAS}.GenderID LEFT JOIN sphp_currency As C ON C.CurrencyID={ALIAS}.CurrencyID /*LEFT JOIN X AS Y ON Y.YID =...
true
4b07fccfdeb98620e1df018f8a64069c805b9f18
SQL
zbordofsky/cs_144
/project_2/queries.sql
UTF-8
1,764
4.5
4
[]
no_license
-- Find the number of users in the database SELECT COUNT(DISTINCT users.userID) FROM (SELECT bid.userID FROM Bidder bid UNION SELECT sell.userID FROM Seller sell) users; -- Find the number of items in "New York" (exact, case-sensitive) SELECT COUNT(*) FROM Item itm WHERE BINAR...
true
133f184add799c386cc941db875157bdc034ce70
SQL
asslicker2005/ht24
/patch/7.4.7_to_7.4.8.1/update/update.sql
UTF-8
2,760
3.078125
3
[]
no_license
ALTER TABLE `ad_agent` ADD `STATUS` tinyint unsigned NOT NULL COMMENT '0 for pause, 1 for activate', ADD `LIFE_CYCLE_ENDS` datetime NOT NULL AFTER `status`, ADD `CREATED_AT` datetime NOT NULL AFTER `life_cycle_ends`; INSERT INTO `option` (`plugin`, `typ`, `value`, `default_value`, `beschreibung`, `orderfeld`, `format`...
true
c0617a4929201123cba4607303d691e0dfb9dc51
SQL
raseshpanchal/circus
/DB/search_city.sql
UTF-8
1,605
3.046875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 02, 2019 at 07:34 AM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
true
d2a909f86f709a51280455eb4bb1255f9fdb7b2f
SQL
fcs151/springboot-projects
/spring-boot-tareas/db_tareas_init.sql
UTF-8
2,275
3.875
4
[]
no_license
use test; DROP TABLE IF EXISTS State; DROP TABLE IF EXISTS Role; DROP TABLE IF EXISTS Worker; DROP TABLE IF EXISTS Issue; CREATE TABLE State ( id int(11) NOT NULL AUTO_INCREMENT, name VARCHAR(100) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE Role ( id int(11) NOT NULL AUTO_INCREMENT, name VARCHAR(100) NO...
true
b6a2b2ffb4e21ede137bf12f53835ee8d616639b
SQL
bellmit/flexdb
/2.HOST/3.Procedure/getportfolio.sql
UTF-8
4,135
3.390625
3
[]
no_license
CREATE OR REPLACE PROCEDURE getportfolio ( PV_REFCURSOR IN OUT PKG_REPORT.REF_CURSOR, pv_CONDVALUE IN varchar2 ) IS v_txDate DATE; BEGIN -- Proc select to_date(varvalue,'dd/MM/yyyy') into v_txDate from sysvar where upper(varname) = 'CURRDATE' AND GRNAME='SYSTEM'; OPEN PV_REFCURSOR FOR SELECT...
true
f6122d250521da346557e87dce2bd43d68098321
SQL
eliu/plsql-utils
/src/scripts/查询FND用户密码.sql
UTF-8
1,286
3.125
3
[]
no_license
-- Create package CREATE OR REPLACE PACKAGE GET_PWD AS FUNCTION DECRYPT(KEY IN VARCHAR2, VALUE IN VARCHAR2) RETURN VARCHAR2; END GET_PWD; / CREATE OR REPLACE PACKAGE BODY GET_PWD AS FUNCTION DECRYPT(KEY IN VARCHAR2, VALUE IN VARCHAR2) RETURN VARCHAR2 AS LANGUAGE JAVA NAME 'oracle.apps.fnd.security.WebSessi...
true
08ed0f267100783426d2f8ee413176fe27632369
SQL
niecnymol/MY
/z_2.sql
UTF-8
799
3.78125
4
[]
no_license
wczesniej przygotowany plik statuses.csv zaimportowalem do bazy przy uzyciu programu dbeaver do bazy danych do tabeli kontakty tmp_kontakty SELECT klient_id, status FROM ( SELECT klient_id, --pobieram klient_id kontakt_ts, --pobieram kontakt_ts max(kontakt_ts) OVER (PARTITION BY klient_id) AS max_kontakt,...
true
d4ce4c3976ba09da5782d69873e9c4be7cb8cfba
SQL
marcobiedermann/user-service
/prisma/migrations/20220321185014_/migration.sql
UTF-8
2,584
4.03125
4
[]
no_license
-- CreateTable CREATE TABLE "organizations" ( "id" UUID NOT NULL DEFAULT gen_random_uuid(), "name" VARCHAR(255) NOT NULL, "created_at" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updated_at" TIMESTAMP(3) NOT NULL, CONSTRAINT "organizations_pkey" PRIMARY KEY ("id") ); -- CreateTable CREATE TA...
true
92e7980d0fa78687732300e753bdc86c1fe286f5
SQL
dentalhelper/dental-helper-api
/src/main/resources/dump/V13__criar_e_registrar_telefones.sql
UTF-8
223
2.84375
3
[]
no_license
CREATE TABLE telefone( codigo BIGINT(20) PRIMARY KEY AUTO_INCREMENT, numero VARCHAR(15) NOT NULL, codigo_pessoa BIGINT(20), FOREIGN KEY (codigo_pessoa) REFERENCES pessoa(codigo) )ENGINE=innoDB DEFAULT charset=utf8;
true