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
11ebc42473d4ebc69c51f1579d113ad40ba11a0e
SQL
cowthan/php-service
/appsdaddy/daddy-sql.sql
UTF-8
8,135
3
3
[ "Apache-2.0" ]
permissive
-----修改mysql的root密码: use mysql; UPDATE user SET Password = PASSWORD('123') WHERE user = 'root'; FLUSH PRIVILEGES; -----允许root账户从任何主机连接到本mysql GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123' WITH GRANT OPTION; FLUSH PRIVILEGES; ----------appsdaddy CREATE database if not exists appsdaddy CHARACTER SET...
true
a9d794fc349e0b79ae2dc72f014fcb1a8449dc07
SQL
nabilahsan/se_webapp
/Login/users.sql
UTF-8
929
2.953125
3
[]
no_license
-- https://www.phpmyadmin.net/ -- -- Host: localhost:8889 -- Generation Time: Nov 05, 2018 at 06:41 PM -- Server version: 5.7.21 -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `login` -- -- -------------------------------------------------------- -- -- Table ...
true
fd665aa2d8df6f108b7d530b9a4c8a9d0d112f55
SQL
Dkreitzer/MySQL_Sakila_Analysis
/Sakila_Analysis_dk.sql
UTF-8
9,889
4.34375
4
[]
no_license
USE sakila; -- 1a: Display the first and last names of all actors from the table actor. SELECT first_name, last_name FROM actor; -- 1b: Display the first and last name of each actor in a single column in upper case letters. Name the column Actor Name. SELECT CONCAT(first_name,' ', last_name) AS 'Actor Name' FROM actor...
true
f65d0b3bdbfa0e75286c5fe409f99daa7088b7fc
SQL
JavierCane/gestioHospitals
/res/gestio_hospitals-con_contenido.sql
UTF-8
10,095
3.265625
3
[]
no_license
# ************************************************************ # Sequel Pro SQL dump # Version 4096 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: localhost (MySQL 5.5.25) # Database: gestio_hospitals # Generation Time: 2013-06-16 20:37:45 +0000 # ****************************************...
true
fc68b17e91e38d691b4f2fa72b02727a4a60c10e
SQL
koodid/kidsa
/kidsadb_v5_2.sql
UTF-8
15,813
3.578125
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 04, 2017 at 04:11 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_S...
true
cf0b10b65106c44ea3f9af5737e6f26e2cefe36f
SQL
xRuiAlves/FEUP-BDAD-Proj
/HomeGym_Submission3/Triggers/gatilho2_verifica.sql
UTF-8
347
2.65625
3
[]
no_license
.mode columns .headers on .nullvalue NULL select * from ParticipationDetails where userID = 1000000000000013 and challengeID = 4; INSERT INTO Execution(date,duration,userID,challengeID) VALUES('2019-05-12', 5, 1000000000000013, 4); select * from ParticipationDetails where userID = 1000000000000013 ...
true
4e2d682bb793f7ed76060a029226deb60fa42c13
SQL
TulasiJG/AnathesiErgasias
/AssQ14.sql
UTF-8
175
3.015625
3
[]
no_license
-- write a query to find employees whose last names don’t start with the character B. select employeeNumber, firstName, lastName from employees where lastName not LIKE 'B%';
true
777e25e3cbcf13ff540c468d4d6a53d4da34416d
SQL
cckmit/xinfu
/ccms/WebContent/WEB-INF/action/project/fitness/report/analysis/passenger/querytotal/query-class.sql
UTF-8
644
3.453125
3
[]
no_license
SELECT ( SELECT SUM(COALESCE(t.personcount,0)) FROM cc_classlist t WHERE t.classdate = {d '${def:date}'} AND t.status != 0 AND t.org_id = ${def:org} ) AS todayclass /** 当天 */ ,( SELECT SUM(COALESCE(t.personcount,0)) FROM cc_classlist t WHERE t.classdate = ({d '${def:date}'} - interval '1 month')::da...
true
3f3b8e161d5ffdcb3583b3530000d377097edeb8
SQL
azimemory/oracle
/b_ddl/e_ddl_test.sql
UHC
1,344
3.625
4
[]
no_license
CREATE TABLE TB_MEMBER( USER_ID VARCHAR2(30 CHAR) PRIMARY KEY, PASSWORD VARCHAR2(60 CHAR) NOT NULL, EMAIL VARCHAR2(50 CHAR) NOT NULL, GRADE CHAR(4 CHAR) DEFAULT 'ME00', TELL VARCHAR2(15 CHAR), REG_DATE DATE DEFAULT SYSDATE, REMTABLE_DATE DATE DEFAULT TO_DATE(SYSDATE,'YYYY/MM/DD'), IS_LEA...
true
a74aa501856ffc5e5cb97814e3e08d3741934e63
SQL
otobashi/sejiwon_ares
/BACKUP/이동계획_참고.sql
UHC
6,911
3.28125
3
[]
no_license
CREATE OR REPLACE PROCEDURE SP_CD_RES_KPI_ROLLING_PLAN ( IN p_basis_yyyymm VARCHAR(6) ) LANGUAGE SQL DYNAMIC RESULT SETS 1 BEGIN /*************************************************************************/ /* 1. Ʈ : ARES */ /* 2. : ...
true
db0d6d99554d6b53234c97f6a4d0320c4f143891
SQL
mariana-santos/BD
/BD II/bdEscola2/insert.sql
ISO-8859-1
2,595
2.75
3
[]
no_license
use bdEscola2 insert into tbAluno(nomeAluno, dataNascAluno, rgAluno, cpfAluno, cidadeAluno, numeroAluno, logradouroAluno, cepAluno, bairroAluno, complementoAluno) values('Jailson Silva', '2000/03/10', '82.282.122-0', '535.092.285-07', 'So Paulo', 23, 'R. david Avenidas', '08830-590', 'Jd. Narcticos', 'Ap25...
true
838a3aa3342402a7f4a9340ccd5cc0fd23ec4ba4
SQL
super-fishz-archive/class-supporter
/document/socrativeSQL.sql
UTF-8
7,619
3.34375
3
[]
no_license
-- MySQL Script generated by MySQL Workbench -- 07/27/15 21:09:36 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITION...
true
68d3961d647fd63668a9d3f44e8aad7ce1d0497f
SQL
helver/Alliances
/PHP/GeoNet/db/Views/USMap_Recv_Links_View_Def.sql
UTF-8
355
3.203125
3
[]
no_license
CREATE OR REPLACE VIEW USMap_Recv_Links_View AS SELECT tfm.tid_id AS tid_id, tfm.facility_id AS facility_id, tfm.interface_id AS interface_id, tfm.recv_seq AS recv_facility_path, f.customer_id AS customer_id FROM tid_facility_map tfm, facilities f WHERE tfm.recv_seq > 0 AND f.id = tfm.facility_id...
true
5696d9715d7f9e3218b3adc03b7fc5148d70338c
SQL
aprilmariewilson/Bamazon
/schema.sql
UTF-8
1,808
3.3125
3
[]
no_license
DROP DATABASE IF EXISTS bamazonDB; CREATE DATABASE bamazonDB; -- -- USE bamazonDB; DROP TABLE IF EXISTS `products`; CREATE TABLE products( id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(45) DEFAULT NULL, category VARCHAR(45) DEFAULT NULL, price DECIMAL(10,4) NOT NULL, stock_qty int NOT NULL, PRIMARY...
true
d260cbae6cc4e4e1bfd84a79a0a4a79f40d43b2a
SQL
dchilders21/wahwah-platform
/src/main/resources/db/migration/V1_27__AddProductVersionToProduct.sql
UTF-8
221
3.21875
3
[]
no_license
ALTER TABLE products ADD product_version_id INT NULL; ALTER TABLE products ADD CONSTRAINT fk_products_productversion FOREIGN KEY (product_version_id) REFERENCES product_versions(id) ON DELETE SET NULL ON UPDATE SET NULL;
true
055b30e5d4e4da7ef25ac9315cc01b9cae3f7742
SQL
mariomartinezjr/Scripts_dba
/siglolab/cria_tbs_usu_siglolab.sql
UTF-8
1,068
2.640625
3
[]
no_license
CREATE TABLESPACE SIGLOLAB_DATA LOGGING DATAFILE 'D:\\oracle\product\10.2.0\oradata\oradev1\SIGLOLAB_DATA.dbf' SIZE 200M AUTOEXTEND ON NEXT 100M MAXSIZE UNLIMITED EXTENT MANAGEMENT LOCAL SEGMENT SPACE MANAGEMENT AUTO; CREATE TEMPORARY TABLESPACE SIGLOLAB_TEMP TEMPFILE 'D:\\oracle\product\10.2.0\oradata\oradev1\SIGLO...
true
09354151934c726f0bd6051f7730ffd62744132e
SQL
sinjinir1999/Analytics_OyeRickshaw
/CBOB/quality_band_pms.sql
UTF-8
1,361
3.890625
4
[]
no_license
Select months,count(distinct case when Category='Excellent' then mobile end) as excellent, count(distinct case when Category='Good' then mobile end) as good, count(distinct case when Category='Average' then mobile end) as average from (Select months,mobile,case when rank_ob>=3 then 'Excellent' when rank_ob=2 then 'G...
true
d5815ba9c2d5aea82b32000b0bf971ac72d5365f
SQL
vkulpa/library-rest-api
/src/main/resources/db/migrations/V1__set_initial_db_state.sql
UTF-8
1,651
4.09375
4
[]
no_license
CREATE TABLE roles ( id INT NOT NULL AUTO_INCREMENT, name varchar(50) NOT NULL, PRIMARY KEY (id), UNIQUE KEY RL_name (name) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO roles (name) VALUES('User'), ('Admin'); CREATE TABLE users ( id INT NOT NULL AUTO_INCREMENT, username varchar(50) NOT NU...
true
06795b5ff7701360c085a60b6f7bacc8a12eec40
SQL
sertacguler/jssqlconnect
/orcl_db.sql
UTF-8
5,113
2.953125
3
[]
no_license
CREATE TABLE "CONTACT" ( "CT_ID" NUMBER(19,0) NOT NULL ENABLE, "ADDRESS" VARCHAR2(255 CHAR), "EMAIL" VARCHAR2(255 CHAR), "PHONE" VARCHAR2(255 CHAR), PRIMARY KEY ("CT_ID") ); INSERT INTO CONTACT (CT_ID,address,email,phone) VALUES (1,'Ankara', 'sertacguler1@gmail.com', '05554443322'); ...
true
6c4aa0647a1ed256edeb035dfa6de178b6876d70
SQL
sop501/trelloD
/trellod.sql
UTF-8
4,438
3.4375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 27, 2016 at 10:48 PM -- Server version: 10.1.13-MariaDB -- PHP Version: 5.6.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
5a048210b2a0bd6700b696fe7147f7246e0551d8
SQL
tanim3221/Mailing-System-PHP
/contact.sql
UTF-8
3,136
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jan 22, 2017 at 11:21 AM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
true
0c7230332ea821069319350712948f75c2546097
SQL
romahanpro/autorepair
/schema/schema.sql
UTF-8
5,549
3.34375
3
[ "MIT" ]
permissive
CREATE TABLE appointment_services ( id INT(10) UNSIGNED NOT NULL AUTO_INCREMENT, service_id INT(11) UNSIGNED NOT NULL, appointment_id INT(11) UNSIGNED NOT NULL, deleted INT(1) NOT NULL DEFAULT 0, created DATETIME, modified TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, PRIMARY KEY (id) ) ENGINE=InnoDB; CREATE TABLE app...
true
1abae494d33ce2a8974bc3422c634170a6d9d528
SQL
davemeneses/bamazon
/schema.sql
UTF-8
279
2.859375
3
[]
no_license
-- this is the schema create database bamazon use bamazon CREATE TABLE products ( id integer(11) auto_increment NOT NULL, product_name varchar (30), department_name VARCHAR(30), price INTEGER(11), stock_quantity integer(11), primary key(id) ); select * from products
true
5d2d943953539e28ab721533b2209706fe64cbf2
SQL
tebanSalas/TMS
/tms/installer/DB_postgres/Tables/team_lock.sql
UTF-8
552
3.171875
3
[]
no_license
-- Table: tms.team_lock -- DROP TABLE tms.team_lock; CREATE TABLE tms.team_lock ( id integer NOT NULL, account_id integer NOT NULL, account_name character varying(155), org_id integer, org_name character varying(155), project_id integer, project_name character varying(155), user_id integer, user_nam...
true
75ed546eb92e7ef3ea3a979b1f3db6d69c482837
SQL
tsvtitan/ufs-federation.com
/db/oracle/test/Functions/FP_OUTGOING_MESSAGES.sql
UTF-8
2,993
3.71875
4
[]
no_license
DROP FUNCTION FP_OUTGOING_MESSAGES; CREATE OR REPLACE FUNCTION FP_OUTGOING_MESSAGES ( LOCK_ID NVARCHAR2, FROM_DATE TIMESTAMP, TILL_DATE TIMESTAMP ) RETURN TT_CLIENT_MONEY PIPELINED AS /*Rec TO_CLIENT_MONEY:=TO_CLIENT_MONEY(NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL, NULL,N...
true
f071d5e73e40d6a8b54a17c5baedbb999531aae2
SQL
gornje/SQL_HW
/HomeWork_2_Req_5.sql
UTF-8
666
2.78125
3
[]
no_license
--ALTER TABLE Grade WITH CHECK --ADD CONSTRAINT [FK_Grade_Student] --FOREIGN KEY (StudentID) --REFERENCES Student (ID) --GO --ALTER TABLE Grade WITH CHECK --ADD CONSTRAINT [FK_Grade_Course] --FOREIGN KEY (CourseID) --REFERENCES Course (ID) --GO --ALTER TABLE Grade WITH CHECK --ADD CONSTRAINT [FK_Grade_Teacher] --FORE...
true
9479902d008b85bdca2dc394ca59f4d878621464
SQL
lvspinazze/bamazon
/bamazon.sql
UTF-8
1,731
3.265625
3
[ "MIT" ]
permissive
DROP DATABASE IF EXISTS bamazon; CREATE DATABASE bamazon; USE bamazon; CREATE TABLE products( item_id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(45) NOT NULL, department_name VARCHAR(45) NOT NULL, price DECIMAL(10,2), stock_quantity INTEGER(25), PRIMARY KEY (item_id) ) SELECT * FROM products ...
true
c1804d4abe78e82ccf9304d61904dda4762c8e73
SQL
manoj-chaudhary28/GraphQL
/graphql-query.sql
UTF-8
764
3.03125
3
[]
no_license
CREATE TABLE dbo.Students ( StudentId BIGINT PRIMARY KEY IDENTITY, FirstName VARCHAR(30), LastName VARCHAR(30), EmailAddress VARCHAR(50), MobileNumber VARCHAR(14), Gender VARCHAR(10), AddressLine1 VARCHAR(200), AddressLine2 VARCHAR(100), City VARCHAR(50), State VARCHAR(50), PostalCode VARCHAR...
true
1683d3faeb1ab0fd61766903c32dad3700c3c39b
SQL
wisammechano/egps
/tmp/dbs/test2.work.sql
UTF-8
6,135
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Jul 03, 2015 at 01:09 AM -- 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
dfe64935358c73d2b72c06b167ee2c137fb184ef
SQL
Roger952/controle-chamados-1
/src/main/resources/db/migration/V20200103163706__seg_produto.sql
UTF-8
202
3.171875
3
[]
no_license
CREATE TABLE seg_produto ( id INTEGER IDENTITY (1, 1) PRIMARY KEY, nome_produto VARCHAR(100) NOT NULL ); CREATE UNIQUE INDEX ix_seg_produto_login ON seg_produto (nome_produto ASC);
true
e3b578aeda45cd5cd35eb6f5cb2f2495c9c8f6dd
SQL
saranme/ironhack_w3_d2_mactivities_data_3.03_activities
/data_03_03_activities.sql
UTF-8
343
3.421875
3
[]
no_license
-- ACTIVITIES Use bank; /* 3.03 Activity 1 Keep working on the bank database. Let's find for each account an owner and a disponent. */ SELECT d1.account_id, d1.type, d2.type FROM disp d1 JOIN disp d2 ON d1.account_id = d2.account_id AND d1.type <> d2.type; /* 3.03 Activity 4 Think about possible uses for c...
true
65e6135188ce8c63da7ade46380891d9b8f4ff9a
SQL
eliwitt/SqlWork
/vincent/query10056757.sql
UTF-8
769
2.515625
3
[]
no_license
-------------------- order header--he and line--pl ----------10108116_10 SELECT * FROM VT2662AFvp.SROORSHE WHERE OHORNO = 10108116; SELECT * FROM VT2662AFvp.SROORSPL WHERE OLORNO = 10108116; --------------------------- manufactor order header ---------- --select * from vt2662aftt.mfmohr fetch first 10 rows only...
true
0407bf6a0614cf4bba4f822709a3d53c6c64bfff
SQL
designreuse/doc-manager
/doc-manager.sql
UTF-8
5,467
3.875
4
[]
no_license
DROP DATABASE IF exists `docmanager`; CREATE DATABASE `docmanager`; DROP TABLE IF EXISTS `docmanager`.`roles`; CREATE TABLE `docmanager`.`roles` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(32) NOT NULL, PRIMARY KEY(`id`)) ENGINE = InnoDB; DROP TABLE IF EXISTS `docmanager`.`companies`; CREATE TABLE `docma...
true
1de628574e748a45e380bd3643958acf3a18f7cd
SQL
Prathamesh-P/databriks
/notebooks/Users/pawaskarprathamesh1@gmail.com/airport updated.sql
UTF-8
466
2.796875
3
[]
no_license
-- Databricks notebook source create table airportnew(name STRING,country STRING,area_code INT,code STRING); -- COMMAND ---------- load data inpath"/FileStore/tables/airport1.csv" overwrite into table default.airportnew -- COMMAND ---------- select * from airport limit 10; -- COMMAND ---------- -- MAGIC %python -...
true
991dc5877737c687ca6eae7e33e3333aa65947e1
SQL
ryanbrutocao/inventory_tracker
/models/seeds.sql
UTF-8
1,882
2.953125
3
[]
no_license
INSERT INTO mainInventory (vintage, varietal, actualInventory, shadowInventory, boxType) VALUES ("2017", "Sauvignon Blanc", 300, 300, "WRT"), ("2018", "Sauvignon Blanc", 500, 500, "WRT"), ("2017", "Chardonnay", 300, 300, "WRU"), ("2018", "Chardonnay", 800, 800, "WRU"), ("2016", "Pinot Noir", 500, 500, "WRU"), (...
true
95cb5abaa670931b717f9eca2df91b613138024d
SQL
ranko-zhujun/rbac
/web/setup/resources/install.sql
UTF-8
5,349
3.296875
3
[]
no_license
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 50726 Source Host : localhost:3306 Source Schema : rbac.test Target Server Type : MySQL Target Server Version : 50726 File Encoding : 65001 Date: 10/08/2021 ...
true
099c45834e911d8a064a69087654bf4157cea925
SQL
xrzy1985/sql
/code/select_statements.sql
UTF-8
313
2.546875
3
[]
no_license
-- This would be a general way of selecting more than -- one column from a table select column1, column2, column3 from tableName; -- this is another way you could select from more -- than one column in a table SELECT column1, column2 FROM tableName; -- There is no right way, just whichever way is best for you
true
15a50ea6f4412fdd1244f1754d8f188613740178
SQL
medy13/dbshell
/normal_shell/EGS_CHECK_LOG.sql
UTF-8
829
2.578125
3
[]
no_license
\echo ------------------EGS_CHECK_LOG---------------- select now(); \timing insert into EGS_CHECK_LOG_GPTMP (CMD_TYPE,EGS_NO, CHK_TIMES, FORM_TYPE, G_NO) select CMD_TYPE,EGS_NO, CHK_TIMES, FORM_TYPE, G_NO from EGS_CHECK_LOG_INC_EXT; delete from EGS_CHECK_LOG using EGS_CHECK_LOG_GPTMP where EGS_CHECK_LOG_GPTMP.EGS_NO=E...
true
a16e6e1b7625ea482960e78df7b3142d064ca037
SQL
AnnVita/Databases
/MySQL_query/lw5.sql
UTF-8
4,366
4.28125
4
[]
no_license
1.1 SELECT LIMIT/TOP //вернуть 3 проката SELECT TOP 3 * FROM rent; //вернуть 3 недавно открытых проката SELECT * FROM rent ORDER BY rent.date_of_rent LIMIT 3; 2. WHERE 2.1 NULL //вернуть все записи прокатов, в которых нет даты возврата SELECT * FROM rent WHERE return_date IS NULL; ...
true
8e50ccb30d9333309746d9015ee7f60f75b72d3e
SQL
temafey/phalcon_extjs_old
/sql/migrations.sql
UTF-8
6,852
3.234375
3
[]
no_license
-- -- Table structure for table `core_acl_access_list` -- DROP TABLE IF EXISTS `core_acl_access_list`; CREATE TABLE IF NOT EXISTS `core_acl_access_list` ( `id` int(11) NOT NULL AUTO_INCREMENT, `role_id` varchar(32) NOT NULL, `resource_id` varchar(32) NOT NULL, `access_id` varchar(32) NOT NULL, `allowed` int...
true
594614012d2cef3be5568a4c5212870d55f219fb
SQL
netbeanskorea/netbeans
/showcase/target/test-classes/script/oracle/sample.sql
UTF-8
2,484
2.9375
3
[]
no_license
-------------------------------------------------------- -- DDL for Table BOARD -------------------------------------------------------- CREATE TABLE "BOARD" ( "SEQ_NO" VARCHAR2(3 BYTE), "TITLE" VARCHAR2(100 BYTE), "CONTENT" VARCHAR2(4000 BYTE), "READ_CNT" VARCHAR2(3 BYTE), "WRITER" VARCHAR2(10...
true
5a5fbe3936ca436ef586cd7c24789429bb33a6b6
SQL
Cu3PO42/CuBoid
/pkmdata/sql/typeatkEfficiency.sql
UTF-8
293
3.65625
4
[]
no_license
SELECT name, damage_factor FROM type_efficacy JOIN type_names ON type_efficacy.target_type_id = type_names.type_id AND type_names.local_language_id = 9 WHERE type_efficacy.damage_type_id = (SELECT type_id FROM type_names WHERE name = ?) ORDER BY damage_factor
true
27d46f7d24862c1ac491d187f3ec3ea21a42d9d6
SQL
Formation-CCI/blog
/blogdemo (2).sql
UTF-8
5,047
3.53125
4
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Hôte : 127.0.0.1:3306 -- Généré le : mar. 31 mars 2020 à 14:48 -- Version du serveur : 10.4.10-MariaDB -- Version de PHP : 7.3.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
true
fffafa5ec0d10aca769b734b7c94947d81d36cc5
SQL
ruesaintdenis/Ironhack-Labs
/module-1/mySQL/bankscript.sql
UTF-8
860
3.140625
3
[ "MIT" ]
permissive
SELECT * FROM bank.client; select * from bank.client order by district_id asc, client_id asc; select * from bank.client order by district_id desc, client_id asc; select * from bank.loan order by amount asc; select * from bank.loan order by payments desc; select account_id, amount from bank.loan order by account_id ...
true
47a63e09fdb5433b15d1482e726495583665ed21
SQL
FilipM13/covid19-vaccination-analysis
/paid_expenses/paid_expenses.sql
UTF-8
149
2.578125
3
[]
no_license
USE covid19; SELECT country, MAX(total_vaccinations), vaccines FROM country_vaccines GROUP BY country ORDER BY MAX(total_vaccinations) DESC;
true
709da55f52a67e6f85e5c940ddb002525f7cc3fc
SQL
leiyunlong064/sand
/app-core/src/main/resources/db/migration/sql/V0.1/V0.1.20191129.224025__create_role_table.sql
UTF-8
436
3.1875
3
[]
no_license
CREATE SEQUENCE T_ROLE_ID_SEQ INCREMENT BY 1 MINVALUE 1000 NO MAXVALUE START WITH 1000; CREATE TABLE T_ROLE ( ROLE_ID BIGINT NOT NULL DEFAULT NEXTVAL('T_ROLE_ID_SEQ') PRIMARY KEY, ROLE_NAME VARCHAR(64) NOT NULL, ROLE_TYPE VARCHAR(64) NOT NULL, STATUS VARCHAR(64) NOT NULL, CREATE_TI...
true
a525c28737f3772bdc705805b74e9ad17fc4a2b4
SQL
wortjanin/STECAdmin
/STECAdmin/me.stec.admin/sql/table/100902_00-31_temp_privs.sql
UTF-8
441
2.59375
3
[]
no_license
-- drop table temp_privs; CALL pr_create_if_not_exists( 'CREATE GLOBAL TEMPORARY TABLE temp_privs ( ' || ' obj VARCHAR2(30 BYTE) NOT NULL, ' || ' obj_type VARCHAR2(19 BYTE) , ' || ' priv VARCHAR2(40 BYTE) NOT NULL, ' || ' gr VARCHAR2( 3 BYTE) ' || -- GRANTABLE (==ADMIN_OPTION) ' )...
true
a91047be2dcf9c20971a168d960566ec645d15f2
SQL
Simonaivanova97/DataBaseExercise
/FifthExercise/TasksDuringExerciseFive.sql
UTF-8
1,646
4.15625
4
[]
no_license
use movies; /*1. За всяко студио искаме да изведем точно по един ред със следната информация: – Име на студиото; – Сумарна дължина на всички негови филми.*/ select distinct studioname, sum(length) from movie group by studioname; /*2. За всяка година да се изведе колко филмови звезди са родени.*/ select year(birthdate...
true
da2961d0cd4e8c1cdb8bb00e47857aaedf8a9d69
SQL
mikestevenson86/SQL-Repository
/Mike S Queries/Archives/00 Archive 2017/08 August 2017/Julie - Not Atlas Live.sql
UTF-8
984
3.609375
4
[]
no_license
SELECT a.Id, a.Name, a.ATLASLive__c, StartDate, EndDate, Cancellation_Date__c, Status, Test_Account__c FROM Salesforce..Account a inner join Salesforce..[Contract] c ON c.AccountId = a.Id WHERE a.Name in ( 'Grade A Care Ltd', 'Elite Services Holdings Limited', 'PTM Media Ltd', 'Cuddles Day Nursery Ltd', 'Glasgow Auto'...
true
d9e2ecc342eedd34d0819c74ee6a1e735f1c26e5
SQL
LorchZachery/website_cs364
/rockclimb.mysql.sql
UTF-8
7,999
3.453125
3
[]
no_license
DROP DATABASE IF EXISTS rockclimb; CREATE DATABASE rockclimb; USE rockclimb; CREATE TABLE workout ( workout_count INTEGER AUTO_INCREMENT NOT NULL, date DATE NOT NULL, time TIME NOT NULL, duration INTEGER NOT NULL, comments VARCHAR(255), PRIMARY KEY (workout_count) ); ...
true
b54bca1d78dc30b485b4ad2d6ee88f9d18bcb71e
SQL
sanjaywebdesigner/javascriptjune2018
/php-session-13-june-2018/nidhi.sql
UTF-8
5,667
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 12, 2018 at 09:14 AM -- Server version: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
7a3cc0e09000a45f54875f5c0a29590bfdaff420
SQL
gguerreroi/calendario-forestal
/database/calendario.sql
UTF-8
9,698
2.796875
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.29, for Linux (x86_64) -- -- Host: localhost Database: inab_calforestal -- ------------------------------------------------------ -- Server version 5.7.29-0ubuntu0.18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHA...
true
3f14d95e017eb647cd581427150bbe89e8b11b44
SQL
ozkolonur/devphp
/shop/shop.sql
UTF-8
4,562
3.171875
3
[ "LicenseRef-scancode-warranty-disclaimer" ]
no_license
-- phpMyAdmin SQL Dump -- version 2.11.9.6 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Jun 12, 2010 at 08:28 PM -- Server version: 5.0.90 -- PHP Version: 5.2.13-pl0-gentoo SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @...
true
0d7fc7456918471b97c3e54fc16a61be94c5e472
SQL
houseman1/daniel_dwwm
/week_17/vues/gescom/gescom.sql
UTF-8
899
3.921875
4
[ "MIT" ]
permissive
--v_Details correspondant à la requête : _A partir de la table orders_details, afficher par code produit, --la somme des quantités commandées et le prix total correspondant : --on nommera la colonne correspondant à la somme des quantités commandées, QteTot et le prix total, PrixTot. CREATE VIEW v_Details AS SELECT pr...
true
4c3b590c401fa345c5ce332b098c35ad99c7d5b4
SQL
ren06/directhomecare
/db_scripts/archive/DH_ 20130111 1911.sql
UTF-8
333,209
3.34375
3
[]
no_license
-- Script was generated by Devart dbForge Studio for MySQL, Version 5.0.97.0 -- Product home page: http://www.devart.com/dbforge/mysql/studio -- Script date 11/01/2013 19:11:49 -- Server version: 5.5.8 -- Client version: 4.1 -- -- Disable foreign keys -- /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FO...
true
36a72a6ebbce0ae779d8a12bf05d84d4edaef93f
SQL
KHNRV/FlashQuiz
/db/00_schema/04_answers.sql
UTF-8
208
2.765625
3
[]
no_license
DROP TABLE IF EXISTS answers CASCADE; CREATE TABLE answers ( id SERIAL PRIMARY KEY, question_id INTEGER REFERENCES questions(id) ON DELETE CASCADE, text TEXT NOT NULL, is_correct BOOLEAN NOT NULL );
true
d3457dd286e18a563883baa4bfa9d8c7f47fef07
SQL
poompongphun/social-php
/SQL/socialtime.sql
UTF-8
4,482
3.25
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 26, 2020 at 05:50 AM -- Server version: 5.7.17-log -- 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_SET_CLIEN...
true
c715b2b1c30fa4473396019e985875ac465dfed5
SQL
ahmed-abdelmoteleb/lab-sql-join-multiple-tables
/Lab 2.sql
UTF-8
2,405
4.09375
4
[]
no_license
use sakila; -- Lab | SQL Joins on multiple tables -- 1- Write a query to display for each store its store ID, city, and country. select s.store_id, city.city, c.country from store s left join address a on s.address_id=a.address_id join city on a.city_id=city.city_id join countr...
true
512161968fb8942389738865f6ae1f7b8919f5db
SQL
maclochlainn/adv-plsql-code
/chapter-04/write_file.sql
UTF-8
4,889
3.859375
4
[]
no_license
/* * write_file.sql * Chapter 4, Oracle Database 12c PL/SQL Advanced Programming Techniques * by Michael McLaughlin & John Harper * * ALERTS: * * This script creates a Java library that writes text and binary files. */ /* Enable logical comparison operators in Java. */ SET DEFINE OFF /* Create th...
true
ba4978eb3041145718d3ad7a46cd4bac170cc10b
SQL
bitanb1999/exploring_pl_sql
/example_programs/16_strings.sql
UTF-8
587
2.8125
3
[ "MIT" ]
permissive
-- PL/SQL Strings demo SET SERVEROUTPUT ON SET VERIFY OFF DECLARE name varchar(20); text clob; BEGIN name := 'Gyan Krishna '; text := 'Hello world! this is a character large object!'; -- Displaying the ASCII value of a character dbms_output.put_line( ASCII('A') ); -- Displaying the Charact...
true
eefeb85698ee42a5dea78428afb5324557e77823
SQL
BogdanFi/cmiN
/FII/L2/SGBD/anterior/teme/George/Tema6.sql
UTF-8
5,743
3.203125
3
[]
no_license
SET serveroutput ON; create or replace package employee_managament_pkg is procedure add_employee (p_ename in emp.ename%type, p_sal in emp.sal%type, p_job in emp.job%type, p_mgr in emp.mgr%type); procedure fire_employee (p_empno in emp.empno%type); procedure fire_employee (p_ename in emp.ena...
true
4822ed47e52826079d6571d17c8430c649aa0b88
SQL
pravindahal/mysqlgt
/user-setup-example.sql
UTF-8
649
2.625
3
[ "MIT" ]
permissive
-- Allow EXECUTE for 'test'@'localhost' on mysqlgt procedures GRANT EXECUTE ON PROCEDURE `mysqlgt`.`gtREVOKE` TO 'test'@'localhost'; GRANT EXECUTE ON PROCEDURE `mysqlgt`.`gtGRANT` TO 'test'@'localhost'; -- Allow the user to reload privileges after updating grants -- make sure you are comfortable giving this permission...
true
67a5407ac5717c58e6b4af5d3bf62bec1e9470cb
SQL
tanyinqing/MySQL_20170902
/明飞/day5/1_select.sql
UTF-8
1,636
3.828125
4
[]
no_license
SHOW TABLES FROM scott; SHOW VARIABLES LIKE 'char%'; SHOW VARIABLES LIKE 'coll%'; SHOW VARIABLES ;-- 显示变量 SHOW CREATE TABLE scott.emp;-- 显示建表语句 SELECT * FROM scott.emp;-- 查询表数据 SELECT ename,sal FROM scott.emp;-- 查询表的两列 SELECT DISTINCT JOB FROM scott.emp;-- 去掉重复的值 SELECT * FROM scott.emp WHERE DEPTNO=30;-- 查询部门编号是...
true
613c2fa001a587155794d69e94d4e7574b9c02bb
SQL
arnab-mkj/ProjectGladiator
/DBsql.sql
UTF-8
4,375
3.3125
3
[]
no_license
create database VehicleLoan use VehicleLoan create table User_Details (User_id int identity(1,1) primary key , User_FirstName nvarchar(20) not null , User_LastName nvarchar(20) , User_Age numeric(2) check(User_Age>18) , User_DoB date not null , User_gender varchar(10) , User_PhoneNum numeric(10) , User_Email nvarcha...
true
4ba6834780fc3ad76244cbe0fbec1b6931e74a54
SQL
lupaelma/jenti
/dbedit/create_database.sql
UTF-8
2,593
3.515625
4
[]
no_license
/* Copyright 2015 - NINETY-DEGREES HISTORY 20150417 - user.birthdate 20160105 - user.score ALTER TABLE user ADD SCORE INT(6) DEFAULT 0; 20160117 - word.likes ALTER TABLE word ADD LIKES INT(15) DEFAULT 0; 20160117 - word_definition.likes ALTER TABLE word_definition ADD LIKES INT(15) DEFAULT 0; */ /*USE JENTI;*/ CR...
true
1613d3bfb341a2672b5a41f1014957e925f4bf7f
SQL
jainmohit0807/Inventory-System
/inventory.sql
UTF-8
5,175
3.015625
3
[]
no_license
/* SQLyog Enterprise - MySQL GUI v7.02 MySQL - 5.0.67-community-nt : Database - inventory ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /...
true
3cea22c5f773ec55f5b55e0628bb160c67f34a49
SQL
mpadgett004/ETL-Project
/ETL_project_schema.sql
UTF-8
321
3.390625
3
[]
no_license
CREATE TABLE country_info ( Country VARCHAR(100), Code TEXT PRIMARY KEY ); SELECT * FROM country_info; CREATE TABLE usa_golds ( year INT, athlete VARCHAR(100), country_code TEXT, gender TEXT, sport TEXT, event VARCHAR(100), FOREIGN KEY (country_code) REFERENCES country_info(code) ); SELECT * FROM usa_golds;...
true
de97815781a945899892cb9e03d64823fa1fab6c
SQL
rajdip24198/topmentor_Assignments
/capstone project 1 master table querry final.sql
UTF-8
1,700
3.578125
4
[]
no_license
use capstone1; select * from account; select * from card_disp_client; Select * from card; select * from transaction_data; select * from account inner join loan on account.account_id = loan.account_id; select count(* ) from loan inner join order1 on loan.account_id = order1.account_id; select * from loan inner join t...
true
82f5e6ca13d4ce9a0436db7d4654b81acdb52200
SQL
caio000/hotlibrary
/db/database.sql
UTF-8
7,299
3.546875
4
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS "Level"; CREATE TABLE "Level" ( "id" SERIAL NOT NULL, "type" VARCHAR(100) NOT NULL UNIQUE, PRIMARY KEY ("id") ); INSERT INTO "Level" ("type") VALUES ('administrador'),('biblioteca'),('comum'); DROP TABLE IF EXISTS "State"; CREATE TABLE "State" ( "id" SERIAL ...
true
f2f89ef1cbad9e36bc19961a0ea691f7f8f08fc9
SQL
b3b0y/repository
/Database/Final/repo_2016-02-22_03-21-18.sql
UTF-8
45,641
3.359375
3
[]
no_license
# MySQL database backup # # Generated: Monday 22. February 2016 03:21 HKT # Hostname: localhost # Database: `repo` # -------------------------------------------------------- # -------------------------------------------------------- # Table: `fr_archive` # -------------------------------------------------------- # # ...
true
fd9cb755c675c06d92f8bca7233cf92e5d79e700
SQL
jusju/sanat
/tietokanta/create.sql
UTF-8
496
3.15625
3
[]
no_license
CREATE TABLE Henkilot ( id INT NOT NULL AUTO_INCREMENT, kayttajatunnus VARCHAR(90), salasana VARCHAR(300), suola VARCHAR(200), PRIMARY KEY (id) )engine=innodb DEFAULT CHARSET=utf8; CREATE TABLE Sanat ( id INT NOT NULL AUTO_INCREMENT, aika TIMESTAMP NOT NULL, sana VARCHAR(90) NOT NULL, ...
true
48359a2a47893d6a83691b2b185ddff4ddab181e
SQL
eajardini/bd2a3_2021
/20210419_RespostaCap3Pag51.sql
UTF-8
608
3.203125
3
[]
no_license
--Resposta do exercício da página 51. create table curso2 ( codcurso integer, nome varchar(40), valor numeric (7,2), constraint pk_curso2 primary key(codcurso) ); -- drop table coordenador; create table coordenador ( codcoordenador integer, codcurso integer, nome varchar(40), constraint pk_coordenador primary key (c...
true
875c74f371ab6151d69e3ccf02b636c3e4c0627e
SQL
jwelly/sql-mosh-queries
/products.sql
UTF-8
1,052
4.53125
5
[]
no_license
/* SELECT name, unit_price AS 'unit price', unit_price * 1.1 AS 'new price' FROM sql_store.products; SELECT * FROM products WHERE quantity_in_stock IN (49, 38, 72); -- Left (outer) join example -- We get ALL the products in the p table whether the condition (ON) is true or not SELECT p.product_id, p.n...
true
9b37f122ebb3278160a28eb86e46eb110f174e23
SQL
magnus80/Autotests
/src/main/resources/SQL/delete_for_273710_2_2.sql
UTF-8
216
2.546875
3
[]
no_license
declare ctn varchar2(100); deleteUsersessionsStmt varchar2(5000); begin ctn:='9030371111'; deleteUsersessionsStmt:='DELETE USERSESSIONS where CHRMSISDN='||ctn; execute immediate deleteUsersessionsStmt; commit; end;
true
83dabc88f688ed9b2e4631dffe04cca7e0b78ee8
SQL
bpafoshizle/Small-Projects-and-Utils
/PL-SQL Utilities/RowLevelSecurity-ER_FILTER_STYLE-DynamicSQL.sql
UTF-8
658
3.015625
3
[]
no_license
set serveroutput on; DECLARE pUserID VARCHAR2(20) := 'JILEKJ'; pFilterName VARCHAR2(40) := 'RESTATED_MARKET_SIM_DIM'; filterText VARCHAR(4000); queryOutput VARCHAR2(10000) := 'select * from some_table where '; BEGIN /* Get the proper filter from the ER Filters table based on supplied username a...
true
150ef5c3f87b5f6dcce1457913a2eb720cf68726
SQL
jmptrader/PLSQL
/REQMON/get_f_$maxterm.sql
WINDOWS-1251
1,283
3
3
[]
no_license
create or replace function get_f_$maxterm(p_account_id in number)return integer is /* Author : V.ERIN Created : 21.02.2015 12:00:00 Purpose : IPTV Version : 1.1.00 HISTORY User : Date : Description -------------------------------------------------------------------------------------------...
true
c5e7cca3f630089a4d29423ad1d1d6f8f072c38f
SQL
semihstp/Patika_VitrA_VeriBilimi_Bootcamp
/Week 01 SQL Homeworks/sql_odev05.sql
UTF-8
615
3.9375
4
[]
no_license
-- 1) -- film db'sinden title'ı n ile biten filmleri uzunluğuna göre sıralayıp 5 tanesini -- almak adına : SELECT * FROM film WHERE title LIKE '%n' ORDER BY length LIMIT 5; -- 2) -- Bu sefer filmi kısalığına göre sıralayıp ikinci 5 en ksıa filmi almak için -- bir OFFSET tanımladım ve 5 değeri verdim. SELECT * FROM fil...
true
d1d7bfd12ef0ce9f81d21e829ddeb2a421775d26
SQL
Jean152j/CODIGO_CLASE
/universidad .sql
UTF-8
1,996
2.953125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 22-01-2021 a las 05:27:24 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
2d53c55635c023283182dd1a821191f404627db0
SQL
anupamvamsi/mysql-project-fit
/employee.sql
UTF-8
7,002
3.59375
4
[]
no_license
-- CREATING TABLE 'EMPLOYEE' WITH PRIMARY KEY 'EID' CREATE TABLE `employee` ( `eid` INT NOT NULL auto_increment, `ename` VARCHAR(255), `epostionheld` VARCHAR(255), `eage` INT NOT NULL, `egender` VARCHAR(255), `edaysofduty` VARCHAR(255), `ebasesalary` INT NOT NULL, `eshift` VARCHAR(255), `eyea...
true
7ff57834774578215213fd95c4b5cad50ec8b750
SQL
tunghim/HackerRank_SQL_Solutions
/Weather Observation Station 19_Sol.sql
UTF-8
136
2.765625
3
[]
no_license
/* Enter your query here. */ SELECT ROUND(SQRT(POWER(MAX(LAT_N) - MAX(LONG_W), 2) + POWER(MIN(LAT_N) - MIN(LONG_W), 2)), 4) FROM station
true
2bc1631b38bebcf6fe843216049e06a61d99ba54
SQL
yufengA/parkTracker
/sql/sep_visitor_track.sql
UTF-8
2,554
3.21875
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `sep` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `sep`; -- MySQL dump 10.13 Distrib 5.5.9, for Win32 (x86) -- -- Host: localhost Database: sep -- ------------------------------------------------------ -- Server version 5.5.17 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL...
true
1d5b0de8a438df54a9161d8ff72245beb55fb6f5
SQL
EncoreJiang/presto
/presto-product-tests/src/main/resources/sql-tests/testcases/insert/insert_values_all_types.sql
UTF-8
355
2.65625
3
[ "Apache-2.0" ]
permissive
-- database: presto; groups: insert; mutable_tables: datatype|created -- delimiter: |; ignoreOrder: true; --! insert into ${mutableTables.hive.datatype} values(1,2.34567,'a',cast('2014-01-01' as date), cast ('2015-01-01 03:15:16 UTC' as timestamp), TRUE); select * from ${mutableTables.hive.datatype} --! 1|2.34567|a|20...
true
91ccb4a2f4898e33f6a6f862ef71b5465033dd4d
SQL
rzumarli/tugas-akhir-prakweb
/tugasakhirweb.sql
UTF-8
2,090
2.9375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Nov 21, 2019 at 08:23 PM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.2.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
1650daae691587cca155c9d0412694f4d0c65681
SQL
MLSaj/MySQLDive
/median_weather.sql
UTF-8
421
3.953125
4
[]
no_license
#https://www.hackerrank.com/challenges/weather-observation-station-20/problem set @rownum = 0; select round(avg(t1.lat_n), 4) as median_val from ( select @rownum := @rownum + 1 as row_number, s.lat_n from station s, (select @rownum := 0) r order by s.lat_n ) as t1, ( select count(*) as total_rows fr...
true
baca1cbe019cd0a5abd9792f232d578ac251a743
SQL
luisf96v/PQ
/BD/Base.sql
UTF-8
5,443
3.90625
4
[]
no_license
-- ---------------------------------------------------------------- -- * PRQ PROYECT -- * Made by: Luis Fernando Vasquez Quiros -- * - Github: luisf96v -- * - Email : luis96v@gmail.com -- ---------------------------------------------------------------- DROP SCHEMA IF EXISTS PRQ; CREATE SCHEMA IF NOT ...
true
1a617301309e68806d0a60d2e958bc9d709d381d
SQL
SpencerV11/sim3
/db/get_posts.sql
UTF-8
72
2.96875
3
[]
no_license
select * from people inner join posts on (people.id = posts.people_id );
true
397ddd7ed8b912c4d4e7120a997a231054cc1372
SQL
zhezhiren/account
/db/account.sql
UTF-8
9,220
3.28125
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : mysqllocal Source Server Version : 50615 Source Host : localhost:3306 Source Database : account Target Server Type : MYSQL Target Server Version : 50615 File Encoding : 65001 Date: 2014-04-01 11:48:41 */ SET FOREIGN_KEY...
true
f0be2a7eb5cade5280a9452a43fab43cbd7b9ca9
SQL
altamira/visualstudio
/Sistema de Informação Altamira/EGISSQL.Database/dbo/Stored Procedures/Procs3/pr_vendedor_repnet.sql
UTF-8
840
2.703125
3
[]
no_license
 /****** Object: Stored Procedure dbo.pr_vendedor_repnet Script Date: 13/12/2002 15:08:44 ******/ --pr_pr_vendedor_repnet -------------------------------------------------------------------------------------- --Global Business Solution Ltda 2000 ...
true
ebcad9402e34f227d3f9da604ec8bd0f42fc7365
SQL
ProfDema/uam
/pam/examples/anon_data/group_0073/q8.sql
UTF-8
407
2.984375
3
[]
no_license
truncate query8; -- Clarify commission is it the sum of price * qunatity * comission --fix this INSERT INTO Query8 (SELECT customer.cid AS cid, cname, SUM(referral.commission * price * quantity) AS comission FROM referral JOIN orders ON orders.cid = referral.custref JOIN customer ON referral.custid = ...
true
a9a060e3c5d7566f434b8161ca2c5bf67c916a2c
SQL
SteveBlance/cclifeline
/database/utility-scripts/reset_new_members_to_TBC.sql
UTF-8
177
2.828125
3
[]
no_license
update members set status = 'TBC' where status not in ('Closed', 'Cancelled', 'Not Required', 'TBC') and id not in (select member_id from payments where member_id is not null);
true
f46ab5188a78bef9de22a97a08282aa549f1f619
SQL
Organ-Alan/document
/设计文档/recruitms-20180310.sql
UTF-8
45,010
2.65625
3
[]
no_license
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50543 Source Host : localhost:3306 Source Database : recruitms Target Server Type : MYSQL Target Server Version : 50543 File Encoding : 65001 Date: 2018-03-10 10:38:30 */ SET FOREIGN_KEY_CHECKS=0...
true
e62749e054c72409cf15984322f7380016927ecc
SQL
bthayer1990/InventoryManagement
/Database/Db.sql
UTF-8
4,562
4.0625
4
[]
no_license
/* these commands need to be run independently from the ones below them because you will need to connect to the newly created database in order to run the next set*/ CREATE ROLE pizza LOGIN PASSWORD 'pizzadb' NOSUPERUSER INHERIT NOCREATEDB NOCREATEROLE NOREPLICATION; -- DROP DATABASE pizza; CREATE DATABASE pizza...
true
9e33305bda18176f08037c9fa9f19ab82d88c027
SQL
tkionshao/Cov_Push_Tool
/sp_history/SP_Sub_Check_Report_State.sql
UTF-8
724
2.984375
3
[]
no_license
DELIMITER $$ USE `gt_gw_main`$$ DROP PROCEDURE IF EXISTS `SP_CreateDB_LTE`$$ CREATE DEFINER=`covmo`@`%` PROCEDURE `SP_Sub_Check_Report_State`(IN GT_DB VARCHAR(100), IN JOB_ID INT) BEGIN SET @SqlCmd=CONCAT('SELECT COUNT(*) INTO @C_CNT FROM ',GT_DB,'.report_process_state WHERE J_STATUS = 0 AND JOB_ID = ',JOB_ID,';');...
true
15bea0adfd3cd4e9f750705c833ab5ebebacd2c9
SQL
ramazandemiroglu/fizyoterapi
/fizyoterapi.sql
UTF-8
834
3.328125
3
[]
no_license
create schema fizyoterapi; USE fizyoterapi; CREATE TABLE user ( ID int not null AUTO_INCREMENT, LastName varchar(255) not null , FirstName varchar(255) not null, Tip int not null, TC varchar(11) not null, PRIMARY KEY (ID) ); CREATE TABLE movement ( ID int not null AUTO_INCREMENT, Name varchar(255) not null, PRIMARY ...
true
fc9681132dd17750666c8859508ca099bb6803b6
SQL
InfoHome/SuporteMU
/Scripts/Consultar Entrega na Expedição.sql
ISO-8859-1
1,754
3.5
4
[]
no_license
-------------------------------------------------------------------------------------------------------------------------------- -- Consultar Entrega na Expedio -- Verificar Parmetro: "Enviar cupom fiscal para expedio?" deve estar com 'S' para o Cupom ir para Expedio -- Para estar na expedio deve estar com HISTENTCAD....
true
22df83737cf16ecd8e2e3ce2a56b9509f43f898b
SQL
netravnen/r17dinh409-Anforderungsspezifikation-2
/sql/newsletter_subscribers.sql
UTF-8
1,623
2.96875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.2.12deb2+deb8u2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Apr 28, 2017 at 03:46 PM -- Server version: 5.5.54-0+deb8u1 -- PHP Version: 5.6.30-0+deb8u1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
true
50340162165a652562b3e96915699c47b41b1f37
SQL
JcGaara/SGA-PLSQL-OPE
/SGA-OPERACION/Procedures/P_COPIAR_EFS.sql
UTF-8
3,408
3.203125
3
[]
no_license
CREATE OR REPLACE PROCEDURE OPERACION.P_COPIAR_EFS(ef_origen in number, ef_destino in number) IS tmpVar NUMBER; l_punto number; l_numpto vtadetptoenl.numpto%type; l_codsucant vtadetptoenl.codsuc%type; cursor cur_ef is select b.numpto numpto, to_number(b.numpto) nuevo_punto, a.PUNTO punto, b.DESCPTO DESCRIPCION, a.COD...
true
66e6f4d4f059a0d3e1bebd077cf70ae4892d35ce
SQL
lucassoller2000/modulo-bd-2
/Aula2/ex de aula.sql
UTF-8
513
2.765625
3
[]
no_license
DECLARE vIDPEDIDO PEDIDO.IDPEDIDO%TYPE := 8420; vDATAENTREGA PEDIDO.DATAENTREGA%TYPE; vVALORPEDIDO PEDIDO.VALORPEDIDO%TYPE; BEGIN SELECT DATAENTREGA, VALORPEDIDO INTO vDATAENTREGA, vVALORPEDIDO FROM PEDIDO WHERE IDPEDIDO = vIDPEDIDO; IF(vDATAENTREGA > SYSDATE AND vVALORPEDIDO >= 9000) THEN vVALORPEDI...
true
30429c53435015c8ebf036498b170731f6036643
SQL
omarbenzi/tp2
/backend/sql/import.sql
UTF-8
1,959
3.015625
3
[]
no_license
-- -- Base de données: p51 -- -- -- Structure de la table clients -- CREATE TABLE conferences ( conference_id INT UNSIGNED NOT NULL AUTO_INCREMENT, conference_titre VARCHAR (255) NOT NULL, conference_resume VARCHAR (255) NOT NULL, conference_categorie VARCHAR (255) NOT NU...
true
ca429691394605c9b3f142e13276d827cfc39fdb
SQL
fajarraharjo/quiz-3-im-laravel-juni-2020
/quiz3.sql
UTF-8
7,105
3.09375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 05, 2020 at 02:17 PM -- Server version: 10.4.11-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