sql stringlengths 6 1.05M |
|---|
<reponame>BugsUK/FindApprenticeship<filename>src/SFA.Apprenticeships.Data.AvmsPlus/dbo/Functions/fnx_GetOrganisationCode.sql
CREATE FUNCTION [dbo].[fnx_GetOrganisationCode]
(
@OrganisationID INT, @OrgType INT
)
RETURNS INT
AS
BEGIN
DECLARE @Code INT
IF (@OrgType = 1 )
SELECT @Code = EdsUrn from Employer where Em... |
<reponame>mwcaisse/ShowReminder<filename>ShowReminder.Web/Database/Migrations/V0001__InitialCreate.sql
CREATE TABLE EPISODE (
ID BIGINT NOT NULL AUTO_INCREMENT,
OVERALL_NUMBER INT NULL,
SEASON_NUMBER INT NULL,
EPISODE_NUMBER INT NULL,
AIR_DATE DATETIME NULL,
NAME VARCHAR(250) NULL,
OVERVIEW VARCHAR (4000) NULL,
... |
<reponame>Foxpips/LayeredArchitecture
/*********************************************************************************************************************
**
** Procedure Name : h3giCreateTopUpLocation
** Author : <NAME>
** Date Created : 19/04/2006
**
***************************... |
create table "postgres".test_normalization."nested_stream_with_c___long_names_partition__dbt_tmp"
as (
with __dbt__CTE__nested_stream_with_c___long_names_partition_ab1 as (
-- SQL model to parse JSON blob stored in a single column and extract into separated field columns as described by the JSON Schema
sel... |
<reponame>PhilippeBinggeli/Hands-On-Data-Science-with-SQL-Server-2017
WITH newData as (
SELECT * FROM (values(@isCorporate, @size, @actionRoute, (select x from @x)))
as t(IsCorporate, Size, ActionRoute, MonthAndYear)
)
SELECT newData.*, p.*
FROM PREDICT(MODEL = @model, DATA = newData) WITH(Units_Pred float) a... |
<reponame>uzura8/flockbird
ALTER TABLE `album` MODIFY `foreign_table` varchar(64) NOT NULL COMMENT 'Reference table name';
ALTER TABLE `notice` MODIFY `foreign_table` varchar(64) NOT NULL COMMENT 'Reference table name';
ALTER TABLE `member_watch_content` MODIFY `foreign_table` varchar(64) NOT NULL COMMENT 'Reference ta... |
-- Revert procedures/revoke_execute_on_function from pg
BEGIN;
DROP FUNCTION public.revoke_execute_on_function;
COMMIT;
|
<filename>src/test/resources/fts3query.test_1.sql
-- fts3query.test
--
-- execsql {
-- CREATE VIRTUAL TABLE t1 USING fts3(x);
-- BEGIN;
-- INSERT INTO t1 VALUES('The source code for SQLite is in the public');
-- }
CREATE VIRTUAL TABLE t1 USING fts3(x);
BEGIN;
INSERT INTO t1 VALUES('The source code for SQ... |
<filename>zstd--1.0.0--1.1.0.sql<gh_stars>10-100
CREATE OR REPLACE FUNCTION zstd_length(bytea) RETURNS integer
AS '$libdir/zstd.so', 'length'
LANGUAGE C IMMUTABLE;
|
<filename>sql/updates/world/already_applied/12_04_29_creature_text.sql<gh_stars>10-100
/*
SQLyog Community v9.50
MySQL - 5.5.22 : Database - asdasdasd
*********************************************************************
*/
/*!40101 SET NAMES utf8 */;
/*!40101 SET SQL_MODE=''*/;
/*!40014 SET @OLD_UNIQUE_... |
INSERT INTO department (department_name)
VALUES
('Operations'),
('Engineering'),
('Production'),
('Maintenance');
INSERT INTO role (title, salary, department_id)
VALUES
('Ops', 100000, 1),
('Eng', 90000, 2),
('Prod', 55000, 3),
('Maint', 45000, 4);
INSERT INTO employee (employee_id... |
<reponame>boriskezikov/DbConnector
CREATE TABLE spring_session
(
PRIMARY_ID CHAR(36) NOT NULL,
SESSION_ID CHAR(36) NOT NULL,
CREATION_TIME BIGINT NOT NULL,
LAST_ACCESS_TIME BIGINT NOT NULL,
MAX_INACTIVE_INTERVAL INT NOT NULL,
EXPIRY_TIME BIGI... |
-- Storage of Agronomic Data
CREATE TABLE agronomic_data(
site varchar(24),
plotid varchar(24),
varname varchar(24),
year smallint,
value varchar(32),
updated timestamptz default now()
);
CREATE TABLE agronomic_data_log(
site varchar(24),
plotid varchar(24),
varname varchar(24),
year smallint,
va... |
-- MySQL dump 10.13 Distrib 5.6.24, for Win64 (x86_64)
--
-- Host: 127.0.0.1 Database: baseprova
-- ------------------------------------------------------
-- Server version 5.6.22-log
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *... |
# Host: localhost (Version: 5.5.47)
# Date: 2016-05-08 16:28:25
# Generator: MySQL-Front 5.3 (Build 4.234)
/*!40101 SET NAMES utf8 */;
#
# Structure for table "a1tl_jj1_0log1"
#
DROP TABLE IF EXISTS `a1tl_jj1_0log1`;
CREATE TABLE `a1tl_jj1_0log1` (
`iid` int(11) NOT NULL AUTO_INCREMENT,
`yid01` int(11) DEFAUL... |
<filename>project/Addons/RealPrize/install.sql
CREATE TABLE IF NOT EXISTS `wp_prize_address` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT COMMENT '主键',
`address` varchar(255) NULL COMMENT '奖品收货地址',
`mobile` varchar(50) NULL COMMENT '手机',
`turename` varchar(255) NULL COMMENT '收货人姓名',
`uid` int(10) NULL COMMEN... |
-- phpMyAdmin SQL Dump
-- version 4.7.3
-- https://www.phpmyadmin.net/
--
-- Host: localhost:3306
-- Generation Time: Oct 18, 2017 at 12:35 AM
-- Server version: 5.5.57-cll
-- PHP Version: 5.6.30
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:00";
/*!40101 SET @OL... |
Trying user 'abnetadm' with correct password|(<PASSWORD>,<PASSWORD>)|select public.ddps_login('abnetadm', '1qazxsw2');
Trying nonexistant user||select public.ddps_login('xxxxxxxx', '1qazxsw2');
Trying user 'administrator' with wrong password||select public.ddps_login('administrator', 'xxxxxxxx');
# Trying user 'adminis... |
SELECT s, arr, a, num, mapped FROM arrays_test ARRAY JOIN arr AS a, arrayEnumerate(arr) AS num, arrayMap(x -> x + 1, arr) AS mapped
|
DROP TABLE IF EXISTS ACTION_EXECUTIONS CASCADE; |
/* r1447 structure change */
ALTER TABLE `cot_structure` ADD COLUMN `structure_area` varchar(64) collate utf8_unicode_ci NOT NULL default '';
UPDATE `cot_structure` SET `structure_area` = 'page' WHERE 1; |
<filename>blog-api.sql
-- phpMyAdmin SQL Dump
-- version 5.0.1
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Jul 11, 2020 at 04:08 PM
-- Server version: 10.4.11-MariaDB
-- PHP Version: 7.4.1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET time_zone = "+00:0... |
SELECT
*
FROM
co_actors
WHERE
name <> '<NAME>'
EXCEPT ( SELECT DISTINCT
name
FROM
non_existent);
|
USE [MIM_RequestArchive]
GO
/****** Object: StoredProcedure [dbo].[Report-GetRequestDetails] Script Date: 15.03.2018 15:54:58 ******/
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
-- =============================================
-- Author: <NAME>, <NAME>
-- Create date: 15.2.2018
-- Description:... |
BEGIN;
DROP TABLE IF EXISTS teachers;
CREATE TABLE teachers (
id bigint auto_increment PRIMARY KEY,
name varchar(32) NOT NULL,
bio text
);
DROP TABLE IF EXISTS classes;
CREATE TABLE classes (
id bigint auto_increment PRIMARY KEY,
name varchar(32) NOT NULL UNIQUE,
department char(64) NOT NULL
)... |
<gh_stars>0
CREATE TABLE session (
ses_id VARCHAR(255) NOT NULL,
ses_data TEXT NOT NULL,
ses_updated_on INT(11) NOT NULL,
PRIMARY KEY (ses_id)
);
|
<gh_stars>0
-- MySQL dump 10.13 Distrib 8.0.20, for Win64 (x86_64)
--
-- Host: localhost Database: djf
-- ------------------------------------------------------
-- Server version 5.5.5-10.5.8-MariaDB
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACT... |
<reponame>spirdon/janbot2<filename>res/query/get_user_kudos.sql
SELECT server_id, user_id, kudos, DENSE_RANK() OVER(ORDER BY kudos DESC)
FROM users WHERE server_id=%s ORDER BY kudos DESC;
|
<filename>data/seed.sql
USE employeeTracker_db;
INSERT INTO department (department_name) VALUES('Management');
INSERT INTO department (department_name) VALUES('Sales');
INSERT INTO department (department_name) VALUES('Human Resources');
INSERT INTO department (department_name) VALUES('IT');
INSERT INTO role (title, ... |
<filename>Applications/Joomla/Web/administrator/components/com_admin/sql/updates/postgresql/3.7.0-2017-01-08.sql<gh_stars>0
-- Normalize ucm_content_table default values.
ALTER TABLE "#__ucm_content" ALTER COLUMN "core_title" SET DEFAULT '';
ALTER TABLE "#__ucm_content" ALTER COLUMN "core_body" SET DEFAULT '';
ALTER TA... |
<reponame>leoiii12/neo4j-network-text-analysis
CREATE CONSTRAINT ON (s: Sentence) ASSERT s.name IS UNIQUE
CREATE CONSTRAINT ON (w: Word) ASSERT w.name IS UNIQUE |
TRUNCATE TABLE gl_ccy_rule;
COMMIT;
|
select count(*) from table_name;
CREATE TABLE #{table_name} (permalink text PRIMARY KEY)
CREATE TABLE #{table.name} (#{columns_cql}, #{keys_cql})
SELECT id FROM posts
CREATE TABLE #{table_name} ( blog_subdomain text, permalink ascii, PRIMARY KEY (blog_subdomain, permalink) )
CREATE INDEX posts_author_id_idx ON #{
|
drop database if exists oficina;
create database oficina;
use oficina;
create table servico(
idServico int not null primary key auto_increment,
descricao text not null,
maoDeObra varchar(150) null,
valor decimal null
);
create table endereco (
idEndereco int not null primary key auto_increment,
... |
<filename>VIEWS/api/role_memberships.sql<gh_stars>1-10
CREATE OR REPLACE VIEW api.role_memberships AS
SELECT
role_memberships.role_membership_id,
role_memberships.user_id,
roles.role_name
FROM role_memberships
JOIN roles
ON roles.role_id = role_memberships.role_id;
|
<filename>airbyte-integrations/bases/base-normalization/integration_tests/normalization_test_output/postgres/test_primary_key_streams/final/airbyte_ctes/test_normalization_namespace/simple_stream_with_n__lting_into_long_names_ab1.sql<gh_stars>1-10
create view "postgres"._airbyte_test_normalization_namespace."simple_... |
<reponame>dum999/CocosStudioSamples
<UserData>
<OpenedDocuments>
<FilePathData Path="crossplatform_Scale9_BackgroundImage.csd" />
</OpenedDocuments>
<ActiveDocument Path="crossplatform_Scale9_BackgroundImage.csd" />
</UserData> |
CREATE OR REPLACE FUNCTION
f_args( int, float, text )
RETURNS void
AS
$code$
BEGIN
RAISE INFO '$1 (type %) = %',
pg_typeof( $1 ),
$1;
RAISE INFO '$2 (type %) = %',
pg_typeof( $2 ),
$2;
RAISE INFO '$3 (type %) = %',
pg_typeof( $3... |
<reponame>Shuttl-Tech/antlr_psql
-- file:numeric_big.sql ln:325 expect:true
INSERT INTO num_exp_sub VALUES (7,2,'994877526002806053819802076903499.04353023451866590387054959174736129501310680280823383331007646306243540953499740615246583399296334239109936336446284803020643582102868247857009494139535009572740621288230740... |
<gh_stars>10-100
-- file:inherit.sql ln:474 expect:true
create index matest0i on matest0 ((1-id))
|
<gh_stars>1-10
CREATE TABLE `estado` (
`id` BIGINT(20) NOT NULL AUTO_INCREMENT,
`pais_id` BIGINT(20) NOT NULL,
`nome` VARCHAR(100) NOT NULL,
`uf` VARCHAR(10) NOT NULL,
`create_date` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP,
`changed` TIMESTAMP NULL DEFAULT NULL ON UPDATE CURRENT_TIMESTAMP,
`deleted` TINYINT(... |
CREATE SHARDING SCALING scaling_name;
|
<filename>remote_flow/dbt/models/public/sessions.sql<gh_stars>100-1000
/**
Group sessions with a array of objects for events.
*/
{{ config(materialized='table') }}
WITH
event_table AS (
SELECT
session_id_hash
, organization_id
, ARRAY_AGG(event) within group (order... |
<gh_stars>0
ALTER TABLE chart_ref DROP COLUMN chart_description;
ALTER TABLE chart_ref DROP COLUMN user_uploaded;
|
<reponame>fivetran/sql-parser
SELECT
stddev_pop(a),
b
GROUP BY
b |
<gh_stars>1-10
-- Verify ggircs-portal:tables/reporting_year_001 on pg
begin;
select exists (select tgname
from pg_trigger
where not tgisinternal
and tgrelid = 'ggircs_portal.reporting_year'::regclass
and tgname = '_protect_date_overlap');
rollback;
|
<gh_stars>10-100
-- --------------------------------------------------------------------------------
-- Routine DDL
-- Note: comments before and after the routine body will not be stored by the server
-- --------------------------------------------------------------------------------
DELIMITER $$
CREATE DEFINER=... |
CREATE FUNCTION func902() RETURNS integer
LANGUAGE plpgsql
AS $$ DECLARE val INTEGER; BEGIN val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE14);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE353);val:=(SELECT COUNT(*)INTO MYCOUNT FROM MYLARGESCHEMA.TABLE385);val:=(SELECT COUNT(*)INTO MYCOUN... |
CREATE TABLE test_trgm2(t text COLLATE "C");
\copy test_trgm2 from 'data/trgm2.data'
-- reduce noise
set extra_float_digits = 0;
select t,word_similarity('Baykal',t) as sml from test_trgm2 where 'Baykal' <% t order by sml desc, t;
select t,word_similarity('Kabankala',t) as sml from test_trgm2 where 'Kabankala' <% t ... |
/*
remove_0_page_counts_for_audiobooks.sql is a MySQL script intended to add
remove "0" page counts for audio books
Version: $Revision: 15 $
Date: $Date: 2017-10-31 16:32:38 -0400 (Tue, 31 Oct 2017) $
(C) COPYRIGHT 2018 Ahasuerus
ALL RIGHTS RESERVED
The copyright notice above does... |
<gh_stars>10-100
# INCOMPLETE SETS
INSERT INTO button (id, name, recipe, btn_special, tourn_legal, set_id) VALUES
# 2004 ORIGINS (Flying Buffalo)
(679, 'Killer Christmas Tree', '(6) Z(6) (10) Z(12) (X)', 0, 0, (SELECT id FROM buttonset WHERE name="2004 Origins")),
# '2005 Rare Promo'
(680, 'Magical Witch Cr... |
DROP TABLE IF EXISTS `collections_tokens`;
CREATE TABLE `collections_tokens` (
`id` integer AUTO_INCREMENT NOT NULL PRIMARY KEY,
`created` datetime NOT NULL,
`modified` datetime NOT NULL,
`collection_id` integer NOT NULL,
`token` varchar(255) NOT NULL UNIQUE
)
;
ALTER TABLE `collections_tokens` ADD ... |
<gh_stars>1-10
ALTER TABLE addon_purchase ADD COLUMN `receipt` longtext NOT NULL;
|
-- Setting the mod_main_class for each of these modules makes them callable via
-- the different hook methods.
UPDATE `modules` SET `mod_main_class` = 'CSystem'
WHERE `mod_directory` = 'system';
UPDATE `modules` SET `mod_main_class` = 'CProjectDesignerOptions'
WHERE `mod_directory` = 'projectdesigner';
UP... |
<reponame>RuinExplorer/z_terra_dotta_interface
/* Formatted on 6/24/2019 9:51:42 AM (QP5 v5.336) */
CREATE OR REPLACE PACKAGE BODY BANINST1.z_terra_dotta_interface
AS
/***************************************************************************
REVISIONS:
Date Author Description
--------... |
<filename>Sln.MySQLCRUD/MySQLRepository/MySQLScripts.sql
--SP:
CREATE DEFINER=`root`@`localhost` PROCEDURE `SPGetbasicinfo`(IN cid INT)
BEGIN
SELECT *
FROM basicinfo
WHERE basicinfoid = cid;
END
--Call MySQL SP
CALL SPGetbasicinfo (3);
-- Need to Create SP for CRUD by if numbering
-- Table ... |
<gh_stars>0
-- http://www.postgresql.org/
-- This file contains a fully normalized, indexed and functioning backend implementation
-- for the izzum statemachine for a postgresql database
-- this database can be used with the izzum\statemachine\persistence\PDO adapter with
-- a correct dsn to connect to postgres.... |
/*Script to insert status booking*/
INSERT INTO [dbo].[BookingStatus]
([Name]
,[IsActive])
VALUES ('Pendiente', 1),
('Confirmado', 1),
('Cancelado por Restaurante', 1),
('Cancelado por Comensal', 1) |
# --- !Ups
CREATE TABLE `logs` (
`id` INT UNSIGNED NOT NULL AUTO_INCREMENT,
`product_type_id` INT UNSIGNED NOT NULL,
`category_id` INT UNSIGNED NOT NULL,
`pack_id` INT UNSIGNED NOT NULL,
`action` ENUM ('add', 'remove') NOT NULL,
`tim... |
<gh_stars>0
DELETE FROM announcement_tblINSERT INTO announcement_tbl VALUES('1', 'Please Submit your reports', 'The Reports Will Contain the grades and the billing statements of each scholar.<br>', '2012-01-31');INSERT INTO announcement_tbl VALUES('2', 'Please Submit your reports and the grades', 'The grades of the sch... |
<filename>data/schema.sql
CREATE TABLE tweets (
author TEXT,
content TEXT,
id INTEGER,
pubdate INTEGER
); |
<reponame>MrFizban/SQLAssignment2
SELECT DISTINCT nt.continent, MAX(st.capacity), ROUND(AVG(st.capacity),2) as "avg"
FROM "Nationality" as nt
LEFT OUTER JOIN "Stadium" as st
ON nt.country = st.country
GROUP BY nt.continent
ORDER BY nt.continent
|
REM INSERTING into SYS.AW$
SET DEFINE OFF;
Insert into SYS.AW$ (AWNAME,OWNER#,AWSEQ#,VERSION,OIDS,OBJS,DICT,RSYGEN) values ('EXPRESS','0','100','6',null,null,null,null);
Insert into SYS.AW$ (AWNAME,OWNER#,AWSEQ#,VERSION,OIDS,OBJS,DICT,RSYGEN) values ('AWMD','0','101','6',null,null,null,null);
Insert into SYS.AW$ (AWNAM... |
<reponame>januarfonti/komoditas
-- phpMyAdmin SQL Dump
-- version 4.4.12
-- http://www.phpmyadmin.net
--
-- Host: 127.0.0.1
-- Generation Time: Sep 30, 2015 at 01:27 PM
-- Server version: 5.6.25
-- PHP Version: 5.6.11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_C... |
<filename>private/database/tables/data/user_setting_color_palette_color.sql
insert into `user_setting_color_palette_color`(`id`,`site_id`,`palette_id`,`color_type_id`,`name`,`color_hex`) values
(NULL,1,1,1,'Black','#000000'),
(NULL,1,1,2,'Dark grey','#333333'),
(NULL,1,1,3,'Grey','#555555'),
(NULL,1,1... |
CREATE TABLE authors (
author_id SERIAL PRIMARY KEY,
name text NOT NULL DEFAULT ''
);
CREATE TYPE book_type AS ENUM (
'FICTION',
'NONFICTION'
);
CREATE TABLE books (
book_id SERIAL PRIMARY KEY,
author_id integer NOT NULL REFERENCES authors(author_id),
... |
<filename>db/election data/2012_parl_major_wrong_results_districts.sql
drop table if exists district_results;
drop table if exists max_district_results;
create temporary table district_results (district_id int, result int);
create temporary table max_district_results (district_id int, result int);
insert into distric... |
<gh_stars>10-100
-- PCT20G. GROUP QUARTERS POPULATION BY GROUP QUARTERS TYPE (TWO OR MORE RACES)
-- designed to work with the IRE Census bulk data exports
-- see http://census.ire.org/data/bulkdata.html
CREATE TABLE ire_pct20g (
geoid VARCHAR(11) NOT NULL,
sumlev VARCHAR(3) NOT NULL,
state VARCHAR(2) NOT NULL,
c... |
CREATE TABLE IF NOT EXISTS tasks (
task_id INT AUTO_INCREMENT PRIMARY KEY,
title VARCHAR(255) NOT NULL,
start_date DATE,
due_date DATE,
status TINYINT NOT NULL,
priority TINYINT NOT NULL,
description TEXT,
created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
) ENGINE=INNODB; |
create database institute;
use institute;
CREATE TABLE FACULTY(
FID INT,
FNAME VARCHAR(15),
LNAME VARCHAR(15),
DOB DATE,
DOJ DATE,
GENDER CHAR,
ADDRESS VARCHAR(40),
CITY VARCHAR(15),
SALARY INT,
DESIGNATION VARCHAR(10),
PRIMARY KEY(FID)
);
insert into FACULTY values(6969,"Harvey","Specter","2001-06-01","2020-01-01"... |
-- phpMyAdmin SQL Dump
-- version 4.4.12
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Feb 21, 2018 at 04:52 PM
-- Server version: 5.5.59-0+deb8u1
-- PHP Version: 5.6.33-0+deb8u1
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
--
-- Database: `ais`
--
CREATE DATABASE IF NOT ... |
<filename>Chapter10/ASAWindowedAggregates.sql
-- ASA Windowed Aggregates Examples
-- You will have to copy these SQL snippets into your ASA Job Query section and run it one by one.
-- Tumbling window example in ASA. It calculates the number of trips grouped by Location, in 10-second-wide tumbling windows.
SELECT Syste... |
<reponame>Shuttl-Tech/antlr_psql
-- file:truncate.sql ln:174 expect:true
TRUNCATE trunc_trigger_test
|
<filename>src/hg/lib/ggDbRep.sql
# ggDbRep.sql was originally generated by the autoSql program, which also
# generated ggDbRep.c and ggDbRep.h. This creates the database representation of
# an object which can be loaded and saved from RAM in a fairly
# automatic way.
#An alternatively spliced gene graph.
CREATE TAB... |
CREATE TYPE status AS ENUM ('open', 'closed');
ALTER TYPE status RENAME VALUE 'closed' TO 'shut'; |
<filename>evo-X-Scriptdev2/sql/Updates/0.0.4/r1476_scriptdev2.sql
DELETE FROM script_texts WHERE entry BETWEEN -1189034 AND -1189022;
INSERT INTO script_texts (entry,content_default,sound,type,language,emote,comment) VALUES
(-1189022,'It is over, your search is done! Let fate choose now, the righteous one.',11961,1,0,0... |
DROP TABLE statistical_code_behavior;
DROP TABLE contribution_criteria_excluded_location;
DROP TABLE contribution_criteria_configuration;
|
<gh_stars>1-10
CREATE TABLE IF NOT EXISTS `__PREFIX__crontab` (
`id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT COMMENT 'ID',
`type` varchar(10) NOT NULL DEFAULT '' COMMENT '事件类型',
`title` varchar(100) NOT NULL DEFAULT '' COMMENT '事件标题',
`content` text NOT NULL COMMENT '事件内容',
`schedule` varchar(100) NOT NULL D... |
<filename>integration/tests/mysql/create-table/expect.sql
insert into other (id, something) values (1, 'one') on duplicate key update id=1, something='one';
insert into other (id, something) values (2, 'two') on duplicate key update id=2, something='two';
create table `users` (`id` int (11), `login` varchar (255), `nam... |
-- +goose Up
-- +goose StatementBegin
CREATE TABLE `blog_comment` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`username` varchar(16) NOT NULL,
`is_author` tinyint(1) NOT NULL DEFAULT '0',
`parent_id` int(10) unsigned DEFAULT NULL,
`root_id` int(10) unsigned DEFAULT NULL,
`article_id` int(10) unsigned N... |
/*
Prduct Price History
*/
create table mtt_md_product_price_history
(
change_no integer not null auto_increment,
product_no integer not null,
account_type smallint not null,
updated_at datetime not null,
unit_price... |
<gh_stars>0
/*
Navicat Premium Data Transfer
Source Server : localhost_3306
Source Server Type : MySQL
Source Server Version : 100411
Source Host : localhost:3306
Source Schema : experience_commerce
Target Server Type : MySQL
Target Server Version : 100411
File Encoding ... |
SET ANSI_NULLS ON;
SET ANSI_PADDING ON;
SET ANSI_WARNINGS ON;
SET CONCAT_NULL_YIELDS_NULL ON;
SET QUOTED_IDENTIFIER ON;
SET STATISTICS IO OFF;
SET STATISTICS TIME OFF;
GO
IF OBJECT_ID('dbo.spIndexCoverage') IS NULL
EXEC ('CREATE PROCEDURE dbo.spIndexCoverage AS RETURN 0;')
GO
ALTER PROCEDURE dbo.spIndexCoverage
@Da... |
<reponame>rochaandre/scripts-oracle-named<gh_stars>0
-- ver consumo mensal (ultimo mes) de cpu dos usuarios auditados:
select username, mes_ano, session_cpu / 100 as session_cpu_sec, total
from ( select username,
to_char(logoff_time,'mm/yyyy') mes_ano,
sum(session_cpu) sessi... |
<reponame>iqbalsalman/ProgramKemitraan
-- phpMyAdmin SQL Dump
-- version 4.7.4
-- https://www.phpmyadmin.net/
--
-- Host: 127.0.0.1
-- Generation Time: Feb 22, 2018 at 12:57 PM
-- Server version: 10.1.30-MariaDB
-- PHP Version: 5.6.33
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET AUTOCOMMIT = 0;
START TRANSACTION;
SET t... |
<gh_stars>0
/*
Aula 5 - Date Manipulation Language (DML) - Linuguagem de Manipulação de Dados
Link videoaula → https://youtu.be/eyx3Yk2iEBg
*/
DROP DATABASE IF EXISTS aula_banco; -- se existir elimine aula_banco
CREATE DATABASE aula_banco; -- criar aula_banco
USE aula_banco; -- selecionar aula_banco
CREATE TAB... |
<filename>data.sql<gh_stars>0
CREATE TABLE `tbl_users` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`name` varchar(120) DEFAULT NULL,
`email` varchar(120) DEFAULT NULL,
`phone_no` varchar(30) DEFAULT NULL,
`password` varchar(120) DEFAULT NULL,
`created_at` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (`i... |
<reponame>CottonEyeJoey/Account_System<gh_stars>0
insert into hr.ACCOUNT_TYPE(ACCOUNT_TYPE_ID,MNEMONIC,ACCOUNT_TYPE_NAME,CREATION_DATE ) values (5001, 'MILES', 'Miles' ,'2020-01-01');
insert into hr.BALANCE(MEMBER_ID,ACCOUNT_TYPE_ID,AMOUNT,MNEMONIC) values (10001, 5001, 5000 ,'MILES'); |
-- Created by: MPZinke
-- on 2020.12.19
--
-- DESCRIPTION: Main DB script for creating Curtain DB.
-- BUGS:
-- FUTURE:
CREATE DATABASE `SmartCurtain` CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;;
USE `SmartCurtain`;
-- Primary table for curtain listing.
-- Details individual curtain setups.
DROP TABLE... |
<gh_stars>0
with yesterday_new_users as
(
select geo.country as country, app_info.id, count(distinct user_pseudo_id) yesterday_new_users
FROM {{ref('events')}}
WHERE event_date = FORMAT_DATE("%Y%m%d", DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY))
and event_timestamp = user_first_touch_timestamp
group by geo.co... |
<reponame>EL-BID/nexso<gh_stars>1-10
CREATE TABLE [dbo].[dnn_EasyDNNNewsVideoGallerySettings] (
[Id] INT IDENTITY (1, 1) NOT NULL,
[PortalID] INT NOT NULL,
[ModuleID] INT NULL,
[ArticleID] INT NULL,
[ThumbWidth] INT ... |
<reponame>boxfox619/Vertx-React-Server<gh_stars>1-10
SELECT COUNT(uid) FROM user WHERE email=? |
<reponame>Ambal/mangos
DELETE FROM `spell_chain` WHERE `spell_id` IN (25477);
INSERT INTO `spell_chain` VALUES
(25477,19312,18137,7);
|
CREATE TABLE [dbo].[Property](
[PropertyId] [varchar](255) NOT NULL,
[Name] [varchar](255) NOT NULL,
CONSTRAINT [PK_AttributeId] PRIMARY KEY CLUSTERED
(
[PropertyId] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIM... |
DROP FUNCTION k_sp_del_contact (CHAR);
DROP FUNCTION k_sp_del_company (CHAR);
DROP FUNCTION k_sp_dedup_email_contacts (CHAR);
|
SELECT * FROM (
SELECT
'http_requests_total' AS name,
'counter' AS type,
'Total number of HTTP requests' AS help,
map('method', 'post', 'code', '200') AS labels,
1027 AS value,
1395066363000 :: Float64 AS timestamp
UNION ALL
SELECT
'http_requests_total' AS name,
'counter' AS type,
'... |
<reponame>cascade-core/changelog-sql
-- Table to log processed parts of this changelog.
-- You will like it later. It is not used by application itself.
CREATE TABLE IF NOT EXISTS `about_changelog` (
`id` int(11) NOT NULL AUTO_INCREMENT,
`update_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP,
`filename` varchar(... |
<gh_stars>1-10
-- if you currently have ‘departments_dup’ set up:
ALTER TABLE departments_dup DROP COLUMN dept_manager;
ALTER TABLE departments_dup CHANGE COLUMN dept_no dept_no CHAR(4) NULL;
ALTER TABLE departments_dup CHANGE COLUMN dept_name dept_name VARCHAR(40) NULL;
-- if you don’t currently have ‘departments_... |
-- 문제11 - EMP테이블에서 사원번호가 홀수인 사원들을 조회
SELECT *
FROM EMP
WHERE MOD(EMPNO,2)!=0;
|
/*
Navicat MySQL Data Transfer
Source Server : localhost
Source Server Version : 50726
Source Host : localhost:3306
Source Database : fabulove
Target Server Type : MYSQL
Target Server Version : 50726
File Encoding : 65001
Date: 2021-03-15 11:51:07
*/
SET FOREIGN_KEY_CHECKS=0;
-- ... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.