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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
519d62dc4f8069e7eb14107cbae69c4af3abb424 | SQL | MARKO220900/ProyectoEscuela | /BaseDatos/AnnoEscolar.sql | ISO-8859-10 | 705 | 3.015625 | 3 | [] | no_license | use Colegio_DB --Usamos la base de datos.
------Creacion de la tabla Ao Escolar-----------------
create table annoEscolar(
numeroAnno int primary key not null,
fechaInicio date not null,
fechaTermino date not null
)
------Fin de la creacion de la tabla Ao Escolar-------
---------------------------------------------... | true |
6f3124c061411a7f3cc905f8aa97bc558f1f76bd | SQL | ssriha0/sl-b2b-platform | /ServiceLiveCommonDomain/dbscripts/SUPPLIER/SPN-phase1b-005-hsql-viewProviderMatch-ddl.sql | UTF-8 | 3,800 | 3.453125 | 3 | [] | no_license | drop view vw_spnet_provider_match;
alter table vendor_resource add column user_name varchar(30) null;
alter table vendor_resource add column primary_ind integer null;
alter table vendor_resource add column background_state_id integer null;
alter table vendor_resource add column total_so_completed integer nu... | true |
1f4b72e360aaf40f4ba9d755e3ce59bf6d92e768 | SQL | ricardooliveira-developer/signa | /Database/scripts/ex 6 - scripts select nomes dos donos e dos gatos.sql | UTF-8 | 136 | 3.46875 | 3 | [] | no_license | /*6 Selecione os nomes dos Owner e seus respectivos Cats */
SELECT o.Name, c.Name as Cats FROM Owner o
JOIN Cats c
on o.Id = c.OwnerId | true |
8c7b4fcbf6ffe6098e3623a4e1acefd7e1757eb8 | SQL | Bonzar/Homework | /DataBases/lesson12/VIEWS.sql | UTF-8 | 2,140 | 4.28125 | 4 | [] | no_license |
-- ПРЕДСТВАЛЕНИЕ ВСЕХ ЗАДАЧ ПОЛЬЗОВАТЕЛЯ С ТЕМИ НА КОТОРЫЕ ОН ПОДПИСАЛСЯ
DROP VIEW IF EXISTS user_5;
CREATE VIEW user_5 AS SELECT DISTINCT
u.nickname AS `user_nickname`,
l.name AS `list_name`,
t.title AS `task_title`,
t.body AS `task_body`,
t.time_start AS `task_time_start`,
t.time_end AS `task_time_end`,
MIN(... | true |
2e53706fbd287d7297537632dab3b195b9b0af60 | SQL | Ucandoit/nobot-backend | /src/main/resources/db/migration/V6__create_table_auction_history.sql | UTF-8 | 303 | 2.703125 | 3 | [
"MIT"
] | permissive | CREATE TABLE auction_history (
id SERIAL PRIMARY KEY,
login VARCHAR(32) NOT NULL REFERENCES account (login),
card_rarity VARCHAR(32) NOT NULL,
card_name VARCHAR(255) NOT NULL,
card_price INTEGER NOT NULL,
snipe_time TIMESTAMP WITH TIME ZONE NOT NULL,
bought BOOLEAN
) | true |
8b70dd8803812b7333920210445fa9d4aab33ecc | SQL | adamaho/tallii-backend | /migrations/20200820012132_init.sql | UTF-8 | 2,723 | 3.9375 | 4 | [] | no_license | -- Invite Codes
create table invite_codes (
id varchar(10) primary key
);
insert into invite_codes (id) values ('aho');
-- Users
create table users (
user_id serial primary key,
username varchar(100) not null unique,
emoji text not null,
bg_color text not null,
email text not null unique,
... | true |
9ff995ce21ace1df1f1a6bf0ea5033fd8c34ccd0 | SQL | mtomberger/BookShop | /src/main/db-scripts/SCRIPTS_BSP6.sql | UTF-8 | 691 | 3.203125 | 3 | [
"MIT"
] | permissive | set schema 'bsp6';
CREATE TABLE buch (
id SERIAL,
title VARCHAR(75),
pages INTEGER
);
CREATE TABLE publisher (
id SERIAL,
name VARCHAR(75),
description VARCHAR(255)
);
CREATE TABLE buch_publisher (
buch_id INTEGER,
publisher_id INTEGER
);
ALTER TABLE buch
ADD CONSTRAINT pk_buch PRIMARY KEY (id);... | true |
408b4f890039c65d3806d681f7689dbd24ab4896 | SQL | amendapps/parcelpro | /app/webroot/liveadmin/include/sql/db_dump_000_news.sql | UTF-8 | 667 | 3.140625 | 3 | [] | no_license | --
-- Table structure for table `<%value table_prefix%>news`
--
<%sec-start drop%>
DROP TABLE IF EXISTS `<%value table_prefix%>news`;
<%sec-end drop%>
<%sec-start table%>
CREATE TABLE IF NOT EXISTS `<%value table_prefix%>news` (
`siteid` bigint(16) NOT NULL,
`newsid` bigint(16) NOT NULL auto_increment,
`n_date` bi... | true |
7cb9107e4166c02bd3d0d616dc6c0b5430098d9b | SQL | paulalcabasa/Oracle-SQL-Files | /GL/IPC Account Analysis - GL Posted (Payables).sql | UTF-8 | 2,796 | 3.375 | 3 | [] | no_license | SELECT
REGEXP_SUBSTR (gjh.description, '[^,]+', 1, 1) AS invoice_status,
gjh.doc_sequence_value voucher_no,
gjh.je_header_id,
gjl.je_line_num,
gjh.je_category,
gjh.je_source,
gjh.period_name,
gjh.na... | true |
77b675c63b490669c48466214c98b4d6b031ee2f | SQL | chengcuichao/k8s | /docker/ekt/ekt/trigger/insert_update_client.sql | UTF-8 | 325 | 2.796875 | 3 | [] | no_license | CREATE DEFINER=`root`@`%` TRIGGER `insert_update_client` AFTER INSERT ON `est_contact_record` FOR EACH ROW BEGIN
IF NEW.con_rec_time != '0000-00-00 00:00:00' AND NEW.cle_id > 0
THEN
UPDATE est_client SET cle_last_connecttime = NEW.con_rec_time,con_rec_next_time = NEW.con_rec_next_time WHERE cle_id = NEW.cle_id;
END IF;... | true |
6492018a626547d62adb6ab98ea84ddd7ae2044d | SQL | tartakovskyi/back_end | /store.loc/backup/store_db_031119.sql | UTF-8 | 6,742 | 3.4375 | 3 | [] | no_license | /*
Navicat Premium Data Transfer
Source Server : store_db
Source Server Type : MySQL
Source Server Version : 50727
Source Host : 127.0.0.1:3306
Source Schema : store_db
Target Server Type : MySQL
Target Server Version : 50727
File Encoding : 65001
Date: 03/11/2019 07... | true |
efbd37ed51d16b3403c52b5adb40aec44053b5bf | SQL | GemsTracker/gemstracker-library | /configs/db/tables/gems__log_respondent_communications.500.sql | UTF-8 | 1,610 | 3.390625 | 3 | [
"BSD-3-Clause"
] | permissive |
CREATE TABLE if not exists gems__log_respondent_communications (
grco_id_action bigint unsigned not null auto_increment,
grco_id_to bigint unsigned not null references gems__respondents (grs_id_user),
grco_id_by bigint unsigned null default 0 references gems__staff (gsf_i... | true |
e5756348d17b7a162a62508b8fdfe89e9de6f85b | SQL | amonzark/toko-buku | /kasir.sql | UTF-8 | 3,613 | 3.046875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 30, 2021 at 04:04 AM
-- Server version: 10.4.18-MariaDB
-- PHP Version: 8.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIEN... | true |
02239c74914f33a396245533d2e4db912868fe0a | SQL | RonaldoVindas/1S-2021-Bases-de-Datos-1-Proyecto-1 | /Scripts/Queries/UserInterface_package.sql | UTF-8 | 5,961 | 3.421875 | 3 | [] | no_license | Create or replace package UserInterface_package is
FUNCTION Getcollection (Pperson_id in number)return sys_refcursor;
FUNCTION GetItems (pPerson_id in number)return sys_refcursor;
FUNCTION GetPublishers return sys_refcursor;
FUNCTION GetItemTypes return sys_refcursor;
FUNCTION GetGenres return sys_refcursor;
FUNCTI... | true |
dfbc3f699ae6fe868b95b5d362e5e43e32471f64 | SQL | hqottsz/MXI | /assetmanagement-database/src/base/plsql/maintenix/plsql/getOperatorText.sql | UTF-8 | 1,276 | 3.296875 | 3 | [] | no_license | --liquibase formatted sql
--changeSet getOperatorText:1 stripComments:false endDelimiter:\n\s*/\s*\n|\n\s*/\s*$
/********************************************************************************
*
* Function: getOperatorText
* Arguments: as_cd - an operator's code
* as_iataCd - ... | true |
3f7fdb109ababca0fe3bfcdb2281c1789de19a75 | SQL | Aleksandyr/Software-University | /Homeworks/Database/03.DataModelingERDiagram/04.UniversityStriptMySql.sql | UTF-8 | 4,962 | 3.46875 | 3 | [] | no_license | -- MySQL Script generated by MySQL Workbench
-- 06/25/15 11:57:43
-- Model: New Model Version: 1.0
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';
-- -----------... | true |
1f736262def102b68170968668c2b741e209ed49 | SQL | MarieKelling/SQL | /MySQL Database - 2351 Shoemaker/Assignments/Unit 5 - Ch 04; Joins (Inner & Outer)/5.7 - DIY.sql | UTF-8 | 284 | 3.78125 | 4 | [] | no_license | -- 5.7 Marie Kelling
-- DIY - Uses at least one outer join and shows at least one record that doesn't match on the join
USE college;
SELECT
Course.Name as 'Course',
Section.Name as 'Section'
FROM
Course
LEFT OUTER JOIN
Section ON Course.ID = Section.CourseID;
| true |
9e57550e181923e823cf3da209a6ad6bd78a080b | SQL | shenoykarthikd/sql-tips | /RecursionInSQL.sql | UTF-8 | 1,310 | 4.15625 | 4 | [] | no_license | use AdventureWorks2017
--Recursion in SQL
--Print the hierarchy of an organization
CREATE TABLE OrgChart
(EmpID SMALLINT,
EmpName CHAR(20),
MgrID SMALLINT)
INSERT INTO OrgChart VALUES (1,'Adam',0);
INSERT INTO OrgChart VALUES (2,'Alice',1);
INSERT INTO OrgChart VALUES ... | true |
9a44b3bc3ced86212d56857cddbc806e718a25dd | SQL | AliceArni/cassandra-exercise | /assignment-1/q6.cql | UTF-8 | 4,614 | 3.984375 | 4 | [] | no_license | -- ANSWERS FOR QUESTION 6
-- 1. Read the number of working days of a driver. (Payroll will use this information.). App collects this information in a separate table. Table name: `driver_working_days`, Columns: `driver_name` (unique, string), `working_day` (counter). This is a counter table and the app will update the ... | true |
f5eba27270cef9a7a62a7958a04832f39d147d5e | SQL | nikitomitov/sprungfit | /database/setup.sql | UTF-8 | 4,934 | 3.390625 | 3 | [] | no_license | CREATE DATABASE IF NOT EXISTS `twitterDB` /*!40100 DEFAULT CHARACTER SET utf8 */;
GRANT ALL PRIVILEGES ON `twitterDB`.* TO 'api_user'@'localhost';
USE `twitterDB`;
-- MySQL dump 10.13 Distrib 5.7.17, for macos10.12 (x86_64)
--
-- Host: localhost Database: twitterDB
-- ----------------------------------------------... | true |
1dd13bac232fe702a43da7ce1744a3105521d2d2 | SQL | AnzhelaLi/Spring_Boot_Security_3.1.1 | /target/classes/data.sql | UTF-8 | 1,155 | 2.65625 | 3 | [] | no_license | insert into users (name, surname, workplace, age, salary, username, password)
values ('Ivan', 'Ivanov', 'fortuna', 50, 120000, 'ivi50', '$2a$10$wRtDsg/IbyEE2loh9Ek7eOIghm3QsxiHajbLuGP3kulYSfLu5rokK');
insert into users (name, surname, workplace, age, salary, username, password)
values ('John', 'Johnson', 'autopark', 33... | true |
cbf2e3126af5b8c300ca66dda7e58bd364bd144d | SQL | williamxin97/SQL-Experience | /Useful PL Views/get_mapped_products.sql | UTF-8 | 778 | 3.765625 | 4 | [] | no_license |
--This section joins to product segmentation data and finds the most recent product the customer had before complaining
-- For the month of January 2020
create or replace temporary table joined_products as (
select distinct * from
(select *
, row_number() over (partition by acct_id order by effective_sta... | true |
caf1e03bcac4ee360cd661b9a93132fe84aa35e2 | SQL | WSFHJ/Project | /MySQL/SuperMarket/shopping.sql | UTF-8 | 5,151 | 2.90625 | 3 | [] | no_license | /*
SQLyog Ultimate v12.08 (64 bit)
MySQL - 5.5.27 : Database - shopping
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECK... | true |
bf60b065e9e77ed671f5bcb856cfd8d25de18033 | SQL | Vasiliy-prog/geekbrains_de | /MySQL/de_lesson10.sql | UTF-8 | 1,114 | 4.59375 | 5 | [] | no_license | use vk;
# indexes
create index likes_target_id_idk on likes(target_id);
create index profiles_birthday_idk on profiles (birthday);
create index users_fio_idk on users (first_name, last_name);
# CTE
select
c.name
from communities_users cu
left join communities c
on cu.community_id = c.id;
select distinct
comm... | true |
c9db04d5d4e89075e9625da5758bdd76cb529511 | SQL | JimShady/TubeAir | /SQL Scripts/old/17-make_map.sql | UTF-8 | 11,147 | 3.46875 | 3 | [
"MIT"
] | permissive | -- There's some bits of data that we aren't sure where they are. Typically when equipment turned on, on the way to do monitoring. Going to remove it manually here.
DELETE FROM tube_air WHERE date_time BETWEEN '2016-01-27 14:03:00' AND '2016-01-27 14:13:00'; -- Martha walking to Waterloo station
DELETE FROM tube_air WH... | true |
f93d7b9617f4dbb3a802affb6c627a7f7268fa63 | SQL | sujata1606/Data-Analysis-using-MySQL | /Basics.sql | UTF-8 | 1,743 | 3.8125 | 4 | [] | no_license | Basics of MySQL
USE demo;
-- use the demo db
SHOW TABLES;
-- list all tables
NULL;
-- use NULL when you need to keep empty values for the field.
NOT NULL;
-- Obligate to specify particular value for the field.
DESCRIBE;
-- show the structure of the table.
1.CREATING DB,... | true |
611ff3eeb41b50e85774dc6aca34b6249792008a | SQL | HeinoPortfolio/Python | /Pandas Examples/Music/testMusic.sql | UTF-8 | 334 | 3.1875 | 3 | [] | no_license | SELECT customer.LastName, customer.FirstName, track.Name , album.Title
FROM Customer
JOIN invoice ON customer.CustomerId = invoice.CustomerId
JOIN invoiceline ON invoice.InvoiceId = invoiceline.InvoiceId
JOIN track ON invoiceline.TrackId = track.TrackId
JOIN album ON track.AlbumId = album.AlbumId
ORDER BY customer.Last... | true |
5f6087762a068c9cd01ac82ac1e7adc47dc9789e | SQL | amankumarsah1/Aman | /contacts.sql | UTF-8 | 1,802 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Aug 25, 2021 at 06:23 AM
-- Server version: 10.4.8-MariaDB
-- PHP Version: 7.1.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
c39ad73761f25e8db3ec1e70d2dcbe1fd8cdf9c2 | SQL | ocastelblanco/encuesta-vocacional | /dist/config/create_table.sql | UTF-8 | 1,839 | 2.828125 | 3 | [] | no_license | CREATE TABLE `encuesta` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`nombres` VARCHAR(100) NOT NULL,
`apellidos` VARCHAR(100) NOT NULL,
`tipo` ENUM('Cédula de Ciudadanía','Tarjeta de Identidad','Cédula de Extranjería','Pasaporte','Registro Civil') NOT NULL,
`documento` VARCHAR(20) NOT NULL,
`email` VARCHAR(100) NOT NU... | true |
fad4f2f23e2d3c0cae931594622925745a59aa8a | SQL | kn2s/EDC | /database/ec_email_text(17-12-15).sql | UTF-8 | 2,224 | 2.703125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.3.11
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Apr 09, 2016 at 08:00 PM
-- Server version: 5.6.24
-- PHP Version: 5.6.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
... | true |
cba675c964526b7c7e5fa6f86bb8c22e38ebc65f | SQL | StephSako/Rugby-snack-manager | /BD/fonctions.sql | UTF-8 | 3,056 | 3.78125 | 4 | [] | no_license | DROP FUNCTION SeConnecter;
DROP PROCEDURE AJOUTERPARENT;
drop procedure ajouterconsommation;
drop procedure AjouterCreerCompteEnfant;
DROP PROCEDURE AjouterGouter;
drop procedure Ajouterprodsupp;
drop procedure ModifierPrixGouter;
drop procedure ModifierPrixprodsupp;
drop procedure SupprimerParent;
drop proced... | true |
a119169693534c1fcf17b316f8e15f38db639119 | SQL | vcappugi/ADESVENCA | /migration/352a-353a/oracle/320_FR2257170.sql | UTF-8 | 6,337 | 2.6875 | 3 | [] | no_license | -- 2008-nov-11 08:54:58 CET
-- [ 2257170 ] Implement shipper and freight category functionality
INSERT INTO AD_Column (AD_Client_ID,AD_Column_ID,AD_Element_ID,AD_Org_ID,AD_Reference_ID,AD_Table_ID,ColumnName,Created,CreatedBy,Description,EntityType,FieldLength,Help,IsActive,IsAllowLogging,IsAlwaysUpdateable,IsAutocom... | true |
a0abc013f519afe7528d0bd3a66cbb8fd88f13c6 | SQL | RobertWSmith/TD_SQL | /Sales Forecasting/Quantity in Jeopardy.sql | UTF-8 | 5,782 | 2.796875 | 3 | [] | no_license | SELECT
OD.ORDER_FISCAL_YR
, OD.ORDER_ID
, OD.ORDER_LINE_NBR
, CASE
WHEN OD.ORDER_DELIV_BLK_CD > '' OR SCHD_LN_DELIV_BLK_CD > ''
THEN 'Risk - Delivery / Credit Block Present'
WHEN ZEROIFNULL(I.TOT_QTY) < SUM(OOL.OPEN_CNFRM_QTY) AND OE_REPL_IND = 'Replacement'
THE... | true |
597aba7231505cf5fc153c7df33399ecf31fdf6f | SQL | PabloBonet/ProyectoProcessar | /BackupBD/Modulo_Cobro 20210814 1301.sql | UTF-8 | 11,111 | 2.9375 | 3 | [] | no_license | -- MySQL Administrator dump 1.4
--
-- ------------------------------------------------------
-- Server version 5.5.55-0+deb8u1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNEC... | true |
7db8fa72f3b3b55ea90ead6ea9a77a8738d9c0b3 | SQL | jcalonso/Oyster-Push-Notifications | /dbSchema.sql | UTF-8 | 797 | 2.859375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Jan 30, 2013 at 10:37 PM
-- Server version: 5.5.25-log
-- PHP Version: 5.4.4
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `oysterbot`
--
-- -------------------------------... | true |
2c03bfc36ea1e1291428f0949cdb7c641adbee14 | SQL | xlisrassi/gtaProject | /sql.sql | UTF-8 | 13,087 | 2.9375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 2.10.3
-- http://www.phpmyadmin.net
--
-- โฮสต์: localhost
-- เวลาในการสร้าง:
-- รุ่นของเซิร์ฟเวอร์: 5.0.51
-- รุ่นของ PHP: 5.2.6
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- ฐานข้อมูล: `174_bbasni_5050`
--
-- --------------------------------------------------------
--
-- โครงส... | true |
e8dfefba0b4d4e649036ec9f5a9f7c0e28211981 | SQL | gangs143/hospital | /cruddb.sql | UTF-8 | 13,044 | 2.9375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.7
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 22, 2018 at 08:20 AM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 7.2.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
bef95a07b12e2396d4e9e72a1c4db38902af075b | SQL | jaimelasso/G_D_QB | /RFM Model/RFM Create Users Log Table.sql | UTF-8 | 188 | 2.78125 | 3 | [] | no_license | DROP TABLE IF EXISTS BQ_RFM_usersLog;
CREATE TABLE BQ_RFM_usersLog (
userId INT,
rScore INT,
fScore INT,
mScore INT,
modified DATE,
FOREIGN KEY (userId) REFERENCES users(id)
); | true |
1fd398b0c787ff78786415ce2063b5b9521df4ed | SQL | TDR-3003/pumpdump_license_server | /database.sql | UTF-8 | 1,108 | 2.8125 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50505
Source Host : localhost:3306
Source Database : pumpdump
Target Server Type : MYSQL
Target Server Version : 50505
File Encoding : 65001
Date: 2018-03-05 04:43:43
*/
SET FOREIGN_KEY_CHECKS=0;
-- ... | true |
c408ae3f02b28b99dca16e437d56aad217122076 | SQL | Nacili/MATFCasopisBaze | /Inserts.sql | UTF-8 | 14,386 | 2.8125 | 3 | [] | no_license | --
-- korisnicki nalog
insert into KorisnickiNalog (ime,prezime,email,sifra) values ('Randall', 'Balestriero','randal@gmail.com','randal');
insert into KorisnickiNalog (ime,prezime,email,sifra) values ('Romain', 'Cosentino','romain@gmail.com','romain');
insert into KorisnickiNalog (ime,prezime,email,sifra) values ('H... | true |
97076d3b356ba95b71b4946731bdb980c52bd158 | SQL | simonc99/sql | /cr_lob_sizing.sql | UTF-8 | 537 | 2.921875 | 3 | [] | no_license | set heading off feedback off lines 400 trimspool on trimout on pagesize 4000
spool /tmp/getlobsizes.sql
select 'set echo off heading off feedback off lines 80 trimspool on trimout on pagesize 4000' from dual;
select 'spool /tmp/lob_sizes.log' from dual;
select 'select '''||a.table_name||''', max(dbms_lob.getlength('''|... | true |
ad18e9d8c9dee6d9f74c600b87a1fc64f866fabd | SQL | silence-do-good/stress-test-Postgres-and-MySQL | /dump/high/day28/select0535.sql | UTF-8 | 178 | 2.625 | 3 | [] | no_license |
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o
WHERE timestamp>'2017-11-27T05:35:00Z' AND timestamp<'2017-11-28T05:35:00Z' AND temperature>=20 AND temperature<=31
| true |
9f49de96a72ea5a55c062b7ec2f372b07b8b0061 | SQL | cindywauters/ThesisCode | /SQL/FetchOtherSOinfo.sql | UTF-8 | 228 | 2.84375 | 3 | [] | no_license | /* now fetch title, tags and id. See other notes for more explanation*/
ELECT Id, Tags, Title
FROM `sotorrent-org.2020_01_24.Posts`
WHERE Id IN (SELECT first_SO_post_mentioned FROM `gothic-venture-268213.ghissues_1.issue_IDs`); | true |
0af3b2c8bd01a501135cb93cf19adcb666f88f49 | SQL | sunilagarwal2007/sql-challenge | /EmployeeSQL/employee_db.sql | UTF-8 | 1,027 | 3.640625 | 4 | [] | no_license | -- Create a Department table
CREATE TABLE department (
dept_no VARCHAR(4) NOT NULL,
dept_name VARCHAR(40),
PRIMARY KEY (dept_no)
);
-- Create a Department Employee table
CREATE TABLE dept_emp (
emp_no INT,
dept_no VARCHAR(4) NOT NULL,
from_date DATE,
to_date DATE,
PRIMARY KEY (dept_no,emp_no)
);
-- Create ... | true |
c66bcb7cd14e7b39670c33fe66c835a2f4338f5f | SQL | rrossete/projetoExtensao | /src/main/resources/db/migrations/V1.5_agendamento_usuario.sql | UTF-8 | 913 | 3.171875 | 3 | [] | no_license | CREATE TABLE agendamento_usuario(
id SERIAL4 PRIMARY KEY,
demandaJuridica INT4 NOT NULL,
disciplinaEmCurso TEXT NOT NULL,
usuario1 INT4 NOT NULL,
usuario2 INT4,
horario_cliente INT4 NOT NULL
);
ALTER TABLE agendamento_usuario
ADD CONSTRAINT fk_agendamento_usuario1 FOREIGN KEY (usuario1) R... | true |
3992ea8e4037cff075fa347a83cba6e50f4c0cd2 | SQL | nnbarinov/nmcssql | /merge_examle.sql | UTF-8 | 358 | 3.34375 | 3 | [] | no_license | merge into patient p
using (select distinct d.dated, p.keyid
from patient p, solution_dbf.deadppl d
where
LOWER (d.fam) = LOWER(p.lastname) AND LOWER (d.im) = LOWER(p.firstname) AND LOWER(d.ot)= LOWER(p.secondname)
AND TRUNC (d.dateb) = TRUNC (p.birthdate)) s
on (p.keyid = s.keyid)
when matched then update set p.deat... | true |
4ab1d462c1acaa27781d16ae83004bde91297b7c | SQL | Buddalaz/Kingsland_institute | /kingslandsDATABASE.sql | UTF-8 | 1,975 | 4.1875 | 4 | [] | no_license | drop database if exists kingsland;
create database if not exists kingsland;
use kingsland;
//-------------------------TABLES-------------------------
create table student(
id VARCHAR(10) NOT NULL,
studentName VARCHAR(45),
Address VARCHAR(45),
Contact VARCHAR(45),
dob Date,
Gender VARCHAR(45),
CONSTRAINT PRIM... | true |
037e29decd54fe804a050c91e09f48c96d9d422b | SQL | radtek/abs3 | /sql/mmfo/bars/View/v_customer_cigpo.sql | UTF-8 | 1,294 | 2.59375 | 3 | [] | no_license |
PROMPT =====================================================================================
PROMPT *** Run *** ========== Scripts /Sql/BARS/View/V_CUSTOMER_CIGPO.sql =========*** Run *
PROMPT =====================================================================================
PROMPT *** Create view V_CU... | true |
c3a71f303b799dcbf07d1f45c74c0801f756aac5 | SQL | MadieStruwe/CSCI-3308-Software-Dev-Methods-and-Tools | /Lab6/db.sql | UTF-8 | 1,204 | 4.4375 | 4 | [] | no_license | #Madelaine Struwe
#Josh Nguyen
SELECT sname
FROM store
ORDER BY sname ASC;
SELECT id, sname
FROM store
WHERE id < 4
ORDER BY sname ASC LIMIT 3;
SELECT id, sname
FROM store
WHERE id > 2
ORDER BY sname ASC LIMIT 3;
SELECT price, sname
FROM store
WHERE price > 1;
SELECT sname, qty, price, qty * price AS 'extended pr... | true |
e423753ebb599af1f30590a25360217aa0864bc2 | SQL | sqlfluff/sqlfluff | /test/fixtures/dialects/ansi/create_table.sql | UTF-8 | 271 | 2.546875 | 3 | [
"MIT"
] | permissive | -- Test various forms of quoted data types
CREATE TABLE foo (
pk int PRIMARY KEY,
quoted_name "custom udt",
qualified_name sch.qualified,
quoted_qualified "my schema".qualified,
more_quoted "my schema"."custom udt",
quoted_udt sch."custom udt"
);
| true |
5dde89a59072cc3990f0a4d46f0810e2f33ae676 | SQL | rfahey/client | /RMP/Extensions/MvmAmp/MvmConfig/Database/tables/agg_aqg_map_oracle.sql | UTF-8 | 254 | 2.65625 | 3 | [] | no_license | create table agg_aqg_map (
id_acc NUMBER,
account_qualification_group VARCHAR2(100),
child_id_acc NUMBER,
start_date DATE,
end_date DATE,
CONSTRAINT agg_aqg_map_pk PRIMARY KEY (id_acc, account_qualification_group, child_id_acc, start_date)
);
| true |
6c46671862c854f705d6e5a7641b49d65e3eb353 | SQL | saviaga/Coding_E | /replace-employee-id-with-the-unique-identifier/replace-employee-id-with-the-unique-identifier.sql | UTF-8 | 112 | 2.875 | 3 | [] | no_license | # Write your MySQL query statement below
SELECT unique_id,name
FROM Employees
LEFT JOIN EmployeeUNI
USING (id)
| true |
b3066e61760c3f0ba0e57c7884f9ff3564c0b6ea | SQL | hearias6/uniajcCajero | /atm.sql | UTF-8 | 8,447 | 3.375 | 3 | [] | no_license | -- MySQL Script generated by MySQL Workbench
-- Sun Mar 17 19:50:41 2019
-- Model: New Model Version: 1.0
-- MySQL Workbench Forward Engineering
-- -----------------------------------------------------
-- Schema atm
-- -----------------------------------------------------
-- ---------------------------------------... | true |
ce0941d31a80e3c8957b6b5e29996cadf0fffc8e | SQL | hpenev/JavaEE | /SQL_homework/SQL Advanced/07.sql | UTF-8 | 637 | 4.09375 | 4 | [] | no_license | SELECT
COUNT(d.department_id) AS employees_in_department, d.department_name
FROM
employees AS e
JOIN
departments AS d ON (e.department_id = d.department_id)
WHERE
d.department_id IS NOT NULL
GROUP BY d.department_id;
SELECT
CONCAT(e.first_name, ' ', e.last_name) AS employee_name,... | true |
6c0fb822116b952e36461c12ee4d4022a4938e5b | SQL | Onwuta/csc15 | /csc15/login.sql | UTF-8 | 3,624 | 3.3125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Apr 25, 2021 at 10:58 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.2.27
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
4031e03522fe9bdffaa366a44b246ad0b71e7d73 | SQL | anjalipantha/Student_Database_Management | /student/users (1).sql | UTF-8 | 1,362 | 2.78125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 04, 2020 at 04:37 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.2.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | true |
249a5b66cb245ccb23af2aa2f3b23fc686d7dafa | SQL | colintrainer/IQXNet-1 | /sql/NetProvTimesheetTimes.sql | UTF-8 | 1,354 | 3.53125 | 4 | [] | no_license | create procedure pears.NetProvTimesheetTimes(in pWebUserID char(20),in pTempProvTimesheetID char(20))
result(placementid char(20),weekstartdate date,shiftdate date,dayticked smallint,tickednormalhours double,hours double,timefrom time)
// IQXWeb
begin
select p.placementid,
weekmonthenddate(t.period,t.periodlength... | true |
a6445ceab74b8c30d9d767133aa2892add7088d1 | SQL | getdatakick/revws | /php/sql/migrate-productcomments.sql | UTF-8 | 3,702 | 3.453125 | 3 | [
"AFL-3.0",
"AFL-2.1"
] | permissive | /**
* Copyright (C) 2017-2023 Petr Hucik <petr@getdatakick.com>
*
* NOTICE OF LICENSE
*
* This source file is subject to the Academic Free License (AFL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/afl-3.... | true |
43a4ed9e152584e45c42f612638803cac5551ca1 | SQL | toannvph05233/Mysqlsever | /thuvien.sql | UTF-8 | 650 | 3.34375 | 3 | [] | no_license | use quanly_thuvien;
create table people(
IDpeople nvarchar(10) primary key,
namepeople nvarchar(50),
address nvarchar(100)
);
create table book(
IDbook nvarchar(10) primary key,
namebook nvarchar(50),
IDloaibook nvarchar(10),
foreign key (idloaibook) references loaibook(idloaibook)
);
create table... | true |
c4c056f420c8f58d009893a3c52473af8f48d368 | SQL | silence-do-good/stress-test-Postgres-and-MySQL | /dump/low/day18/select1440.sql | UTF-8 | 178 | 2.65625 | 3 | [] | no_license |
SELECT timeStamp, temperature FROM ThermometerOBSERVATION o
WHERE timestamp>'2017-11-17T14:40:00Z' AND timestamp<'2017-11-18T14:40:00Z' AND temperature>=50 AND temperature<=98
| true |
1680d72371a937c60d6d16b389cd4c112709943d | SQL | tonypartridge/PropertyPrices | /administrator/sql/install.mysql.utf8.sql | UTF-8 | 1,836 | 2.96875 | 3 | [] | no_license | CREATE TABLE IF NOT EXISTS `#__xws_property_records` (
`id` int(11) UNSIGNED NOT NULL AUTO_INCREMENT,
`ordering` INT(11) NULL DEFAULT 0,
`state` TINYINT(1) NULL DEFAULT 1,
`checked_out` INT(11) UNSIGNED,
`checked_out_time` DATETIME NULL DEFAULT NULL ,
`created_by` INT(11) NULL DEFAULT 0,
`modified_by` INT(11) ... | true |
2e2eaee439299cd90276be5d72c6dd01c21a53a7 | SQL | proyectoais/telefonia | /bd/bd_ais.sql | UTF-8 | 6,063 | 3.546875 | 4 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 3.3.9
-- http://www.phpmyadmin.net
--
-- Servidor: localhost
-- Tiempo de generación: 05-03-2014 a las 16:11:11
-- Versión del servidor: 5.5.8
-- Versión de PHP: 5.3.5
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SE... | true |
44cf5acd245f0be4362edfef80a4186721ba2590 | SQL | thona-seguros/Repositorio-Sicas | /Objetos-BD/Paquetes/oc_corregimiento.sql | UTF-8 | 1,860 | 3.21875 | 3 | [] | no_license | --
-- OC_CORREGIMIENTO (Package)
--
-- Dependencies:
-- STANDARD (Package)
-- STANDARD (Package)
-- CORREGIMIENTO (Table)
--
CREATE OR REPLACE PACKAGE SICAS_OC.oc_corregimiento IS
FUNCTION NOMBRE_CORREGIMIENTO(cCodPais VARCHAR2, cCodEstado VARCHAR2, cCodCiudad VARCHAR2, cCodMunicipio VARCHAR2) RETURN VARCH... | true |
e62794c750f322896f96fc020dfad5f942188616 | SQL | bryang-qti-qualcomm/DIRBS-Core | /src/dirbs/sql/base/on_db_creation.sql | UTF-8 | 3,091 | 3.28125 | 3 | [
"BSD-3-Clause-Clear"
] | permissive | --
-- Template script for new PostgreSQL databases, used by dirbs-db create
--
-- Copyright (c) 2018 Qualcomm Technologies, Inc.
--
-- All rights reserved.
--
--
--
-- Redistribution and use in source and binary forms, with or without modification, are permitted (subject to the
-- limitations in the disclaimer below... | true |
ec300bae1a37970fe322707da26e88ec8887a59a | SQL | kawserahmed47/Inventory_management_system_Python_Tkinter- | /Database/store.sql | UTF-8 | 3,580 | 3.078125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jan 10, 2020 at 10:37 PM
-- Server version: 10.4.6-MariaDB
-- PHP Version: 7.3.8
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
9298b782bb1fa403b59e6597a86d7b5a48bad6a2 | SQL | cicean/Comp430Spring2015 | /A3-TSQL/Problem4createtables.sql | UTF-8 | 225 | 2.640625 | 3 | [] | no_license | drop table DATA
drop table DATAPOINTS
CREATE TABLE DATAPOINTS (
POINT_ID INT,
ISTRAINING INT,
CLASSLABEL INT
PRIMARY KEY (POINT_ID));
CREATE TABLE DATA (
POINT_ID INT,
DIM INT,
VALUE INT
PRIMARY KEY (POINT_ID,DIM)); | true |
d35e2734dd3657e4fc6994fadd712e4208f8d3e4 | SQL | igor-kuznetsov/php-academy | /Advanced/API/task_manager.sql | UTF-8 | 1,915 | 3.34375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.5.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 27, 2017 at 02:44 PM
-- Server version: 10.1.21-MariaDB
-- PHP Version: 7.1.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `task_manager`
--
-- -----------------... | true |
506fddd02c2643d294a0ddb34ff7f237298f6c73 | SQL | nuhil/bangladesh-geocode | /upazilas/upazilas.sql | UTF-8 | 40,913 | 2.8125 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Nov 24, 2019 at 09:45 AM
-- Server version: 5.7.26-0ubuntu0.18.04.1
-- PHP Version: 7.2.19-0ubuntu0.18.04.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+0... | true |
17f3a9b551b99f3f77e86068e938cce7c668a976 | SQL | neem693/LastProject | /last_baseball_project/sql/party_book.sql | UTF-8 | 792 | 3.90625 | 4 | [] | no_license | create table party_book(
b_idx int unsigned auto_increment,
m_idx int unsigned,
b_leader int(2),
pt_idx int unsigned,
constraint pk_party_book_b_idx primary key(b_idx),
constraint fk_m_idx_in_party_book foreign key(m_idx)
references member(m_idx) on delete cascade,
constraint fk_pt_idx_in_party_book foreign key(pt_idx)... | true |
2cfc05bff413c5886212eaaad8c56235a3d62e0a | SQL | Miuywu/Python_JavaScript_fundamentals | /0x0D-SQL_introduction/15-groups.sql | UTF-8 | 251 | 3.515625 | 4 | [] | no_license | -- script that lists the number of records with the same score in the table
-- second_table of the database hbtn_0c_0 in your MySQL server.
SELECT
score,
COUNT(score)
AS number
FROM
second_table
GROUP BY
score
ORDER BY
score
DESC;
| true |
298f0fbbf6507a031ba11af12c65d92ab5633dae | SQL | ydalekorey/rest-example | /conf/evolutions/default/1.sql | UTF-8 | 177 | 2.8125 | 3 | [] | no_license | # --- !Ups
CREATE TABLE products (
code CHAR(5) NOT NULL,
name VARCHAR(20) NOT NULL,
price DECIMAL(10,2) NOT NULL,
PRIMARY KEY (code)
);
# --- !Downs
DROP TABLE products; | true |
028ec17513019bdfc2b284e08b40172f722d7cfb | SQL | jmaxwelldev/LAMiners | /Cleaning/DBCreation.sql | UTF-8 | 5,734 | 4.09375 | 4 | [] | no_license | -- Create a database to use
CREATE DATABASE LACrime;
USE LACrime;
-- Load and clean the unemployment rate data
CREATE TABLE UnemploymentRate(
RateDate DATE NOT NULL,
Rate DECIMAL(4,1) NOT NULL,
PRIMARY KEY (RateDate)
);
LOAD DATA LOCAL INFILE '~/Data/LAMiners/Data/UnemploymentRate.csv'
INTO TABLE Un... | true |
99bfee51fa1fad7a945921cc0e51824cf39e85ef | SQL | aikensoftware/faktur-tagihan | /tagihan_net.sql | UTF-8 | 12,268 | 3.140625 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.0.4.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jan 02, 2018 at 04:54 AM
-- Server version: 5.5.32
-- PHP Version: 5.4.19
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */... | true |
eadcd89e62119fda82bcb967ccd585164787746e | SQL | amandasoto01/Finden-Backend | /Base de datos/Finden.sql | UTF-8 | 7,348 | 3.234375 | 3 | [] | no_license | -- MySQL Script generated by MySQL Workbench
-- Wed Oct 30 23:57:22 2019
-- 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='ON... | true |
08d64c0e69b76bb583659342095411c38c300aec | SQL | gurpreet19/ec198392_wht | /Database/configuration/03_02_headless_tool/Delta_WST/TargetPackageDefinitions/ECDP_FORECAST_SALE_SD_BODY.sql | UTF-8 | 6,160 | 3.140625 | 3 | [] | no_license | CREATE OR REPLACE PACKAGE BODY ECDP_Forecast_Sale_Sd IS
/****************************************************************
** Package : ECDP_Forecast_Sale_Sd; body part
**
** $Revision: 1.2 $
**
** Purpose : Price Forecast business logic
**
** Documentation : www.energy-components.com
**
** Created ... | true |
bce0f73ec92031d37468ecc2f870fa29e7a4b8e0 | SQL | fengxiaochuang/AMNWebControl | /AMNWebControl/SQL/常用查询分析/储值兑换取款.sql | WINDOWS-1252 | 564 | 2.609375 | 3 | [] | no_license | insert cardaccountchangehistory(changecompid,changecardno,changeaccounttype,changeseqno,changetype,changeamt,changebilltype,changebillno,chagedate,changebeforeamt)
values('047','0260310000451',2,8,1,165,'DH','0010405','20140516',1836)
update cardaccount set accountbalance=1836-165,accountremark='ֵһ۳165' w... | true |
0504eb60d8ae354359abcba0fa5c3c5bd5580198 | SQL | yuliya-sharapa/my-wally | /backend/database/budjet.sql | UTF-8 | 5,797 | 3.375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Хост: 127.0.0.1
-- Время создания: Мар 02 2021 г., 15:31
-- Версия сервера: 10.4.11-MariaDB
-- Версия PHP: 7.4.6
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C... | true |
23a9a0b64cbcde6d3833845d1ce182ecec542d79 | SQL | sigoris/U4_Igoris_Semenovicius | /U2_Igoris_Semenovicius/kursai.sql | UTF-8 | 3,195 | 3.09375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jun 22, 2021 at 01:07 PM
-- Server version: 10.4.14-MariaDB
-- PHP Version: 7.4.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | true |
cd765bdbe90b31d7a2d87fa92a9e6c645a2c130c | SQL | zvika77/zvika_env | /Vertica/Sql/check_dml.sql | UTF-8 | 568 | 3.265625 | 3 | [] | no_license | select query_start::timestamptz as query_start,user_name
,schema_name,table_name,transaction_id,query
from sys_history.hist_v_monitor_query_profiles
where schema_name = 'public'
and table_name != ''
and query_type = 'QUERY'
and regexp_like(query,'^insert','i') = false
--and query_start::timestamptz > trunc(sysdate-1)
... | true |
47319d2761b782df5eac919538f1cbffcad1ce18 | SQL | edmond-dev/server-bof | /db/query/customer.sql | UTF-8 | 984 | 3.890625 | 4 | [] | no_license | -- name: CreateCustomer :execresult
INSERT INTO customers (
customer_id, first_name, last_name, email, role, password
) VALUES (
?, ?, ?, ?, ?, ?
);
/* name: UpdateCustomer :exec */
UPDATE customers
SET first_name = ?, last_name = ?, email = ?
WHERE customer_id = ?;
-- name: DeleteCustomer :exec
DELETE FR... | true |
5124e494a3a3c86e026fb0c3c7036c32c1c0072f | SQL | dbalinux237/OraclePerfSurvivalGuide | /Ch13/pqo_scale_test2.sql | UTF-8 | 5,210 | 3.578125 | 4 | [] | no_license | spool pqo_scaling
set echo on
set pages 1000
set lines 120
set serveroutput on
ROLLBACK;
ALTER SESSION ENABLE PARALLEL DML;
ALTER SYSTEM SET parallel_threads_per_cpu=20 SCOPE=MEMORY;
ALTER SYSTEM SET parallel_max_servers=40 SCOPE=MEMORY;
DROP TABLE sales_archive;
CREATE TABLE sales_archive AS
SELECT *... | true |
82daf2315ec611b940f53ebba60b700ce7996e3b | SQL | padleygorge/EDS | /src/database/mySQL/admin/populate_schema.sql | UTF-8 | 13,215 | 2.609375 | 3 | [
"Apache-2.0"
] | permissive | USE admin;
INSERT INTO dependency_type
(id, description)
VALUES
(0, 'IsChildOf');
INSERT INTO dependency_type
(id, description)
VALUES
(1, 'IsContainedWithin');
INSERT INTO dependency_type
(id, description)
VALUES
(2, 'Uses');
INSERT INTO item_type
(id, description)
VALUES
(2, 'Cohort');
INSERT INTO item_type
(id,... | true |
1b7b08a6d225d381eac9796bdcb7781dfb9f8398 | SQL | ProjectH01/gtook | /gtook/src/main/webapp/sql/test_values_insert.sql | UTF-8 | 1,467 | 2.828125 | 3 | [] | no_license | /*회원정보*/
Insert into TB_USER_INFO (USER_ID,USER_NAME,USER_PHONE,USER_SEX,USER_AGE,USER_POINT)
Values('usertest','홍길순','01054621111','여','1996',0);
Insert into TB_USER_INFO (USER_ID,USER_NAME,USER_PHONE,USER_SEX,USER_AGE,USER_POINT)
Values('minji','조민지','01012345678','여','1993',0);
/*회사정보*/
Insert into TB_COMP... | true |
0c7bdd87d78585ede8212307aa3bcc6f3b11751a | SQL | naruseshiroha/HSP | /chapter24/sql/avg.sql | UTF-8 | 253 | 3.421875 | 3 | [] | no_license | -- AVG()
SELECT
AVG(COLUMN) {,
AVG(COLUMN)...}
FROM
[tablename] [WHERE where_condidtion];
-- 求一个班级数学平均分
SELECT
AVG(math)
FROM
student;
-- 求一个班级总分平均分
SELECT
AVG(chinese + english + math)
FROM
student; | true |
737282504f66d5933bb9d05bb5540ab34bb5bd91 | SQL | Hoanganh241/PHP-laravel | /vaccination/vaccine.sql | UTF-8 | 6,019 | 2.921875 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 5.1.0
-- https://www.phpmyadmin.net/
--
-- Máy chủ: 127.0.0.1
-- Thời gian đã tạo: Th9 06, 2021 lúc 03:16 PM
-- Phiên bản máy phục vụ: 10.4.18-MariaDB
-- Phiên bản PHP: 8.0.3
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARA... | true |
5a29f1cc38f7a6cabb044f393bd621bb88543799 | SQL | hefeng199010/data_warehouse | /DMA/TABLES/create_table_dma_ceo_rpt_fin_revenue_yd.sql | UTF-8 | 5,798 | 2.640625 | 3 | [] | no_license | -- DMA_CEO_RPT_DATA.dma_ceo_rpt_fin_revenue_yd ceo看板财务收入表(一点车贷部分)
DROP TABLE IF EXISTS DMA_CEO_RPT_DATA.`dma_ceo_rpt_fin_revenue_yd`;
CREATE TABLE DMA_CEO_RPT_DATA.dma_ceo_rpt_fin_revenue_yd
(
stat_dt VARCHAR(10) COMMENT '统计日期',
actual_repayment_date VARCHAR(10) COMMENT ... | true |
1149909907285f0155d5596940a0d6a7cf4bae4d | SQL | mystery2828/normal-attendence | /mattendance/mattendance.sql | UTF-8 | 5,071 | 3.0625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.6.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Mar 18, 2017 at 02:17 PM
-- Server version: 5.7.14
-- PHP Version: 5.6.25
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_... | true |
876e4a8116506661f789ed67554aa6f91e4754ca | SQL | luwfls/groovy-supporter | /supporter-parent/supporter-manager/doc/groovy_supporter_manager.sql | UTF-8 | 6,454 | 3.203125 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : 172.16.100.70
Source Server Type : MySQL
Source Server Version : 50724
Source Host : 172.16.100.70:3306
Source Schema : groovy_supporter_manager
Target Server Type : MySQL
Target Server Version : 50724
File Encoding : 6500... | true |
285134bba051331a13a8a0775ba06d7e84b796a6 | SQL | jeanvalentin51/Maven.Spring-EmployeeDirectory | /src/main/resources/schema-h2.sql | UTF-8 | 751 | 3.328125 | 3 | [] | no_license | DROP TABLE IF EXISTS EMPLOYEE;
CREATE TABLE EMPLOYEE (
EMPLOYEE_ID NUMBER(10,0) NOT NULL AUTO_INCREMENT,
FIRST_NAME VARCHAR(255) NOT NULL DEFAULT '',
LAST_NAME VARCHAR(255) NOT NULL DEFAULT '',
TITLE VARCHAR(255) NOT NULL DEFAULT 'EMPLOYEE',
PHONE VARCHAR(12) NOT NULL DEFAULT '',
HIRE_DATE DATE DEFAULT NUL... | true |
99e82b6ece4e2c1a1bd7b53310d5cb4b3e167605 | SQL | TagoSMD/NominaV2 | /Todas las Bases de Datos/LoginUSUARIOS.sql | UTF-8 | 276 | 2.546875 | 3 | [] | no_license | create database Admin0;
use Admin0;
create table usuarios
(
id int (11)auto_increment primary key,
usuario varchar (10),
password varchar (50),
nombre varchar (60),
email varchar (30),
idtipo int (30)
)engine=InnoDB default charset=latin1;
USE Admin0;
Select * From usuarios; | true |
4885fe42d7635f6e2474799abae1f7f9a8769cf7 | SQL | maainul/SQL_Query | /4.SQL_AND_ OR_and_NOT_Operators.sql | UTF-8 | 990 | 4.34375 | 4 | [] | no_license | The SQL AND, OR and NOT Operators
The WHERE clause can be combined with AND, OR, and NOT operators.
The AND and OR operators are used to filter records based on more than one condition:
The AND operator displays a record if all the conditions separated by AND is TRUE.
The OR operator displays a record if any of the con... | true |
fd28e60a63cc1a6b266f11a4020ab73d0208e77f | SQL | sdgdsffdsfff/component | /src/main/resources/schema.sql | UTF-8 | 766 | 3.328125 | 3 | [] | no_license | CREATE TABLE `image` (
`id` bigint unsigned NOT NULL AUTO_INCREMENT PRIMARY KEY,
`fid` varchar(50) NOT NULL,
`width` int(11) unsigned NOT NULL,
`height` int(11) unsigned NOT NULL,
`format` varchar(30) NOT NULL,
`size` int(11) unsigned NOT NULL,
`status` tinyint unsigned NOT NULL DEFAULT 0,
`create_time` datetim... | true |
8b36d2e3c1e068c2ecd5456f9fe725a35cf8edbf | SQL | haohao41285/dti | /database/update/10-2019/update_28_10_2019_create_main_permission_dti.sql | UTF-8 | 10,861 | 3.015625 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Oct 28, 2019 at 09:43 AM
-- Server version: 10.1.38-MariaDB
-- PHP Version: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
66f246576acbb919cc6fb9bac9c479710592eeba | SQL | carlosromel/i9web | /components/pessoa/sql/criar.sql | UTF-8 | 276 | 2.625 | 3 | [] | no_license | /*
* Copyright (c) 2010, 2011 Carlos Romel <carlos.romel@gmail.com>
*/
create table pessoa (
idpessoa bigint not null auto_increment,
nome varchar(100) not null,
primary key (idpessoa)
) engine = 'InnoDB';
| true |
4e4789996c2ba2fd3d4c2ec071671cbf047cd7c9 | SQL | wuxiaolei1/DBAScripts | /WeeklyChecks/GetSALogins.sql | UTF-8 | 236 | 2.640625 | 3 | [] | no_license | SELECT [NAME]
FROM dbo.syslogins
WHERE sysadmin = 1
AND [NAME] <> 'CCCSNT\Systems DBA Team'
AND [NAME] <> 'sa'
AND RIGHT ([NAME], 5) <> 'MSSQL'
AND RIGHT ([NAME], 5) <> 'Agent'
AND RIGHT ([NAME], 11) <> 'MSSQLSERVER'
| true |
628d32b61a148ab2198e8f4983528ed08c110b1d | SQL | samsularifin1993/SpringMVCHibernateCRUDExample | /src/main/resources/db.sql | UTF-8 | 254 | 2.859375 | 3 | [] | no_license | CREATE TABLE `crud`.`country` (
`id` INT NOT NULL AUTO_INCREMENT,
`countryName` VARCHAR(45) NOT NULL,
`population` INT NOT NULL,
PRIMARY KEY (`id`),
UNIQUE INDEX `id_UNIQUE` (`id` ASC) VISIBLE)
ENGINE = InnoDB
DEFAULT CHARACTER SET = utf8;
| true |
c92c8deb70729ca49f92267c80f10e09dddd9feb | SQL | grayasm/git-main | /tutorial/postgresql_11.1_doc/07_queries/4.0_combining_queries.sql | UTF-8 | 5,741 | 4.375 | 4 | [] | no_license | /* Cap.7 Queries
7.4 Combining queries
psql -d mytestdb -U pgmihai
\i 4.0_combining_queries.sql
\?
\qecho '\033[2J'
*/
/* The result of two queries can be combined using set of operations
union, intersection and difference. The syntax is:
query1 UNION [ALL] query2
... | true |
d0fbc08227c054c8903242059bb8d6a930ca6726 | SQL | DataBooster/dbParallel | /TaskParallelFoundation/Databases/Oracle/Scripts/1-Tables/05-TPW_WF_EVENT.sql | UTF-8 | 1,219 | 3.09375 | 3 | [
"Apache-2.0"
] | permissive | -- CREATE TABLE
CREATE TABLE XYZ.TPW_WF_EVENT
(
EVENT_ID NUMBER(5) NOT NULL,
ACTIVITY VARCHAR2(32) NOT NULL,
EVENT_NAME VARCHAR2(32) NOT NULL,
DESCRIPTION_ VARCHAR2(256),
CONSTRAINT PK_TPW_WF_EVENT PRIMARY KEY (EVENT_ID),
CONSTRAINT UK_TPW_WF_EVENT UNIQUE (ACTIVITY, EVENT_NAME),
CONSTRAINT FK_TP... | true |
b100ffea4c5c65575749002d7e1a679786390494 | SQL | hunagxinyu-linux/linux- | /takeoutorder.sql | UTF-8 | 1,397 | 2.96875 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : myDB
Source Server Version : 50051
Source Host : localhost:3306
Source Database : mysql
Target Server Type : MYSQL
Target Server Version : 50051
File Encoding : 65001
Date: 2020-06-08 11:22:58
*/
SET FOREIGN_KEY_CHECKS=... | true |
6ebf396eff42f9caac72656748d09bedc89500e2 | SQL | LeenaKim/SQL-DB-Lesson | /SQL 코드/0512.sql | WINDOWS-1252 | 2,872 | 3.921875 | 4 | [] | no_license | --
SELECT DEPTNO, ENAME, JOB, SAL
FROM EMP
ORDER BY DEPTNO;
-- EQUI-JOIN
SELECT * FROM EMP;
SELECT DNAME, ENAME, JOB, SAL
FROM EMP, DEPT
WHERE DEPTNO = DEPTNO;
SELECT DNAME,ENAME,JOB,SAL
FROM EMP, DEPT
WHERE EMP.DEPTNO = DEPT.DEPTNO;
SELECT DNAME,ENAME,JOB,SAL
FROM EMP, DEPT
WHERE EMP.DEPTNO = DEPT.DEPTNO AND E... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.