text
stringlengths
1
1.05M
-- create an enumerated type for the account status CREATE TYPE SUBSCRIBERS_STATUS AS ENUM ( 'CREATED', -- registered but not verified, logins should not be possible 'ACTIVE', -- verified and can actively login 'RESET', -- password reset, no logins possible only pwd reset procedure 'CLOSED' -- closed,...
Create Table salaries( emp_no int not null ,salary int not null ,foreign key (emp_no) references employees(emp_no)); Create Table employees( emp_no int not null primary key , emp_title_id varchar not null , birth_date date not null , first_name varchar not null , last_name varchar not null , sex varchar not ...
CREATE SEQUENCE cem_em_diante START WITH 100; SELECT NEXTVAL('cem_em_diante');
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; CREATE DATABASE IF NOT EXISTS eventusgest; USE eventusgest; CREATE TABLE `eventusgest`.`events` ( `id` int NOT NULL AUTO_INCREMENT , `name` varchar(255) NOT NULL , `startDate` datetime NOT NULL , `endDate` datetime ...
# Wiktionary sxn http://wiktionary.org/ CC BY-SA 02084071-n sxn:lemma asu
DROP TABLE IF EXISTS `category`; CREATE TABLE `category` ( `id` mediumint unsigned not null auto_increment, `name` varchar(250) not null, `type` enum('A''s', 'B''s', 'C''s'), `active` bool not null default 1, `createdAt` datetime not null, `changedAt` timestamp not null, PRIMARY KEY (`id`), ...
CREATE USER [ILR1819ValidationErrors_RW_User] WITH PASSWORD = N'$(RWUserPassword)'; GO GRANT CONNECT TO [ILR1819ValidationErrors_RW_User] GO
alter table TASK_EXECUTION add PARENT_EXECUTION_ID NUMBER;
CREATE TABLE glorp.two ( id int unsigned NOT NULL, PRIMARY KEY (id) ); CREATE TABLE bar.three ( id int unsigned NOT NULL, PRIMARY KEY (id) );
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 02, 2020 at 05:25 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIEN...
alter table t_room_music MODIFY COLUMN url VARCHAR(1024);
/*=========================TAGRUNS=======================*/ CREATE TABLE "TAGRUNS" ( "TAGID" NUMBER(20,0), "RUNNUM" NUMBER(10), "LUMIDATAID" NUMBER(20,0), "TRGDATAID" NUMBER(20,0), "HLTDATAID" NUMBER(20,0), "CREATIONTIME" TIMESTAMP (6), "COMMENT" VARCHAR2(256), CONSTRAINT "TAGRUNS_PK" PRIMARY KEY ("TAGID","RUNNUM") ) P...
------------------------------------------------------------------------------- -- -- Script: latch_where.sql -- Purpose: shows the distribution of latch sleeps by code locations -- For: 7.3 -- -- Copyright: (c) Ixora Pty Ltd -- Author: Steve Adams -- ----------------------------------------------------------...
select charset,lang from db_root where (select 1 from db_root) not in (select 4 from db_root);
/*DROP DATABASE IF EXISTS 'leilao_md';*/ USE leilao_md; DROP TABLE IF EXISTS t014; DROP TABLE IF EXISTS t013; DROP TABLE IF EXISTS t012; DROP TABLE IF EXISTS t011; DROP TABLE IF EXISTS t010; DROP TABLE IF EXISTS t009; DROP TABLE IF EXISTS t008; DROP TABLE IF EXISTS t007; DROP TABLE IF EXISTS t006; DROP T...
use employees_DB; INSERT INTO department VALUES (01, 'Bakery'), (02,'Kitchen'), (03,'FoodTruck'), (04,'FrontEnd'); INSERT INTO role (title, salary, department_id) VALUES ('Bakery Lead', 100000, 1), ('Bakery Assistant', 80000, 1), ('Head Chef', 150000, 2), ('Sous Chef', 120000, 2), ('Cook', 160000, 3), ('Cashieer', ...
-- 1304 Number of persons with at least one measurement occurrence, by measurement_concept_id by calendar year by gender by age decile --insert into @results_schema.heracles_results (cohort_definition_id, analysis_id, stratum_1, stratum_2, stratum_3, stratum_4, count_value) select c1.cohort_definition_id...
CREATE USER 'root'@'%' IDENTIFIED BY '123456'; GRANT All privileges ON *.* TO 'root'@'%'; create database `scaffold_cloud_base`; create database `tx_manager`;
/* Replace with your SQL commands */ DROP TABLE orders;
\c pg_db SET search_path TO base_0_0_1, public; -- Delete -- _____ _ _ -- | __ \ | | | | -- | | | | ___| | ___| |_ ___ -- | | | |/ _ \ |/ _ \ __/ _ \ -- | |__| | __/ | __/ || __ -- |_____/ \___|_|\___|\__\___| CREATE OR REPLACE FUNCTION base_0_0_1.delete(criteria JSONB, owner_key TEXT) RET...
SELECT 1 FROM lagview1; SELECT 1 FROM leadview1;
-- MySQL dump 10.13 Distrib 5.7.12, for Win64 (x86_64) -- -- Host: localhost Database: bnawebsite -- ------------------------------------------------------ -- Server version 5.7.17-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS ...
-- start_ignore SET gp_create_table_random_default_distribution=off; -- end_ignore -- -- SYNC2 HEAP TABLE 1 -- CREATE TABLE sync2_heap_alter_part_exchange_default_part1 ( unique1 int4, unique2 int4 ) partition by range (unique1) ( partition aa start (0) end (500) every (100), default ...
/* Copyright 2019 Google LLC 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 https://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software dis...
INSERT INTO "Core_AppSetting" ("Id", "Key", "Value", "IsVisibleInCommonSettingPage", "Module") VALUES (1, 'Catalog.ProductPageSize', '10', true, 'Catalog'); INSERT INTO "Core_AppSetting" ("Id", "Key", "Value", "IsVisibleInCommonSettingPage", "Module") VALUES (2, 'Global.AssetVersion', '1.0', true, 'Core'); INSERT INTO...
CREATE TABLE `alt_allele` ( `alt_allele_id` int(10) unsigned NOT NULL AUTO_INCREMENT, `alt_allele_group_id` int(10) unsigned NOT NULL, `gene_id` int(10) unsigned NOT NULL, PRIMARY KEY (`alt_allele_id`), KEY `gene_id` (`gene_id`,`alt_allele_group_id`) ) ENGINE=MyISAM DEFAULT CHARSET=latin1; CREATE TABLE `alt_...
-- how many of those search urls aren't wordpress osdd links with t as ( select o.id, o.url, x.* from osdds o, jsonb_to_recordset(o.url_templates::jsonb) as x( default_url text, search_url text, example_url text, responses js...
CREATE TABLE tstsh (id int, t tsvector, d timestamp); \copy tstsh from 'data/tsts.data' CREATE INDEX tstsh_idx ON tstsh USING rum (t rum_tsvector_hash_addon_ops, d) WITH (attach = 'd', to = 't'); INSERT INTO tstsh VALUES (-1, 't1 t2', '2016-05-02 02:24:22.326724'); INSERT INTO tstsh VALUES (-2, 't1 t2 t3', '2016...
Listar el mes (renombrar mes), anio (renombrar ani) y cantidad de ordenes (renombrar cor) realizadas por el cliente con nombre de compania __companyname__ (mes y anio con respecto a la fecha de orden) (por ejemplo, __companyname__ : 'Around the Horn' - Esquema (3 columnas): [ani, cor, mes], 10 renglon(es) (Primer Tu...
---------------------------------------------------------------------------------------- -- -- File name: create_1_hint_sql_profile.sql -- -- Purpose: Prompts for a hint and makes a profile out of it. - -- Author: Kerry Osborne -- -- Usage: This scripts prompts for four values. -- -- profi...
INSERT INTO STAFF (STAFF_ID, FIRST_NAME, LAST_NAME, LEVELS) VALUES ('AB1', 'Anthony', 'Butler', '1'); INSERT INTO STAFF (STAFF_ID, FIRST_NAME, LAST_NAME, LEVELS) VALUES ('AB2', 'Alexis', 'Butler', '3'); INSERT INTO STAFF (STAFF_ID, FIRST_NAME, LAST_NAME, LEVELS) VALUES ('AE1', 'Ava', 'Ellis', '7'); INSERT INTO STAFF...
CREATE TABLE IF NOT EXISTS index_volume_group ( id int(11) NOT NULL AUTO_INCREMENT, version int(11) NOT NULL, create_time_ms bigint(20) NOT NULL, create_user varchar(255) NOT NULL, update_time_ms bigint(20) NOT NULL, update_user varchar(255)...
-- 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. PRINT N'Adding foreign keys to [edfi].[Interventio...
-- DROP FUNCTION getCostPrice(numeric, numeric, numeric); CREATE OR REPLACE FUNCTION getCostPrice ( p_M_Product_ID numeric, p_AD_Client_ID numeric, p_AD_Org_ID numeric ) RETURNS numeric AS $BODY$ SELECT COALESCE(sum(cost.CurrentCostPrice), 0) FROM M_Cost cost INNER JOIN C_AcctSchema acs on acs.C_AcctSchema_ID=...
-- @testpoint:openGauss保留关键字from作为列名 --From作为列名大小写混合(合理报错) drop table if exists test_tbl; create table test_tbl( 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_numeric numeric(38), c_char char(50) defau...
INSERT INTO role (id, name) VALUES (24, 'cofunder');
CREATE TABLE scm_food_service( seq BIGINT AUTO_INCREMENT PRIMARY KEY, /** * type: org.kyojo.schemaorg.m3n4.core.Container$AdditionalType * param: org.kyojo.schemaorg.m3n4.core.Clazz$URL */ additional_type VARCHAR(100) NULL, /** * type: org.kyojo.schemaorg.m3n4.core.Container$AggregateRating * param: o...
-- -- set define off set sqlblanklines on spool KR-Release-3_0_1-3_1_S1-SR-Oracle-Install.log @ORACLE/DML/SR/DML_BS_OBJ_ID_CLEAN.sql @ORACLE/DML/DML_BS1_KREN_PRODCR_T.sql @ORACLE/DML/SR/DML_BS2_KRNS_PARM_DTL_TYP_T.sql @ORACLE/DML/SR/DML_BS2_KRNS_PARM_T.sql @ORACLE/DML/DML_BS3_KRIM_PERM_T.sql @ORACLE/DML/DML_BS4_KRIM_...
DECLARE @StatusParentID uniqueidentifier DECLARE @AccountId uniqueidentifier DECLARE @StatusID uniqueidentifier Select @StatusParentID = ListItemId from ListItem Where ParentID IS NULL And Name = 'Status' Select @StatusID = ListItemId From ListItem Where ParentID = @StatusParentID AND Name = 'Active' Select @AccountI...
create table "tasks" ( "id" SERIAL not null unique, "event" VARCHAR(256) not null default 'nothing', "requested_by" VARCHAR(256) not null default '<unknown>', "affects" TEXT, "deadline" TIMESTAMP not null default NOW() );
SET FOREIGN_KEY_CHECKS = 0; SET GROUP_CONCAT_MAX_LEN=32768; SET @tables = NULL; SELECT GROUP_CONCAT('`', table_name, '`') INTO @tables FROM information_schema.tables WHERE table_schema = (SELECT DATABASE()); SELECT IFNULL(@tables,'dummy') INTO @tables; SET @tables = CONCAT('DROP TABLE IF EXISTS ', @tables); PREPAR...
-- phpMyAdmin SQL Dump -- version 5.2.0 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 02-06-2022 a las 18:14:37 -- Versión del servidor: 10.4.24-MariaDB -- Versión de PHP: 7.4.29 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
/* Copyright 2020 Dirk Strack, Strack Software Development 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/licenses/LICENSE-2.0 Unless required by applicable law or agree...
SELECT acc.location, count(*) FROM site as s, so_user as u1, question as q1, answer as a1, tag as t1, tag_question as tq1, badge as b, account as acc WHERE s.site_id = q1.site_id AND s.site_id = u1.site_id AND s.site_id = a1.site_id AND s.site_id = t1.site_id AND s.site_id = tq1.site_id AND s.site_id = b.site_id AND q1...
SET send_logs_level = 'none'; DROP TABLE IF EXISTS old_style; CREATE TABLE old_style(d Date, x UInt32) ENGINE ReplicatedMergeTree('/clickhouse/tables/test/old_style', 'r1', d, x, 8192); ALTER TABLE old_style ADD COLUMN y UInt32, MODIFY ORDER BY (x, y); -- { serverError 36 } DROP TABLE old_style; DROP TABLE IF EXISTS ...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 13 Sep 2021 pada 16.05 -- Versi server: 10.4.20-MariaDB -- Versi PHP: 7.4.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
-- ============================================================================ -- Copyright (C) 2004-2006 Laurent Destailleur <eldy@users.sourceforge.net> -- -- This program is free software; you can redistribute it and/or modify -- it under the terms of the GNU General Public License as published by -- the Free Softw...
CREATE TABLE `account_groups` ( `id` int(11) NOT NULL auto_increment, `name` varchar(255) default NULL, `is_debit` tinyint(1) default '0', `is_credit` tinyint(1) default '0', PRIMARY KEY (`id`) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; CREATE TABLE `account_types` ( `id` int(11) NOT NULL auto_increment, `na...
INSERT INTO crop (id, crop_name) VALUES ('1', 'Tomatillo'); INSERT INTO crop (id, crop_name) VALUES ('2', 'Paw Paw');
CREATE TABLE parent ( id bigserial NOT NULL ); CREATE TABLE new_parent ( id bigserial NOT NULL ); CREATE TABLE child ( field1 polygon ) INHERITS (new_parent);
with prs_latest as ( select sub.id, sub.event_id, sub.created_at, sub.merged_at, sub.dup_repo_id, sub.dup_repo_name from ( select id, event_id, created_at, merged_at, dup_repo_id, dup_repo_name, row_number() over (partition by id order by updated_at desc, ...
-- AlterTable ALTER TABLE "Post" ADD COLUMN "content" JSONB, ADD COLUMN "intro" JSONB;
SELECT * FROM (SELECT qview1."unique2" AS t0v0, qview1."evenonepercent" AS t1v0, qview1."stringu1" AS t1v1, qview1."stringu2" AS t1v2, qview2."evenonepercent" AS t2v0, qview2."stringu1" AS t2v1, qview2."stringu2" AS t2v2 FROM "public"."t4_1m" qview1, "public"."t5_1m" qview2 WHERE ((qview1."onepercent" >= 0) AND (...
create or replace package body test_tfs_junit_reporter as procedure crate_a_test_package is pragma autonomous_transaction; begin execute immediate q'[create or replace package check_junit_reporting is --%suite(A suite with <tag>) --%test(A test with <tag>) procedure test_do_stuff; ...
-- @testpoint: 测试新名称缺省与否对修改哈希索引的影响,部分step合理报错 --创建表 drop table if exists t_hash_index_0032; create table t_hash_index_0032(id01 int,id02 char) with (orientation=row); --创建哈希索引 create index i_hash_index_0032_01 on t_hash_index_0032 using hash(id01); create index i_hash_index_0032_02 on t_hash_index_0032 using hash(id0...
/* 開発用にデータ削除を追加 : リリース時は消す */ DELETE FROM manga_table; DELETE FROM frame_table; DELETE FROM theme_table; INSERT INTO manga_table (manga_ID,theme_id,status) VALUES(1,1,4); INSERT INTO manga_table (manga_ID,theme_id,status) VALUES(2,3,1); INSERT INTO manga_table (manga_ID,theme_id,status) VALUES(3,2,2); ...
-- file:plpgsql.sql ln:2078 expect:false return n
BEGIN; CREATE TABLE geo ( zip VARCHAR(5) , city VARCHAR(64) , state CHAR(2) , country VARCHAR(64) , timezone VARCHAR(64) , latitude DOUBLE , longitude DOUBLE ); CREATE INDEX idx_zip ON geo (zip); CREATE INDEX idx_lat_long ON geo (latitude, longitude); COMMIT; /* zip,city,state,country,timezone...
DROP VIEW stock_missing_products_including_opened; CREATE VIEW stock_missing_products_including_opened AS /* This is basically the same view as stock_missing_products, but the column "amount_missing" includes opened amounts */ -- Products WITHOUT sub products where the amount of the sub products SHOULD NOT be cumulat...
----------------------------------------------------------------------------------------------------------------------------------------------------------------- -- 1. TẠO CƠ SỞ DỮ LIỆU -------------------------------------------------------------------------------------------------------------------------------------...
{% test positive_values(model, column_name) %} select * from {{ model }} where {{ column_name }} < 0 {% endtest %}
-- @testpoint: opengauss逻辑操作符OR,与AND运算优先级 select 0 and 1 or 1 and 0; select 0 and 1 or 1 and 1;
{%- test expect_table_columns_to_match_ordered_list(model, column_list, transform="upper") -%} {%- if execute -%} {%- set column_list = column_list | map(transform) | list -%} {%- set relation_column_names = dbt_expectations._get_column_list(model, transform) -%} {%- set matching_columns = dbt_expectations....
CREATE TABLE #Codesets ( codeset_id int NOT NULL, concept_id bigint NOT NULL ) ; INSERT INTO #Codesets (codeset_id, concept_id) SELECT 0 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 (9201) UNION select c.con...
CALL createUser('user1', 'pass1', @user1)// CALL createUser('user2', 'pass2', @user2)// CALL createUser('user3', 'pass3', @user3)// CALL createEmail('user1@example.com', @user1, @email1)// CALL createEmail('user21@example.com', @user2, @email21)// CALL createEmail('user22@example.com', @user2, @email22)// CALL createE...
-- SETTINGS SET @iCategoryId = (SELECT `id` FROM `sys_options_categories` WHERE `name`='bx_groups' LIMIT 1); DELETE FROM `sys_options` WHERE `name` IN ('bx_groups_per_page_browse'); INSERT INTO `sys_options` (`name`, `value`, `category_id`, `caption`, `type`, `extra`, `check`, `check_error`, `order`) VALUES ('bx_groups...
CREATE TABLE IF NOT EXISTS users ( user VARCHAR(100) NOT NULL , pass VARCHAR(100) NOT NULL , PRIMARY KEY(user) ); INSERT INTO users VALUES ('wildg', '12345') , ('gwild37', 'password') , ('gabewild37', '12301998') , ('gdude37', '43210') ; CREATE TABLE IF NOT EXISTS users_secure ( us...
create table t (a char(1), b char(1) not null);
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: fatebd -- ------------------------------------------------------ -- Server version 5.5.5-10.1.32-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_R...
create table R_META_ACCESS ( meta_id INT64TYPE not null, object_id INT64TYPE not null, user_id INT64TYPE not null, access_type_id INT64TYPE not null, create_ts varchar(32), modify_ts varchar(32)) ;
-- Problem 1. Create Table Logs CREATE TABLE Logs ( LogID INT PRIMARY KEY IDENTITY, AccountID INT FOREIGN KEY REFERENCES Accounts(Id), OldSum MONEY NOT NULL, NewSum MONEY NOT NULL ) CREATE TRIGGER tr_AccountsUpdate ON Accounts FOR UPDATE AS INSERT INTO Logs SELECT inserted.Id, ...
CREATE TRIGGER unit_insert_log ON a_unit FOR INSERT AS BEGIN INSERT INTO a_UnitLog( userName, logDate, SerialNumber) VALUES( USER, GETDATE(), (SELECT serialNumber from INSERTED) ) END GO CREATE TRIGGER trgAfterUpdate ON [dbo].[a_TestForm] FOR UPDATE AS declare @empname varchar(...
# Time: O(n) # Space: O(n) SELECT actor_id, director_id FROM ActorDirector GROUP BY actor_id, director_id HAVING COUNT(1) >= 3 ORDER BY NULL
-- phpMyAdmin SQL Dump -- version 4.6.6 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 18-10-2017 a las 16:40:04 -- Versión del servidor: 10.1.28-MariaDB -- Versión de PHP: 7.0.24 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
BEGIN; DROP INDEX tokentransfer_protocolid; DROP INDEX tokenapproval_protocolid; -- De-duplicate existing approvals by adding the pool seq number to the protocol_id UPDATE tokenapproval SET protocol_id = (protocol_id || '/' || pool.seq) FROM (SELECT seq, id FROM tokenpool) AS pool WHERE length(protocol_id) = 26 ...
CREATE TABLE host_dhcp6 ( ip INET NOT NULL, mac TEXT NOT NULL CHECK (mac ~ '^([0-9a-f]{2}:){5}[0-9a-f]{2}$'), active BOOLEAN NOT NULL DEFAULT true, date TIMESTAMPTZ(0) NOT NULL DEFAULT now(), UNIQUE (ip, mac) ); CREATE TABLE host_ipv...
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE users ( id SERIAL PRIMARY KEY, email TEXT NOT NULL UNIQUE, password TEXT NOT NULL, created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ); CREATE TABLE websites ( id SERIAL PRIMARY KEY, user_id SERIAL references users(id) NOT NULL, domain TEXT...
-- This file and its contents are licensed under the Apache License 2.0. -- Please see the included NOTICE for copyright information and -- LICENSE-APACHE for a copy of the license. SET LOCAL search_path TO pg_catalog, pg_temp; CREATE SCHEMA _timescaledb_catalog; CREATE SCHEMA _timescaledb_internal; CREATE SCHEMA _ti...
-- 1823 Number of measurement records, by measurement_concept_id and operator_concept_id --HINT DISTRIBUTE_ON_KEY(stratum_1) select 1823 AS analysis_id, cast(measurement_concept_id AS varchar(255)) AS stratum_1, cast(operator_concept_id AS varchar(255)) AS stratum_2, cast(null as varchar(255)) as strat...
/* California Population Projections contains gender population by county. Create a search that will return a list of the male population and female population for each county for the year 2014. */ select `County Name` as "Year: 2014", sum(secondTable.population) as 'Male', Female_Pop as 'Female' fr...
-- BudgetAuthorityUnobligatedBalanceBroughtForward_FYB = value for GTAS SF 133 line #2490 from the -- end of the prior fiscal year. WITH appropriation_a34_{0} AS (SELECT row_number, budget_authority_unobligat_fyb, tas, submission_id FROM appropriation WHERE submission_id = {0}) SELEC...
ALTER TABLE hydra_client ADD audience TEXT;
INSERT INTO address( address_id, city, street, building, post_code ) VALUES( %s, %s, %s, %s, %s );
create table release_dependency_management_Foo ( uuid_ VARCHAR(75) null, fooId LONG not null primary key, groupId LONG, companyId LONG, userId LONG, userName VARCHAR(75) null, createDate DATE null, modifiedDate DATE null, field1 VARCHAR(75) null, field2 BOOLEAN, field3 INTEGER, field4 DATE null, field5 VAR...
/** delete from realTimeAlertProfile; delete from medicalDeviceRegistrationProfile; delete from riskAlertProfile; delete from dayOverDayReportProfile; delete from frequencyAssessmentProfile; delete from featureProfile; delete from intensiveManagementProtocol; call createImpWithStandardFeaturesProcedure('IMP Name'); --...
SELECT "foo""bar" FROM t
select o_totalprice, o_orderdate, o_orderpriority from `filter/pushdown/varchar_decimal/new_metadata_file/1.16.0/orders` where o_totalprice < 1000 and o_orderpriority like '%1-URGENT%';
insert into test1 select 'a'; insert into test1 select 'abc'; insert into test1 select 'abcde'; select * from test1;
select /* pgwatch2_generated */ (extract(epoch from now()) * 1e9)::int8 as epoch_ns, 'default_public_schema_privs'::text as tag_reco_topic, nspname::text as tag_object_name, 'REVOKE CREATE ON SCHEMA public FROM PUBLIC;'::text as recommendation, 'only authorized users should be allowed to create new objects'::...
--+ holdcas on; set names utf8; drop table if exists t; create table t (i int, s string collate utf8_de_exp_ai_ci); insert into t values (1,'Ae_oE_Ue _ß'); insert into t values (2,'AE_OE_UE_SS'); insert into t values (3,'Äx_ö_ü_ss'); insert into t values (4,'ä_Ö_Ü_ß '); select i,s,replace (s, 'ae','xy') from t order ...
-- {"id":100,"name":"lb james阿道夫","money":293.899778,"dateone":"2020-07-30 10:08:22","age":"33","datethree":"2020-07-30 10:08:22.123","datesix":"2020-07-30 10:08:22.123456","datenigth":"2020-07-30 10:08:22.123456789","dtdate":"2020-07-30","dttime":"10:08:22"} CREATE TABLE source_ods_fact_user_ippv ( id INT,...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Feb 29, 2020 at 08:31 AM -- Server version: 5.7.24 -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CH...
CREATE SEQUENCE public.testtable2_sequence_seq START WITH 1 INCREMENT BY 1 NO MAXVALUE NO MINVALUE CACHE 1;
-- boundary3.test -- -- db eval { -- SELECT t1.a FROM t1 JOIN t2 ON t1.rowid >= t2.r -- WHERE t2.a=62 -- ORDER BY x -- } SELECT t1.a FROM t1 JOIN t2 ON t1.rowid >= t2.r WHERE t2.a=62 ORDER BY x
select * from mcapi_bots where owner_most = ? and owner_least = ? order by id limit ? offset ?;
-- Database: informix -- Change Parameter: columnName=id -- Change Parameter: newDataType=int -- Change Parameter: tableName=person ALTER TABLE person MODIFY id INT;
000 001 002 003 004 005 006 007 008 009 010 011 012 013 014 015 016 017 018 019 020 021 022 023 024 025 026 027 028 029 030 031 032 033 034 035 036 037 038 039 040 041 042 043 044 045 046 047 048 049 050 051 052 053 054 055 056 057 058 059 060 061 062 063 064 065 066 067 068 069 070 071 072 073 074 075 076 077 078 07...
IF OBJECT_ID('dbo.sp_Blitz') IS NULL EXEC ('CREATE PROCEDURE dbo.sp_Blitz AS RETURN 0;'); GO ALTER PROCEDURE [dbo].[sp_Blitz] @Help TINYINT = 0 , @CheckUserDatabaseObjects TINYINT = 1 , @CheckProcedureCache TINYINT = 0 , @OutputType VARCHAR(20) = 'TABLE' , @OutputProcedureCache TINYINT =...
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: mn_influence -- ------------------------------------------------------ -- Server version 5.5.5-10.1.21-MariaDB /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER...
CREATE TABLE IF NOT EXISTS `white_star_weights` ( `userId` varchar(255) NOT NULL, `username` varchar(255) NOT NULL, `weight` varchar(255) NULL DEFAULT NULL, PRIMARY KEY (`userId`), UNIQUE INDEX `unique_userId` (`userId`) );