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 |
|---|---|---|---|---|---|---|---|---|---|---|---|
77ea0b3453de05042d94e1e74299012f25b75fc1 | SQL | ekawahyunurjannah/TUGAS-STBI1 | /databases/Per Table/tb_document_frequency.sql | UTF-8 | 1,212,524 | 2.75 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.7.0
-- https://www.phpmyadmin.net/
--
-- Host: localhost
-- Generation Time: Oct 02, 2017 at 05:01 AM
-- Server version: 10.1.25-MariaDB
-- PHP Version: 5.6.31
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... | true |
cb99840934118271863575faa66d30da1e8f21f4 | SQL | iRaM-sAgOr/AdvisorAssistant- | /logindb (1).sql | UTF-8 | 7,119 | 2.9375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Jul 27, 2018 at 08:07 PM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 5.6.23
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... | true |
938332d328df0f64ee051ec5d36c616547454a57 | SQL | pakuda/pswdplus | /modules/core/db/init/mssql/10.create-db.sql | UTF-8 | 458 | 2.5625 | 3 | [
"Apache-2.0"
] | permissive | -- begin PSWDPLUS_PASSWORD_HISTORY
create table PSWDPLUS_PASSWORD_HISTORY (
ID uniqueidentifier,
VERSION integer not null,
CREATE_TS datetime,
CREATED_BY varchar(50),
UPDATE_TS datetime,
UPDATED_BY varchar(50),
DELETE_TS datetime,
DELETED_BY varchar(50),
--
USER_ID uniqueidentifi... | true |
83cd2d5323928bfb0be58c385a490a13b32ca6df | SQL | J3C118005/PABW | /siswa.sql | UTF-8 | 1,641 | 3.109375 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 16, 2020 at 01:33 AM
-- Server version: 10.3.16-MariaDB
-- PHP Version: 7.3.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @O... | true |
99d54d471c7d3d806aa15597ec3074d72166417e | SQL | BioAimie/AnalyticsWebHub | /SQL/R_PRE_InvestStartToClosePRE.sql | UTF-8 | 1,553 | 3.953125 | 4 | [] | no_license | SET NOCOUNT ON
SELECT
A.[bug_id],
CAST(B.[creation_ts] AS DATE) AS [DateOpened],
CAST(B.[cf_invesigation_start_date] AS DATE) AS [InvestigationStart],
CAST(B.[cf_investigation_completed_date] AS DATE) AS [InvestigationComplete],
CAST(MIN(A.[bug_when]) AS DATE) AS [PREDate]
INTO #StartPRE
FROM [CI]...[bugs_acti... | true |
5be1b21224ff31c860773202177ba877dcb5e7da | SQL | NastyaVicodin/dbis | /km51/Lukianenko_Anastasiia/laboratory5.sql | UTF-8 | 2,198 | 3.984375 | 4 | [] | no_license | -- LABORATORY WORK 5
-- BY Lukianenko_Anastasiia
CREATE OR REPLACE FUNCTION max_price(o_id in orders.order_num%type)
RETURN STRING
IS
CURSOR max_products IS
SELECT
products.prod_name
FROM ORDERITEMS JOIN PRODUCTS ON ORDERITEMS.PROD_ID = PRODUCTS.PROD_ID
WHERE ORDER_NUM = ... | true |
946d69fb1991a80ce05b2cf978876488304b6ecd | SQL | Anand27git/AddressBookUsingDataBase | /Address_Book.sql | UTF-8 | 13,769 | 3.578125 | 4 | [] | no_license | /*******
*
*Welcome to Address_Book Using MySql Database
*
****/
/* UC-1 creation of Address_Book Service */
mysql> Create database Address_Book;
Query OK, 1 row affected (0.35 sec)
mysql> show databases;
+--------------------+
| Database |
+--------------------+
| address_book |
| classicmodels ... | true |
ac62672d52578bad9325f3e5304fabc8d4b4caf4 | SQL | aLight42/database | /Updates/1.2.4_updatepack_dev.sql | UTF-8 | 14,477 | 3.234375 | 3 | [] | no_license | -- Item update
delete from item_required_target where entry in (22783,22784,22962);
insert into item_required_target values
(22784,1,16329),
(22783,1,16329),
(22962,1,16518);
delete from conditions where condition_entry in (717,718);
insert into conditions values
(717,2,12765,0),
(718,2,12766,0);
update gameobject_lo... | true |
f34f427a23f0b43c81af6c8a9d450466a99f0670 | SQL | navagigs/crudCI3 | /db_solmit.sql | UTF-8 | 2,581 | 3.140625 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 14, 2018 at 08:37 AM
-- Server version: 10.1.29-MariaDB
-- PHP Version: 7.2.0
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD... | true |
10e972e6ed522237fcfd732c7e8a3a693e559d7d | SQL | SignVOVA/oct_test_area | /csv_db.sql | UTF-8 | 5,943 | 2.96875 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 4.1.11
-- http://www.phpmyadmin.net
--
-- Host: localhost:3306
-- Generation Time: Oct 30, 2014 at 03:37 PM
-- Server version: 5.5.28-log
-- PHP Version: 5.5.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... | true |
6f71bd5aa2e4a1cc109826744df6a389a204ee8b | SQL | kubkobrtko/assignment-gis | /queries.sql | UTF-8 | 1,959 | 4.0625 | 4 | [] | no_license | --najdi najblizsie skoly podla zvoleneho filtra
select point.name, st_asgeojson(ST_Transform(point.way,4326)), round(cast(ST_Distance(ST_MakePoint(-87.6530, 41.8725)::geography,
ST_Transform(point.way, 4326)::geography) as numeric),0)
as distance from planet_osm_point point where point.amenity in ('school') and
ST_D... | true |
16fab2d3a888ccc6c0a51fe5d13be7bcb34d356e | SQL | julioportellah/HiRID2OMOP | /scripts/OMOP2HiRID_vocab_translation_query.sql | UTF-8 | 2,310 | 2.9375 | 3 | [] | no_license | --Ths is the Query to insert the vocabilary and vocabulary translations
COPY concept(concept_id,concept_name,domain_id,vocabulary_id,concept_class_id,standard_concept,concept_code,valid_start_date,
valid_end_date,invalid_reason)
FROM 'your_vocabulary_folder_goes_here\CONCEPT.csv'
DELIMITER E'\t'
CSV HEADER QUOTE E'... | true |
7dd6d28967f631d978111382a881af130fccf953 | SQL | syrus-ru/amficom | /AMFICOM/v1/database/schema/systemuser/systemuser.sql | UTF-8 | 694 | 3.296875 | 3 | [] | no_license | -- $Id: systemuser.sql,v 1.2 2006/03/10 16:14:51 arseniy Exp $
CREATE TABLE SystemUser(
id NUMBER(19),
created DATE NOT NULL,
modified DATE NOT NULL,
creator_id NOT NULL,
modifier_id NOT NULL,
version NUMBER(19) NOT NULL,
--
login VARCHAR2(32 CHAR) NOT NULL,
sort NUMBER(2, 0) NOT NULL,
name VARCHAR2(128 CHAR)... | true |
debe81853af7e4b7fc97dd81df850f59f6523c13 | SQL | toshihue/black-duck-handson-training | /report_database/Lab3.sql | UTF-8 | 500 | 4.03125 | 4 | [] | no_license | SELECT project_name, version_name, count(1)
FROM project_version
INNER JOIN project on project.project_id = project_version.project_id
INNER JOIN component on project_version.version_id=component.project_version_id
INNER JOIN component_vulnerability on component_vulnerability.component_table_id = component.id
WHERE (... | true |
8a83bdd3e833f13ec838c98773a14eab171fa262 | SQL | gregbender/ritschedulemaker | /database_table.mysql | UTF-8 | 290 | 2.765625 | 3 | [] | no_license | #
# Table structure for table `schedule`
#
CREATE TABLE schedule (
id int(11) NOT NULL auto_increment,
schid varchar(6) NOT NULL default '',
time varchar(50) NOT NULL default '',
ip varchar(50) NOT NULL default '',
schedule longblob NOT NULL,
PRIMARY KEY (id)
) TYPE=MyISAM;
| true |
95bd2f99319914d67e1cdfc58160ee34241cd104 | SQL | rodrigueselian/Ecommerce-PHP | /shop.sql | UTF-8 | 5,860 | 3.1875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 17-Dez-2019 às 09:08
-- Versão do servidor: 10.4.8-MariaDB
-- versão do PHP: 7.3.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @... | true |
d9a28671b9ced61c87e215e79b2ee4edc4f9b59e | SQL | lupeordaz/csctoss | /tasks/8718_CNOS2/notes.sql | UTF-8 | 2,873 | 2.71875 | 3 | [] | no_license |
2018-10-15 10:39:15 MDT 10.249.17.102(46802) csctoss_owner 7936 5014590STATEMENT: select * from unique_id(3,'A10000157EC0D3');
2018-10-15 10:42:58 MDT 10.249.17.102(46802) csctoss_owner 7936 5014591LOG: statement: select * from unique_id(3,'A10000157EC0D3');
2018-10-15 10:42:58 MDT 10.249.17.102(46802) csctoss_owne... | true |
5119b0780550e224ac3b736676f8e9ac83c5066d | SQL | AOzsoylu/plsql-scripts | /sql/tablescriptx.sql | ISO-8859-9 | 4,098 | 3.546875 | 4 | [] | no_license | set serveroutput on size 200000
set head off feedback off verify off trimspool on
set linesize 1000
set pagesize 1000
declare
TYPE SatirTabType is TABLE OF varchar2(500)
INDEX BY binary_integer;
satirtab SatirTabType;
satirtablen number(3);
cursor tabcur ( pname varchar2 ) is
SELECT tablespace_n... | true |
3e89caea066f707c767b0c9c51ed8526ee1c860f | SQL | umidev/osm2pgsql | /gazetteer/gazetteer-loaddata.sql | UTF-8 | 1,299 | 2.6875 | 3 | [] | no_license | TRUNCATE placex;
TRUNCATE search_name;
TRUNCATE place_addressline;
TRUNCATE location_point;
TRUNCATE location_point_26;
TRUNCATE location_point_25;
TRUNCATE location_point_24;
TRUNCATE location_point_23;
TRUNCATE location_point_22;
TRUNCATE location_point_21;
TRUNCATE location_point_20;
TRUNCATE location_point_19;
TRUN... | true |
44e876ad0442b36226d6742c30fd011681bf0a98 | SQL | jast92/ironhack-lab-solution | /W2D4/lab-sql-7.sql | UTF-8 | 1,844 | 4.46875 | 4 | [] | no_license | use sakila;
#1. In the table actor, which are the actors whose last names are not repeated?
#For example if you would sort the data in the table actor by last_name, you would see
#that there is Christian Arkoyd, Kirsten Arkoyd, and Debbie Arkoyd. These three actors have the same last name.
#So we do not want to includ... | true |
ee982b5eebd7bdef46074ce9a97a4e3e52739c29 | SQL | MarcoSena2210/food | /script_sql/food_ateAu50.sql | UTF-8 | 4,563 | 2.9375 | 3 | [
"MIT"
] | permissive | -- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 21-Ago-2021 às 16:32
-- Versão do servidor: 10.4.20-MariaDB
-- versão do PHP: 7.4.22
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... | true |
145419e533bc6906829d40acd798eecd7a7ca5e3 | SQL | eric-souzams/uperschool-scheduling-classes | /sql_forTests/uperschool.sql | UTF-8 | 10,157 | 3.25 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.0.2
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Tempo de geração: 11-Jul-2020 às 21:54
-- Versão do servidor: 10.4.13-MariaDB
-- versão do PHP: 7.4.7
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CL... | true |
51f8cb7e8ebc460bd11ff1db873a2bba2c3e4675 | SQL | daniiel/cursos | /Oracle 11g - Introduction to SQL/courselabs/plsf/code_ex/code_03_17_s.sql | UTF-8 | 461 | 2.859375 | 3 | [] | no_license | SET SERVEROUTPUT ON
DECLARE
v_father_name VARCHAR2(20):='Patrick';
v_date_of_birth DATE:='20-Apr-1972';
BEGIN
DECLARE
v_child_name VARCHAR2(20):='Mike';
v_date_of_birth DATE:='12-Dec-2002';
BEGIN
DBMS_OUTPUT.PUT_LINE('Father''s Name: '||v_father_name);
DBMS_OUTPUT.PUT_LINE('Date of Birth: '||v_date_o... | true |
e12c73188fb969cfa082136f4897aa5c23c84089 | SQL | jkeston/instantcomposer | /instantcomposer.sql | UTF-8 | 605 | 2.703125 | 3 | [] | no_license | CREATE TABLE icmlm_scores (
id INT PRIMARY KEY AUTO_INCREMENT,
title VARCHAR(64) NOT NULL,
author VARCHAR(64) NOT NULL,
email VARCHAR(128),
notify VARCHAR(16),
instruments VARCHAR(1024) NOT NULL,
tonality VARCHAR(64) NOT NULL,
dynamics VARCHAR(64) NOT NULL,
mood VARCHAR(64) NOT NULL,
tempo ... | true |
14729f277c3fd75ca386d01fe85c184fd0e1147f | SQL | Jinseop95/Programmers_Algorithm | /Level3/Level3_JOIN_없어진기록찾기.sql | UTF-8 | 154 | 2.53125 | 3 | [] | no_license | -- 코드를 입력하세요 ORACLE
SELECT ANIMAL_ID , NAME FROM ANIMAL_OUTS
WHERE ANIMAL_ID NOT IN (SELECT ANIMAL_ID FROM ANIMAL_INS)
ORDER BY ANIMAL_ID; | true |
5b7ac8aeca7f9aea51a17d98c99af9bc329d4ac0 | SQL | zhangdaoyang/DailyRequirements | /legu-etrade-api/docs/changedocs/20160405_三级分销and异步任务.sql | UTF-8 | 2,317 | 3.296875 | 3 | [] | no_license | CREATE TABLE `sales_userrelationship` (
`id` char(22) NOT NULL COMMENT '主键id',
`sid` varchar(22) DEFAULT NULL COMMENT '分销系统id',
`uid` char(22) DEFAULT NULL COMMENT 'p2p系统用户id',
`realname` varchar(50) DEFAULT NULL COMMENT '真实姓名',
`cardid` varchar(18) DEFAULT NULL COMMENT '身份证号码(18/15)',
`realnameremark` varc... | true |
740419d063787adb498ad71eaac7e5e6d7ee214a | SQL | daniccast/Distributed_DataBase | /ScriptsProfesor/TERCERO/40/control_files.sql | UTF-8 | 1,661 | 2.984375 | 3 | [] | no_license | spool C:\Users\lolol_000\Documents\Distributed_DataBase\ScriptsProfesor\TERCERO\40\control_file.txt
/*
ejecutarlo en SYS
Oracle Database Administrator's Guide, 11g Release 2 (11.2)
E25494-07
Copyright © 2001, 2015, Oracle and/or its affiliates. All rights reserved.
Primary Author: Steve Fogel
*/
/*
pag 363
managing... | true |
5129a298d0c7a04790f28e61f5914562f923b881 | SQL | danielakuinchtner/CRUD_Products | /include/usuario.sql | UTF-8 | 239 | 2.53125 | 3 | [] | no_license |
CREATE TABLE public.usuario
(
cd_usuario integer NOT NULL,
ds_senha text NOT NULL,
ds_email text NOT NULL,
dt_cadastro timestamp without time zone,
nm_usuario text NOT NULL,
CONSTRAINT pk_usuario PRIMARY KEY (cd_usuario)
)
| true |
d8963bfaa948372b58bce8a8f93e7399f0b6085f | SQL | LuLechuan/travel_budget_manager | /tables.sql | UTF-8 | 1,112 | 3.671875 | 4 | [] | no_license | DROP DATABASE IF EXISTS travelmanager;
CREATE DATABASE travelmanager;
USE travelmanager;
DROP TABLE IF EXISTS currencies;
CREATE TABLE currencies (
code VARCHAR(16) PRIMARY KEY,
name VARCHAR(64) NOT NULL,
ratio2rmb float
);
DROP TABLE IF EXISTS users CASCADE;
CREATE TABLE users (
uid INT PRIMARY KEY AUTO_INC... | true |
66a32bdc4c611bfd1518c124ff780852ee47a954 | SQL | IbanJ/Casa-Trabajos | /Lenguajes de Marcas/XML/ForXMLSQL/2. Ejemplo.sql | ISO-8859-10 | 398 | 3.25 | 3 | [] | no_license | -- Consultamos los clientes con los pedidos
-- realizados en el tercer trimestre del ao 1996
-- con la finalidad de llevar a cabo una exportacion de XML universal
select Customers.CustomerID,CompanyName
,orders.OrderID, orders.OrderDate
from Customers join Orders
ON Customers.CustomerID=Orders.CustomerID
WHERE... | true |
6ec21018d6df5851c0f19a3e1e0f97ac88ebc863 | SQL | Trevis42/server-EarthBnB | /EarthBnB/src/main/resources/db/migration/V2__hostdata.sql | UTF-8 | 28,134 | 2.546875 | 3 | [] | no_license | create table hostdata (
id bigint not null auto_increment,
joindate int,
idverifided boolean,
biography TEXT,
cohosts TEXT,
duringStay TEXT,
communication TEXT,
responserate int,
responsetime int,
hostimageurl TEXT,
primary key(id)
);
insert into hostdata (
joindate,
idverifided,
biography,
cohosts,
duringStay,
communi... | true |
5a5a8bd75d2ced5f905cb74f585ae46cb83c3572 | SQL | sslavik/mariaDB | /Trigger_SQL/TR_ControlAnimales.sql | UTF-8 | 1,381 | 4.21875 | 4 | [] | no_license | use animales;
delimiter //
drop trigger if exists bi_animal//
drop trigger if exists ai_animal//
drop trigger if exists bu_animal//
drop trigger if exists ad_animal//
create trigger if not exists bi_animal before insert on animal
for each ROW
BEGIN
if (LENGTH(new.nombre)>10) THEN
signal sqlstate '45000' ... | true |
7faae4d36f88b283f320590cb0ff85ca7b4c18bf | SQL | chas-academy/u05-car-rental-nbdehlen | /car_rental.sql | UTF-8 | 4,740 | 3.890625 | 4 | [] | no_license | DROP DATABASE IF EXISTS car_rental;
CREATE DATABASE car_rental;
USE car_rental;
CREATE TABLE `Customers` (
`Personal number` VARCHAR(10),
`Full name` VARCHAR(100) NOT NULL,
`Address` VARCHAR(256) NOT NULL,
`Postal address` VARCHAR(256) NOT NULL,
`Phone number` VARCHAR(10) NOT NULL,
PRIMARY KEY (`... | true |
a6c03d89b21e06cfd4ef8598fc94d26fde73d0f8 | SQL | rschoenbeck/zumbr_db | /sql/facts/fact_businesstxn.sql | UTF-8 | 1,663 | 3.921875 | 4 | [] | no_license | /* Transaction fact table (fact_businesstxn) */
DROP TABLE IF EXISTS :tablename;
CREATE TABLE :tablename AS
select
b.transactionid,
b.memberid,
row_number() over(partition by b.memberid order by transactionid) as member_transaction_number,
b.usersession,
b.productitem,
b.transdatetime,
to_char(b.transdatetime,... | true |
9af64f506cf86233d0836368e592505d50947d21 | SQL | VictorAnizar/ChatConAjax | /mensajeria.sql | UTF-8 | 3,716 | 3.21875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.9.1
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 04-08-2020 a las 00:15:43
-- Versión del servidor: 10.4.8-MariaDB
-- Versión de PHP: 7.3.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
... | true |
d818d30bb30b097663f9ea943f21953f90d07d87 | SQL | flame05/flame05-CDM | /sql/v0.1.sql | UTF-8 | 6,104 | 3.171875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 09, 2015 alle 18:35
-- Versione del server: 5.6.17
-- PHP Version: 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT... | true |
8293bd6355a9a5d834b29054678c0bde381bbfb8 | SQL | riazul701/mysqltutorial-org | /Basic/Joining_tables/INNER_JOIN/inner_join_group_by.sql | UTF-8 | 200 | 3.6875 | 4 | [] | no_license | SELECT
t1.orderNumber,
t1.status,
SUM(quantityOrdered * priceEach) total
FROM
orders t1
INNER JOIN
orderdetails t2 ON t1.orderNumber = t2.orderNumber
GROUP BY orderNumber; | true |
72103f243bccd568090ac5d0eda68ba4ed8d0965 | SQL | chrisfriedrich/CIS322 | /sql/create_tables.sql | UTF-8 | 2,683 | 3.28125 | 3 | [] | no_license |
CREATE TABLE products (
product_pk serial primary key,
vendor varchar(64),
description varchar(256),
alt_description varchar(256)
)
CREATE TABLE assets (
asset_pk serial primary key,
product_fk integer REFERENCES products (product_pk) not null,
asset_tag varchar(64),
description... | true |
184feb814cae4f99073eac56fad9451d2a7cc565 | SQL | dejateconecto/luml_inst_dev_ocapl_sqld | /fundamentals/myconnection_class_3.sql | ISO-8859-1 | 5,301 | 4.25 | 4 | [] | no_license | /*#################################################################################################################
*
* Class 3 Nov 14th, 2015
*
*##############################################################################################... | true |
f6a075501aff28ef3472fee06e0fbb9391c8c6e9 | SQL | espenhoh/medlemsregister | /visninger.sql | ISO-8859-15 | 5,647 | 3.921875 | 4 | [] | no_license | --- Feil i fdselsdato og andre feil
CREATE VIEW v_andre_feil AS
SELECT --Duplikater i medlemsnummer
Medlemsnummer,
Fornavn,
Etternavn,
'Ikke unikt medlemsnummer' AS Feiltype
FROM medlem WHERE Medlemsnummer in (SELECT Medlemsnummer FROM medlem GROUP BY Medlemsnummer HAVING COUNT(*) > 1)
UNION ALL
SELECT -- Ugyldig f... | true |
b7cc9ba4003cd16490389c242126572c8297eada | SQL | fmilani/dark | /backend/migrations/19700101_000000_old08_add_trigger_accounts_timestamp.sql | UTF-8 | 177 | 2.53125 | 3 | [
"LicenseRef-scancode-unknown-license-reference",
"Apache-2.0",
"BSD-3-Clause"
] | permissive | DROP TRIGGER IF EXISTS set_account_timestamp
ON accounts;
CREATE TRIGGER set_account_timestamp
BEFORE UPDATE ON accounts
FOR EACH ROW
EXECUTE PROCEDURE trigger_set_timestamp()
| true |
8abf8925b80dbaf470de3d060e9c6445984b7fd4 | SQL | amaro-coria/EjerciciosNetaSystems | /MER/mer-1.0.sql | UTF-8 | 4,063 | 3.640625 | 4 | [] | no_license | /* ---------------------------------------------------- */
/* Generated by Enterprise Architect Version 13.5 */
/* Created On : 26-Sep-2018 8:10:27 AM */
/* DBMS : PostgreSQL */
/* ---------------------------------------------------- */
/* Drop Sequences for Autonumber Columns */
/* Drop... | true |
835c879726dda0dd9c823b81c03c19ccb07fdc56 | SQL | tcjwj2008/K3SystemCollection | /未解析语句应收款.sql | GB18030 | 16,453 | 3.546875 | 4 | [] | no_license | SELECT t.fdate ,
t.fcustnumber ,
t.fcustname ,
t.fcontractbillno ,
t.fbillno ,
t.fitemname ,
t.fmodel ,
t.funitname ,
t.fnote ,
t.sellqty ,
CAST(ROUND(t.sellprice, 0) AS INT) AS sellprice ,
t.sellamount ,
t.frecieved ,
... | true |
a6ebefe0a81615c69fa76f7c4a64b2d0e426e5d3 | SQL | cadusousa/Productos | /RouteCarnicos/Trunk/Codigo/Paula/SUK/consultas/insercionfacturas.sql | UTF-8 | 1,252 | 2.859375 | 3 | [] | no_license |
Select * from tmp_DatosFacturacion
Select * from tmp_VentaFacturada
Select * from tmp_VentaFacturadaDet
Select * from TransProd
Select * from Cliente where RazonSocial like '%RAMIREZ%'
Select * from TransProdDetalle where TransProdID = 'PAU00000AAA83517'
insert into tmp_VentaFacturada
values('PAU00000AAA83517'... | true |
ecfef55aeff40daa81eee406880e5b00f9b31d86 | SQL | WilianZilv/bau-publico | /baupublico.sql | UTF-8 | 1,888 | 3.09375 | 3 | [] | no_license | /*
Navicat Premium Data Transfer
Source Server : WilianZilv
Source Server Type : MySQL
Source Server Version : 50641
Source Host : 216.172.172.215:3306
Source Schema : wilian02_baupublico
Target Server Type : MySQL
Target Server Version : 50641
File Encoding : 65001
... | true |
ecf040e41ecaf335d7424e0383f1edc4c8c2abf6 | SQL | klealbert/whmsc | /resources/sql/install/tbldomains.schema.sql | UTF-8 | 2,427 | 3.375 | 3 | [
"MIT"
] | permissive | /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */;
/*!40103 SET TIME_ZONE='+00:00' */;
/*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;
/*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */;
/*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */;
/*!40111 SE... | true |
91b693eb3ede7d12cac7748b5413d29355d6abdf | SQL | rkwap/appdex | /feeds/dump.sql | UTF-8 | 13,729 | 2.8125 | 3 | [] | no_license | --
-- rkwapQL database dump
--
-- Dumped from database version 12.4
-- Dumped by pg_dump version 12.4
SET statement_timeout = 0;
SET lock_timeout = 0;
SET idle_in_transaction_session_timeout = 0;
SET client_encoding = 'UTF8';
SET standard_conforming_strings = on;
SELECT pg_catalog.set_config('search_path', '', false)... | true |
9d5633c523e295ecc4c29ae74f93fdf4fa74124a | SQL | adaptivemaths/ALE | /backend/sql/questions/getQuestions.sql | UTF-8 | 124 | 2.53125 | 3 | [] | no_license | SELECT *
FROM questions
WHERE
"GCSE_Paper_Name"=${testId}
ORDER BY
"QUESTION_NUMBER" ASC,
"SUB_QUESTION_NO" ASC | true |
2be1f88523dd9c7a08b87d9c2c680cd25769849d | SQL | ptsolg/GauntletManager | /init.sql | UTF-8 | 2,704 | 4.09375 | 4 | [] | no_license | CREATE TABLE guild (
id INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT,
discord_id INTEGER NOT NULL UNIQUE,
current_challenge_id INTEGER DEFAULT NULL,
spreadsheet_key TEXT DEFAULT NULL,
FOREIGN KEY (current_challenge_id) REFERENCES challenge (id) ON DELETE SET NULL
);
CREATE TABLE user (
id INTEGER NOT NULL PRIMARY... | true |
b623560370307b42e8809cb1444e11516709e66c | SQL | boyddensmore/Maximo-Oracle-SQL-Public | /SLAs/SLA Compliance.sql | UTF-8 | 1,604 | 4.0625 | 4 | [] | no_license | /*******************************************************************************
* SLA Compliance by month and ticket class
*
* Note: Excludes ticket from before SR/INCIDENT 2.0. Because tickets before this
* date do not generally have adjustedtargetresolutiontime, the total counts
* and percentages are not accur... | true |
4da6d4c81ee05b1ee443ac209f9c5c80094b60b9 | SQL | damjanivetic/RVAbackend | /Starter-project/src/main/resources/sqlScripts/InsertInto.sql | UTF-8 | 1,833 | 2.546875 | 3 | [] | no_license | INSERT INTO obrazovanje
VALUES(nextval('obrazovanje_seq'),'ftn iis','oas','diplomirani inzenjer informacionih sistema');
INSERT INTO obrazovanje
VALUES(nextval('obrazovanje_seq'),'ftn sao','oas','diplomirani inzenjer saobracaja');
INSERT INTO obrazovanje
VALUES(nextval('obrazovanje_seq'),'pmf mat','oas','diplomirani... | true |
1c6f821abf9234ade3c1476174d376e40ebfa376 | SQL | IFallowed/FlightOrderSystem | /config/flightOrder.sql | UTF-8 | 6,706 | 2.828125 | 3 | [] | no_license | -- MySQL dump 10.13 Distrib 5.5.49, for debian-linux-gnu (i686)
--
-- Host: localhost Database: flightOrder
-- ------------------------------------------------------
-- Server version 5.5.49-0ubuntu0.12.04.1
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@... | true |
a7b8aadd652428d4fb3d2902926f16ec2c89c228 | SQL | mtqp/bases-tps-fcen | /queries/vistas.sql | UTF-8 | 3,088 | 3.71875 | 4 | [] | no_license |
DELIMITER &&
DROP PROCEDURE IF EXISTS partidosDeFase &&
CREATE PROCEDURE partidosDeFase(fase INT)
BEGIN
IF (fase > 0) THEN
SELECT partido.idPartido, p1.nombrePais as pais1, p2.nombrePais as pais2, etapa.nombreEtapa as etapa, tanteador.scoreEquip1, tanteador.scoreEquip2, pos1.puntos as puntos1, pos2.puntos as pu... | true |
be5e003c0ed5b0b0ba7a958958a1e409437a30d4 | SQL | sebaek/jsp20210510 | /WebContent/WEB-INF/sql/TRANSACTION01.sql | UTF-8 | 559 | 3.609375 | 4 | [] | no_license | USE test;
CREATE TABLE Table05
(
name varchar(255) PRIMARY KEY,
money int NOT NULL DEFAULT 0
);
INSERT INTO Table05 (name, money) VALUES ('kim', 10000);
INSERT INTO Table05 (name, money) VALUES ('lee', 10000);
SELECT * FROM Table05;
-- 1
UPDATE Table05
SET money = 5000
WHERE name = 'kim';
-- 2
SELECT * FROM Table05... | true |
da90784c91d7568fd70615cba3ba77f875981215 | SQL | GoWithAI/JPAhibernate | /src/main/resources/scripts/schema-h2.sql | UTF-8 | 437 | 3.078125 | 3 | [] | no_license | create table course (
id bigint not null,
full_name varchar(255) not null,
primary key (id)
);
create table review (
id bigint not null,
description varchar(255),
rating varchar(255),
course_id bigint,
primary key (id)
);
alter tab... | true |
d8020cebedada5df106d1a02c6e1425977a4dd77 | SQL | wl956896026/Repso | /hr/db/hr.sql | UTF-8 | 7,669 | 3.265625 | 3 | [] | no_license | /*
Navicat MySQL Data Transfer
Source Server : mysql
Source Server Version : 50714
Source Host : 127.0.0.1:3306
Source Database : hr
Target Server Type : MYSQL
Target Server Version : 50714
File Encoding : 65001
Date: 2018-05-06 14:11:05
*/
SET FOREIGN_KEY_CHECKS=0;... | true |
b65fa9220fca6cbc5d9703970965ffb4a105fbe3 | SQL | SGSE2021/MS_Userverwaltung | /database/prisma/migrations/20210621095209_init/migration.sql | UTF-8 | 2,220 | 4.0625 | 4 | [] | no_license | -- CreateEnum
CREATE TYPE "Gender" AS ENUM ('MALE', 'FEMALE', 'DIVERSE');
-- CreateTable
CREATE TABLE "StudyCourse" (
"id" SERIAL NOT NULL,
"name" TEXT NOT NULL,
"degree" TEXT NOT NULL,
"departmentId" INTEGER NOT NULL,
PRIMARY KEY ("id")
);
-- CreateTable
CREATE TABLE "Department" (
"id" SERI... | true |
2f22d212e6321ee66e51102cec4e9fdf97fe8172 | SQL | pyxuweitao/MSZ_YCL | /SQL/SYNC Data FROM MSZ_YONGYOU.sql | GB18030 | 833 | 2.71875 | 3 | [
"Apache-2.0"
] | permissive | ----Զݿ
EXEC sp_addlinkedserver 'WINDOWS-1CKSQL1', '', 'SQLOLEDB', '192.168.1.223'
EXEC sp_addlinkedsrvlogin 'WINDOWS-1CKSQL1', 'false', null, 'msz_qc', 'qc_msz123'
DELETE FROM RMI_MATERIAL_name
DELETE from RMI_MATERIAL_TYPE
DELETE from RMI_MATERIAL_TYPE_NAME
SELECT * FROM [WINDOWS-1CKSQL1].UFDATA_101_2016.DBO.V_MSZ_... | true |
bd30f33fd1311b13514db61fbe8ecb53a6789726 | SQL | lvojnovic/zagreb-open | /resources/sql/queries.sql | UTF-8 | 922 | 3.515625 | 4 | [] | no_license | -- :name create-user! :! :n
-- :doc creates a new user record
INSERT INTO users
(id, first_name, last_name, email, pass)
VALUES (:id, :first_name, :last_name, :email, :pass)
-- :name update-user! :! :n
-- :doc update an existing user record
UPDATE users
SET first_name = :first_name, last_name = :last_name, email = :em... | true |
720a35788a99de7da5af3ebbad36bd7a9fae8325 | SQL | ferkopar/ToDoSchema | /SUBJECT.sql | ISO-8859-2 | 1,278 | 3.3125 | 3 | [] | no_license | --------------------------------------------------------
-- DDL for Table SUBJECT
--------------------------------------------------------
CREATE TABLE "SUBJECT"
( "SUBJ_ID" NUMBER(12,0),
"FROM_DATE" DATE DEFAULT SYSDATE,
"TO_DATE" DATE DEFAULT TO_DATE('2099.12.31. 23:59:59','YYYY.MM.DD. HH24:MI:SS'),
"DE... | true |
9fc0ba8058fa2ef37feed4778d7fc697dd2ff723 | SQL | cha63506/Archive-325 | /yandex-interview/python/db/schema.sql | UTF-8 | 236 | 3.03125 | 3 | [] | no_license | create table users (
uid int not null auto_increment primary key,
name char(255)
);
create table messages (
mid int not null auto_increment primary key,
uid int,
msg char(255),
foreign key(uid) references users(uid)
);
| true |
c78676518a27904d961df12f696b02a596c6ea36 | SQL | tiagooandre/FEUP-BDAD | /Parte III/Queries/int7.sql | UTF-8 | 744 | 4.15625 | 4 | [] | no_license | .mode columns
.headers on
.nullvalue NULL
-- 7. Listar preço minimo, medio e maximo de Carros, Motos e Peças
SELECT AVG(precoCarros) as MediaPrecoCarros, AVG(precoMotos) as MediaPrecoMotos, AVG(precoPecas) as MediaPrecoPecas,
MIN(precoCarros) as MinPrecoCarros, MIN(precoMotos) as MinPrecoMotos, MIN(precoPecas) ... | true |
ca3f232fc04f81886bdb4e369a9da7cbd21d1f35 | SQL | richigarza/conocer | /SQL/SP/CONOCER_sp_getGraficaEstado.sql | UTF-8 | 336 | 3.3125 | 3 | [] | no_license | USE `dbCONOCER`;
DROP procedure IF EXISTS `sp_getGraficaEstado`;
DELIMITER $$
CREATE DEFINER=`root`@`localhost` PROCEDURE `sp_getGraficaEstado`(
IN idSolicitante INT
)
BEGIN
SELECT e.estado as estado, SUM(1) AS numero
FROM Solicitante s
INNER JOIN Estados e ON (e.idEstado = s.idEstado)
GROUP BY s.idEstado;
EN... | true |
5cacba30778056d61925eea5bfe5b3da59851e9d | SQL | TYPO3-extensions/dce | /ext_tables.sql | UTF-8 | 4,797 | 2.671875 | 3 | [] | no_license | #
# Table structure for table 'tx_dce_domain_model_dce'
#
CREATE TABLE tx_dce_domain_model_dce (
uid int(11) NOT NULL auto_increment,
pid int(11) DEFAULT '0' NOT NULL,
title varchar(255) DEFAULT '' NOT NULL,
fields text,
wizard_enable varchar(255) DEFAULT '' NOT NULL,
wizard_category varchar(255) DEFAULT '' NOT... | true |
e3098f6eb9d57cf2675e5f587f45994309a9bfd9 | SQL | dieegoliat/big_data_pipeline | /db/Scripts/script.sql | UTF-8 | 1,101 | 4.0625 | 4 | [] | no_license | DROP TABLE IF EXISTS Productos_Facturas;
DROP TABLE IF EXISTS Facturas;
DROP TABLE IF EXISTS Productos;
DROP TABLE IF EXISTS Clientes ;
CREATE TABLE Clientes(
id INT NOT NULL AUTO_INCREMENT,
cuit BIGINT UNIQUE,
apellido VARCHAR(32),
nombre VARCHAR(32),
region VARCHAR(32),
PRIMARY KEY (id)
);
CREATE ... | true |
2e1a2dd3e8c58a4cac0c0e0cdd2d20ea0cd97fcb | SQL | gustian12/interview | /GustianTest1/fisioterapis.sql | UTF-8 | 2,279 | 2.921875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.5.1
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Nov 16, 2018 at 11:41 AM
-- Server version: 10.1.13-MariaDB
-- PHP Version: 5.6.20
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CL... | true |
dad97657c44f7a74b8a96e7e6e96ab0ecd17c9b0 | SQL | Vapo213/InfoSys-Lab | /Docs/Tobi/Stundenplan_111107_KeinLB.sql | UTF-8 | 54,658 | 3.46875 | 3 | [] | no_license | CONNECT TO LABOR;
DROP TABLE TD_STDPL;
CREATE TABLE TD_STDPL
(
Nr INT NOT NULL, -- laufende Nummer
akadHJ CHAR(4), -- akademisches Halbjahr (Semester, z.B. WS11)
Studiengang CHAR(4), -- IT KTB SWB SWM SWT TIB
Semester INT, -- Semester (1-7)
Gruppe CHAR(1), -- Gruppe (A B ...)
... | true |
c80999f463aaed69f225c5f04c0a8744d4318615 | SQL | peterklipfel/db_info_systems | /ch_9/prob_4.sql | UTF-8 | 283 | 3.09375 | 3 | [] | no_license | SELECT invoice_number, invoice_date,
DATE_ADD(invoice_date, INTERVAL 30 DAY),
payment_date,
TO_DAYS(payment_date) - TO_DAYS(invoice_date) AS days_to_pay,
MONTH(invoice_date) AS invoice_month,
YEAR(invoice_date) AS invoice_year
FROM invoices | true |
054bb270648167d1f2e0609248468a10c519b922 | SQL | goodybag/magic | /db/deltas/1.0.24.sql | UTF-8 | 1,278 | 3.78125 | 4 | [] | no_license | -- 1.0.21.sql
insert into deltas (version, date) values ('1.0.24', 'now()');
-- #498 - Some businesses have fubar productLocations
-- Hey, I just met you, and this is crazy
-- So here's my sql, call me AL;SDJFLK;ASDFJLASD
-- This adds product location records for products that don't have them
DO $$
declare product r... | true |
5cebb271dc1fa1b058c17f3842dfb4715af39718 | SQL | majoxford/deposit | /deposit/export.sql | UTF-8 | 1,156 | 3.515625 | 4 | [] | no_license | use cuentas;
CREATE TABLE `cuentas`.`cuentas` (
`id` INT NOT NULL auto_increment,
`name` varchar(50) NOT NULL,
`accountNumber` varchar(13) NOT NULL,
`balance` double NOT NULL,
PRIMARY KEY (id)
);
insert into cuentas (name,accountNumber,balance) values ("Mariajose Oxford", "0443998686899", "200.00");
insert into cue... | true |
9dfd5ff2e883a8136cbb945c06cc335598cd86af | SQL | azavea/pfb-network-connectivity | /src/analysis/connectivity/access_trails.sql | UTF-8 | 3,818 | 3.921875 | 4 | [
"Apache-2.0"
] | permissive | ----------------------------------------
-- Input variables:
-- :max_score - Maximum score value
-- :first - Value of first available destination (if 0 then ignore--a basic ratio is used for the score)
-- :second - Value of second available destination (if 0 then ignore--a basic ratio is used after 1)
--... | true |
c7a9ba49584ffda492be3507337e03f2d652fc71 | SQL | chrisdan309/Proyecto-web | /Database/web.sql | UTF-8 | 1,106 | 3.28125 | 3 | [] | no_license | CREATE DATABASE web;
USE web;
CREATE TABLE usuario (
id_usuario numeric(9,0) NOT NULL,
nombre varchar(60) NOT NULL,
apellido varchar(20) NOT NULL,
email varchar(20) NOT NULL,
telefono varchar (9,0) NOT NULL,
dinero numeric(9,2) NOT NULL,
pass varchar(20) NOT NULL,
PRIMARY KEY (id_usuari... | true |
d9f18ec4f03ab18d1a49b90988487c09cbfce947 | SQL | MaSander/SP-Medical-group | /BancoDados/SCRIPT_DML_SP_MEDICAL_GROUP_03.sql | UTF-8 | 1,485 | 3.78125 | 4 | [] | no_license | USE SP_MEDICAL_GROUP
-------------------------
--USUARIO
SELECT
U.NOME as Nome_do_usuario
,U.EMAIL
,TU.NOME as Tipo_do_usuario
FROM
USUARIOS U INNER JOIN TIPO_USUARIO TU
ON
U.ID_TIPO_USUARIO = TU.ID
------------------------
--PRONTUARIO
SELECT
U.NOME AS Nome_paciente
,P.TELEFONE
,P.ENDERECO
,P.DT_NASCIM... | true |
66b16461e701e2f128db1e1c923ead76eed44d08 | SQL | MauricioC04/PROJET-WEB | /sql/Archives/requêtes.sql | UTF-8 | 11,923 | 3.65625 | 4 | [] | no_license | ---------------------------------------------------
-- Author: Mauricio COSTA CABRAL |
-- Date: 04.03.2020 |
-- Project: E-Commerce de vente de musiques |
---------------------------------------------------
------------------ ADMINISTRATEUR ------------------
--- ... | true |
1453fe8c168b14c70cb59e2334313dde23f8d882 | SQL | sgrzys/docker-oracle-apex5-ords | /assets/apex/builder/f4850.sql | UTF-8 | 632,435 | 2.78125 | 3 | [] | no_license | set define off verify off feedback off
--------------------------------------------------------------------------------
--
-- ORACLE Application Express (APEX) export file
--
-- You should run the script connected to SQL*Plus as the Oracle user
-- APEX_050000 or as the owner (parsing schema) of the application.
--
-- N... | true |
2f76b847ff8797ca2b140af82688fd8218e3d86e | SQL | lucifax301/chelizi | /chelizi/database/backup_script/健康度日报.sql | GB18030 | 738 | 3 | 3 | [] | no_license |
SET @time0 = '2016-06-16';
-- --------------------------------------
SET @time0 = '$DATE_NOW';
USE bak_online_db_log;
SELECT
count(1)
FROM
`t_log_operate`
WHERE
requestTime > @time0 INTO @total;
SELECT
@total AS 'ӿܴ';
SELECT
sum(executeTime) /@total AS 'ӿƽʱ/ms'
FROM
t_log_operate
WHERE
requestTime > @t... | true |
dee6580df8979f5fd9cd36983a2ef0b2ce204c6d | SQL | RePloZ/PLSQL | /TP_PLSQL/Installer_Application/RempliAvion.sql | IBM852 | 2,814 | 2.859375 | 3 | [] | no_license |
--
--Suppression des lignes des tables de la base eleve
--
DELETE FROM est_equipage;
DELETE FROM employe;
DELETE FROM vol;
DELETE FROM avion;
... | true |
9db5130ea3da8ae09da7a66ad510a1ac9296adc8 | SQL | PivoGuedes/testeDevOps | /testeDevOps/ControleDados/Tables/LogSTATP2.sql | UTF-8 | 929 | 2.828125 | 3 | [] | no_license | CREATE TABLE [ControleDados].[LogSTATP2] (
[ID] BIGINT IDENTITY (1, 1) NOT NULL,
[NumeroProposta] VARCHAR (20) NOT NULL,
[NumeroContrato] VARCHAR (20) NULL,
[DataInicioVigencia] DATE NULL,
[DataFimVigencia] DATE NULL,
... | true |
a530a66f7f35228597b83a8691effdc5eaa2d7f1 | SQL | mikestevenson86/SQL-Repository | /Mike S Queries/Archives/00 Archive 2018/03 March 2018/Kathy - Contacts with mobiles.sql | UTF-8 | 1,893 | 4.25 | 4 | [] | no_license | SELECT *
FROM
(
SELECT
s.clientID [Shorthorn ID],
cl.companyName [Client Name],
c.fName + ' ' + c.sName [Contact Name],
s.siteID,
case when c.contactID = (SELECT mainContactHS FROM Shorthorn..cit_sh_sites WHERE siteID = s.siteID) then 'Yes' else 'No' end [Main H&S Contact],
case when c.contactID = (SELECT secContac... | true |
a6eb49c7e90e68d22acaf9e02be6a1cc549d2ae4 | SQL | ChannelGreeky/kh_oracle | /실습문제 및 실습노트/20201013_join.sql | UHC | 3,076 | 4.3125 | 4 | [] | no_license | --ORACLE
SELECT EMPLOYEE.EMP_ID, EMPLOYEE.EMP_NAME,
EMPLOYEE.DEPT_CODE, DEPARTMENT.DEPT_TITLE
FROM EMPLOYEE, DEPARTMENT
WHERE EMPLOYEE.DEPT_CODE = DEPARTMENT.DEPT_ID
ORDER BY DEPT_CODE;
--ANSI ǥ
SELECT EMPLOYEE.EMP_ID, EMPLOYEE.EMP_NAME,
EMPLOYEE.DEPT_CODE, DEPARTMENT.DEPT_TITLE
FROM EMPLOYEE
JOIN DEPARTMENT ON(DE... | true |
ce1e7cf867e23a438c7d5f58217813c3f8bfa483 | SQL | x89/redditeu-bash | /bash.sql | UTF-8 | 359 | 2.765625 | 3 | [
"BSD-2-Clause"
] | permissive | CREATE TABLE IF NOT EXISTS "bc_quotes" (
"id" serial PRIMARY KEY,
"timestamp" integer NOT NULL,
"ip" varchar(255),
"quote" text NOT NULL,
"active" boolean NOT NULL,
"popularity" integer DEFAULT 0
);
CREATE TABLE IF NOT EXISTS "bc_votes" (
"id" serial PRIMARY KEY,
"quote_id" integer NOT NULL,
"ip" varchar(255)... | true |
d20a4fbe89033622133b4b9bbe865810b05ba5c1 | SQL | darco2018/School-Management-System | /src/main/resources/db/mysql/users_authorities.sql | UTF-8 | 2,379 | 2.75 | 3 | [] | no_license |
INSERT IGNORE INTO users (id, username, email, password, enabled) VALUES(1, 'dev', 'dev@gmail.com', '$2a$10$LTFSrszGtMGLKA4DfU1YhetB.VCFZELQKNL1xfVu1DvXUe/LZ3PQi', true);
INSERT IGNORE INTO users (id, username, email, password, enabled) VALUES(2, 'admin', 'admin@gmail.com', '$2a$10$2VYRrT14AqU0mKMSE3yPqOGquk2/mEZJTgW0... | true |
c6cb548dd5b65e4b88983e4ebd97172a86d54800 | SQL | nikcur/misa_lihvarcek | /sql_code/table_4.sql | UTF-8 | 693 | 2.671875 | 3 | [] | no_license | CREATE TABLE doughnut_list
(
doughnut_name VARCHAR(10) NOT NULL,
doughnut_type VARCHAR(10) NOT NULL,
doughnut_cost DEC(3,2) NOT NULL DEFAULT 1.00
);
DESC doughnut_list;
SELECT *
FROM doughnut_list;
INSERT INTO doughnut_list
(doughnut_name, doughnut_type,doughnut_cost)
VALUES
('Blooberry','filled',4.00);
I... | true |
3dbe55818b3d892205f06ba14ed709b7f62aab52 | SQL | ProgrammStart/PhoneBook | /sql-scripts/init-db.sql | UTF-8 | 2,074 | 3.3125 | 3 | [] | no_license | -- MySQL Script generated by MySQL Workbench
-- Wed Oct 7 00:59:45 2020
-- 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 |
b6c8f2a9e53c68ac0d5c06c95ca9314c0e056dbb | SQL | coderish/SpringBootDynamicMultiRDBMSTenant | /scripts/tenant-2-schema.sql | UTF-8 | 843 | 3.140625 | 3 | [] | no_license | create database testdb_pgs;
\c testdb_pgs;
CREATE TABLE public.tbl_user
(
user_id integer NOT NULL,
full_name character varying(100) COLLATE pg_catalog."default" NOT NULL,
gender character varying(10) COLLATE pg_catalog."default" NOT NULL,
user_name character varying(50) COLLATE pg_catalog."default" NOT... | true |
fc99493cdb63b69741832380ddadb6fd364d31e4 | SQL | SlateFoundation/slate-cbl | /fixtures/cbl_student_task_submissions.sql | UTF-8 | 1,747 | 3.125 | 3 | [
"MIT"
] | permissive | /*!40103 SET TIME_ZONE='+00:00' */;
/*!40101 SET character_set_client = utf8 */;
CREATE TABLE `cbl_student_task_submissions` (
`ID` int(10) unsigned NOT NULL AUTO_INCREMENT,
`Class` enum('Slate\\CBL\\Tasks\\StudentTaskSubmission') NOT NULL,
`Created` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`CreatorID` in... | true |
a5f78f4f8300b081ccd24398ee5b5afd1352ad4c | SQL | srgudi/pm | /pm-db/super_admin.sql | UTF-8 | 4,001 | 2.984375 | 3 | [] | no_license | ---------Insert query for a organisation table only-----------------------
INSERT INTO chiguru2.party(name,active_flag,create_user_id,create_date,last_update_user_id,last_update_date,party_type,version)
VALUES ('TSS India Pvt. Lmt',true,'superAdmin',CURDATE(),'superAdmin',CURDATE(),1,0);
INSERT INTO chiguru2.orga... | true |
7991e76033dc33f7771b9c35252e0fddca9d66a4 | SQL | sparkans/Conekta | /install/conekta.sql | UTF-8 | 4,084 | 2.8125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.1.14
-- http://www.phpmyadmin.net
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 02-11-2014 a las 07:26:56
-- Versión del servidor: 5.6.17
-- Versión de PHP: 5.5.12
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARA... | true |
bc015b0939d29f90d5542b7360d5c5e51f19ddaf | SQL | jgarzonext/plsql-testing | /script_plsql/bd_iaxis/script/tables/PLENOS.sql | ISO-8859-1 | 1,282 | 2.875 | 3 | [] | no_license | --------------------------------------------------------
-- DDL for Table PLENOS
--------------------------------------------------------
CREATE TABLE "AXIS"."PLENOS"
( "SPLENO" NUMBER(6,0),
"CCALIF1" VARCHAR2(1 BYTE),
"CCALIF2" NUMBER(2,0),
"NORDEN" NUMBER(2,0),
"IPLENO" NUMBER
) SEGMENT CREATION IM... | true |
0cc1523efb919569ebfc9a724b462ca4b6e367e9 | SQL | SHtress/PBZ-1 | /first task/ex13.sql | UTF-8 | 195 | 3.390625 | 3 | [] | no_license | USE task1;
WITH tab1 (lesson_id, t) AS (SELECT lesson_id, COUNT(*) AS t FROM teacher_and_lesson GROUP BY lesson_id)
SELECT lesson_id FROM tab1
WHERE tab1.t = (SELECT COUNT(*) FROM student_group)
| true |
214eb9c0022d0349764c330586ff0eb91b624e44 | SQL | jayamanikharyono/Lembaga-Kesehatan-Masyarakat | /TI_Kel11_LembagaKesehatanMasyarakat/LembagaKesehatanMasyarakat.sql | UTF-8 | 2,332 | 3.140625 | 3 | [] | no_license | /*
SQLyog - Free MySQL GUI v5.0
Host - 5.5.5-10.1.13-MariaDB : Database - layanan_kesehatan_masyarakat
*********************************************************************
Server version : 5.5.5-10.1.13-MariaDB
*/
create database if not exists `layanan_kesehatan_masyarakat`;
USE `layanan_kesehatan_masyarakat`;
/*T... | true |
e712686856133dec185b7b64d63645e1f8eea99a | SQL | theheroproject/oracle | /sql/cr_identity_column.sql | UTF-8 | 511 | 2.53125 | 3 | [] | no_license | connect scott/tiger
DROP TABLE emp_info PURGE;
CREATE TABLE emp_info (empno NUMBER GENERATED AS IDENTITY, ename varchar2(30));
INSERT INTO emp_info (ename) values ('Employee Name');
INSERT INTO emp_info (ename) values ('Employee Name');
INSERT INTO emp_info (ename) values ('Employee Name');
INSERT INTO emp_info (ename)... | true |
72f614a80b3868aa1e84e8db1adf19f6154e1416 | SQL | agusberet/grupo_10_proyecto_integrador | /fashionize_db.sql | UTF-8 | 15,411 | 3.03125 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 4.8.5
-- https://www.phpmyadmin.net/
--
-- Servidor: 127.0.0.1
-- Tiempo de generación: 21-12-2020 a las 21:16:55
-- Versión del servidor: 10.1.38-MariaDB
-- Versión de PHP: 7.3.2
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
... | true |
59a78834f8576087089dcff12d969d3a63e88c72 | SQL | NuNuSang/bonbon | /HP/message/message.sql | UTF-8 | 371 | 3.1875 | 3 | [] | no_license | CREATE TABLE message(
num INTEGER AUTO_INCREMENT,
send_id VARCHAR(15) NOT NULL,
rv_id VARCHAR(15) NOT NULL,
subject VARCHAR(20) NOT NULL,
content TEXT,
regist_day VARCHAR(20),
PRIMARY KEY(num),
-- INDEX(send_id),
-- INDEX(send_id),
FOREIGN KEY(send_id) REFERENCES user(i... | true |
3122fbc5273d593e6de62cc61b6f0e144ee20fa6 | SQL | rdvnkdyf/Patika-Postgresql | /ODEV10.sql | UTF-8 | 925 | 3.96875 | 4 | [] | no_license | --1.city tablosu ile country tablosunda bulunan şehir (city) ve ülke (country) isimlerini birlikte görebileceğimiz LEFT JOIN sorgusunu yazınız.
SELECT city.city,country.country FROM city LEFT JOIN country ON city.country_id=country.country_id;
--2.customer tablosu ile payment tablosunda bulunan payment_id ile c... | true |
ca1714b44c1f8e4b046d9ef89782a2721573a99c | SQL | keyor/sw_crontab | /sw_crontab.sql | UTF-8 | 21,516 | 3.34375 | 3 | [] | no_license | # ************************************************************
# Sequel Pro SQL dump
# Version 4541
#
# http://www.sequelpro.com/
# https://github.com/sequelpro/sequelpro
#
# Host: 127.0.0.1 (MySQL 5.6.34)
# Database: sw_crontab
# Generation Time: 2018-06-27 05:34:05 +0000
# ********************************************... | true |
e155758d7188e8e53bdafa37c44c0b58573b878b | SQL | soumyap00/GRIP | /GRIPSEP21-main/bank.sql | UTF-8 | 3,469 | 3.171875 | 3 | [] | no_license | -- phpMyAdmin SQL Dump
-- version 5.1.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Sep 21, 2021 at 06:36 PM
-- Server version: 10.4.21-MariaDB
-- PHP Version: 8.0.10
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIE... | true |
bf8aa913170cfbfc9cc7c479909b5ca5930aa12e | SQL | jgarzonext/plsql-testing | /script_plsql/bd_iaxis/script/indices/CFG_FORM_CALC_PK.sql | UTF-8 | 528 | 2.75 | 3 | [] | no_license | --------------------------------------------------------
-- DDL for Index CFG_FORM_CALC_PK
--------------------------------------------------------
CREATE UNIQUE INDEX "AXIS"."CFG_FORM_CALC_PK" ON "AXIS"."CFG_FORM_CALC" ("CCFGCALC", "CEVENT", "CITDEST")
PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
ST... | true |
44e9e841cbcae9af243bd0dd5103c49814e719c0 | SQL | epiii/sister | /lib/dbDump/OLD (dr. server ELYON)/#student_service/pos_penjualanreturdetail.sql | UTF-8 | 682 | 2.53125 | 3 | [] | no_license | # Host: localhost (Version: 5.5.27)
# Date: 2015-06-17 00:24:13
# Generator: MySQL-Front 5.3 (Build 4.128)
/*!40101 SET NAMES utf8 */;
#
# Structure for table "pos_penjualanreturdetail"
#
DROP TABLE IF EXISTS `pos_penjualanreturdetail`;
CREATE TABLE `pos_penjualanreturdetail` (
`id` int(10) NOT NULL AUTO_INCREM... | true |
d332cf3c08f413d1b9ea9cd3c47fd0c282f8987a | SQL | prolifick1/sql-practice | /portilla-sql-bootcamp/060-stringFunctionAndOperators.sql | UTF-8 | 424 | 3.71875 | 4 | [] | no_license | --SQL Lesson: STRING FUNCTION AND OPERATORS
--Q1: using a string function, concatenate customer's first and last names
SELECT first_name || ' ' || last_name AS full_name FROM customer;
--Q2: use a string function to see how many characters are in the first name of each customer
SELECT first_name, char_length(first_na... | true |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.