sql
stringlengths
6
1.05M
<filename>relief_request.sql -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 26, 2020 at 08:15 AM -- Server version: 5.7.29-0ubuntu0.16.04.1 -- PHP Version: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET tim...
-- file:matview.sql ln:177 expect:true UPDATE mvtest_v SET j = 3 WHERE x = 1
-- Author: <NAME> | https://www.eitanblumin.com -- Date: 2020-02-26 -- Description: This is a query to generate rename commands for all system-named default constraints within the current database. -- The constraints are renamed based on convention of "DF_{TableName}_{ColumnName}" -- Simply run this query and then copy...
<filename>backend/de.metas.swat/de.metas.swat.base/src/main/sql/postgresql/system/45-de.metas.pricing/5490330_gh3833_M_DiscountSchemaBreak_PriceBase.sql -- 2018-04-11T13:17:03.410 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Element (AD_Client_ID,AD_Element_ID,AD_Org_ID,ColumnName,Cr...
CREATE DATABASE IF NOT EXISTS `shhss` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `shhss`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: shhss -- ------------------------------------------------------ -- Server version 5.7.17-log /*!40101 SET @OLD_CHARACTER_SET_CLI...
-- SQL
BEGIN; SELECT _v.register_patch('020-interaction-generalization', NULL, NULL); INSERT INTO interaction_type VALUES ('SI', 'Suicide Ideation'), ('ROLE_REQUEST', 'Role Request'), ('APPOINTMENT_PATIENT', 'Appointment Patient'), ('APPOINTMENT_PROVIDER', 'Appointment Provider'); ALTER TABLE interaction_type RENAME COLUMN ...
<gh_stars>0 DROP DATABASE if exists obj_pj_sena; CREATE DATABASE obj_pj_sena; USE obj_pj_sena; DROP TABLE if exists obj_cargo; CREATE TABLE obj_cargo( id_cargo INT PRIMARY KEY NOT NULL AUTO_INCREMENT, cargo VARCHAR(100) NOT NULL ); INSERT INTO obj_cargo(cargo) VALUES('Psicologa'),('Coordinación académica'),('Bienes...
create table user( u_id INT PRIMARY KEY auto_increment, u_user varchar(250) unique not null, U_pass varchar(250) not null ); commit;
<reponame>greathouse/tidewater<filename>web/src/main/resources/db/migration/V197001010000__Base.sql create table PipelineEvents ( id VARCHAR, aggregateId VARCHAR, eventType VARCHAR, eventDateTime TIMESTAMP, savedTimestamp TIMESTAMP DEFAULT CURRENT_TIMESTAMP(), data BLOB ); create table Pipeline...
create table if not exists invoices ( id uuid default random_uuid() primary key, pdf_url varchar(255), user_id varchar(255), amount int );
CREATE STREAM R(A int, B int) FROM FILE 'examples/data/simple/r.dat' LINE DELIMITED csv; SELECT * FROM R r1, (SELECT SUM(r3.B) AS C FROM R r3) S WHERE r1.A > (SELECT SUM(C) FROM R r2);
<reponame>FMAY-Software/bridgepoint<gh_stars>10-100 -- BP 6.1D content: user_data_type syschar: 3 -- File: $RCSfile: udt.sql,v $ -- Version: $Revision: 1.3 $ -- Modified: $Date: 2003/08/08 19:05:52 $ INSERT INTO S_CDT VALUES (524289, 0); INSERT INTO S_DT VALUES (524289, 73245, 'void', ''); ...
ALTER TABLE Dome9Assignment MODIFY COLUMN CloudAccountID VARCHAR(100) NULL;
<filename>integration-tests/liquibase/src/main/resources/db/xml/views/view-rel.sql select id, name from liquibase where id > 1
/* 16:05:23 <EMAIL> */ SELECT * FROM `user` ORDER BY `userid` LIMIT 0,1000; /* 16:05:25 <EMAIL> */ SHOW INDEX FROM `user`; /* 16:05:25 <EMAIL> */ SHOW VARIABLES LIKE 'collation_database'; /* 16:06:11 <EMAIL> */ SET NAMES 'utf8'; /* 16:06:11 <EMAIL> */ SHOW TABLE STATUS LIKE 'availability'; /* 16:06:11 <EMAIL> */ SHOW C...
-- @testpoint:opengauss关键字routine(非保留),作为模式名 --关键字不带引号-成功 drop schema if exists routine; create schema routine; --清理环境 drop schema routine; --关键字带双引号-成功 drop schema if exists "routine"; create schema "routine"; --清理环境 drop schema "routine"; --关键字带单引号-合理报错 drop schema if exists 'routine'; --关键字带反引号-合理报错 drop schem...
<filename>gearbest_scraper/database/mysql/currency_table.sql CREATE TABLE IF NOT EXISTS currency_table ( id INT PRIMARY KEY AUTO_INCREMENT, abbreviation VARCHAR(400) );
-- Your SQL goes here CREATE TABLE IF NOT EXISTS definition( word_id SERIAL PRIMARY KEY, word TEXT UNIQUE NOT NULL, meaning_id INT NOT NULL, antonyms TEXT[] NOT NULL, synonyms TEXT[] NOT NULL, CONSTRAINT fk_meaning FOREIGN KEY(meaning_id) REFERENCES meaning(meaning_id) ON DELETE CASCADE ...
<gh_stars>0 alter table "public"."company_users" rename column "copmany_id" to "company_id";
CREATE TABLE ezsi_files ( filepath VARCHAR2(4000) NOT NULL, namehash CHAR(32) PRIMARY KEY, mtime INTEGER DEFAULT 0 NOT NULL, urlalias VARCHAR2(4000), -- must be nullable for when the urlalias corresponds to site root siteaccess VARCHAR2(100) NOT NULL, ttl INTEGER NOT NULL, blockkeys VARCHAR2...
<reponame>youngkin/mockvideo<gh_stars>1-10 DROP DATABASE IF EXISTS mockvideo; CREATE DATABASE mockvideo; CREATE USER IF NOT EXISTS 'admin'@'%' IDENTIFIED BY 'admin'; GRANT ALL ON *.* TO 'admin'@'%' WITH GRANT OPTION; USE mockvideo; # user represents an authorized individual on an account DROP TABLE IF EXISTS u...
DROP DATABASE IF EXISTS service_record_db; CREATE DATABASE service_record_db; CREATE TABLE User; CREATE TABLE ORDER;
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table company_model ( id bigint not null, name varchar(255), constraint pk_company_model primary key (id)) ; create table computer_model ( id...
-- +goose Up -- SQL in this section is executed when the migration is applied. CREATE TABLE tx_inputs ( txid bytea NOT NULL references transactions (txid) on delete cascade, "index" bigint NOT NULL, hash_prevout bytea NOT NULL CHECK (LENGTH(hash_prevout) = 32), --tx id of previous output tx index_prevou...
\set ECHO none SET search_path TO provsql_test, provsql; CREATE TABLE union_all_result AS SELECT *,formula(provenance(),'personnel_name') FROM ( SELECT classification FROM personnel WHERE city='Paris' UNION ALL SELECT classification FROM personnel ) t; SELECT remove_provenance('union_all_result'); SELECT * FROM...
CREATE TABLE IF NOT EXISTS `applications` ( `id` int(30) NOT NULL AUTO_INCREMENT, `oid` int(30) NOT NULL, `name` varchar(255) COLLATE latin1_general_ci NOT NULL, `version` varchar(20) COLLATE latin1_general_ci NOT NULL, `unique_key` varchar(32) COLLATE latin1_general_ci NOT NULL, `active` int(30) NOT NULL, ...
<gh_stars>0 set define off set sqlblanklines on spool KR-RELEASE-5_0_1-Demo-ORACLE-Install.log @../../current/5.0.1/dml/KR_DML_01_KCIAC-209_0TSD.sql @../../current/5.0.1/dml/KR_DML_02_KCCOI-281_0TSD.sql @../../current/5.0.1/dml/KR_DML_02_KCIAC-236_0TSD.sql commit; exit
-- Add expiration column index ALTER TABLE /*$wgDBprefix*/flaggedpage_config ADD INDEX (fpc_expiry);
<gh_stars>1-10 ALTER TABLE request ADD from_saved_request_id BIGINT NULL; ALTER TABLE request ADD CONSTRAINT request_from_saved_request_id FOREIGN KEY (from_saved_request_id) REFERENCES saved_request(id);
<filename>mtools/sql/oracle/STMUSER.sql -- Create table create table STMUSER ( USERID VARCHAR2(32) not null, USERNAME VARCHAR2(20), PASSWORD VARCHAR2(32), WORKPHONE VARCHAR2(20), MOBILEPHONE VARCHAR2(20), STATUS VARCHAR2(8), USERTYPE VARCHAR2(8), EMAIL VARCHAR2(40), ADDR...
<reponame>kimberrypi/graphql-engine type: run_sql args: cascade: true sql: | DROP
<filename>migrations/2021-06-24-143712_add_publish_rate_overrides_expires_at/down.sql<gh_stars>1000+ ALTER TABLE publish_rate_overrides DROP COLUMN expires_at;
<gh_stars>0 -- @testpoint: opengauss关键字enum(非保留),作为游标名,部分测试点合理报错 --前置条件 drop table if exists enum_test cascade; create table enum_test(cid int,fid int); --关键字不带引号-成功 start transaction; cursor enum for select * from enum_test order by 1; close enum; end; --关键字带双引号-成功 start transaction; cursor "enum" for select * from...
<filename>Extensions/Metrics-Elasticity-Scalability-Automation/db-partitioning/oracle/register_default_partition_table.sql<gh_stars>0 EXEC zabbix_maintaince.register_partition_table( p_table_name => 'EVENTS', p_partition_key => 'CLOCK', p_reserve_months => 12, p_prebuild_months => 3 ); EXEC zabbix_maintaince.register_p...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1:3306 -- Tiempo de generación: 11-01-2018 a las 06:57:32 -- Versión del servidor: 5.7.19 -- Versión de PHP: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*...
-- 3.2 Handling Missing Values -- here's filtering the insert with the blank orderids use back_office; -- Part 1 : Filter Rows with Missing OrderID insert overwrite table cleansed_sales select cast(RowID as smallint) as RowID, cast(null as int) as ClientID, cast(OrderID as int) as OrderID, cast(OrderDate...
-- CreateTable CREATE TABLE "Episode" ( "id" SERIAL NOT NULL, "episodeNumber" INTEGER NOT NULL, "seasonNumber" INTEGER NOT NULL, "watchlistId" INTEGER NOT NULL, "isWatched" BOOLEAN NOT NULL, "createdAt" TIMESTAMP(3) NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" TIMESTAMP(3) NOT NULL, ...
<reponame>code-rhapsodie/pvrEzCommentBundle<filename>Resources/installer/sql/schema.sql CREATE TABLE IF NOT EXISTS `ezcomment` ( `id` int(11) NOT NULL AUTO_INCREMENT, `language_id` int(11) NOT NULL, `created` int(11) NOT NULL, `modified` int(11) NOT NULL, `user_id` int(11) NOT NULL, `session_key` varchar(32...
-- Multi-Table Query Practice -- Display the ProductName and CategoryName for all products in the database. Shows 77 records. select p.ProductName, c.CategoryName from Product as p join Category as c on p.CategoryId = c.Id; -- Display the order Id and shipper CompanyName for all orders placed before August 9 2012. S...
USE model; GO IF exists(SELECT 1 FROM master.dbo.sysdatabases WHERE name = 'narciarze') DROP DATABASE narciarze GO CREATE DATABASE narciarze GO USE narciarze; GO CREATE TABLE kraje ( id_kraju INT NOT NULL IDENTITY (1,1) PRIMARY KEY, kraj CHAR(3) NOT NULL UNIQUE ); GO CREATE...
CREATE TABLE partner_call( id int UNSIGNED NOT NULL AUTO_INCREMENT, title varchar (400) NULL, link varchar(250) NULL, active int NULL, PRIMARY KEY (id) ); CREATE TABLE calls( id int UNSIGNED NOT NULL AUTO_INCREMENT, title varchar (400) NULL, link varchar(250) NULL, active int NULL, ...
SET DEFINE OFF; ALTER TABLE AFW_25_PARMT_TYPE_PUBLC ADD ( CONSTRAINT AFW_25_PARMT_TYPE_PUBLC_UK1 UNIQUE (REF_TYPE_PUBLC, REF_ENGIN, CODE, DNR_REF_PRODT) ENABLE VALIDATE) /
SELECT value FROM "+table+" WHERE id BETWEEN ? AND ? SELECT value FROM public.all WHERE id=? SELECT value, raw FROM public.all WHERE id=? SELECT id FROM public.all WHERE id BETWEEN ? AND ?
DROP DATABASE IF EXISTS bamazon_DB; CREATE DATABASE bamazon_DB; USE bamazon_DB; CREATE TABLE products( item_id integer(11) AUTO_INCREMENT NOT NULL, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(100) NOT NULL, price DECIMAL(10,2) NOT NULL, stock_quantity INTEGER(10) NOT NULL, PRIM...
<filename>sqlfile/testdata/case1/004_some_more.sql<gh_stars>1-10 CREATE TABLE IF NOT EXISTS some_more(id INTEGER);
CREATE PROCEDURE [GetLastLevyDeclarations_ByEmpRef] @empRef varchar(20) AS select top 1 * FROM [LevyDeclaration] where EmpRef = @empRef order by SubmissionDate desc
( SELECT ARRAY_AGG(STRUCT( REGEXP_EXTRACT(y, '[^"]*') AS key , REGEXP_EXTRACT(y, r':([^"]*)\"?[,}\]]') AS value )) FROM UNNEST(( SELECT REGEXP_EXTRACT_ALL(json,col_regex||r'[^:]+:\"?[^"]+\"?') arr FROM (SELECT TO_JSON_STRING(x) json))) y )
-- https://app.camunda.com/jira/browse/CAM-9165 create index ACT_IDX_CASE_EXE_CASE_INST on ACT_RU_CASE_EXECUTION(CASE_INST_ID_);
<filename>deployments/chart/sql/nocalhost-api.sql # ************************************************************ # Sequel Pro SQL dump # Version 5438 # # https://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.5-10.5.8-MariaDB) # Database: nocalhost # Generation Time: 2020-11-...
<reponame>sagarkhati/OnlineClassroom<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 05, 2021 at 02:40 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSAC...
-- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. declare @StudentUSI int DECLARE @EdfiStu...
<filename>go/src/socialapi/db/sql/migrations/0012_create-integration-tables.up.sql -- -- create schema -- DO $$ BEGIN BEGIN CREATE SCHEMA IF NOT EXISTS integration; END; END; $$; GRANT usage ON SCHEMA integration to social; -- -- create the sequence -- DO $$ BEGIN BEGIN CREATE SEQUENCE...
ALTER TABLE management.projects ADD COLUMN private_labeling_setting SMALLINT; ALTER TABLE authz.applications ADD COLUMN private_labeling_setting SMALLINT; ALTER TABLE auth.applications ADD COLUMN private_labeling_setting SMALLINT; ALTER TABLE management.applications ADD COLUMN private_labeling_setting SMALLINT;
<filename>hasura/migrations/1606855648278_create_table_public_EventPerson/up.sql CREATE EXTENSION IF NOT EXISTS pgcrypto; CREATE TABLE "public"."EventPerson"("id" uuid NOT NULL DEFAULT gen_random_uuid(), "eventId" UUID NOT NULL, "attendeeId" UUID, "name" Text NOT NULL, "affiliation" Text, "roleName" text NOT NULL, "ori...
<reponame>jkuharev/ISOQuant<filename>src/isoquant/plugins/benchmark/fdr/04_feature_fdr_after_qnt_filter.sql -- @ : mapping quantification filter passing peptides to features . . . DROP TABLE IF EXISTS emrt_fp_after_quantification_filter; CREATE TEMPORARY TABLE emrt_fp_after_quantification_filter SELECT ce.`index` a...
DROP DATABASE IF EXISTS ps_backend_test; DROP DATABASE IF EXISTS ps_backend; CREATE DATABASE ps_backend_test; CREATE DATABASE ps_backend;
CREATE INDEX [MemberService_ServiceMemberEventDate] ON [dbo].MemberService (ServiceId, MemberServiceId, MemberId, EventDate);
/* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 80013 Source Host : localhost:3306 Source Database : translation Target Server Type : MYSQL Target Server Version : 80013 File Encoding : 65001 Date: 2019-06-05 22:20:39 */ SET FOREIGN_KEY_CHECKS...
<gh_stars>0 CREATE TABLE `regions` ( `region_id` int(11) NOT NULL AUTO_INCREMENT, `region_name` varchar(255) NOT NULL DEFAULT '', `region_location` point NOT NULL, `region_default` tinyint(1) NOT NULL DEFAULT '0', `region_settings` json NOT NULL, PRIMARY KEY (`region_id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf...
<gh_stars>0 ALTER TYPE email_status RENAME TO email_status_old; CREATE TYPE email_status AS ENUM ('NEW', 'SENT', 'CONFIRMED'); ALTER TABLE user_email_m2m ALTER COLUMN status TYPE email_status USING status::text::email_status; DROP TYPE email_status_old;
<reponame>pawel-slowik/network-stats WITH RECURSIVE hours(hour) AS ( SELECT 0 UNION SELECT hour + 1 FROM hours LIMIT 24 ) SELECT hour, IFNULL( (SELECT SUM(bytes_sent + bytes_received) FROM traffic WHERE STRFTIME("%H", timestamp_begin, "unixepoch") = PRINTF("%02d", hour) ) / 1024 / 1024, ...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 24, 2021 at 06:35 PM -- Server version: 10.4.17-MariaDB -- PHP Version: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
/** * Copyright (c) 2013 Oculus Info Inc. * http://www.oculusinfo.com/ * * Released under the MIT License. * * Permission is hereby granted, free of charge, to any person obtaining a copy of * this software and associated documentation files (the "Software"), to deal in * the Software without restriction, in...
CREATE DATABASE `db_symfony_test` /*!40100 DEFAULT CHARACTER SET latin1 */; CREATE TABLE `user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `email` varchar(155) COLLATE utf8_unicode_ci NOT NULL, `password` varchar(45) COLLATE utf8_unicode_ci NOT NULL, `salt` varchar(155) COLLATE utf8_unicode_ci NOT NULL, `plain_...
<reponame>fernand0aguilar/api-test-theam INSERT INTO `shop` (`id`, `shop_name`, `create_date`, `update_date`) VALUES (NULL, 'Agile Monkeys', CURRENT_DATE(), CURRENT_DATE()); INSERT INTO users (id, name, surname, email, password, profile, create_date, update_date, shop_id, parent_email) VALUES (NULL, 'John', 'Doe', '<E...
<gh_stars>0 use comercio; desc cliente; desc telefone; desc endereco; /*relatorio geral de clientes*/ select C.IDCLIENTE, C.NOME, C.SEXO, C.EMAIL, C.CPF, E.RUA, E.BAIRRO, E.CIDADE, E.ESTADO, T.TIPO, T.NUMERO FROM CLIENTE C INNER JOIN ENDERECO E ON C.IDCLIENTE = E.ID_CLIENTE INNER JOIN TELEFONE T ON C.IDC...
<reponame>Aquarmini/dtm-api # ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: coding.ecs.lmx0536.cn (MySQL 5.5.56-MariaDB) # Database: dtm # Generation Time: 2018-03-02 03:23:38 +0000 # ***...
<gh_stars>10-100  Create PROCEDURE [dbo].[NewNodeConfigurationfromDefault] @nodeName NVARCHAR(128) ,@ParentConfigurationName NVARCHAR(128) ,@NodeConfigurationName NVARCHAR(128) ,@Payload NVARCHAR(max) AS BEGIN SET NOCOUNT ON; BEGIN TRANSACTION DECLARE @NodeConfigurationId BIGINT; DECLARE @ParentConfigurationI...
with county_devices as ( select device_desc , county , count(county) as n_rows , count(distinct county) as n_counties from dim.cdot_device_inventory group by 1, 2 order by 3 desc ) select adf.measure_date , adf.measure_date - lag(measure_date, 1) over (partition by location_id order by adf.mea...
<reponame>VladimirVLF/startlist.club<gh_stars>10-100 ALTER TABLE [dbo].[Training2Lesson] ADD [CanHaveDualFlightDuration] [bit] NOT NULL DEFAULT 0 ALTER TABLE [dbo].[Training2Lesson] ADD [CanHaveSoloFlightDuration] [bit] NOT NULL DEFAULT 0 ALTER TABLE [dbo].[Training2Program] ADD [RequireUnionIdsForExport] [bit] NOT NU...
INSERT INTO command VALUES('targetobject','2','Usage: .targetobject [#go_id|#go_name_part]\r\nLocate and show position nearest gameobject. If #go_id or #go_name_part provide then locate and show position of nearest gameobject with gameobject template id #go_id or name included #go_name_part as part.');
<filename>prisma/migrations/20211009201338_up/migration.sql<gh_stars>0 -- CreateTable CREATE TABLE "Project" ( "id" SERIAL NOT NULL, "title" TEXT NOT NULL, "subTitle" TEXT, "description" TEXT NOT NULL, "startDate" TIMESTAMP(3) NOT NULL, "endDate" TIMESTAMP(3), CONSTRAINT "Project_pkey" PRIM...
-- dare to compare - NSW 5m DEM vs SRTM 1 sec DEM smoothed -- 1 min drop table if exists bushfire.bal_factors_test_sydney_deltas; create table bushfire.bal_factors_test_sydney_deltas as with hmm as ( select distinct nsw.bld_pid, nsw.dem_min, nsw.dem_max, ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Nov 20, 2019 at 08:53 AM -- Server version: 10.1.43-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
SELECT CURRENT_DATE; -- Popula o banco de dados em memória -- INSERT INTO public.cidade -- (id, nome, estado) -- VALUES -- (1, 'Campo Grande', 'Mato Grosso Do Sul'), -- (2, 'Recife', 'Pernambuco'), -- (3, 'Belo Horizonte', 'Minas Gerais'), -- (4, 'Belém', 'Pará'), -- (5, 'São Paulo', 'São Paulo'...
CREATE PROCEDURE [dbo].[pe_NL_Disbs] @Org int, @User int, @Result as int OUTPUT AS DECLARE @PeriodEnd datetime DECLARE @IntSys varchar(20) SELECT @PeriodEnd = PracPeriodEnd FROM tblControl WHERE PracID = 1 SELECT @IntSys = IntSystem FROM tblTranNominalControl IF @IntSys = 'AD' BEGIN exec pe_NL_Disbs_AD @Org, @...
create table world_subareas ( Id int not null primary key, NameId int unsigned not null, AreaId int not null, MapsIdsCSV mediumtext not null, ShapeCSV mediumtext not null, CustomWorldMapCSV medium...
<gh_stars>1-10 /* Virtual Inventory Updated - 3/3/20 - consolidated the query and re-orged Updated - 12/23/2019 - added Core Threads and total compute capacity based upon CPUS * Core/Cpu * # of hyperthreads - compute Compute Power dependent on what values are avail (for Host and Guest) U...
<reponame>pdv-ru/ClickHouse select max(a + b) from (SELECT 1 AS a, 2 AS b);
INSERT INTO artist (id, gid, name, sort_name) VALUES (1, 'a9d99e40-72d7-11de-8a39-0800200c9a66', 'Name', 1); INSERT INTO artist_credit (id, name, artist_count) VALUES (1, 'Name', 1); INSERT INTO artist_credit_name (artist_credit, artist, name, position, join_phrase) VALUES (1, 1, 'Name', 0, ''); INSERT INTO r...
CREATE ROLE financial WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN NOREPLICATION NOBYPASSRLS ENCRYPTED PASSWORD '<PASSWORD>'; CREATE DATABASE financial; \c financial GRANT USAGE ON SCHEMA public TO financial; CREATE OR REPLACE FUNCTION public.tf_set_updated_at() RETURNS TRIGGER AS $$ BEGIN NEW...
CREATE TABLE badges_users ( user_id integer, badge_id integer, updated_at timestamp with time zone DEFAULT now(), PRIMARY KEY(user_id, badge_id) );
drop table if exists t; create table t(i int unique); insert into t values(1999),(2001); drop table if exists foo; create table foo as with cte as ( select * from t where i<2000), cte1 as ( select * from t where i>2000) select * from cte union all select * from cte1; select * from foo order by 1; alter table foo ch...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 23, 2017 at 05:08 PM -- Server version: 10.1.21-MariaDB -- PHP Version: 7.1.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET...
EXEC [EST].[Proc_yjbb_Ins] @Code = N'601212',@CutoffDate = N'2017-09-30',@EPS = N'0.034',@EPSDeduct = N'0',@Revenue = N'488.94亿',@RevenueYoy = N'1.94',@RevenueQoq = N'3.42',@Profit = N'2.29亿',@ProfitYoy = N'1.71',@ProfiltQoq = N'-15.20',@NAVPerUnit = N'1.4420',@ROE = N'1.89',@CashPerUnit = N'-0.0179',@GrossProfitRate =...
--SELECT "Euro2016_1"."polarity" AS "polarity", TABLEAU.TO_DATETIME(DATE_TRUNC('HOUR', TABLEAU.NORMALIZE_DATETIME("Euro2016_1"."tweeted_at")), "Euro2016_1"."tweeted_at") AS "thr:tweeted_at:ok" FROM "Euro2016_1" GROUP BY 1, 2;
<reponame>DustinOgilvie/MECM_Scripts<filename>MEMCM_SQL_Queries/UUID_Issues/Unknown_UUID.sql SELECT Description0, SiteCode0, SMS_Unique_Identifier0 FROM UnknownSystem_DISC
#Feb 2021: #This exercise will cover logical operators. #Doc: https://dev.mysql.com/doc/refman/8.0/en/logical-operators.html #I'll warm up with the following. SELECT 99 != 99; SELECT 20 > 15 && 99 - 80 <= 15; SELECT 1 IN (9,2) || 11 BETWEEN 10 AND 20; #Using the book_shop db. #Select all books weritten before 19...
<filename>Notes.DB/SQL/dbo.SaveNote.sql CREATE PROCEDURE [dbo].[SaveNote] @Title nvarchar(100), @Published bit, @Text nvarchar(MAX), @Tags nvarchar(MAX), @CreationDate datetime, @UserId bigint, @BinaryFile varbinary(MAX), @FileType nchar(100) AS INSERT INTO Note ([Title], [Published], [Text], [Tags], [Creatio...
<reponame>fabriciofmsilva/labs # ************************************************************ # Sequel Pro SQL dump # Version 4004 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 127.0.0.1 (MySQL 5.5.24) # Database: sql2 # Generation Time: 2013-12-10 21:18:01 +0000 # *********************...
drop schema ims; CREATE SCHEMA IF NOT EXISTS `ims`; USE `ims`; DROP TABLE IF EXISTS `order_link`; DROP TABLE IF EXISTS `order`; DROP TABLE IF EXISTS `item`; DROP TABLE IF EXISTS `customers`; CREATE TABLE IF NOT EXISTS `ims`.`customers` ( `id` INT(11) NOT NULL AUTO_INCREMENT, `first_name` VARCHAR(40)...
<gh_stars>0 -- This file is generated by the DataFiller free software. -- This software comes without any warranty whatsoever. -- Use at your own risk. Beware, this script may destroy your data! -- License is GPLv3, see http://www.gnu.org/copyleft/gpl.html -- Get latest version from http://www.coelho.net/datafiller.ht...
<reponame>statisticspoland/VTL-Processing CREATE TABLE [Counting_the_number_of_data_points].[DS_1] ( [Id_1] INT NOT NULL, [Id_2] VARCHAR(32) NOT NULL, [Id_3] VARCHAR(32) NOT NULL, [Me_1] VARCHAR(32) CONSTRAINT [PK_Counting_the_number_of_data_points_DS_1] PRIMARY KEY CLUSTERED ([Id_1], [Id_2], [Id_3]) )
INSERT INTO media VALUES ("ltr_jab5950","letter","1828-01-27","Washington","MD","US","James","Barbour","","Henry","Clay","","individual","","I intentionally delayed writing till the last moment, under a high hope of giving you some determinate information of the person best to present for the Vice-Presidency","ltr_jab5...
CREATE TABLE [dbo].[observation_period] ( [observation_period_id] INT NOT NULL, [person_id] INT NOT NULL, [observation_period_start_date] DATE NOT NULL, [observation_period_end_date] DATE NOT NULL, [period_type_concept_id] INT NOT NULL );
ALTER TABLE securemessage.secure_message RENAME COLUMN ru_id TO business_id;
-------------------------------------------------------- -- Constraints for Table GIS_SUBJ_EPI_REL -------------------------------------------------------- ALTER TABLE "GIS_SUBJ_EPI_REL" ADD CONSTRAINT "PK_GIS_SUBJ_EPI_REL" PRIMARY KEY ("REL_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS ...
<reponame>sogis/gretljobs SELECT hilfsfpnachfuehrung.t_id AS tid, hilfsfpnachfuehrung.nbident, hilfsfpnachfuehrung.identifikator, hilfsfpnachfuehrung.beschreibung, hilfsfpnachfuehrung.perimeter, to_char(hilfsfpnachfuehrung.gueltigereintrag,'YYYYMMDD') AS gueltigereintrag, to_char(hilfsfpnach...
-- -- Organization Cassandra data initializer -- USE organization_main; -- ====================================== -- user_votes -- ====================================== -- userone_45 INSERT INTO user_votes (user_id, section_id, voted_at) VALUES ( 49105, 'b290c5fb1081d3', '2018-01-12 18:12:25.859' ...