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
2937ca4b57af3b42d76b231dbfd0df807f845943
SQL
RozyRivaldi/2828FWA_2828KEL8
/laravel5 bimbel/bimbel.sql
UTF-8
14,441
3.0625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 23 Mei 2017 pada 06.59 -- Versi Server: 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
a8b8aaf46608d796e6fddd9b26609eb3eb5be9b8
SQL
shybkoi/WMS-Demo
/sql/170124-3-mixon-5660.sql
WINDOWS-1251
6,350
3.640625
4
[]
no_license
SET TERM ^ ; CREATE OR ALTER procedure WH_WARESLOTREST_WARESLOT ( OBJID type of R_ID, WARESID type of R_ID, ZONEID type of R_ID = null) returns ( PDATE type of column WARESLOT.PRODUCTDATE, QB type of column WARESLOTITEM.AMOUNT, QS type of column WARESLOTITEM.AMOUNT, QSP type of R_NUMBER, ...
true
e485b201202264e8599a0e9883185153e2bbff79
SQL
ahmadelsallab/StockMarketPrediction
/init_script.sql
UTF-8
447
2.90625
3
[ "Apache-2.0" ]
permissive
use kalamacom; pager > /dev/null select * from app_stocksprices use index(unique_index2) order by stock,time; select * from app_opinion use index(unique_index) order by twitter_id,stock; select * from app_opinion use index(stock_rel) order by stock,relevancy; CACHE INDEX app_opinion.unique_index IN opinion_cache; LO...
true
48bb4adc069ed2bf4df23ec5b8149a3ced3def1e
SQL
kreediam/code-store
/sql/st-hours.sql
UTF-8
317
3.609375
4
[]
no_license
/* select top 10 * from hours */ select sum(h.hours), sum(h.hours * h.rate) amount, c.FirstName, c.LastName from hours h join Consultants c on c.ConsultantId = h.ConsultantId where h.billable = 1 /*and c.Active = 1*/ and c.lastname <> '' and h.HourDate > '1/1/2015' group by c.FirstName, c.LastName order by 1 desc
true
6cc377f3227759d12a0772ecd6f3bfa84509a8ee
SQL
rushi053/Connect-Band
/connectband.sql
UTF-8
9,529
3.359375
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 25, 2018 at 02:52 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
16cad50aaedeec704dd349956fa2609f66302cc0
SQL
xiaolin0199/bbt
/apps/BanBanTong/db/fixtures/synclog-partition.sql
UTF-8
1,556
2.828125
3
[]
no_license
DROP TABLE IF EXISTS `SyncLog`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_client = utf8 */; CREATE TABLE `SyncLog` ( `created_at` bigint(20) AUTO_INCREMENT PRIMARY KEY, `operation_type` varchar(10) NOT NULL, `operation_content` longtext NOT NULL ) ENGINE=InnoDB DEF...
true
b79806cfa8ef0d2ac852d3d7ffe9458f4b4f108b
SQL
MostafaGhanbari9176/course-finder-backend
/city_need.sql
UTF-8
34,079
2.921875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 16, 2019 at 08:12 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SE...
true
087b99943f025e4e7d93b3395c095703dfc305e9
SQL
charles-desilva/classified-adverts-site-php
/dbcarsale.sql
UTF-8
4,391
3.28125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1:3307 -- Generation Time: Feb 04, 2021 at 03:14 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET...
true
778b6e9ba2fb4dc8392df1fa2704d78241dd5f06
SQL
vgoel38/PQET
/inputs/really_final_outputs/without_seq/original/2c.sql
UTF-8
2,741
2.9375
3
[]
no_license
QUERY PLAN -------------------------------------------------------------------------------------------------------------------------------------------...
true
bfd12eef292ab2f76dc6e40d1f77fbc066a27998
SQL
juliolopberg/ECommerceSampleApplication
/ECommerceApp.Database/Post Deployment Scripts/Script.PostDeployment.sql
UTF-8
1,410
3.328125
3
[]
no_license
/* Post-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be appended to the build script. Use SQLCMD syntax to include a file in the post-deployment script. Example: :r .\myfile.sql ...
true
dcf3b960d7940504d06be244e006b8e6f7b72663
SQL
graypegg/Shane-QR-Codes
/api/postgres/init.sql
UTF-8
507
3.234375
3
[]
no_license
-- DDL generated by Postico 1.4.2 -- Not all database features are supported. Do not use for backup. -- Table Definition ---------------------------------------------- CREATE TABLE users ( id SERIAL PRIMARY KEY, username varchar UNIQUE, password varchar ); CREATE TABLE colours ( id SERIAL PRIMARY KEY...
true
edca822d2ff26c9532aaa579c930aaad4d9e3669
SQL
inyilis/berita-utm
/mbd.sql
UTF-8
4,605
3.03125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 20, 2017 at 02:04 PM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
true
74a9f4dad57055c1adcbefb98d8fe9e05edb5ec4
SQL
benclifford/MSE
/regmgr/migrations/0011-medication.sql
UTF-8
839
2.515625
3
[]
no_license
CREATE TABLE regmgr_medication ( id SERIAL PRIMARY KEY, attendee_id INTEGER NOT NULL references regmgr_attendee(id), medication_name TEXT DEFAULT '' NOT NULL, medication_reason TEXT DEFAULT '', medication_dosage TEXT DEFAULT '', medication_notes TEXT DEFAULT '', medication_required_before...
true
034274373ca78b029c7a64b7fbfca24b67f66808
SQL
malnasseri/burger
/db/schema.sql
UTF-8
320
3.21875
3
[]
no_license
-- Creating mysql database CREATE DATABASE burgers_db; USE burgers_db; -- Creating burgers table CREATE TABLE burgers ( id int AUTO_INCREMENT, burger_name varchar(30) NOT NULL, devoured BOOLEAN, date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY(id) ); select * from burgers;
true
5713ba9d856e13ac39b0c59bba7a4efac2c8df69
SQL
rkj4theKnight/cs262
/Lab08/Lab08.sql
UTF-8
900
4.09375
4
[]
no_license
--8.1a --SELECT * FROM Game ORDER BY time DESC; --8.1b --SELECT * FROM Game WHERE time > (NOW() - interval '1 week'); --8.1c --SELECT * FROM Winner WHERE name IS NOT NULL; --8.1d --SELECT winnerID FROM WinnerGame WHERE score > 2000; --8.1e --SELECT * FROM Winner WHERE emailaddress LIKE '%gmail%'; --8.2a --...
true
3bd461753db19b2cd4f677630fec4ae5f4ca0523
SQL
klukito/rubyInter
/classwork-day2/day2.sql
UTF-8
24,364
3.53125
4
[]
no_license
show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | performance_schema | | sys | +--------------------+ 4 rows in set (0.03 sec) mysql> create database food_oms_db; Query OK, 1 row affected (0.00 sec) mysql> use food_oms_d...
true
fcf8f8d702339250eab6c7c9b0da139b671e2e3b
SQL
tvondra/hashjoin-bloom-tests
/bloom-create-large.sql
UTF-8
356
3.015625
3
[]
no_license
\set m 10000000 \set n 200000000 create table dim (a int, b float, c text); create table fact (a int, b float, c text); set work_mem='1GB'; insert into dim select i, random(), md5(i::text) from generate_series(1,:m) s(i); insert into fact select mod(i,:m)+1, random(), md5(i::text) from generate_series(1,:n) s(i); ...
true
ef00a873c831ff0fe2c7227539ff1b331d801b12
SQL
DavidRogersDev/HelpfulSqlScripts
/Server Details Query.sql
UTF-8
466
2.734375
3
[]
no_license
SELECT @@version as [Verbose Version Info] , SERVERPROPERTY('productversion') as 'Product Version' , SERVERPROPERTY('productlevel') as 'Patch Level' , SERVERPROPERTY('edition') as 'Product Edition' , SERVERPROPERTY('buildclrversion') as 'CLR Version' , SERVERPROPERTY('collation') as 'Default Collat...
true
9196f4ff441e88b9f473ede2ad46176467343186
SQL
EVOSandru6/ClickHouse
/dbms/tests/queries/0_stateless/00502_sum_map.sql
UTF-8
982
3.265625
3
[ "Apache-2.0" ]
permissive
DROP TABLE IF EXISTS test.sum_map; CREATE TABLE test.sum_map(date Date, timeslot DateTime, statusMap Nested(status UInt16, requests UInt64)) ENGINE = Log; INSERT INTO test.sum_map VALUES ('2000-01-01', '2000-01-01 00:00:00', [1, 2, 3], [10, 10, 10]), ('2000-01-01', '2000-01-01 00:00:00', [3, 4, 5], [10, 10, 10]), ('20...
true
8dd32ea78c50da1eb6b38cfe0c1192931b39a0e6
SQL
fenago/apache-cassandra-intellij
/Lab_03/8884OS_03_11a.cql
UTF-8
386
2.71875
3
[]
no_license
CREATE TYPE contact ( facebook text, twitter text, email text ); CREATE TABLE table04 ( rowkey ascii PRIMARY KEY, contactfield frozen<contact>, tuplefield frozen<tuple<int, text>> ); INSERT INTO table04 (rowkey, contactfield, tuplefield) VALUES ('a', {facebook:'b',twitter:'c',email:'d@d.com'}, (1,'e')); SEL...
true
f295f40ffa1d363cb7507c9510c7aee4256d7ea2
SQL
tariusagi/hldsman
/plugins/db/data_cyzone.sql
UTF-8
4,115
2.984375
3
[ "MIT" ]
permissive
/* vim: set filetype=mysql : */ /* vim: set foldmethod=marker : */ /*============================================================================= Make any modification neccessary and run this script to configure your CS servers. Written by vuluuphuong@gmail.com ========================================================...
true
ae1653986066db1e993424619c45567dd3aaa68a
SQL
abquansah/blend-apprentice-project
/bloggies_backend/src/data.sql
UTF-8
2,693
3.953125
4
[]
no_license
DROP DATABASE IF EXISTS "bloggies"; DROP TABLE IF EXISTS "users"; DROP TABLE IF EXISTS "posts"; DROP TABLE IF EXISTS "comments"; DROP TABLE IF EXISTS "replies"; DROP TABLE IF EXISTS "favorites"; CREATE DATABASE "bloggies"; \c "bloggies" CREATE TABLE users ( id SERIAL PRIMARY KEY, username VARCHAR (25) UNIQUE NO...
true
c251f5e16eff34080ab4a50959379841e379e101
SQL
Pgwsunny/java_persistence_practice_entity_relationship-2019-8-26-2-4-50-303
/src/main/resources/schema.sql
UTF-8
622
3.15625
3
[]
no_license
CREATE TABLE if not exists systemadministrator ( sysadmid INTEGER PRIMARY KEY, username VARCHAR(64) NOT NULL, password VARCHAR(64) NOT NULL ); CREATE TABLE if not exists company ( companyid INTEGER PRIMARY KEY, companyadminid INTEGER NOT NULL, companyname VARCHAR(64) NOT NULL, sysadmid INTEGER FOR...
true
0eab374a5721f9bb78a00204cd98b9543a35d160
SQL
connieeeee/4leafClover
/src/0824QUERY PRODUCT ADD SELLER.sql
UHC
219
2.9375
3
[]
no_license
--PRODUCT TABLE SELLER_ID ־ִ ALTER TABLE PRODUCT ADD (SELLER_ID VARCHAR2(50)); ALTER TABLE PRODUCT ADD CONSTRAINT FK_SELLERID FOREIGN KEY(SELLER_ID) REFERENCES SELLER (SELLER_ID);
true
9372a72cca73ef40a66aff87577157678e95011b
SQL
alieveldar/testng
/ng-pro_table_advertise_razdels.sql
UTF-8
526
2.71875
3
[]
no_license
-- -------------------------------------------------------- -- -- Структура таблицы `advertise_razdels` -- CREATE TABLE `advertise_razdels` ( `id` int(11) NOT NULL, `rate` mediumint(9) NOT NULL, `name` varchar(255) NOT NULL COMMENT 'Название', `pid` mediumint(9) NOT NULL DEFAULT '0' COMMENT 'Родитель (id)', ...
true
a2f84cc0029e4304c0ba568a534f1534ef1c95ae
SQL
silence-do-good/stress-test-Postgres-and-MySQL
/dump/low/day25/select0811.sql
UTF-8
178
2.640625
3
[]
no_license
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o WHERE timestamp>'2017-11-24T08:11:00Z' AND timestamp<'2017-11-25T08:11:00Z' AND temperature>=32 AND temperature<=71
true
268eb56c2bd08d2162f0ab55319b2f519f455790
SQL
syakuis/saltframework
/salt-module-data-jpa/src/test/resources/org/saltframework/module/data/schemas/demo.table.h2.sql
UTF-8
729
3.1875
3
[ "MIT" ]
permissive
CREATE TABLE DEMO ( NAME VARCHAR2(5) NOT NULL, VALUE VARCHAR2(5) NOT NULL ); ALTER TABLE DEMO ADD CONSTRAINT DEMO_PK PRIMARY KEY (NAME); CREATE TABLE MEMBER ( USER_ID VARCHAR2(5) NOT NULL, USER_NAME VARCHAR2(5) NOT NULL, ...
true
00bf0469e41e983a025e3df262f4be6f78102f94
SQL
joshuamainsmith/Databases-and-Design
/hw/hw3/HW3Ex1-geostatistical-database-input-data.sql
UTF-8
3,232,336
2.625
3
[]
no_license
ALTER SESSION SET NLS_DATE_FORMAT = 'YYYY-MM-DD'; INSERT INTO country VALUES ('Albania','AL','Tirana','Albania',28750,2821977); INSERT INTO country VALUES ('Greece','GR','Athina','Attikis',131940,10816286); INSERT INTO country VALUES ('North Macedonia','MK','Skopje','North Macedonia',25333,2059794); INSERT INTO country...
true
68f29ded92190e45efe5f7ad551a1f9a5c2514a2
SQL
langstonBS/15_auth
/sql/setup.sql
UTF-8
961
3.765625
4
[]
no_license
DROP TABLE IF EXISTS users CASCADE; DROP TABLE IF EXISTS posts CASCADE; DROP TABLE IF EXISTS comments; DROP TABLE IF EXISTS tags CASCADE; DROP TABLE IF EXISTS posts_tags; CREATE TABLE users ( id BIGINT GENERATED ALWAYS AS IDENTITY PRIMARY KEY, email TEXT NOT NULL, password_hash TEXT NOT NULL, profile_photo_url...
true
59bd66de0b3e3be3659beccd19ee87b167762903
SQL
trobbie/lava-uds
/lava-crms-nacc/database/crms-nacc/development/uds3/udsneuropsychmoca3/gen_table.sql
UTF-8
3,490
2.875
3
[ "BSD-2-Clause" ]
permissive
use lava_demo; DROP TABLE IF EXISTS `udsneuropsychmoca`; CREATE TABLE IF NOT EXISTS `udsneuropsychmoca` ( `InstrID` INT NOT NULL , `MOCACOMP` smallint NULL DEFAULT null , `MOCAREAS` smallint NULL DEFAULT null , `MOCALOC` smallint NULL DEFAULT null , `MOCALAN` smallint NULL DEFAULT null , `MOCALANX` varchar...
true
9c4b1196c61b1f8c9a115e1004557be3aa6defa5
SQL
Vennik/ing
/database.sql
UTF-8
3,650
2.84375
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `ing` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `ing`; -- MySQL dump 10.13 Distrib 5.6.17, for Win64 (x86_64) -- -- Host: localhost Database: ing -- ------------------------------------------------------ -- Server version 5.6.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTE...
true
da89049eb8a83bb5a8af276790590ba67a420ddb
SQL
lifesaver0129/CS307-Database-Principle
/lab10/microblog.sql
UTF-8
1,547
4.3125
4
[]
no_license
drop view if exists public.following; drop view if exists public.my_thoughts; drop view if exists public.microblog; drop table if exists thoughts; drop table if exists followers; create sequence thought_id; grant usage on thought_id to public; create table thoughts(id int primary key ...
true
c5ed96e2a789987f220db132b4fc421aee8608dc
SQL
SkyViewCode/tach-java-backend
/src/java/Installation/sql/createTables.sql
UTF-8
1,599
3.671875
4
[]
no_license
-- Create the tables to be used in the level 2 GCN. -- Delete the tables if they already exist. drop table if exists missions cascade; drop table if exists notices cascade; drop table if exists details cascade; -- Create the tables. create table missions ( mid int primary key, -- A unique identifier...
true
f753d32110ec434f6ffe657c51dab1c1712d4cf0
SQL
sarab78/spending_tracker_project
/db/tracker.sql
UTF-8
469
2.96875
3
[]
no_license
DROP TABLE transactions; DROP TABLE tags; DROP TABLE merchants; DROP TABLE budget; CREATE TABLE tags ( id SERIAL4 primary key, name VARCHAR(255) ); CREATE TABLE merchants ( id SERIAL4 primary key, name VARCHAR(255) ); CREATE TABLE transactions ( id SERIAL4 primary key, merchant_id INT4 REFERENCES mercha...
true
ff2953164839d7f56656b349caf57efb85fd1f07
SQL
yksuh/edison
/ScienceAppEngine-portlet/docroot/WEB-INF/sql/create/create-informix.sql
UTF-8
941
3.109375
3
[]
no_license
database sysmaster; drop database lportal; create database lportal WITH LOG; create procedure 'lportal'.isnull(test_string varchar) returning boolean; IF test_string IS NULL THEN RETURN 't'; ELSE RETURN 'f'; END IF end procedure; create table EDAPP_CommonLibrary ( commonLibraryId int8 not null primary key, group...
true
1439cf5a13884eeabd7c79f24c514eda99a001a8
SQL
FapCod/Ventas
/mostrarybuscarVenta.sql
UTF-8
1,240
3.484375
3
[]
no_license
delete producto where idproducto=2 delete venta delete detalleVenta select * from venta select * from detalleVenta --drop procedure buscardt --buscamos detalleventa create procedure buscardt( @idventa int ) as begin SELECT dbo.detalleVenta.idproducto, dbo.producto.nomproducto, dbo.detalleVenta.cantidad, dbo.detall...
true
b2f8d3b5259fb6bba45897420193efd92f7ec413
SQL
GordanSajevic/BitPik
/conf/evolutions/default/1.sql
UTF-8
3,533
3.328125
3
[ "Apache-2.0" ]
permissive
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table faq ( id integer not null, question varchar(255), answer varchar(255), constraint pk_faq primary key (id)) ; create...
true
63cdc2e26f06bc93837cf40193bb6e757ce76eac
SQL
WindsorSolutions/opennode2-java
/node-plugin/node-plugin-icisnpdes/src/main/assembly/outer/ddl/ICS_5.8_ORA/views/ICIS-5.8-ORA-Java Required Support Views.sql
UTF-8
3,926
3.171875
3
[]
no_license
/* Copyright (c) 2012, The Environmental Council of the States (ECOS) All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this ...
true
416e964b32f8ec11b405fa6ea09acd6915290f39
SQL
chrismarkella/SQL_practice
/CF/easy/27.sql
UTF-8
973
3.78125
4
[ "MIT" ]
permissive
-- You returned from vacation with a huge suitcase full of presents. -- Unfortunately, you forgot the correct combination for the combination -- lock on the bag, and now you have to try all of them until you find -- the correct one. You're curious about how many possible combinations -- the lock has. -- The combin...
true
bee5fff1f33a738905a91b4b30a716921836ba93
SQL
joan71739/HomeWork
/SQL Server HW/HW-4_06-鍾喬安(p61).sql
BIG5
1,118
3.859375
4
[]
no_license
--Ĥ@D select * from emp where sal > 2850; --ĤGD select ename, deptno from emp where empno ='7566'; --ĤTD select ename, sal from emp where sal not between 1500 and 2850; --ĥ|D select ename, job, hiredate from emp where hiredate between '19810220' and '19810501' order by hiredate; --ĤD select ename, deptno from emp w...
true
794aad28b7b0be7d32fe1ad0285ca14cda9e6b33
SQL
adrianaSluka/computer-practicum-2
/sql/V6__Populate_school_table.sql
UTF-8
4,642
2.953125
3
[]
no_license
INSERT INTO School (Name, ParentName, Place_ID) SELECT DISTINCT EOName, EOParent, (SELECT DISTINCT a.Place_ID FROM (SELECT DISTINCT Place_ID, RegName, AreaName, TerName FROM Place WHERE RegName IS NOT NULL AND AreaName IS NOT NULL AND TerName IS NOT NULL) as a WHERE a.RegName=zno.region AND a.AreaName=zno.area ...
true
00c991a3c6d39d32b2723c02d48ca9af2fb88d2a
SQL
izelyekrek/lab-sql-2
/Lab 2.sql
UTF-8
1,429
4.09375
4
[]
no_license
USE sakila; -- 1. Select all the actors with the first name ‘Scarlett’. select * from actor where first_name = 'Scarlett'; -- 2. Select all the actors with the last name ‘Johansson’. select * from actor where last_name = 'Johansson'; -- 3. How many films (movies) are available for rent? (Total amount of movies) sele...
true
70b19c119ecfaa6b19fd5600257f4c478e415d46
SQL
nurulhjsa/Latihan2-Postgre
/No2.sql
UTF-8
542
3.90625
4
[]
no_license
SELECT E.employee_id AS "Kode Karyawan", E.last_name ||', '|| E.first_name AS nama_karyawan, D.department_name AS "Nama Bagian", CASE WHEN m.employee_id IS NULL THEN 'Saya tidak punya manager' ELSE m.first_name||' '|| m.last_name END AS manager_name, UPPER(J.job_title) AS "Nama Jabatan"...
true
1ec1dafef05893baa4a43d1bbae21f13aa75eda2
SQL
klgentle/lc_python
/nowcoder/sql/SQL70_牛客每个人最近的登录日期_新用户次日留存率.sql
UTF-8
539
4.21875
4
[]
no_license
/* 方法一: 首先找出新用户第一次的登录日期,然后计算第二天的留存率,最后并上没有新用户的0.000 */ select a.date, round(count(b.user_id) / count(a.user_id), 3) as p from ( select user_id, min(date) as date from login group by user_id ) a left join login b on a.user_id = b.user_id and b.date = date_add(a.date, interval 1 day) group by a.date ...
true
562c30c9ea3b957f7d4e7f7ef3369feeac70d03d
SQL
wkfff/WebConsolitation
/.svn/pristine/03/03d9f284befb645f5a7b4b67df553488f2671535.svn-base
WINDOWS-1251
2,183
3.078125
3
[]
no_license
/******************************************************************* Oracle 2.5 2.6 *******************************************************************/ /* : */ /* Start - < ClearQuest> - < > - <> - <: DD.MM.YYYY> */ /* SQL- */ /* End - < ClearQuest> - < > - <> - <: DD.MM.YYYY> */ /* Start - *...
true
4b09decfdee3b439e57be0c17313e15d021d0e03
SQL
mitch990/code
/user_manager_01.sql
GB18030
5,758
3.15625
3
[]
no_license
/*==============================================================*/ /* DBMS name: MySQL 5.0 */ /* Created on: 2018/10/30 15:52:38 */ /*==============================================================*/ drop table if exists Authority; drop table if exi...
true
5be8b2952577afa44574ecae33ef408e951f60f7
SQL
LauraMarino1993/mpjp
/mySql/esercizi5.sql
UTF-8
3,290
4.5625
5
[]
no_license
-- S46 -- Salary: maggiore, minore, somma, media select max(salary), min(salary), sum(salary), avg(salary) from employees; -- Come sopra, ma per ogni job_id select max(salary), min(salary), sum(salary), avg(salary) from employees group by job_id; -- Quanti dipendenti per ogni job_id select job_id, count(employee_id) ...
true
b704d880718940f477d36c0daf1c92769639984b
SQL
vincentpresentation12/projetcocktail
/codtaildb.sql
UTF-8
1,957
3.140625
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.7deb1 -- https://www.phpmyadmin.net/ -- -- Hôte : localhost:3306 -- Généré le : ven. 09 avr. 2021 à 11:49 -- Version du serveur : 8.0.23-0ubuntu0.20.10.1 -- Version de PHP : 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:...
true
5e80eab584685152657c29d071feb43487e0ee8d
SQL
thachtvn/thachtvn.github.io
/table.sql
UTF-8
298
2.578125
3
[]
no_license
CREATE TABLE `books` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) NOT NULL, `description` text NOT NULL, `author` varchar(255) NOT NULL, `image` varchar(255) NOT NULL, PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREMENT=18 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci
true
35b73bd7a6c19f47f202f11411fc08879795c4e6
SQL
vaster/Telerik.vasko
/homeworks/C#/Database/SQL- Advanced/Task16.sql
UTF-8
271
3.5625
4
[]
no_license
--Write a SQL statement to create a view that displays the users from the Users table that have been in the system today. --Test if the view works correctly. create view [Active Users] as select Username from TelerikUsers where DATEDIFF(day,GETDATE(),LastLogin) = 0
true
49d8da2fd411fc313366ef42d1e15d5460b8196d
SQL
dimashirda/erlangga
/db/transfer.sql
UTF-8
1,306
2.84375
3
[]
no_license
/* SQLyog Professional v10.42 MySQL - 5.5.5-10.1.40-MariaDB : Database - erlangga_v2 ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOR...
true
177bedaedb03c16b9ca89a018a4b85f5bb110f50
SQL
Sarthak-GitHub/Hackerrank-SQL-Solutions
/Weather Observation Station 12.sql
UTF-8
222
3.34375
3
[ "MIT" ]
permissive
-- https://www.hackerrank.com/challenges/weather-observation-station-12/problem SELECT DISTINCT(CITY) FROM STATION WHERE LEFT(CITY, 1) NOT IN ('a', 'e', 'i', 'o', 'u') AND RIGHT(CITY, 1) NOT IN ('a', 'e', 'i', 'o', 'u');
true
b41e4bb8402f9be2bbf2ca8a0c2621151c718278
SQL
ChebanRostislavKM81/database
/query.sql
UTF-8
403
3.640625
4
[]
no_license
--- First Select select home_team, count(*) From RESULTS Group by home_team; select away_team, count(*) From RESULTS Group by away_team; --- TheEnd --- Second Select select city, count(*) from cities where tournament!= 'friendly' group by city -- The End --- Third Select select count(*)/(select count(*) from NEUTRA...
true
573ae979a5fa44538b76732aa5715dd001f4d373
SQL
VijayMVC/JCC-Data-Warehouse
/SQLDB/dbo/Views/AA_REP_AGED_DEBT_MP_VIEW.sql
UTF-8
1,881
2.984375
3
[]
no_license
create view AA_REP_AGED_DEBT_MP_VIEW /* ** Written: 10/5/2005 RL ** Last Amended: 27/5/2005 RL, 22/7/2005 RL, 03/10/07 NC, 17/09/08 NC ** Comments: returns selected sales transactions for Multiple Period Aged Debtors crystal reports */ as select ST_PRIMARY, ST_TRANTYPE, CAST (ST_BATCH_FLAG AS BIT) AS ST_BATCH_...
true
3d95d483bc6db7f887f1c4e4f7710bac3bdd3e7c
SQL
Alan666156/files
/src/main/resources/files.sql
UTF-8
1,571
3.171875
3
[]
no_license
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.7.17-log : Database - files ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHEC...
true
dbf36a5bdb10daffd1c6af96d611a90abf02ac06
SQL
sahasra101/mySQL-node-inventoryApp
/bamazon.sql
UTF-8
991
2.9375
3
[]
no_license
DROP DATABASE IF EXISTS bamazon_db; CREATE DATABASE bamazon_db; USE bamazon_db; CREATE TABLE products ( id INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(50) NOT NULL, department_name VARCHAR(50) NOT NULL, price DECIMAL(6,2) NOT NULL, stock_quantity INT(10) NOT NULL, PRIMARY KEY (id) ); INSERT INTO p...
true
f40ba046ff21be7d464bd7db33b7337e0117ca2c
SQL
alawanegaine/RFID
/Documentation/BDD/Create Table/Absences.sql
UTF-8
486
3
3
[]
no_license
CREATE TABLE Absences( v_id_abs VARCHAR(20) NOT NULL, v_id_etu VARCHAR(20) NOT NULL, d_abs DATETIME NOT NULL, v_just VARCHAR(1) DEFAULT 'N' NOT NULL, d_creat DATETIME NOT NULL, v_id_user_creat VARCHAR(20) NOT NULL, d_maj DATETIME NOT NULL, v_id_user_maj VARCHAR(20) NOT NULL, v_st...
true
856f86bafc6f37cd8dbe76ba305720cf4a5be3c9
SQL
official-kalyani/logout-automatic
/database/admins.sql
UTF-8
587
2.796875
3
[]
no_license
-- Database: `webscodex` -- -- -------------------------------------------------------- -- Table structure for table `admins` -- CREATE TABLE `admins` ( `id` int(11) NOT NULL PRIMARY KEY AUTO_INCREMENT, `name` varchar(50) NOT NULL, `username` varchar(50) NOT NULL, `password` varchar(50) NOT NULL, `created` d...
true
50715847dd5e3bf0b8e35486828160bfd34d7c34
SQL
GeorgescuMVlad/TennisClubApp
/Tenis/tenis.sql
UTF-8
6,913
2.890625
3
[]
no_license
-- MySQL dump 10.13 Distrib 8.0.19, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: tenis -- ------------------------------------------------------ -- Server version 8.0.19 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40...
true
ccea103de2589c40da29408c18d048a3eddb5bf3
SQL
squ-portlet/prjLeaveApp
/db/Functions/CALC_ACTUAL_LEAVE_BAL_FUNC.sql
UTF-8
4,962
2.9375
3
[]
no_license
create or replace function calc_actual_leave_bal_func(ecode varchar2, sdate date) return number is /* This function calculates the leave balance */ LEAVE_DAYS NUMBER(9,2); EFFECTIVE_DT DATE; NEW_GRADE VARCHAR2(10); GRADE_CODE VARCHAR2(10); L_DAYS NUMBER(9); L_LEAV...
true
36501c804f5ddc81286ea016a3a9cf593741aa92
SQL
LgHS/mqtt-gate
/gate-server/src/main/resources/db/migration/V000__initial_schema.sql
UTF-8
2,732
3.875
4
[]
no_license
create table groups ( id uuid primary key default uuid_generate_v4(), parent_id uuid references groups(id), name text unique not null ); grant select, insert, update, delete on table groups to lghs_gate_server_app; create table devices ( id uuid primary key default uuid_generate_v4(), name text un...
true
dcc8db883601b95597b75e2e142e49484b0ef18a
SQL
MichaelKueh/working_materials_management
/working_materials_management/wmm.sql
UTF-8
4,568
3.21875
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 3.3.9 -- http://www.phpmyadmin.net -- -- Host: localhost -- Erstellungszeit: 19. Oktober 2011 um 23:40 -- 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_S...
true
e7ea7dde912aa96938c676e472bafd5dac0d2349
SQL
jorgemachado23/proyectosucab
/Desarrollo/aulaVirtual/data/sql/lib.model.schema.sql
UTF-8
5,489
3.359375
3
[]
no_license
# This is a fix for InnoDB in MySQL >= 4.1.x # It "suspends judgement" for fkey relationships until are tables are set. SET FOREIGN_KEY_CHECKS = 0; #----------------------------------------------------------------------------- #-- comentarios #--------------------------------------------------------------------------...
true
c8f66cb47773caf08e8327b3a8b45522e8ea2ec7
SQL
cdesmarais/WebDB-Test
/WebDB/StoredProcedures/Common/dbo.User_GetProfileByID2.PRC
UTF-8
726
3.875
4
[]
no_license
if exists (select * from dbo.sysobjects where id = object_id(N'[dbo].[User_GetProfileByID2]') and OBJECTPROPERTY(id, N'IsProcedure') = 1) drop procedure [dbo].[User_GetProfileByID2] GO CREATE PROCEDURE dbo.User_GetProfileByID2 ( @UserID int ) AS SET NOCOUNT ON set transaction isolation level read uncommitted SELECT...
true
1980370698f4536f379d93017a9fb2abd2100af2
SQL
Anas23nasrallah/sql-intro-lesson-exercises
/solutions/ex_6.sql
UTF-8
211
3.1875
3
[]
no_license
USE sql_intro; -- Retrieve only the name and height -- for all the healthy dolphins sorted by their height -- (tallest to shortest). SELECT name, height FROM Dolphin WHERE healthy = 1 ORDER BY height DESC;
true
cb9c48794a95bf477da6ea6f3b4bb7bdc8c66074
SQL
CollinsTshuma/database-applications-jdbc-applications-java-se-11-developer
/03/demos/migrations/mysql/1__initial_tables.sql
UTF-8
4,641
3.859375
4
[]
no_license
create table Venues ( Id Int PRIMARY KEY AUTO_INCREMENT, Name varchar(100) not null, Capacity Int not null ); create table Acts ( Id Int PRIMARY KEY AUTO_INCREMENT, Name TEXT not null, RecordLabel TEXT null ); create table Gigs ( ...
true
9f7697647ada42983665cf2857f778de7fe949a1
SQL
rothexD/datenbankenWS20202
/VIEW_OrtInfo.sql
UTF-8
347
2.625
3
[]
no_license
--********************************************************************* --** --** View: Ort_Info --** Developer: Nicolas Klement --** Description: Listet alle Orte auf, mit PLZ und Bezeichnung. --** --********************************************************************* CREATE OR REPLACE VIEW ort_info AS SELECT pl...
true
1d049b22428ad7b4eacb82c8d6f09433ee31d8a2
SQL
williamPozo/cp_WilliamPozo
/vymsa2020_anetribu.sql
UTF-8
2,592
2.890625
3
[]
no_license
CREATE DATABASE IF NOT EXISTS `vymsa2020` /*!40100 DEFAULT CHARACTER SET latin1 */; USE `vymsa2020`; -- MySQL dump 10.13 Distrib 5.5.16, for Win32 (x86) -- -- Host: 192.168.1.210 Database: vymsa2020 -- ------------------------------------------------------ -- Server version 5.5.62-0ubuntu0.14.04.1 /*!40101 SET @O...
true
34ce1aff4ceaf75d5e91ba8f0356dd9906b1c30c
SQL
Josh-Webb/chinook-josh-webb
/line_items_per_invoice.sql
UTF-8
180
3
3
[]
no_license
SELECT COUNT(*) AS 'Invoices' FROM InvoiceLine GROUP BY InvoiceId; --Looking at the InvoiceLine table, provide a query that COUNTs the number of line items for each Invoice.
true
57bb9748427fe359b9c7979fb69f3731bf6c3e44
SQL
Zenwinks/api-tise
/src/assets/apitise.sql
UTF-8
1,369
3.1875
3
[]
no_license
-- Adminer 4.7.0 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; DROP DATABASE IF EXISTS `apitise`; CREATE DATABASE `apitise` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `apitise`; DROP TABLE IF EXISTS `cocktail`; CREATE ...
true
86cc23c88bb0de76e1898d7d60d22044580053f3
SQL
dioptra-io/diamond-miner-cpp
/database/requests.sql
UTF-8
26,586
2.546875
3
[ "MIT" ]
permissive
-- Create probes table CREATE TABLE probes_mda_yarrp_snapshot_1(src_ip UInt32, dst_prefix UInt32, dst_ip UInt32, reply_ip UInt32, src_port UInt16, dst_port UInt16, ttl UInt8, type UInt8, code UInt8, round UInt32, Sign Int8, snapshot UInt16) ENGINE=VersionedCollapsingMergeTree(Sign, snapshot) ORDER BY (src_ip, dst_prefi...
true
b1f84c47c4507992ff95972c844839e00599cd14
SQL
oen142/spring-board-demo
/app-core/src/main/resources/sql/v1.0/schemas/29-attachments.sql
UTF-8
432
3.046875
3
[ "Beerware" ]
permissive
CREATE TABLE IF NOT EXISTS `attachments` ( `id` BIGINT NOT NULL AUTO_INCREMENT PRIMARY KEY, `access_id` VARBINARY(16) NOT NULL UNIQUE, `status` VARCHAR(4) NOT NULL DEFAULT '', `post_id` BIGINT NOT NULL, `name` TEXT, `uri` TEXT, `mime_type` TEXT, C...
true
c34a9ac205fe845b4eeb01035fc7547b96bb7295
SQL
mjshipp25/CS50x
/Week7/pset7/movies/12.sql
UTF-8
264
3.25
3
[]
no_license
SELECT title FROM movies WHERE id IN (SELECT movie_id FROM stars WHERE person_id IN (SELECT people.id FROM people WHERE people.name = "Johnny Depp")) AND id IN (SELECT movie_id FROM stars WHERE person_id IN (SELECT people.id FROM people WHERE people.name = "Helena Bonham Carter"));
true
da653b5279377688caba1d88bbad5015ac2d8df7
SQL
SayeedAlquiaty/DiaryApp
/DiaryAppDB/DiaryAppDBScriptMySql.sql
UTF-8
4,248
3.90625
4
[]
no_license
CREATE TABLE IF NOT EXISTS `schools_tb` ( `school_id` INT NOT NULL AUTO_INCREMENT, `school_name` VARCHAR (50) NOT NULL, `city_name` VARCHAR (20) NOT NULL, `province_name` VARCHAR (20) NULL, `country_name` VARCHAR (20) NOT NULL, `address` VARCHAR(50) NOT NULL, `phone` VA...
true
51a137757c644c8b7662d412bf9a2ba246fd5774
SQL
code1x1/DBWT-2018
/Meilenstein3/Paket4/emensa.sql
UTF-8
16,279
3.515625
4
[]
no_license
use emensa; -- DROP STATEMENTS -- DROP TRIGGER IF EXISTS `Mahlzeiten_verfügbar_update`; -- DROP TRIGGER IF EXISTS `Mahlzeiten_verfügbar_insert`; DROP TABLE IF EXISTS `MahlzeitenBilder`; DROP TABLE IF EXISTS `MahlzeitDeklarationen`; DROP TABLE IF EXISTS `gehörtZuFachbereiche`; DROP TABLE IF EXISTS `MahlzeitenZutaten`...
true
122d15a1840246555ca6642dd467fb5f5cdd0bfa
SQL
Calvin-Glein/SECURDE
/MysqlDump/libsysdb_rating.sql
UTF-8
2,319
2.75
3
[]
no_license
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: libsysdb -- ------------------------------------------------------ -- Server version 5.7.18-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
true
35ddab2e960a4e69c6da4f92219c411b97113aac
SQL
akenworthy87/ci-datacentricpython
/sql-challenges/04-order-challenges/challenge-02.sql
UTF-8
254
3.265625
3
[]
no_license
/* We need to fire the last three people hired. Select the EmployeeId, LastName, FirstName and HireDate of the 3 Employees with the most recent HireDate */ SELECT EmployeeId, LastName, FirstName, HireDate FROM Employee ORDER BY HireDate desc LIMIT 3 ;
true
54dd7f8e9cc91c53d7ae733ccc6daf397f93c844
SQL
sindicate/solidbase
/src/test/home/scripting/testsql-parameter1.sql
WINDOWS-1250
1,879
3.25
3
[ "Apache-2.0" ]
permissive
--* // Copyright 2012 Ren M. de Bloois --* // 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 License at --* // http://www.apache.org/licenses/LICENSE-2.0 --* // Unless required b...
true
43429c790073ff71600b15998c05a4cb28555871
SQL
PR30-JV36-E-Banking-Project/ebankingprojectpr30
/src/main/resources/SQLquery.sql
UTF-8
1,315
2.609375
3
[]
no_license
/* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ /** * Author: solid * Created: Oct 6, 2020 */ INSERT INTO `user_entity` VALUES (1,'cus@gmail.com',_binary '','123qwerty','ROLE_U...
true
daf57f5453116d6c9e8fb897881123ce6a0d2569
SQL
radtek/LS
/Delphi/FDC Library/FDC Standard Applications/Standard VERO Application/Server/fdc_Person_Legal_Upd.prc
WINDOWS-1251
2,499
2.65625
3
[]
no_license
create or replace procedure fdc_Person_Legal_Upd -- - ( pID number, pName varchar2, -- pShortName varchar2, -- pOGRN varchar2, -- pINN varchar2, -- pKPP varchar2, -- ( ...
true
f75e21a7fcad7bf5ffec3461b9cf42503c5caa8c
SQL
FlatFishPrincess/PHP_CLASS
/WEEK8/MYCODE/CREATE_DATABASE.sql
UTF-8
1,523
4.09375
4
[]
no_license
-- drop the database CSIS3280WEEK8 if it exists -- my mindless commnets here drop database if exists CSIS3280WEEK8; -- create the database create database CSIS3280WEEK8; -- show databases; -- select the database for use use CSIS3280WEEK8; -- columnName datatype constraints create table USER( Use...
true
0affdd09d4874b2914d4d55c9fd155dc56955eb7
SQL
MarinaAlane/Exercises-MySQL
/exercises-unions.sql
UTF-8
1,720
4.375
4
[]
no_license
-- 1 -Todos os funcionários foram promovidos a atores. Monte uma query que -- exiba a união da tabela staff com a tabela actor , exibindo apenas o nome e o sobrenome . -- Seu resultado não deve excluir nenhum funcionário ao unir as tabelas. SELECT first_name, last_name FROM actor UNION ALL SELECT first_name, last_nam...
true
42fa612fe4274d7ae288239bd7ac9702c620ae7b
SQL
bcompter/successionwars
/database_setup/cards_and_groups.sql
UTF-8
4,962
3.328125
3
[]
no_license
-- phpMyAdmin SQL Dump -- version 4.9.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jan 30, 2021 at 09:40 AM -- Server version: 5.7.23-23 -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
true
13cb9077298cbb12ca4dc62412fe1ac17c087aa8
SQL
MPadini/SolutioBackend
/Solutio/Solutio.Infrastructure.Database/Tables/ClaimThirdInsuredVehicles.sql
UTF-8
540
3.1875
3
[]
no_license
 CREATE TABLE [ClaimThirdInsuredVehicles] ( [VehicleId] bigint NOT NULL, [ClaimId] bigint NOT NULL, [Created] datetime NOT NULL DEFAULT GetDate(), [Modified] datetime NULL, [Deleted] datetime NULL, CONSTRAINT [PK_ClaimThirdInsuredVehicles] PRIMARY KEY ([VehicleId], [ClaimId]), CONSTRAINT [F...
true
e4664d7a698e93eb6c2079e8e0c85ca2c45efae2
SQL
hwingerter/companysystem
/sql/adiciona desconto e acrescimo em comanda_item.sql
UTF-8
513
2.640625
3
[]
no_license
ALTER TABLE `comanda_item` ADD COLUMN `flg_desconto_acrescimo` CHAR(1) NULL COMMENT 'D - Desconto\nA - Acrescimo' AFTER `dt_inclusao`, ADD COLUMN `desconto` INT NULL AFTER `flg_desconto_acrescimo`, ADD COLUMN `valor_ascrescimo` FLOAT(10,2) NULL AFTER `desconto`; ALTER TABLE `claudio_company`.`comanda_item` CHANGE CO...
true
1e0b8e1126d3032ca6bd57419fc62f1370debd50
SQL
deepamgupta/alma-connect
/databases/chat_messages.sql
UTF-8
5,590
2.828125
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.9.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jan 20, 2020 at 05:29 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
c105392ff71d21d3b6e79ccedd942c49e4381afc
SQL
dempsey1983/php_study
/panda/create_register.sql
UTF-8
863
3.21875
3
[]
no_license
create database panda_dbase; use panda_dbase; grant select,insert,update,delete,index,alter,create,drop on panda_dbase.* to bookmgr; create table tb_registers ( id int unsigned not null auto_increment primary key, username char(50) not null, email char(100) not null, password char(32) not null, to...
true
10428c72a4df648b154a18d979b486f48242b7e7
SQL
BremzeLV/dabasveltes
/icons.sql
UTF-8
2,492
3.046875
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 21, 2018 at 02:09 PM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
true
04cf8c674f7628dd41106bcf37aba08f346988b9
SQL
denis96z/iu7-labs-intelligent-systems
/lab02/backend/src/main/resources/data.sql
UTF-8
2,597
2.953125
3
[]
no_license
INSERT INTO movie(id,title,genre,year,rating) VALUES(gen_random_uuid(),'movie1','thriller',2005, 7); INSERT INTO movie(id,title,genre,year,rating) VALUES(gen_random_uuid(),'movie2','drama',2001,9); INSERT INTO movie(id,title,genre,year,rating) VALUES(gen_random_uuid(),'movie3','horror',2008,5); INSERT INTO movie(...
true
11330c0adb58f760818f8933bdc6dc89d7299883
SQL
spendnetwork/etl_sql_cron
/trans_clean_updates.sql
UTF-8
2,471
3.640625
4
[]
no_license
-- Refresh tc_slim materialized view. SELECT 'Refreshing tc_slim.', CURRENT_TIMESTAMP; REFRESH MATERIALIZED VIEW tc_slim; -- Updates usm3 with new supplier_source_strings added to trans_clean in the last 2 days. SELECT 'Inserting new sss into usm3', CURRENT_TIMESTAMP; INSERT INTO usm3 (sss, sss_created_at) SELEC...
true
37f6847f7a28868556d4aac2565d9df6d787ec78
SQL
liveqmock/platform
/coupon/database/mysql/sql/iz_coupon0210.sql
UTF-8
98,536
2.71875
3
[]
no_license
# MySQL-Front 5.1 (Build 3.20) /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE */; /*!40101 SET SQL_MODE='STRICT_TRANS_TABLES,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION' */; /*!40111 SET @OLD_SQL_NOTES=@@SQL_NOTES */; /*!40103 SET SQL_NOTES='ON' */; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS */; /*!40014 SET UNIQUE_CHECK...
true
83a6c443dfb5409fb011a3764e87823062d99991
SQL
Gudang-Source/siakad-1
/siakad_sttp.sql
UTF-8
7,972
2.96875
3
[ "LicenseRef-scancode-unknown-license-reference", "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 27, 2020 at 01:06 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
bcc299f58151d175a3f8c12805dceefb1e76de19
SQL
OHDSI/Vocabulary-v5.0
/working/manual_changes/2018/manual_changes_25-May-2018.sql
UTF-8
841
2.953125
3
[ "Unlicense" ]
permissive
--fix UCUM names: picomol -> picomole update concept set concept_name='picomole per gram hemoglobin' where concept_id=44777641; update concept set concept_name='picomole per hour and milligram of hemoglobin' where concept_id=44777642; update concept set concept_name='picomole per kilogram' where concept_id=44777643; -...
true
cf8ca590b58a0b4e483e1ddb0aeddd835a4c3f80
SQL
samarthgupta19/CSE-2004-Database-Management-Systems-Lab-Codes-MySQL
/Cycle Sheet 2/Cycle_Sheet_2.sql
UTF-8
17,313
3.71875
4
[]
no_license
# 19BDS0042 SAMARTH GUPTA # DATABASE MANAGEMENT SYSTEMS LAB # LAB CYCLE SHEET-2 # SLOT : L43+L44 ----------------------------------------------------------------------------------------------------------------------- • DDL statements (ALTER, CONSTRAINT etc): 1) Modify Hospital_Bill by adding an attribute cons...
true
e3200a5fd56b34d9352929b7638e565f2c183082
SQL
1jobam/dbSql_work
/2019_11_27.sql
UHC
7,960
4.34375
4
[]
no_license
za-- ( condition ǽ cond 3) -- users ̺ ̿Ͽ reg_dt ǰ ȸϴ ۼϼ. -- ( ϳ ⼭ reg_dt Ѵ.) SELECT a.userid, a.usernm, a.liias, DECODE( mod(a.yyyy, 2), mod(a.this_YYYY, 2), 'ǰ', 'ǰ ') contacttotocdotr FROM (SELECT userid, usernm, alias, TO_CHAR(reg_dt, 'YYYY') yyyy, TO_CHAR(sysdate, 'yyyy') this_yyyy FROM users;...
true
4a409833df5aab8ef8c8e87ce7574c595a4910b3
SQL
nttuyen/thesis
/web/src/main/webapp/WEB-INF/sql/schema.sql
UTF-8
2,577
3.046875
3
[]
no_license
CREATE TABLE IF NOT EXISTS `nttuyen_user` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `username` varchar(45) DEFAULT NULL, `password` varchar(45) DEFAULT NULL, `password2` varchar(45) DEFAULT NULL, `name` varchar(45) DEFAULT NULL, `email` varchar(45) DEFAULT NULL, `email2` varchar(45) DEFAULT NULL, `addr...
true
707ba7a2dddf2235b7f2ccb0d6cf8c006b419b8f
SQL
Wirwing/ProyectoCVE
/flyway/sql/V1__initial.sql
UTF-8
7,276
3.203125
3
[ "Apache-2.0" ]
permissive
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'; -- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Generation Time:...
true
ad0bd200cd99672a465940f5c6c6a99daf55e77a
SQL
MaiHoa1999/du_an-shop-banh-laravel
/public/shopbanhlara.sql
UTF-8
10,698
3.265625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th12 17, 2020 lúc 09:28 AM -- Phiên bản máy phục vụ: 10.4.11-MariaDB -- Phiên bản PHP: 7.4.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
true
776a2fa749a69432cb87e4aea599991a82e037a4
SQL
rizan1998/MyFirst_CodeIgniter4
/my_codeigniter4.sql
UTF-8
16,075
2.65625
3
[ "MIT" ]
permissive
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 30, 2020 at 02:52 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
true
ed44c0890aa7cd82f0efab703130aa8ea9ed6728
SQL
rlminers/rick
/sql/get_param.sql
UTF-8
445
2.515625
3
[]
no_license
set serveroutput on set feedback off exec dbms_output.put_line('Parameter value in memory:'); col name format a25 col value format a10 SELECT INST_ID, NAME,VALUE,TYPE,ISSYS_MODIFIABLE, ISINSTANCE_MODIFIABLE FROM GV$PARAMETER WHERE name ='ddl_lock_timeout' ; exec dbms_output.put_line('Parameter value in SPFILE:'); col...
true