text
stringlengths
1
1.05M
-- @Description Assert that QEs don't skip a vacuum drop phase (unless we have -- an abort) and thus guarantees that seg file states are consistent across QD/QE. -- Given we have an AO table 1: CREATE TABLE ao_test_drop_phase (a INT, b INT) WITH (appendonly=true); -- And the AO table has all tuples on primary with con...
# https://leetcode.com/problems/customers-who-never-order/ # There are two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything. SELECT Name As Customers from Customers LEFT JOIN Orders on Customers.Id = Orders.CustomerId WHERE Orders.Id is null;
--CREATE DATABASE mawatta --USE mawatta --CREATE TABLE client(id INT, nom char(20), salaire FLOAT) --INSERT INTO client VALUES(1, 'Dupond', 2000),(2, 'Martin', 3500),(3, 'Harbazan', 7800) --SELECT * FROM client CREATE DATABASE mawatta_snapshot ON ( name='mawatta', filename='D:\mesbackupsqlserveur\snapshot\mawatt...
-- the following procedure migrates all handout kit details into -- ag_kit and ag_kit_barcodes to satisfy new expectations for how -- kit identifiers are handled DO $do$ DECLARE r record; BEGIN FOR r IN SELECT * FROM ag.ag_handout_kits LOOP INSERT INTO ag.ag_kit (supplied_kit_id...
DROP TABLE dim_clients_hist cascade constraints; DROP TABLE dim_terminals_hist cascade constraints; DROP TABLE dim_cards_hist cascade constraints; DROP TABLE dim_accounts_hist cascade constraints; DROP TABLE fact_transactions cascade constraints; DROP TABLE meta_fact_transactions; DROP TABLE meta_dim_terminals_hi...
-- Copyright (c) 2017 ldesgoui -- read file 'LICENSE' for details begin; -- PUBLIC create table if not exists post ( url text primary key , date timestamp not null , title text not null , content text not null ); -- INTERNAL create schema if not exists internal; create table ...
-- This file to be excluded from project by the test CREATE TABLE [dbo].[Table2] ( c1 int NOT NULL PRIMARY KEY, c2 int NULL )
CREATE TABLE users( user_id INT IDENTITY(1,1) NOT NULL ,logon NVARCHAR(100) NOT NULL ,last_name NVARCHAR(200) NOT NULL ,first_name NVARCHAR(200) NOT NULL ,middle_name NVARCHAR(2) NULL ,full_name NVARCHAR(404) NOT NULL ,role_id INT NULL ,password NVARCHAR(100) NULL ,name_suffix NVARCHAR(100) NULL ,client_id INT NULL ,is...
WITH applications AS ( SELECT * , CASE WHEN DAYOFWEEK(created_at) = 6 THEN DATEADD(hour, '{{ var("biz_start_hour") }}', DATEADD(day, 2, created_at)::date) WHEN DAYOFWEEK(created_at) = 7 THEN DATEADD(hour, '{{ var("biz_start_hour") }}', DATEADD(day, 1, c...
REM FILE NAME: sqldrd.sql REM LOCATION: Application Tuning\Reports REM FUNCTION: Return the sql statements from the shared area with REM highest disk reads REM TESTED ON: 7.3.3.5, 8.0.4.1, 8.1.5, 8.1.7, 9.0.1 REM PLATFORM: non-specific REM REQUIRES: v$sqlarea REM REM This is a part of the Knowled...
-- AUTO-GENERATED BY igluctl DO NOT EDIT -- Generator: igluctl 0.5.0 -- Generated: 2019-06-03 09:36 UTC CREATE SCHEMA IF NOT EXISTS atomic; CREATE TABLE IF NOT EXISTS atomic.com_sendgrid_dropped_2 ( "schema_vendor" VARCHAR(128) ENCODE ZSTD NOT NULL, "schema_name" VARCHAR(128) E...
--update nama item UPDATE laporan_keuangan SET item=(SELECT item FROM menu WHERE menu.id_item=laporan_keuangan.id_item); --update topping UPDATE laporan_keuangan SET topping=(SELECT n_topping FROM topping WHERE topping.id_topping=laporan_keuangan.id_topping); --menampilkan join tabel laporan_keuangan, menu dan toppin...
--Stored Procedures (Sprocs) -- A Stored Procedure is a controlled execution of some SQL script. USE [A01-School] GO /* ******************************************* Each Stored Procedure has to be the first statement in a batch, so place a GO statement in-between each question to execute the previ...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1:3306 -- Thời gian đã tạo: Th3 25, 2021 lúc 02:00 PM -- Phiên bản máy phục vụ: 8.0.21 -- Phiên bản PHP: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
SELECT DISTINCT title FROM parent
-- Write your migrate up statements here CREATE TABLE public.users ( id bigint GENERATED ALWAYS AS IDENTITY PRIMARY KEY, full_name text, email text UNIQUE NOT NULL CHECK (length(email) < 255), created_at timestamptz NOT NULL DEFAULT NOW(), updated_at timestamptz ); ---- create above / drop below ----...
autocommit off; select product.product_code from inventory_c where product_code > 5; rollback;
insert into requests (id,last_update,state_cd,nr_num,consent_flag,request_id,request_type_cd,priority_cd,xpro_jurisdiction,additional_info, nature_business_info,user_id,furnished,expiration_date,previous_request_id,submit_count,submitted_date,submitter_userid) values (nextval('requests_id_seq'), '2018-04-02 20:09:03.6...
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE FUNCTION [Profile.Data].[fnPublication.Pubmed.ShortenAuthorLengthString](@strInput VARCHAR(max)) RETURNS VARCHAR(MAX) AS BEGIN select @strInput = substring(@strInput,3,len(@strInput)) return case when len(@strInput) < 3990 then @strInput when charindex('...
CREATE TABLE list (id VARCHAR(64) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES ('az', 'азербејџански'); INSERT INTO "list" ("id", "value") VALUES ('az_AZ', 'азербејџански (Азербејџан)'); INSERT INTO "list" ("id", "value") VALUES ('az_Latn_AZ', 'азербејџански (Латини...
--liquibase formatted sql --changeset uk.gov.pay:remove_transaction_external_metadata.sql ALTER TABLE transaction DROP COLUMN external_metadata;
//include <Aspect.ddl> Aspect Data= { "../../../../../../winbuntu/C++/CCore-3-xx/Target/LIN64utf8", { "", New, { &Dir0, &Dir1, &Dir2 }, { { "Makefile" , Ignore }, { "CCore.a" , Ignore }, { "Makefile.files" , Ignore }, { "Makefile.tools" , Ignore } } } }; Dir Dir0=...
CREATE DATABASE pern_todo_application; CREATE TABLE todo( id SERIAL PRIMARY KEY, description VARCHAR(255) );
if object_id('[Rulebase].[VAL_Get_Cases]','p') is not null drop procedure [Rulebase].[VAL_Get_Cases] go -- ===================================================================================================== -- Generated by Data Dictionary Version 1.0.0.0 -- Date: 25 April 2017 15:03 -- Profile: DCSS Validation -- Ru...
-- sqlitecaching table values SELECT "c" -- value FROM "a___cc" ORDER BY __timestamp DESC;
-- -- CREATE SEQUENCE -- -- various error cases CREATE UNLOGGED SEQUENCE sequence_testx; CREATE SEQUENCE sequence_testx INCREMENT BY 0; CREATE SEQUENCE sequence_testx INCREMENT BY -1 MINVALUE 20; CREATE SEQUENCE sequence_testx INCREMENT BY 1 MAXVALUE -20; CREATE SEQUENCE sequence_testx INCREMENT BY -1 START 10; CREATE...
-- USERS TABLE CREATE TABLE IF NOT EXISTS users (id SERIAL NOT NULL UNIQUE, mail VARCHAR(100) NOT NULL UNIQUE, password VARCHAR(128) NOT NULL, PRIMARY KEY (id)); --GAMESERVER DRIVERS TABLE CREATE TABLE IF NOT EXISTS gameserver_drivers (id SERIAL NOT NULL UNIQUE, name VARCHAR(100) NOT NULL UNIQUE, class VARCHAR(100) NO...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 2015-04-27 19:07:02 -- 服务器版本: 5.6.17 -- PHP Version: 5.5.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET ...
USE [VipunenTK_DW] GO /****** Object: View [dbo].[v_f_2_8_Korkeakouluopiskelijat] Script Date: 25.5.2018 10:15:21 ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO ALTER VIEW [dbo].[v_f_2_8_Korkeakouluopiskelijat] AS -- truncate table f_2_8_Korkeakouluopiskelijat -- insert into f_2_8_Ko...
SELECT * FROM tbl_friend WHERE G_OWN = ?pown AND G_FND = ?pfnd;
CREATE TABLE [dbo].[TTrainProtectionChange] ( --From MergedXSDs XSD --From 'genericRailML' Namespace [TTrainProtectionChangeId] SMALLINT NOT NULL, [Monitoring] TINYINT NOT NULL, [MediumValue] TINYINT NOT NULL, [MediumValueSpecified] BIT NOT NULL, CONSTRAINT [PK_TTrainProtectionChangeId] PRIMARY KEY ...
--Problem 8 SELECT DepositGroup, MagicWandCreator, MIN(DepositCharge) AS MinDepositCharge FROM WizzardDeposits GROUP BY MagicWandCreator, DepositGroup ORDER BY MagicWandCreator, DepositGroup
-- simple batch start --133 Reference non-existing label in GOTO --Could not find this PG error in excel file --------------------------------------------------------------------------- --Pre GO --------------------------------------------------------------------------- --Generate the error GOTO lbl2 blb3: GO ------...
-- =================================================================== -- create FDW objects -- =================================================================== CREATE EXTENSION postgres_fdw; CREATE SERVER testserver1 FOREIGN DATA WRAPPER postgres_fdw; DO $d$ BEGIN EXECUTE $$CREATE SERVER loopback FORE...
DELETE FROM script_texts WHERE entry BETWEEN -1000415 AND -1000411; INSERT INTO script_texts (entry,content_default,sound,type,language,emote,comment) VALUES (-1000411,'Why don\'t we deal with you now, Hendel? Lady Proudmoore will speak for you back in the tower.',0,0,7,0,'hendel SAY_PROGRESS_1_TER'), (-1000412,'Please...
-- -- Data for Name: cities; Type: TABLE DATA; Schema: mailamericas_tracking; Owner: mailamericas_tracking -- INSERT INTO cities (id, name, province_id) VALUES (3598, 'MEDELLÍN', 68); INSERT INTO cities (id, name, province_id) VALUES (3599, 'ABEJORRAL', 68); INSERT INTO cities (id, name, province_id) VALUES (3600, 'AB...
//// CHANGE name=change0 CREATE TABLE table267 ( id integer NOT NULL, field1 character varying(30), usertype3field usertype3, usertype8field usertype8, usertype5field usertype5 ); GO //// CHANGE name=change1 ALTER TABLE ONLY table267 ADD CONSTRAINT table267_pkey PRIMARY KEY (id); GO
CREATE TABLE #Codesets ( codeset_id int NOT NULL, concept_id bigint NOT NULL ) ; INSERT INTO #Codesets (codeset_id, concept_id) SELECT 2 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 (262,9203,9201) UNION sel...
0 1 1 0 0 0 1 0 0 1 0 0 0 1 1 0 0 0 1 0 0 0 0 0 0 1 0 0 0 1 1 0 0 0 0 0 1 0 1 1 0 0 0 0 0 0 0 0 1 0 0 1
DELIMITER ;; DROP FUNCTION IF EXISTS `getMonthNumber`;; CREATE FUNCTION `getMonthNumber`(`p_unixtime` bigint(10)) RETURNS int(5) begin return (year(FROM_UNIXTIME(p_unixtime))-2015)*12+month(FROM_UNIXTIME(p_unixtime)); end;;
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2019] 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 obt...
/* Navicat Premium Data Transfer Source Server : localhost Source Server Type : MySQL Source Server Version : 100414 Source Host : localhost:3306 Source Schema : bms_db Target Server Type : MySQL Target Server Version : 100414 File Encoding : 65001 Date: 04/01/2022 2...
/* This file contains simple tests for the procedures created by pmm_client_setup.sql. The results are written into test_vettabase.test_results. When this file is run, the last resultsets are test results statistics. */ -- always show warnings \W -- always show warnings \W CREATE DATABASE IF NOT E...
----------------------------------------------------------------------------------- --Do not modify this file, instead use an alter proc to over-write the procedure.-- --Make sure you follow the same expected interface of parameters, and resultsets.-- -----------------------------------------------------------------...
-------------------------------------------------------- -- DDL for Table GS_SURVEY_LIST -------------------------------------------------------- CREATE TABLE "GROUNDFISH"."GS_SURVEY_LIST" ( "SURVEY_ID" VARCHAR2(10 BYTE), "SERIES" VARCHAR2(16 BYTE), "MISSION" VARCHAR2(16 BYTE), "YEAR" NUMBER(4,0), "VESE...
§Russian PROP_FONT_FILE cyr.bdf ################################################################################ # DO NOT EDIT THIS FILE. # # USE https://translator.simutrans.com FOR YOUR CHANGES # # AND DOWNLOAD THIS FILE AGAIN WITH YOUR SUGG...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Dec 12, 2019 at 05:27 AM -- Server version: 10.2.30-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...
create table Users ( id integer primary key, username text not null, email text not null, password text not null ) create table Merchant ( id integer primary key, user_id text integer not null, website text not null, ) create table Wallet ( id integer primary key, address text not ...
SELECT id FROM features
-- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2020] 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 obt...
-- @testpoint:opengauss关键字class(非保留),作为角色名 --关键字不带引号-成功 drop role if exists class; create role class with password 'gauss@123' valid until '2020-12-31'; --清理环境 drop role class; --关键字带双引号-成功 drop role if exists "class"; create role "class" with password 'gauss@123' valid until '2020-12-31'; --清理环境 drop role "class";...
SET foreign_key_checks = 0; DROP TABLE IF EXISTS `store`; DROP TABLE IF EXISTS `store_group`; DROP TABLE IF EXISTS `store_website`; SET foreign_key_checks = 1;
-- FUNCTION: camdecmpswks.derived_monitor_plan_status() -- DROP FUNCTION camdecmpswks.derived_monitor_plan_status(); CREATE OR REPLACE FUNCTION camdecmpswks.derived_monitor_plan_status( ) RETURNS TABLE(mon_plan_id text, begin_date date, end_date date, mon_plan_status_cd text, mon_plan_status_cd_description text)...
CREATE TABLE list (id VARCHAR(10) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES (E'AFA', E'Afghan Afghani (1927–2002)'); INSERT INTO "list" ("id", "value") VALUES (E'ALL', E'Albanian Lek'); INSERT INTO "list" ("id", "value") VALUES (E'ALK', E'Albanian Lek (1946–1965)...
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='ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_ENGINE_SUBSTITUTION'; -- ---------------------------...
{% macro hparam_range(min_, max_) %} {{ return(['hparam_range', min_, max_]) }} {% endmacro %} {% macro hparam_candidates(candidates) %} {{ return(['hparam_candidates', candidates]) }} {% endmacro %}
drop table if exists TMP_C_PaySelectionLine_WithVoidedBankStatements; create temporary table TMP_C_PaySelectionLine_WithVoidedBankStatements as select psl.* from C_PaySelectionLine psl left outer join C_BankStatementLine_Ref bslr on (bslr.C_BankStatementLine_Ref_ID=psl.C_BankStatementLine_Ref_ID) inner join C_BankState...
--- This file has been generated by scripts/build_db.py. DO NOT EDIT ! INSERT INTO "helmert_transformation" VALUES('EPSG','1024','MGI to ETRS89 (4)','Parameter values from MGI to WGS 84 (8) (tfm code 1194). Assumes ETRS89 and WGS 84 can be considered the same to within the accuracy of the transformation. Information s...
CREATE TABLE e_tryst_db.guest ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `surname` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `email` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL, `birthday` date NOT NULL, `tryst_id` int(11) DEFAULT NULL, PR...
-- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: localhost Database: portalweb -- ------------------------------------------------------ -- Server version 5.7.21-log /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS *...
-- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th4 30, 2020 lúc 08:37 AM -- Phiên bản máy phục vụ: 10.4.8-MariaDB -- Phiên bản PHP: 7.3.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!...
if exists (select * from sys.procedures where name = '__test') exec('drop procedure [dbo].[__test]') if exists (select * from sys.procedures where name = '__test2') exec('drop procedure [dbo].[__test2]') if exists (select * from sys.procedures where name = '__test3') exec('drop procedure [dbo].[__test3]') if exis...
DELETE FROM `Session` WHERE TOKEN = ?
SELECT MIN(an.name) AS alternative_name, MIN(chn.name) AS voiced_character, MIN(n.name) AS voicing_actress, MIN(t.title) AS american_movie FROM aka_name AS an, char_name AS chn, cast_info AS ci, company_name AS cn, movie_companies AS mc, name AS n, role_type AS rt, ...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 28, 2020 at 11:00 PM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.2.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
CREATE TABLE type( id SERIAL PRIMARY KEY, name character varying(256) ); insert into type(name) values ('СЫР'), ('МОЛОКО'), ('ХЛЕБОБУЛОЧНЫЕ'), ('СЛАДКОЕ'); CREATE TABLE products( id SERIAL PRIMARY KEY, name character varying(256), type_id int REFERENCES type(id), expiry_date int, price int ); i...
CREATE OR REPLACE FUNCTION public.trigger_update_bid() RETURNS trigger LANGUAGE plpgsql AS $function$ DECLARE bid INTEGER; BEGIN IF NEW.type = 'bid' THEN SELECT transactions.amount FROM transactions JOIN artworks ON transactions.artwork_id = artworks.id WHERE transactions.artwork_i...
DROP TABLE IF EXISTS dec10; CREATE TABLE dec10 ( line_number integer NOT NULL GENERATED ALWAYS AS IDENTITY, jolts integer NOT NULL ); \COPY dec10 (jolts) FROM PROGRAM 'curl -b session.cookie https://adventofcode.com/2020/day/10/input'; VACUUM ANALYZE dec10; \timing on /* FIRST STAR */ SELECT count(*) FILTER...
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 22, 2021 at 12:14 PM -- Server version: 10.1.37-MariaDB -- PHP Version: 7.2.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
CREATE DATABASE IF NOT EXISTS `iatserver_db` /*!40100 DEFAULT CHARACTER SET utf8mb4 */; USE `iatserver_db`; -- MySQL dump 10.19 Distrib 10.3.32-MariaDB, for debian-linux-gnu (x86_64) -- -- Host: localhost Database: iatserver_db -- ------------------------------------------------------ -- Server version 10.3.32-Mar...
DROP TABLE IF EXISTS UM_TENANT; DROP SEQUENCE IF EXISTS UM_TENANT_PK_SEQ; CREATE SEQUENCE UM_TENANT_PK_SEQ; CREATE TABLE UM_TENANT ( UM_ID INTEGER DEFAULT NEXTVAL('UM_TENANT_PK_SEQ'), UM_DOMAIN_NAME VARCHAR(255) NOT NULL, UM_EMAIL VARCHAR(255), UM_ACTIVE BOOLEAN DEFAULT FALSE, UM_...
BEGIN; DROP TABLE IF EXISTS tokenpool; COMMIT;
-- Oracle hierarchy (e.g. organization chart) traversal -- Modified: Wed 06-May-2020 (Bob Heckel) --- select e.empno , lpad(' ', 2*(level-1)) || e.ename , e.job , e.mgr from scott.emp e start with e.mgr is null --where foo=42 connect by e.mgr = prior e.empno order siblings by e.ename; --- --...
CREATE OR REPLACE FUNCTION s_language_by_id_lang( lang_id BIGINT, language_of_user BIGINT ) RETURNS "LanguageDB" LANGUAGE SQL VOLATILE RETURNS NULL ON NULL INPUT PARALLEL UNSAFE AS $$ SELECT ( -- id tl_id, -- code tl_code, -- name COALESCE( tln_name, '[untranslated...
SELECT DISTINCT dbo.v_R_System.ResourceID, dbo.v_R_System.Name0 AS Name, dbo.v_R_System.AD_Site_Name0 AS ADSiteName, dbo.vWorkstationStatus.LastHardwareScan, dbo.vWorkstationStatus.LastDDR, dbo.vWorkstationStatus.LastPolicyRequest, dbo.vWorkstationStatus.LastMPServerName, ...
SELECT s.* FROM pg_settings s WHERE 1=1 /*if isNotEmpty(settingName) */ AND s.name IN /*settingName*/('%') /*end*/ ORDER BY s.name
 CREATE PROCEDURE [dbo].[IotConnect_ManageDeviceTemplate] ( @companyGuid UNIQUEIDENTIFIER, @action VARCHAR(20), @enableDebugInfo CHAR(1) = '0', @DeviceTemplateXml XML ) AS BEGIN SET NOCOUNT ON IF (@enableDebugInfo = 1) BEGIN DECLARE @Param XML SELECT @Param = ( SELECT 'DeviceTempl...
-- Data Analysis -- -- 1. List the following details of each employee: employee number, last name, first name, gender, and salary. SELECT employees.emp_no, employees.last_name, employees.first_name, employees.sex, salaries.salary FROM employees JOIN salaries ON employees.emp_no = salaries.emp_no; -- 2. List employees ...
USE [BuyGrandSellerReadReplica] GO /****** Object: StoredProcedure [dbo].[sp_getItemSubReview] Script Date: 12/26/2020 13:08:38 PM ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO -- ============================================= -- Author: Aditya Abeysinghe -- Create date: 2020/12/26 -- Description: Stored...
SELECT pgroonga_escape(292929::int4); SELECT pgroonga_escape(-292929::int4);
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- 主机: localhost -- 生成日期: 2020-08-20 11:53:43 -- 服务器版本: 5.7.26 -- PHP 版本: 7.3.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLI...
-- Deploy scoutges-test:config/jwt to pg SET client_min_messages TO 'warning'; BEGIN; ALTER DATABASE scoutges_test SET "jwt.secret" TO 'simple-string'; -- Don't wait an eternity for encryption to proceed: during tests, -- it's perfectly fine to have a low-level of encryption ALTER DATABASE scoutges_test SET...
-- @testpoint:openGauss鍏抽敭瀛梤eindex(闈炰繚鐣?浣滀负鍒楀悕甯﹀弻寮曞彿锛宺eindex澶у皬鍐欐贩鍚堬紝寤鸿〃鎴愬姛 drop table if exists reindex_test; create table reindex_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 numeric(38...
DROP TABLE IF EXISTS test_00961; CREATE TABLE test_00961 (d Date, a String, b UInt8, x String, y Int8, z UInt32) ENGINE = MergeTree PARTITION BY d ORDER BY (a, b) SETTINGS index_granularity = 111, min_bytes_for_wide_part = 0; INSERT INTO test_00961 VALUES ('2000-01-01', 'Hello, world!', 123, 'xxx yyy', -123, 1234...
USE DBADemoDB GO --Basic SELECT all columns from table SELECT * FROM Employees --Basic SELECT specific columns from table SELECT FirstName, LastName, Title FROM Employees --Basic SELECT specific columns from table with a filter (WHERE clause) SELECT FirstName, LastName, Title FROM Employees WHERE Titl...
-- 初始化表13 :角色分类类别字典表数据 insert into dic_jinlong_system_role_type (value, name) values (1, '未激活'); insert into dic_jinlong_system_role_type (value, name) values (2, '已激活'); insert into dic_jinlong_system_role_type (value, name) values (3, '锁定'); commit;
#nt PANIC All Half 1 0.452 0.260 0.260 2 0.580 0.260 0.468 3 0.772 0.260 0.596 4 0.900 0.260 0.788 5 1.092 0.260 0.804 6 1.220 0.260 0.932
-- -- ERRORS -- -- bad in postquel, but ok in PostgreSQL select 1; -- -- UNSUPPORTED STUFF -- doesn't work -- notify pg_class -- -- -- SELECT -- this used to be a syntax error, but now we allow an empty target list select; -- no such relation select * from nonesuch; -- bad name in target list select nonesuch fr...
CREATE TABLE "discounts" ( onerow_id BIT DEFAULT 1 PRIMARY KEY, second_discount DECIMAL, third_discount DECIMAL, fourth_discount DECIMAL, fifth_discount DECIMAL, max_discounts INT ) INSERT INTO "discounts" ("second_discount", "third_discount", "fourth_discount", "fifth_discount", "max_discounts...
-- -- 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 ec_tmp.order_item CASCADE; CREATE TABLE ec_tmp.order_item ( order_item_id TEXT NOT NULL, --sequential number identifying number of items included in the same order. order_id TEXT NOT NULL, --order unique identifier customer_id TEXT ...
SELECT * FROM items WHERE quan = $1 AND sku = $1
CREATE TABLE IF NOT EXISTS `SUBSTATUS_ANNOTATIONS_BLOB` ( `SUBMISSION_ID` bigint(20) NOT NULL, `VERSION` bigint(20) NOT NULL, `ANNOTATIONS_BLOB` mediumblob, PRIMARY KEY (`SUBMISSION_ID`), FOREIGN KEY (`SUBMISSION_ID`) REFERENCES `SUBSTATUS_ANNOTATIONS_OWNER` (`SUBMISSION_ID`) ON DELETE CASCADE )
CREATE DATABASE `NishchayDB`; USE `NishchayDB`; CREATE TABLE `User` ( `userId` BIGINT(20) NOT NULL AUTO_INCREMENT, `email` VARCHAR(250) NOT NULL, `firstName` VARCHAR(250) NOT NULL, `lastName` VARCHAR(250) NOT NULL, `password` VARCHAR(250) NOT NULL, `isActive` TINYINT(1) DEFAULT 0, `isVerif...
-- -- Copyright (c) Microsoft Corporation. All rights reserved. -- Licensed under the MIT license. See LICENSE.txt file in the project root for full license information. -- ----USE FEDERATION Users (PartitionId = 0) WITH RESET, FILTERING = OFF GO --IF object_id('CreateConfirmationCode') IS NOT NULL DROP PROCEDURE Crea...
{% macro get_stats_ratings_device_columns() %} {% set columns = [ {"name": "_file", "datatype": dbt_utils.type_string()}, {"name": "_fivetran_synced", "datatype": dbt_utils.type_timestamp()}, {"name": "_line", "datatype": dbt_utils.type_int()}, {"name": "_modified", "datatype": dbt_utils.type_timestamp...
-- -- Current Database: `chompy_business` -- CREATE DATABASE IF NOT EXISTS `chompy_business` DEFAULT CHARACTER SET utf8; USE `chompy_business`; -- -- Table structure for table `business` -- DROP TABLE IF EXISTS `business`; /*!40101 SET @saved_cs_client = @@character_set_client */; /*!40101 SET character_set_cli...
CREATE TABLE list (id VARCHAR(64) NOT NULL, value VARCHAR(64) NOT NULL, PRIMARY KEY(id)); INSERT INTO "list" ("id", "value") VALUES (E'ab', E'Abkhazian'); INSERT INTO "list" ("id", "value") VALUES (E'ace', E'Achinese'); INSERT INTO "list" ("id", "value") VALUES (E'ach', E'Acoli'); INSERT INTO "list" ("id", "value") VA...
CREATE TABLE event_stream( uuid UUID NOT NULL PRIMARY KEY, last_block_height BIGINT NOT NULL DEFAULT 1, created TIMESTAMPTZ NOT NULL DEFAULT (NOW() AT TIME ZONE 'utc'), updated TIMESTAMPTZ NOT NULL DEFAULT (NOW() AT TIME ZONE 'utc') ); CREATE TABLE coin_movement( txid TEXT NOT NULL PRIMARY KEY, ...
--- This file has been generated by scripts/build_db.py. DO NOT EDIT ! INSERT INTO "extent" VALUES('EPSG','1024','Afghanistan','Afghanistan.',29.4,38.48,60.5,74.92,0); INSERT INTO "extent" VALUES('EPSG','1025','Albania','Albania - onshore and offshore.',39.63,42.67,18.46,21.06,0); INSERT INTO "extent" VALUES('EPSG','1...