text
stringlengths
1
1.05M
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 04, 2021 at 02:59 PM -- Server version: 10.4.20-MariaDB -- PHP Version: 7.4.22 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
create schema db_storage; use db_storage; CREATE TABLE `storage_tbl` ( `id` int(11) NOT NULL AUTO_INCREMENT, `commodity_code` varchar(255) DEFAULT NULL, `count` int(11) DEFAULT '0', PRIMARY KEY (`id`), UNIQUE KEY `commodity_code` (`commodity_code`) ) ENGINE=InnoDB AUTO_INCREMENT=2 DEFAULT CHAR...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1:3306 -- Thời gian đã tạo: Th12 19, 2019 lúc 12:57 PM -- Phiên bản máy phục vụ: 5.7.26 -- Phiên bản PHP: 7.2.18 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
SET VERIFY OFF connect "SYS"/"&&sysPassword" as SYSDBA set echo on spool /tmp/orbooks/scripts/lockAccount.log append BEGIN FOR item IN ( SELECT USERNAME, AUTHENTICATION_TYPE FROM DBA_USERS WHERE ACCOUNT_STATUS IN ('OPEN', 'LOCKED', 'EXPIRED') AND USERNAME NOT IN ( 'SYS','SYSTEM') ) LOOP IF item.AUTHENTICATION_TYP...
SELECT * FROM Products WHERE Price BETWEEN 10 AND 20 AND NOT CategoryID IN (1,2,3);
ALTER TABLE identity_cgvu MODIFY COLUMN `file` varchar(128) NOT NULL ;
--Data Organizations Changes UPDATE Core.Organizations_dim SET State = 'UT'; ALTER TABLE Core.Organizations_dim ALTER COLUMN State nvarchar(2) NOT NULL;
-- -- Copyright 2021 The Android Open Source Project -- -- 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 applica...
DROP SEQUENCE IF EXISTS public.account_alert_parameters_id_seq CASCADE; DROP TABLE IF EXISTS public.account_alert_parameters CASCADE; CREATE SEQUENCE public.account_alert_parameters_id_seq MINVALUE 1 START 1 INCREMENT 1; CREATE TABLE public.account_alert_parameters ( id integer PRIMARY KEY DEFAULT nextval('acc...
select 1 as id union all select * from {{ ref('node_0') }} union all select * from {{ ref('node_3') }} union all select * from {{ ref('node_18') }} union all select * from {{ ref('node_34') }} union all select * from {{ ref('node_162') }}
CREATE TABLE [dbo].[SyndicatedBlogs] ( [Id] [int] NOT NULL IDENTITY(1, 1), [BlogId] [int] NOT NULL, [FeedUrl] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL, [Enabled] [bit] NOT NULL, [AuthorEmailAddress] [nvarchar] (255) COLLATE SQL_Latin1_General_CP1_CI_AS NOT NULL ) ON [PRIMARY] GO ALTER TABLE [dbo]....
-- Strings. SELECT '""'::jsonb; -- OK. SELECT $$''$$::jsonb; -- ERROR, single quotes are not allowed SELECT '"abc"'::jsonb; -- OK SELECT '"abc'::jsonb; -- ERROR, quotes not closed SELECT '"abc def"'::jsonb; -- ERROR, unescaped newline in string constant SELECT '"\n\"\\"'::jsonb; -- OK, legal escapes SELEC...
DROP DATABASE IF EXISTS fame; CREATE DATABASE fame CHARACTER SET utf8mb4 COLLATE utf8mb4_bin; USE fame; CREATE TABLE sys_option ( id INT PRIMARY KEY NOT NULL AUTO_INCREMENT, created TIMESTAMP NOT NULL DEFAULT current_timestamp, modified TIMESTAMP NOT NULL DEFAULT current_timestamp ON UPDATE curre...
CREATE SCHEMA security; \i 0001/security/profile/table.sql \i 0001/security/session/table.sql \i 0001/security/password/table.sql
-- MySQL dump 10.13 Distrib 5.7.29, for macos10.14 (x86_64) -- -- Host: 127.0.0.1 Database: pop_test -- ------------------------------------------------------ -- Server version 5.7.31 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
CREATE TABLE my_table ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(255) NOT NULL, PRIMARY KEY (id) ) ENGINE=InnoDB DEFAULT CHARSET=utf8; INSERT INTO my_table VALUES (1, 'entry 1'), (2, 'entry 2');
-- ###################################################################### -- # File : meta.sql -- # Desc : Pigsty MetaDB baseline -- # Ctime : 2021-04-21 -- # Mtime : 2021-04-29 -- # Copyright (C) 2018-2021 Ruohang Feng -- ###################################################################### ...
USE [VipunenTK] GO ALTER TABLE [dbo].[f_keskeyttaneet] DROP CONSTRAINT IF EXISTS [FK_f_keskeyttaneet_ika5v] GO ALTER TABLE [dbo].[f_keskeyttaneet] DROP CONSTRAINT IF EXISTS [FK_f_keskeyttaneet_ika1v] GO ALTER TABLE [dbo].[f_keskeyttaneet] DROP CONSTRAINT IF EXISTS [FK_f_keskeyttaneet_d_valtio_eumaa] GO ALTER TABLE ...
-- -- PostgreSQL database dump -- -- Dumped from database version 13.5 (Debian 13.5-0+deb11u1) -- Dumped by pg_dump version 13.5 (Debian 13.5-0+deb11u1) SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SEL...
SET FOREIGN_KEY_CHECKS=0; SET SESSION sql_mode='NO_AUTO_VALUE_ON_ZERO'; SET sql_mode = 'PIPES_AS_CONCAT'; SET @dcbaseurl = 'https://localhost:8443'; SET @tpbaseurl = 'https://localhost:8444'; SET @aiIndex = '4'; SET @clientId = 'surface_tp'; USE `datacustodian`; /* Add application_information */ INSERT INTO `applic...
/*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='NO_AUTO_VALUE_ON_ZERO' */; /*!40111 SET @OLD_SQL_NOTES=@@S...
select count(distinct o.c_integer), count(distinct r.c_integer), count(distinct o.c_bigint), count(distinct r.c_bigint), count(distinct o.c_float), count(distinct r.c_float), count(distinct o.c_double), count(distinct r.c_double) from optional_...
-- boundary3.test -- -- db eval { -- SELECT t1.a FROM t1 JOIN t2 ON t1.rowid < t2.r -- WHERE t2.a=55 -- ORDER BY x -- } SELECT t1.a FROM t1 JOIN t2 ON t1.rowid < t2.r WHERE t2.a=55 ORDER BY x
SELECT tab0.v0 AS v0 , tab1.v2 AS v2 FROM (SELECT sub AS v0 FROM og__tag$$1$$ WHERE obj = 'wsdbm:Topic165' ) tab0 JOIN (SELECT sub AS v0 , obj AS v2 FROM sorg__caption$$2$$ ) tab1 ON(tab0.v0=tab1.v0) ++++++Tables Statistic sorg__caption$$2$$ 1 SS sorg__caption/og__tag VP <sorg__caption> 225 S...
Select WorkflowType, WorkflowName, Overview.OverrideName, OverrideableParameterName, OverrideValue, OverrideDescription, OverrideEnforced, OverrideScope, TargetedInstanceName, TargetedInstancePath, ORMPName, ORMPDescription, ORMPSealed, MPTargetClass, TargetManagementPack, ModuleOverrideId, ORMPLanguage, OverrideLastM...
-- item_and_item_kit_favorites -- ALTER TABLE phppos_items ADD COLUMN `is_favorite` INT(1) DEFAULT '0'; ALTER TABLE phppos_items ADD INDEX is_favorite_index (`is_favorite`); ALTER TABLE phppos_item_kits ADD COLUMN `is_favorite` INT(1) DEFAULT '0'; ALTER TABLE phppos_item_kits ADD INDEX is_favorite_index (`is_favorit...
-- Copyright 2004-2019 H2 Group. Multiple-Licensed under the MPL 2.0, -- and the EPL 1.0 (http://h2database.com/html/license.html). -- Initial Developer: H2 Group -- create memory table test(id int primary key, name varchar(255)); > ok insert into test values(1, 'Hello'); > update count: 1 select length(null) en, le...
/* */ USE [admindb]; GO IF OBJECT_ID('dbo.translate_cpu_counters','P') IS NOT NULL DROP PROC dbo.[translate_cpu_counters]; GO CREATE PROC dbo.[translate_cpu_counters] @SourceTable sysname, @TargetTable sysname, @OverwriteTarget bit = 0, @PrintOnly bit = 0 AS SET NOCOUNT ON; -- {copyrig...
SELECT title FROM movies JOIN stars ON movies.id = stars.movie_id WHERE person_id = (SELECT id from people WHERE name = "Helena Bonham Carter") INTERSECT SELECT title FROM movies JOIN stars ON movies.id = stars.movie_id AND person_id = (SELECT id from people WHERE name = "Johnny Depp");
{%- macro eff_sat(src_pk, src_dfk, src_sfk, src_start_date, src_end_date, src_eff, src_ldts, src_source, source_model) -%} {{- adapter.dispatch('eff_sat', 'dbtvault')(src_pk=src_pk, src_dfk=src_dfk, src_sfk=src_sfk, src_start_date=src_start_date, src_end_date=src_end...
-- it needs to be a date. otherwise we can't change it in the UI update c_tax set validto='9999-12-31 00:00:00.000000' where validto='9999-12-31 23:59:59.000000';
-- -- PostgreSQL database dump -- -- Dumped from database version 10.5 -- Dumped by pg_dump version 10.5 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', fal...
#standardSQL # 11_04b: Manifests that are not JSON parsable CREATE TEMPORARY FUNCTION canParseManifest(manifest STRING) RETURNS BOOLEAN LANGUAGE js AS ''' try { JSON.parse(manifest); return true; } catch (e) { return false; } '''; SELECT client, canParseManifest(body) AS can_parse, COUNT(DISTINCT page) AS ...
SELECT CONCAT(m.FirstName, ' ', m.LastName) AS Mechanic, AVG(DATEDIFF(DAY, j.IssueDate, j.FinishDate)) AS [Average Days] FROM Mechanics AS M JOIN Jobs AS J ON j.MechanicId = m.MechanicId WHERE j.[Status] = 'Finished' GROUP BY m.MechanicId, m.FirstName, m.LastName ORDER BY m.Mecha...
SELECT concat(quote_ident(nspname), '.', quote_ident(collname)) AS name FROM pg_collation c, pg_namespace n WHERE c.collnamespace = n.oid AND n.oid = {{ scid }}::oid AND c.oid = {{ coid }}::oid;
INSERT HelloWorld (Declaration) VALUES ('They''re all good dogs brent'), ('I am a bear'), ('You cannot step in the same river twice');
# # NMS_HumanoidPheno # ;Start 1,[Size], [Body], [Color] beings. They wield [Weapons] and [Behave]. They also [Appear]. ;Size 1,short 1,man-sized 1,dwarfen 1,large 1,tall 1,very tall 1,gigantic 1,huge ;Body 1,skeletal 1,gaunt 1,thin 1,gangly 1,burly 1,stout 1,fat 1,corpulent 1,rotund 1,mu...
-- shows all listeners by server, name, environment and component -- useful for seeing if they are all tied back to a component name select distinct s.server_name , pc.name , e.environment_name , pc.component_id from dbo.t_server s INNER JOIN dbo.t_environment e ON s.environment_id = e.envi...
# --- !Ups -- Due to a bug where mapper was being set as reviewer during a review revision, -- we need to fix these task reviews by pulling the correct requested_by from -- the most recent task_review_history entry. WITH wrong_reviews AS ( SELECT tr.id AS reviewId, tr.task_id AS taskId, th.requested_by AS requestedB...
CREATE TABLE `admissionentrancedata` ( `id` int(20) NOT NULL, `Study_Center` varchar(255) NOT NULL, `Programme_Applied_for` varchar(255) NOT NULL, `Branch_For_Graduate_Courses` varchar(255) NOT NULL, `Branch_Applied_for_BA-Hons_Programmes` varchar(255) NOT NULL, `Branch_Applied_for_BCom_Hons_Programmes` var...
-- MySQL dump 10.13 Distrib 5.7.21, for Linux (x86_64) -- -- Host: localhost Database: FYP Data -- ------------------------------------------------------ -- Server version 5.7.21-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_S...
CREATE PROC usp_PlaceOrder @JobId INT, @SerialNumber VARCHAR(50), @Quantity INT AS BEGIN IF (@Quantity <= 0) BEGIN RAISERROR('Part quantity must be more than zero!', 16,1); RETURN; END DECLARE @JobIdSelected INT = (SELECT JobId FROM Jobs WHERE JobId = @JobId) IF (@JobIdSelected IS NULL) BEGIN RAISERROR('...
-- @testpoint:explain plan语句结合in子查询使用 -- @modify at: 2020-11-12 --建表 drop table if exists explain_t1; drop table if exists explain_t2; create table explain_t1(a int, b int); create table explain_t2(f1 int,f2 int); --使用explain plan语句,返回EXPLAIN SUCCESS explain plan for select a from explain_t1 where a in (select f1 from ...
update test_cs.test_split set nval = 0; SET @s := ' split(test_cs.test_split: update test_cs.test_split set nval = 1) { } split(test_cs.test_split: update test_cs.test_split set nval = nval + 17) { } '; call run(@s); select distinct nval = 18 from test_cs.test_split;
INSERT INTO tb_user (name, email, password) VALUES ('Alex Brown', 'alex@gmail.com', '$2a$10$eACCYoNOHEqXve8aIWT8Nu3PkMXWBaOxJ9aORUYzfMQCbVBIhZ8tG'); INSERT INTO tb_user (name, email, password) VALUES ('Bob Fisher', 'bob@gmail.com', '$2a$10$eACCYoNOHEqXve8aIWT8Nu3PkMXWBaOxJ9aORUYzfMQCbVBIhZ8tG'); INSERT INTO tb_user (n...
DROP DATABASE IF EXISTS employee_db; CREATE DATABASE employee_db; USE employee_db; CREATE TABLE departments ( id INT NOT NULL AUTO_INCREMENT, department VARCHAR(30) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE roles ( id INT NOT NULL AUTO_INCREMENT, title VARCHAR(30) NOT NULL, salary DECIMAL NOT...
-- @testpoint:openGauss关键字nclob(非保留),作为列名带引号并且删除时使用该列,建表成功,nclob列值是'hello'的删除成功 drop table if exists explain_test; create table explain_test( 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 nume...
delimiter // DROP PROCEDURE IF EXISTS updateUserProcedure; // CREATE PROCEDURE updateUserProcedure ( in _login varchar(255), in _handle varchar(255), in _diagnosisType INT, in _timeZoneId varchar(255), in _pin varchar(255) ) MAIN: BEGIN DECLARE _userId int; DECLARE _moduleId int; select 'Parameters:',_login, _handle,...
/* * Copyright (c) 2018 LabKey Corporation * * 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...
--[er]test abs function with char, nchar type as its operand select abs('char') from db_root; select abs(n'char') from db_root;
create table Movie ( mID integer primary key, title text, year integer, director text ); create table Reviewer ( rID integer primary key, name text ); create table Rating ( rID integer, mID integer, start integer, ratingDate text, constraint fk_col foreign key (rID) references R...
PRAGMA foreign_keys=OFF; BEGIN TRANSACTION; CREATE TABLE oauth_access_tokens ( access_token VARCHAR(40) NOT NULL, client_id VARCHAR(80) NOT NULL, user_id VARCHAR(255), expires TIMESTAMP NOT NULL, scope VARCHAR(2000), CONSTRAINT access_token_pk PRIMARY KEY (access_token) ); INSERT INTO "oauth_acc...
-- FUNCTION: public.Trig1_$%{}[]()&*^!@"'`\/#() -- DROP FUNCTION public."Trig1_$%{}[]()&*^!@""'`\/#"(); CREATE FUNCTION public."Trig1_$%{}[]()&*^!@""'`\/#"() RETURNS trigger LANGUAGE 'plpgsql' COST 123 IMMUTABLE LEAKPROOF STRICT SECURITY DEFINER SET application_name='appname2' SET search_path=...
-- -- Copyright 2017 Goldman Sachs. -- 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 agreed...
1001000235.G10 1001000174.B1 1001000177.C5 1001000182.H4 1001000175.A2 1001000230.B11 1001000237.E9 1001000173.E10 1001000241.E7 1001000249.A3 1001000179.A7 1001000247.F11 1001000240.D9 1001000178.G5 1001000249.E3 1001000174.H6 1001000181.F8 1001000177.A10 1001000235.D2 1001000240.G10 1001000248.E7 1001000012.B6 100100...
Create Procedure dbo.P1 @param1 int AS
-- -- Copyright 2021-2022 the original author or authors. -- -- 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 -- -- Unles...
-- -- Estrutura da tabela `agenda` -- DROP TABLE IF EXISTS `agenda`; CREATE TABLE IF NOT EXISTS `agenda` ( `codigo` int(11) NOT NULL AUTO_INCREMENT, `nome` varchar(80) NOT NULL, `endereco` varchar(80) NOT NULL, `complemento` varchar(60) NOT NULL, `bairro` varchar(60) NOT NULL, `cidade` varchar(40) NOT NULL...
-- SETTINGS SET @iTypeId = (SELECT `ID` FROM `sys_options_types` WHERE `name` = 'bx_events' LIMIT 1); SET @iCategId = (SELECT `ID` FROM `sys_options_categories` WHERE `type_id` = @iTypeId LIMIT 1); DELETE FROM `sys_options` WHERE `category_id` = @iCategId; DELETE FROM `sys_options_categories` WHERE `type_id` = @iTypeI...
-- -- Copyright 2009-2016 the original author or authors. -- -- 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 -- -- Unles...
SELECT DISTINCT council_sablefish_management_area, council_management_area, fmp_management_area, geographic_area_name, exploitable, council_management_area FROM afsc.lls_area_view WHERE exploitable = 1 AND sex IN (1, 2)
-- start_ignore create language plpythonu; -- end_ignore create or replace function pg_ctl(datadir text, command text, port int, contentid int) returns text as $$ import subprocess cmd = 'pg_ctl -D %s ' % datadir if command in ('stop', 'restart'): cmd = cmd + '-w -m immediate %s' % command eli...
/* SQLyog Ultimate v13.1.1 (64 bit) MySQL - 5.7.23-0ubuntu0.16.04.1 : Database - fish_dev ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL_MODE=@@...
SELECT "i_brand_id" "brand_id" , "i_brand" "brand" , "i_manufact_id" , "i_manufact" , "sum"("ss_ext_sales_price") "ext_price" FROM date_dim , store_sales , item , customer , customer_address , store WHERE ("d_date_sk" = "ss_sold_date_sk") AND ("ss_item_sk" = "i_item_sk") AND ("i_manager_id" = 8) AND ("d_mo...
create or replace function notification.fetch() returns table ( build_id int, build_status postgres_ci.status, project_id int, project_name text, branch text, build_error text, build_created_at timestamptz, build_started_at tim...
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...
/* Warnings: - You are about to drop the column `permissionId` on the `UserPermission` table. All the data in the column will be lost. - You are about to drop the `Permission` table. If the table is not empty, all the data it contains will be lost. - Added the required column `permission` to the `UserPermissio...
select customer_gateway_id, akas, tags, title from aws.aws_vpc_customer_gateway where customer_gateway_id = '{{ output.resource_id.value }}'
-- CIFO Vallès, CIFO La Violeta -- Robert Sallent -- EJERCICIO 2: MASCOTAS -- Última revisión 20/10/2020 -- elimina la base de datos mascota si existe DROP DATABASE IF EXISTS mascotas; -- crea la base de datos mascotas CREATE DATABASE mascotas DEFAULT CHARACTER SET utf8 COLLATE utf8_spanish_ci; -- usa la base de d...
SELECT "Hatred_1"."State " AS "State ", SUM(1) AS "TEMP(Calculation_251075720248410112)(2109769841)(0)", CAST(MAX("Hatred_1"."StatePopNum") AS BIGINT) AS "TEMP(Calculation_251075720248410112)(3451088709)(0)", CAST(MIN("Hatred_1"."StatePopNum") AS BIGINT) AS "TEMP(Calculation_251075720248410112)(3855970114)(0)" FR...
/* * DB Script Tool * SQLite - 2019-07-27 11:03:25 * S * * SQL COMMANDS FOR S DATABASE */ /* ----------------------------------- * Select command - S.S */ SELECT S FROM S WHERE S=? ORDER BY S ASC; /* * Insert command - S.S */ INSERT INTO S() VALUES(); /* * Up...
/* * INSERÇÕES NA BASE DE DADOS */ use clinica_medica; -- inserções na relação Especialidades insert into Especialidade(CodEspec, NomeEspec, Descricao) values (0001, 'Clínico Geral', 'Consultas, exames, prescricoes.'); insert into Especialidade(CodEspec, NomeEspec, Descricao) values (0002, 'Pediatria', 'Ass...
-- fts3an.test -- -- db eval { -- BEGIN; -- CREATE VIRTUAL TABLE t3 USING fts3(c); -- -- INSERT INTO t3(rowid, c) VALUES(1, text); -- INSERT INTO t3(rowid, c) VALUES(2, 'Another lovely row'); -- } BEGIN; CREATE VIRTUAL TABLE t3 USING fts3(c); INSERT INTO t3(rowid, c) VALUES(1, text); INSERT INTO t3(rowid, c) ...
SELECT `Business Level 2`, `Business Sub Level 3`, `Risk Type`,`Date`, sum(Exposure) as `Exposure Sum`, null as 'Difference', null as 'Alert' FROM demo.bankdata group by `Business Level 2`, `Business Sub Level 3`, `Risk Type`, `Date` order by `Business Level 2`, `Business Sub Level 3`, `Risk Type`, `Date`;
-- MySQL dump 10.13 Distrib 5.7.25, for Linux (x86_64) -- -- Host: localhost Database: RB -- ------------------------------------------------------ -- Server version 5.7.25-0ubuntu0.16.04.2 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RES...
create table list_test(id int , test_int int, test_char char(50), test_varchar varchar(2000), test_datetime timestamp, primary key(id,test_int)) PARTITION BY LIST (test_int) ( PARTITION P0 VALUES IN (10), PARTITION P1 VALUES IN (20), PARTITION P2 VALUES IN (30), PARTITION P3 VALUES IN (40), PARTITION P4 VA...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 20, 2018 at 05:41 PM -- Server version: 10.1.36-MariaDB -- PHP Version: 7.1.23 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
-- pragma.test -- -- execsql { -- pragma collation_list; -- } pragma collation_list;
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 17, 2018 at 06:47 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
INSERT INTO roles(name) VALUES('ROLE_USER'); INSERT INTO roles(name) VALUES('ROLE_PM'); INSERT INTO roles(name) VALUES('ROLE_ADMIN');
-- 1. Elimine la tabla "inmuebles" si existe: DROP TABLE IF EXISTS inmuebles; -- 2. Cree la tabla "inmuebles" para registrar la siguiente información: -- tipo de inmueble: tipo enum (casa,dpto,local,terreno), not null, -- domicilio: varchar(30), -- propietario: nombre del dueño, -- precio: decimal hasta $999999.99 po...
WITH cross_items AS (SELECT i_item_sk ss_item_sk FROM item, (SELECT iss.i_brand_id brand_id, iss.i_class_id class_id, iss.i_category_id category_id FROM store_sales, item iss, date_dim d1 WHERE ss_item_sk = iss.i_item_sk AND ss_sold_date_sk = d1.d_date_sk AND d1.d_year BETWEE...
CREATE TABLE [dbo].[Conversations] ( [conversation_id] INT IDENTITY (1, 1) NOT NULL, [user_one] INT NOT NULL, [user_two] INT NOT NULL, PRIMARY KEY CLUSTERED ([conversation_id] ASC), FOREIGN KEY ([user_one]) REFERENCES [dbo].[Users] ([user_id]), FOREIGN KEY ([user_two]) REFERENCES ...
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Apr 28, 2020 at 07:42 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
-- phpMyAdmin SQL Dump -- version 4.7.6 -- https://www.phpmyadmin.net/ -- -- Хост: localhost -- Час створення: Січ 26 2018 р., 04:41 -- Версія сервера: 5.7.21-log -- Версія PHP: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_...
create type whisker as ( min numeric, min_outliers numeric[], qn numeric, q1 numeric, median numeric, q3 numeric, qx numeric, max_outliers numeric[], max numeric ); CREATE OR REPLACE FUNCTION array_whisker(numeric[]) RETURNS whisker AS $$ with a as (select unnest($1) as i), s as ( ...
-- 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. --NOTICE: UPGRADE-SCRIPT-NEEDED contents in this file are not auto-upgraded. -- This file contains table definitions for various abstrac...
DROP DATABASE IF EXISTS burgers_db; CREATE DATABASE burgers_db; USE burgers_db; CREATE TABLE burgers ( id INT AUTO_INCREMENT NOT NULL, burger_name VARCHAR(255) NOT NULL, devoured BOOLEAN DEFAULT false, PRIMARY KEY (id) );
/* Comments are ignored */ # Those too -- Those too sElEcT * FrOm cUsToMeR WhErE CoUnTrY = 'US' AnD CiTy = 'New-York City'
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Oct 04, 2021 at 05:47 AM -- Server version: 5.7.33 -- PHP Version: 7.4.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@...
CREATE TABLE IF NOT EXISTS styles ( id uuid PRIMARY KEY, style jsonb ); CREATE TABLE IF NOT EXISTS tilesets ( id uuid PRIMARY KEY, tileset jsonb );
with prep as ( select domain_sessionid, count(distinct page_views_in_session) as dist_pvis_values, count(*) - count(distinct page_view_in_session_index) as all_minus_dist_pvisi, count(*) - count(distinct page_view_id) as all_minus_dist_pvids from {{ ref('snowplow_web_page_views') }} group by...
drop table if exists `zhuzher_menu`; create table `zhuzher_menu` ( id int not null, sysid int not null, name varchar(64) not null, icon varchar(64), url varchar(256), primary key (id) ) engine=InnoDB auto_incremary=1000000 default charset=utf8;
SELECT a.AgeGroup, COUNT(a.AgeGroup) AS [WizardCount] FROM (SELECT CASE WHEN Age BETWEEN 0 AND 10 THEN '[0-10]' WHEN Age BETWEEN 11 AND 20 THEN '[11-20]' WHEN Age BETWEEN 21 AND 30 THEN '[21-30]' WHEN Age BETWEEN 31 AND 40 THEN '[31-40]' WHEN Age BETWEEN 41 AND 50 THEN '[41-...
CREATE TABLE memos ( id integer, content text ); INSERT INTO memos VALUES (1, 'PostgreSQL'); INSERT INTO memos VALUES (2, 'Groonga'); INSERT INTO memos VALUES (3, 'PGroonga'); INSERT INTO memos VALUES (4, 'groonga'); CREATE INDEX grnindex ON memos USING pgroonga (content pgroonga.text_regexp_ops_v2); SET enabl...
### New Model: reversion.Revision CREATE TABLE "reversion_revision" ( "id" serial NOT NULL PRIMARY KEY, "date_created" timestamp with time zone NOT NULL, "user_id" integer REFERENCES "auth_user" ("id") DEFERRABLE INITIALLY DEFERRED, "comment" text NOT NULL ) ; ### New Model: reversion.Version CREATE TAB...
CREATE TABLE IF NOT EXISTS ServerInfo (uniquerow INTEGER DEFAULT 1, id VARCHAR(1024), proto BYTEA, version INTEGER, PRIMARY KEY (uniquerow)); CREATE TABLE IF NOT EXISTS Clients (id VARCHAR(1024), hbinbox TEXT, PRIMARY KEY (id)); CREATE TABLE IF NOT EXISTS Channels (id INTEGER, name VARCHAR(1024) NOT NULL, maxseq BIGINT...
CREATE TABLE IF NOT EXISTS users ( id integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY, username varchar(30) NOT NULL UNIQUE, userlevel integer NOT NULL, password_hash varchar(60) NOT NULL ); CREATE TABLE IF NOT EXISTS sessions ( id integer PRIMARY KEY GENERATED ALWAYS AS IDENTITY, token varch...
USE [test_normalization]; if object_id ('test_normalization."conflict_stream_name_conflict_stream_name__dbt_tmp_temp_view"','V') is not null begin drop view test_normalization."conflict_stream_name_conflict_stream_name__dbt_tmp_temp_view" end USE [test_normalization]; if object_...
WITH SAWITH0 AS ( select distinct ROWNUM, T418.Revenue as c1, T451.Prod_Dsc as c2, T42.Calendar_Date as c3 from BISAMPLE.SAMP_PRODUCTS_D T451 /* D10 Product (Dynamic Table) */ , BISAMPLE.SAMP_TIME_DAY_D T42 /* D01 Time Day Grain */ , BISAMPLE.SAMP_REVENUE_F T418 /* F10 Billed Rev */ where ( T42.C...