text
stringlengths
1
1.05M
library CTForHeadDecision version '1.0.0' using FHIR version '4.0.0' include FHIRHelpers version '4.0.0' called FHIRHelpers include CTForHead version '1.0.0' called CTHead codesystem "ICD-10-CM": 'http://hl7.org/fhir/sid/icd-10-cm' codesystem "LOINC": 'http://loinc.org' codesystem "HCPCS": 'https://hcpcs.codes/' cod...
alter table stream_push add serverId varchar(50) not null; alter table device add geoCoordSys varchar(50) not null; update device set device.geoCoordSys='WGS84'; alter table device_channel add longitudeGcj02 double default null; alter table device_channel add latitudeGcj02 double default null; alter tab...
-- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretClassifier_cforest_pca -- Dataset : iris_date_tgt -- Database : db2 -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH "ADS_...
CREATE TABLE clients ( id INT NOT NULL UNIQUE, active BOOLEAN DEFAULT TRUE, created INT NOT NULL, secret VARCHAR(60) NOT NULL DEFAULT '', email VARCHAR(255), notes VARCHAR(100) DEFAULT '', otp VARCHAR(100) DEFAULT '', PRIMARY KEY (id) ); CREATE TABLE yubikeys ( active BOOLEAN DEFAULT TRUE, created ...
-- -- Table: testmeasurement -- CREATE TABLE "testmeasurement" ( "testid" bigint NOT NULL, "name" character varying(70) NOT NULL, "type" character varying(70) NOT NULL, "value" text NOT NULL ); CREATE INDEX "testmeasurement_testid_idx" on "testmeasurement" ("testid"); -- -- Table: dailyupdate -- CREATE TABLE "...
CREATE TABLE "table_versions" ( "id" serial NOT NULL, "table_name" varchar NOT NULL UNIQUE, "version" integer NOT NULL DEFAULT '0', "last_update" DATE NOT NULL DEFAULT CURRENT_TIMESTAMP, CONSTRAINT table_versions_pk PRIMARY KEY ("id") ) WITH ( OIDS=FALSE ); INSERT INTO table_versions VALUES(1,'db...
CREATE TABLE IF NOT EXISTS users( id integer auto_increment primary key, username varchar(20) not null , password varchar(20) not null, created_at DATETIME, updated_at DATETIME );
\c doj; INSERT INTO registrations (contest_id, username) VALUES ( 'test0001', 'ucpr' ); INSERT INTO registrations (contest_id, username) VALUES ( 'test0002', 'ucpr' ); INSERT INTO registrations (contest_id, username) VALUES ( 'test0003', 'ucpr' );
--Main permissions for schema GRANT ALL ON SCHEMA eco_bundle_organicpizza to public; GRANT ALL ON SCHEMA eco_bundle_organicpizza to anon; CREATE TABLE pizzas ( id text NOT NULL PRIMARY KEY, name text, description text, image text, slug text, keywords text[] ); CREATE TABLE toppings ( id te...
drop table if exists common_code cascade; -- 共通コード create table common_code ( code_key varchar(50), code_type varchar(50) not null, code_name varchar(60) not null, code_name_en varchar(60), code_value varchar(256) not null, use_yn char(1) default 'Y', view_order ...
drop materialized view if exists mv_flood_event_world_pop_village_summary; create materialized view mv_flood_event_world_pop_village_summary as with flooded_count as ( select flood_event_id, a.dc_code, a.sub_dc_code, a.village_code, b.name, round(sum(pop_sum)) as flooded_population_count from ( ...
-- Prepare upgrade of model IF EXISTS (SELECT 1 FROM sys.schemas WHERE name = 'metadata') BEGIN -- is job name not knotted? IF EXISTS ( select * from sys.tables t join sys.columns c on c.object_id = t.object_id join sys.schemas s on s.schema_id = t.schema_id where t.[name] = 'JB_NAM_Job_Name' ...
# exploration SELECT * FROM nodes LIMIT 500; SELECT * FROM labels LIMIT 500; SELECT * FROM layouts LIMIT 300; SELECT DISTINCT namespace FROM layouts LIMIT 300; SELECT * FROM nodes_attributes LIMIT 300; SELECT * FROM attributes LIMIT 300; # query sample edge list file SELECT node1_id, node2_id FROM edges INNER JOIN (S...
-- categories INSERT INTO `ec-schema`.`categories` (`category_id`, `category_name`, `category_description`, `category_path`) VALUES ('1', 'category_1', 'category_1_desc', 'category_path_1'); INSERT INTO `ec-schema`.`categories` (`category_id`, `category_name`, `category_description`, `category_path`) VALUES ('2', 'cate...
CREATE INDEX CONCURRENTLY IF NOT EXISTS idx_user_profile_jurisdiction_user_profile_id ON public.user_profile_jurisdiction USING btree (user_profile_id);
create table ACT_ID_PROPERTY ( NAME_ varchar(64), VALUE_ varchar(300), REV_ integer, primary key (NAME_) ); insert into ACT_ID_PROPERTY values ('schema.version', '6.4.1.1', 1); create table ACT_ID_BYTEARRAY ( ID_ varchar(64), REV_ integer, NAME_ varchar(255), BYTES_ bytea, primary ...
-- phpMyAdmin SQL Dump -- version 2.11.8.1deb5+lenny3 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generatie Tijd: 17 Nov 2011 om 17:28 -- Server versie: 5.0.51 -- PHP Versie: 5.2.6-1+lenny8 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; -- -- Database: `z0rbot4` -- -- -----------------------------------------------...
ALTER TABLE `members` ADD COLUMN enable_point BOOLEAN NOT NULL DEFAULT FALSE AFTER mobile, ADD COLUMN enable_pay BOOLEAN NOT NULL DEFAULT TRUE AFTER mobile, ADD COLUMN name VARCHAR(20) NOT NULL DEFAULT '' AFTER mobile;
-- BETWEEN operador se utiliza en una WHERE cláusula para filtrar el conjunto de resultados dentro de un cierto rango -- Acepta dos valores que son números, texto o fechas. SELECT * FROM movies WHERE year BETWEEN 1990 AND 1999; -- películas con names que comienzan con la letra 'A' hasta, pero sin incluir las que comi...
-- -- PostgreSQL database dump -- -- -- Data for Name: batch_job_instance; Type: TABLE DATA; Schema: public; Owner: vrasidas -- INSERT INTO public.batch_job_instance (job_instance_id, version, job_name, job_key) VALUES (1, 0, 'restore', '97411dfcb23d12da43dfa78b6da678a1'); -- -- Data for Name: batch_job_execution; ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 08 Jul 2019 pada 00.34 -- Versi server: 10.3.16-MariaDB -- Versi PHP: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHA...
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 11, 2017 at 09:09 PM -- Server version: 5.6.16 -- PHP Version: 5.5.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;...
CREATE TABLE [HumanResources].[EmployeePayHistory] ( [BusinessEntityID] INT NOT NULL, [RateChangeDate] DATETIME NOT NULL, [Rate] MONEY NOT NULL, [PayFrequency] TINYINT NOT NULL, [ModifiedDate] DATETIME CONSTRAINT [DF_EmployeePayHistory_ModifiedDate] DEFAULT (getdate()...
#Runtime average, median, min, max and number of runs for all experiments select e.name, e.suite, CAST(ROUND(AVG(r.time)/1000.0,2) as NUMERIC(18,2)) as average, MEDIAN(r.time)/1000.0 as median, MAX(r.time)/1000.0 as max, MIN(r.time)/1000.0 as min, COUNT(*) as numberOfRuns from experiment e, experiment_run r where e.id ...
-- ----------------------------------------------------- -- Schema jikji -- ----------------------------------------------------- CREATE SCHEMA IF NOT EXISTS `jikji` DEFAULT CHARACTER SET utf8 ; USE `jikji` ; -- ----------------------------------------------------- -- Table `jikji`.`book_metadata` -- 책 정보 테이블 -- -----...
USE burgers_db; INSERT INTO burgers (name) VALUES ('Avocado Beyond Burger'); INSERT INTO burgers (name) VALUES ('The Legendary'); INSERT INTO burgers (name) VALUES ('Bacon Cheddar Bigger Burger'); INSERT INTO burgers (name) VALUES ('Monty Mushroom Bigger Burger'); INSERT INTO burgers (name) VALUES ('Double Double'); I...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 17, 2020 at 11:19 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.3.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
---------------------------------------------------------------- -- [providers] Table -- Create or replace FUNCTION InsertProvider( v_id UUID, v_name VARCHAR(128), v_description VARCHAR(4000), v_url VARCHAR(512), v_provider_type VARCHAR(32), v_auth_required BOOLEAN, v_auth_username VAR...
-- -- NOTE: -- -- File paths need to be edited. Search for $$PATH$$ and -- replace it with the path to the directory containing -- the extracted data files. -- -- -- PostgreSQL database dump -- SET statement_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = fa...
Go create table [ForFileExecution].dbo.WillExist1(id int null) Go create table [ForFileExecution].dbo.WillExist2(id int null) Go
-- MySQL Script generated by MySQL Workbench -- Пн. 14 дек. 2015 21:39:18 -- 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='T...
-- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : KerasClassifier_LSTM -- Dataset : BinaryClass_100 -- Database : oracle -- This SQL code can contain one or more statements, to be executed in the order they appear in this file. -- Model deployment code WITH keras_i...
insert into routines( name ,unit_period ,target_quantity ,unit ) values( $1 ,$2 ,$3 ,$4 ) returning routine_id ,user_id ,name ,unit_period ,target_quantity ,unit ,to_char(insert_datetime, 'YYYY-MM-DD HH24:MI:SS') as insert_datetime
CREATE TABLE IF NOT EXISTS table2base ( page_id varchar(50) NULL DEFAULT NULL, tag_text varchar(5000) NULL DEFAULT NULL, time timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, name varchar(100) NULL )
CREATE TABLE if not exists messages ( id INT PRIMARY KEY AUTO_INCREMENT, text VARCHAR(255) );
-- phpMyAdmin SQL Dump -- version 4.2.7.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 02, 2015 at 10:55 AM -- Server version: 5.6.20 -- PHP Version: 5.5.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
SELECT ROUND(SQRT(POWER(MAX(LAT_N) - MIN(LAT_N), 2) + POWER(MAX(LONG_W) - MIN(LONG_W), 2)), 4) FROM STATION;
/* 10079, 00000, "trace data sent/received via SQL*Net" *Cause: *Action: level 1 - trace network ops to/from client level 2 - in addition to level 1, dump data level 4 - trace network ops to/from dblink level 8 - in addition to level 4, dump data */ -- all attempts to set with alter ...
CREATE SCHEMA IF NOT EXISTS aoc2021; SET SCHEMA 'aoc2021'; DROP TABLE IF EXISTS dec08; CREATE TABLE dec08 ( line_number bigint NOT NULL GENERATED ALWAYS AS IDENTITY, input text NOT NULL, output text NOT NULL ); \COPY dec08 (input, output) FROM '2021/dec08.input' DELIMITER '|' VACUUM ANALYZE dec08; /* FIR...
INDIVIDUAL_ID Gebdat Geslacht Overleden Overldat PAT1 15AUG2000 M 0 PAT2 18FEB1989 M 0 PAT3 07NOV2001 M 0 PAT15 08JAN1999 V 0 PAT16 25DEC1997 V 0 PAT17 29SEP1991 V 0
SELECT s.SEQSCHEMA AS schema_name , s.SEQNAME AS sequence_name , s.* FROM SYSCAT.SEQUENCES s WHERE 1=1 /*if isNotEmpty(schemaName) */ AND rtrim(s.SEQSCHEMA) IN /*schemaName*/('%') /*end*/ /*if isNotEmpty(sequenceName) */ AND rtrim(s.SEQNAME) IN /*sequenceName*/('%') /*end*/ AND s.SEQTYPE='S' ORDER...
drop table IF EXISTS t_account; drop table IF EXISTS t_broker; drop table IF EXISTS t_permission; drop table IF EXISTS t_rule_database; drop table IF EXISTS t_rule_engine; drop table IF EXISTS t_rule_engine_condition; drop table IF EXISTS t_topic; drop table IF EXISTS t_topic_historical; drop table IF EXISTS t_timer_sc...
-- bind.test -- -- db eval {DELETE FROM t4} DELETE FROM t4
{DEFAULT @concept_counts_database_schema = scratch.dbo} {DEFAULT @concept_counts_table = concept_counts} {DEFAULT @concept_counts_table_is_temp = FALSE} {DEFAULT @cdm_database_schema = cdm_optum_extended_dod_v1027.dbo} SELECT codeset_id AS concept_set_id, standard_concept.concept_id, standard_concept.concept_name, ...
drop database if exists ctd; create database ctd; \c ctd create table Groups( group_id int, group_no char(4) ); create table Students( student_id int, name varchar(30), group_id int ); -- table constraints alter table Groups add constraint group_id_unique unique(group_id); alter table Student...
SELECT {{ columnNames }} FROM plays WHERE user_id = '{{ userID }}' AND song_id in( SELECT song_id FROM songs WHERE album_id = '{{ albumID }}' );
UPDATE character_quests SET name='Q00227_TestOfTheReformer' WHERE name='227_TestOfReformer';
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Apr 14, 2016 at 05:30 PM -- Server version: 10.1.10-MariaDB -- PHP Version: 7.0.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
<!-- Copyright (c) 2021, salesforce.com, inc. All rights reserved. SPDX-License-Identifier: BSD-3-Clause For full license text, see the LICENSE file in the repo root or https://opensource.org/licenses/BSD-3-Clause --> <?xml version="1.0" encoding="UTF-8"?> <CustomTab xmlns="http://soap.sforce.com/2006/04/metadata"...
SELECT e.DepartmentID, MAX(e.Salary) AS [MinimumSalary] FROM Employees e GROUP BY e.DepartmentID HAVING MAX(e.Salary) NOT BETWEEN 30000 AND 70000
-- CreateTable CREATE TABLE "User" ( "id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, "name" TEXT NOT NULL, "email" TEXT NOT NULL, "createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, "updatedAt" DATETIME NOT NULL ); -- CreateTable CREATE TABLE "Post" ( "id" INTEGER NOT NULL PRIMARY KEY AUT...
CREATE OR REPLACE PACKAGE Trapit_Run AUTHID CURRENT_USER AS /*************************************************************************************************** Name: trapit_run.pks Author: Brendan Furey Date: 08-June-2019 Package body component in the trapit_oracle_tester module...
USE [VipunenTK_SA] GO /****** Object: View [dbo].[v_sa_2_8_Korkeakoulut_opiskelijat] Script Date: 11.12.2019 10:38:59 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [dbo].[v_sa_2_8_Korkeakoulut_opiskelijat] AS -- truncate table vipunentk_dw..sa_2_8_Korkeakoulut_opiskelijat -- insert into...
§# #----------------------------------------# # this eo_goods.tab file was generated by csv2dat # # created by Phystam (@Phystam_hnew) # #------------------------------------------# Passagiere Pasa?eroj Post po?toj None Neuzebla BrownRice Bruna rizo PolishedRice Polurita rizo Coal Karbo Log ?tipo Wood Arba?o Charco...
CREATE PROCEDURE [<3>].[P_ReceiveSubscription] @V_ReceiveTimeout int = 150000 -- After 5 min retry getting message from queue. AS BEGIN DECLARE @V_Cmd NVARCHAR(max); SET ANSI_NULLS ON; SET QUOTED_IDENTIFIER ON; SET NOCOUNT ON; DECLARE @V_DBName SYSNAME = '<0>' ; DECLARE @V_MainName SYSNAME = '<1>' ; DECLARE...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [dbo].[Provider_GetById] @ProviderId INT /* exec dbo.Provider_GetById @ProviderId = 1 */ AS BEGIN SET NOCOUNT ON; SELECT p.* FROM Provider p WHERE p.active = 1 AND p.ProviderID = @ProviderId END
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 21, 2018 at 07:53 AM -- Server version: 10.1.26-MariaDB -- PHP Version: 7.1.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
/* Target Server Type : MYSQL Target Server Version : 50638 File Encoding : 65001 Date: 2018-05-31 18:15:12 */ use `admin-template`; SET FOREIGN_KEY_CHECKS=0; -- ---------------------------- -- Table structure for demo_category -- ---------------------------- DROP TABLE IF EXISTS `demo_category`; CREATE...
-- some setting to make the output less verbose \set QUIET on \set ON_ERROR_STOP on set client_min_messages to warning; -- load some variables from the env \set anonymous `echo $DB_ANON_ROLE` \set authenticator `echo $DB_USER` \set authenticator_pass `echo $DB_PASS` \set jwt_secret `echo $JWT_SECRET` \set quoted_jwt_s...
DROP DATABASE IF EXISTS employee_status; CREATE DATABASE employee_status; USE employee_status; CREATE TABLE department ( id INT NOT NULL AUTO_INCREMENT, dept_name VARCHAR(30) NULL, PRIMARY KEY (id) ); CREATE TABLE role ( id INT NOT NULL AUTO_INCREMENT, title VARCHAR(30) NULL, salary DECIMAL(1...
-- MySQL dump 10.16 Distrib 10.1.26-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: admin_dev -- ------------------------------------------------------ -- Server version 10.1.26-MariaDB-0+deb9u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT = @@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_S...
-- Rampup -- Create Views for common queries -- BQ Views are logical -not materialized -- Underlying query will execute SELECT * FROM [bigq-projects:babynames.babynames] LIMIT 10; SELECT name, count FROM [bigq-projects:babynames.babynames] WHERE gender = 'M' ORDER BY count DESC LIMIT 10; SELECT weight_pounds, s...
-- @testpoint:openGauss关键字unlogged(非保留)同时作为表名和列名带引号,并使用该列结合limit排序,unlogged列的值按字母大小排序且只显示前2条数据 drop table if exists "explain"; create table "explain"( c_id int, c_int int, c_integer integer, c_bool int, c_boolean int, c_bigint integer, c_real real, c_double real, c_decimal decimal(38), c_number number(38), c_numer...
declare l_dgrm_content clob; begin l_dgrm_content := apex_string.join_clob( apex_t_varchar2( q'[<?xml version='1.0' encoding='UTF-8'?>]' ,q'[<bpmn:definitions xmlns:xsi='http://www.w3.org/2001/XMLSchema-instance' xmlns:bpmn='http://www.omg.org/spec/BPMN/20100524/MODEL' xmlns:bpmndi='http://www...
UPDATE user SET pending_roles = roles; UPDATE user SET roles = 'ROLE_USER';
-- phpMyAdmin SQL Dump -- version 4.7.3 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 16, 2017 at 03:38 PM -- Server version: 5.6.35 -- PHP Version: 7.1.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `strata_new` -- -- -------------------------...
/* SQLyog Professional v13.1.7 (64 bit) MySQL - 8.0.21 : Database - asc_world_new ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=...
CREATE TABLE [dbo].[Autores] ( [Id] INT NOT NULL PRIMARY KEY IDENTITY(1,1), [Nome] VARCHAR(100) NOT NULL, [Descricao] VARCHAR(1000) )
-- 1 row per custom event {{ config( materialized='incremental', sql_where='TRUE', unique_key='event_id' ) }} with custom_events as ( select * from {{ ref('parsely_all_events') }} where action not in {{ var('parsely:actions') }} and action is not null ), -- derived fields cu...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- SYNC1 CO Part Table 1 -- CREATE TABLE sync1_co_alter_table_alter_part1 ( id int, rank int, year int, gender char(1), name text, count int ) with ( appendonly='true', orientation='column') DISTRIBUTED BY (id) PARTITION BY LIST (ge...
CREATE TABLE scxa_coords ( experiment_accession VARCHAR(255) NOT NULL, method VARCHAR(255) NOT NULL, cell_id VARCHAR(255) NOT NULL, x DOUBLE PRECISION, y DOUBLE PRECISION, parameterisation VARCHAR(255) NOT NULL, CONSTRAINT scxa_coords_experiment_accession_method_cell_id_params_pk PRI...
# migration-1 contains pre data migration steps SET FOREIGN_KEY_CHECKS = 0; #### # mh_archive_episode -> mh_assets_snapshot ## # drop indices and constraints DROP INDEX IX_mh_archive_episode_mediapackage ON mh_archive_episode; DROP INDEX IX_mh_archive_episode_version ON mh_archive_episode; DROP INDEX IX_mh_archive_ep...
-- @testpoint: 修改default为非空数值 drop table if exists test_modify cascade; create table test_modify( c_id int, c_integer integer, c_real real,c_float float, c_cdouble binary_double, c_decimal decimal(38), c_number number(38),c_number1 number,c_number2 number(20,10),c_numeric numeric(38), c_char char(50) default null, c_va...
SELECT T.Id, CASE WHEN MiddleName IS NULL THEN CONCAT(FirstName, ' ', LastName ) ELSE CONCAT(FirstName, ' ', MiddleName, ' ', LastName ) END AS [Full Name], AC.[Name] AS [From], HC.[Name] AS [To], CASE WHEN CancelDate IS NULL THEN CONCAT(DATEDIFF(DAY, ArrivalDate, ReturnDate),' days') ELSE 'Cancel...
/* Author: Robin Carnow for ticket 643 */ -- used to store json structure of rules send to server from UI ALTER TABLE rule ADD COLUMN condition_json mediumtext; -- add unique constraint to event table ALTER TABLE event ADD CONSTRAINT ux_event_type_ref_obj UNIQUE (event_type_id, related_object_id); -- fix bla...
CREATE TABLE #Codesets ( codeset_id int NOT NULL, concept_id bigint NOT NULL ) ; INSERT INTO #Codesets (codeset_id, concept_id) SELECT 1 as codeset_id, c.concept_id FROM (select distinct I.concept_id FROM ( select concept_id from @vocabulary_database_schema.CONCEPT where concept_id in (37397537,432870) UNION s...
-- -- CREATE_VIEW2 -- -- Enforce use of COMMIT instead of 2PC for temporary objects SET enforce_two_phase_commit TO off; -- tests for temporary views CREATE SCHEMA temp_view_test CREATE TABLE base_table (a int, id int) CREATE TABLE base_table2 (a int, id int); SET search_path TO temp_view_test, public; CREA...
select -- Required Columns arn as resource, case when engine ilike any (array ['%aurora-mysql%', '%aurora-postgres%']) then 'skip' when multi_az then 'ok' else 'alarm' end as status, case when engine ilike any (array ['%aurora-mysql%', '%aurora-postgres%']) then title || ' cluster instance.' ...
-- -- Copyright 2005-2015 The Kuali Foundation -- -- Licensed under the Educational Community License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.opensource.org/licenses/ecl2.php -- -- Unless required by ap...
DROP TABLE IF EXISTS [dbo].[applications] GO CREATE TABLE [dbo].[applications]( [app_modelname] [nchar](150) NOT NULL, [app_publisher] [nvarchar](max) NOT NULL, [app_title] [nvarchar](max) NOT NULL, [app_description] [nvarchar](max) NOT NULL, [app_created] [datetime] NULL, [app_modified] [datetime] NULL, CON...
-- -- /packages/acs-kernel/sql/acs-install.sql -- -- Mount the main site. -- -- @author Peter Marklund -- @creation-date 2000/10/01 -- @cvs-id $Id: acs-install.sql,v 1.28 2011/07/07 10:46:01 gustafn Exp $ -- -- -- procedure inline_0/0 -- CREATE OR REPLACE FUNCTION inline_0( ) RETURNS integer AS $$ DECLARE node_...
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- http://www.apache.org/...
CREATE TABLE `identifiers` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `docset_name` varchar(340) NOT NULL, `docset_filename` varchar(340) NOT NULL, `docset_platform` varchar(340) NOT NULL, `docset_bundle` varchar(340) NOT NULL, `docset_version` varchar(340) NOT NULL, `page_path` longtext NOT NULL, ...
-- file:domain.sql ln:400 expect:true alter table domain_test add column d str_domain2
DROP TABLE PARTICIPANT;
/****** Object: Table [dbo].[T_Protein_Collection_Types] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[T_Protein_Collection_Types]( [Collection_Type_ID] [tinyint] IDENTITY(3,1) NOT NULL, [Type] [varchar](64) COLLATE SQL_Latin1_General_CP1_CI_AS NULL, [Display] [varchar](128) C...
update move set cluster_ini = ? , cluster_end = ? where move_id = ?
select * from mgeometry_columns; CREATE OR REPLACE FUNCTION public.append( mdouble, double precision [], timestamp without time zone []) RETURNS mdouble AS $BODY$ DECLARE f_mgeometry alias for $1; tp alias for $2; timeline alias for $3; f_...
-- create the usa dance schema CREATE SCHEMA IF NOT EXISTS USADANCE;
INSERT INTO Person (ID, name, email, phone) VALUES (1,'david walsh', 'david@wonder.com', '039877809'), (2,'judy garnex', 'judy@wonder.com', '0898778709'), (3,'audi sarnex', 'audi@ponder.com', '0898778709'), (4,'nikita arjun', 'arjun@londer.com', '0898778709'), (5,'paul1 Srenade', 'paul@serenade.com', '9961287...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 05, 2020 at 06:08 AM -- Server version: 10.3.16-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 SET @O...
-- cse.test -- -- execsql { -- SELECT b, typeof(b), upper(b), typeof(b), b FROM t1 -- } SELECT b, typeof(b), upper(b), typeof(b), b FROM t1
-- -- Current Schema CREATE statements go here -- -- \Stationer\Barrel\models\ConfigLog DROP TABLE IF EXISTS `ConfigLog`; CREATE TABLE IF NOT EXISTS `ConfigLog` ( `configlog_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `created_uts` int(10) unsigned NOT NULL DEFAULT 0, `updated_dts` timestamp NOT NULL D...
CREATE INDEX "userid_idx" on requests ("userid");
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!50503 SET NAMES utf8 */; /*!40103 SET @OLD_TIME_ZONE=@@TIME_ZONE */; /*!40103 SET TIME_ZONE='+00:00' */; /*!40014 SE...
-- cena1 = (cena-rab+z_tro) * prep_proc) select sd.proizvod, p.naziv, sd.porez , sd.Kolicina*sd.faktor*sd.K_Robe kol , sd.cena , round(nvl(sd.Kolicina*sd.faktor*sd.K_Robe*sd.Cena*(1-sd.Rabat/100) + round(nvl(Z_TROSKOVI,0),2),0),2) nab_vred , round( ( nvl(sd.koli...
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `estoque` -- -- Estrutura da tabela `clientes` -- CREATE TABLE `clientes` ( `id` int(11) NOT NULL, `cpf` char(11) DEFAULT NULL, `nome` char(45) NOT NULL, `credito_liberado` char(1) NOT NULL, `data_nasc` date DEFA...
-- fts2c.test -- -- execsql { -- SELECT rowid FROM email WHERE email MATCH '"mark susan"' -- } SELECT rowid FROM email WHERE email MATCH '"mark susan"'
#sql("findByUserNameAndStatusUsed") SELECT DISTINCT a.* FROM sys_res a, sys_role b, sys_role_res c, sys_user d, sys_user_role e WHERE a.id = c.res_id AND b.id = c.role_id AND d.id = e.user_id and e.role_id = b.id AND a.`status` = ? AND b.`status` = ? and d.`user...
SET ROLE tinkerbell; CREATE TABLE IF NOT EXISTS hardware ( id UUID UNIQUE , inserted_at TIMESTAMPTZ , deleted_at TIMESTAMPTZ , data JSONB ); CREATE INDEX IF NOT EXISTS idx_id ON hardware (id); CREATE INDEX IF NOT EXISTS idx_deleted_at ON hardware (deleted_at NULLS FIRST); CREATE INDEX IF NOT EXISTS idxgin_type ON...