sql
stringlengths
6
1.05M
<gh_stars>0 -- @testpoint:opengauss关键字pascal(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists pascal; CREATE TABLESPACE pascal RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace pascal; --关键字带双引号,创建成功 drop tablespace if exists "pascal"; CREATE TABLESPACE "pascal" RELATIVE LOCATION 'hdfs_tab...
UPDATE devices SET os='sensorprobe' WHERE os='akcp';
USE PROGWEB; CREATE TABLE LIVRO( IDLIV_LIV INT NOT NULL AUTO_INCREMENT, TITUL_LIV VARCHAR(100) NOT NULL UNIQUE, AUTOR_LIV VARCHAR(100), STLEI_LIV CHAR(1) NOT NULL, DTLEI_LIV DATETIME, EMPRE_LIV VARCHAR(100), SINOP_LIV VARCHAR(4000), PRIMARY KEY (IDLIV_LIV) ); CREATE TABLE TAG( ID...
CREATE DATABASE "basyx-map"; \c basyx-map CREATE SCHEMA elements; CREATE DATABASE "basyx-directory"; \c basyx-directory CREATE SCHEMA directory; CREATE TABLE directory.directory ( "ElementRef" varchar, "ElementID" varchar primary key ); INSERT INTO directory.directory ( "ElementID", "ElementRef" ) VALUES ( 'urn:...
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.5.5-10.1.34-MariaDB) # Database: db_rsaisyiyah # Generation Time: 2018-12-16 10:29:01 +0000 # **************************...
IF OBJECT_ID(N'REL_MagicTitle', N'U') IS NOT NULL BEGIN BEGIN TRY BEGIN TRANSACTION DELETE REL_MagicTitle COMMIT TRANSACTION SELECT @@rowcount END TRY BEGIN CATCH IF XACT_STATE() <> 0 BEGIN ROLLBACK TRANSACTION END SELECT -ERROR_NUMBER() END CATCH; END ELSE BEGIN SELECT 0 END
delete from users;
<reponame>Rockersooraz/mutiauth -- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 17, 2018 at 04:43 AM -- Server version: 10.1.34-MariaDB -- PHP Version: 7.2.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone...
alter table "public"."game_session" drop constraint "game_session_current_turn_player_fkey";
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.127.12 -- Waktu pembuatan: 09 Des 2020 pada 22.07 -- Versi server: 10.4.14-MariaDB -- Versi PHP: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARAC...
<filename>whsakila2021 (2).sql -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 23 Jun 2021 pada 11.37 -- Versi server: 10.4.18-MariaDB -- Versi PHP: 8.0.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET...
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 18, 2018 at 04:28 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Máy chủ: localhost -- Thời gian đã tạo: Th8 22, 2021 lúc 11:22 AM -- Phiên bản máy phục vụ: 10.4.19-MariaDB -- Phiên bản PHP: 7.4.20 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
ALTER TABLE "comments" RENAME COLUMN "inreplyto_id" TO "in_reply_to_id";
<gh_stars>1-10 /* Navicat Premium Data Transfer Source Server : 公司阿里雲centos Source Server Type : MySQL Source Server Version : 50722 Source Host : 172.16.17.32:3306 Source Schema : comcms Target Server Type : MySQL Target Server Version : 50722 File Encoding : 65001 ...
WITH Countries_CTE (ContinentCode, CurrencyCode, CurrencyUsage) AS ( SELECT c.ContinentCode, c.CurrencyCode, COUNT(c.CurrencyCode) AS CurrencyUsage FROM Countries AS c GROUP BY CurrencyCode, ContinentCode HAVING COUNT(c.CurrencyCode) > 1 ) SELECT c.ContinentCode, c.CurrencyCode, c.Curr...
<filename>db/migrations/V006__Functions.sql create or replace function public.update_activity ( asession_id integer, asites_processed_delta integer ) returns void as $$ begin update public.session set sites_processed = sites_processed + asites_processed_delta, last_activity = now() wh...
/* Dropping Database */ DROP DATABASE IF EXISTS HospitalDB;
<gh_stars>1-10 --liquibase formatted sql --changeset artemov_i:CORE-1311 dbms:postgresql INSERT INTO s_mt.t_sys_setting (ck_id,ck_user,ct_change,cv_description) VALUES ('skip_update_action_page','4fd05ca9-3a9e-4d66-82df-886dfa082113','2020-08-05 11:10:31.709','Пропустить обновление доступов у страниц') on conflict (ck...
<filename>schema.cql DROP KEYSPACE IF EXISTS lego; CREATE KEYSPACE lego WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'} AND durable_writes = false; CREATE TABLE lego.products ( product_id int, product_name text, image text, image_id int, image_description text, PRIMARY KEY (p...
CREATE DATABASE project2 WITH ENCODING='UTF8' LC_COLLATE = 'C'; select * FROM project2.public.semester --冲突查找 v2 select course_name || '[' || section_name || ']' from( select distinct s2.course_name, s2.section_name from (select co1.course_id, cl1.week_num, cl1.day_of_week, cl1.class_begin, cl1.class_end from ...
/*** @aorist_presto( programs, HiveDirectoriesCreated, args={ "presto_schema": lambda data_set, context: ( context.capture("schema", data_set.name), context, ), "location": lambda hive_table_storage, universe, data_set, context: ( context.capture("loca...
<reponame>ONRR/cloud-repo drop table if exists land_stats_elt; create table land_stats_elt ( location varchar(255), total_acres varchar, federal_acres varchar, federal_percent varchar );
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/RELEASE-SCRIPTS/KC-RELEASE-4_0-SCRIPT/KR_RICE-RELEASE-4_0-Upgrade-MYSQL.sql<gh_stars>0 \. ./mysql/rice/KR_RICE_01_1.0.3.2-2.0.0_2010-04-15_B000.sql \. ./mysql/rice/KR_RICE_02_1.0.3.2-2.0.0_2010-05-03_B000.sql \. ./mysql/rice/KR_RICE_03_1.0.3.2...
ALTER TABLE db_version CHANGE COLUMN required_7133_02_mangos_spell_loot_template required_7141_01_mangos_instance_template bit; ALTER TABLE instance_template ADD maxPlayersHeroic tinyint(3) unsigned NOT NULL default '0' AFTER maxPlayers; UPDATE instance_template SET maxPlayersHeroic = maxPlayers; DELETE FROM instanc...
CREATE PROCEDURE [dal].[LineDefinitions__Save] @Entities [dbo].[LineDefinitionList] READONLY, @LineDefinitionEntries [dbo].[LineDefinitionEntryList] READONLY, @LineDefinitionEntryAgentDefinitions [dbo].[LineDefinitionEntryAgentDefinitionList] READONLY, @LineDefinitionEntryResourceDefinitions [dbo].[LineDefinitionE...
-- This file and its contents are licensed under the Timescale License. -- Please see the included NOTICE for copyright information and -- LICENSE-TIMESCALE for a copy of the license. \c :TEST_DBNAME :ROLE_SUPERUSER \ir include/remote_exec.sql GRANT CREATE ON DATABASE :TEST_DBNAME TO :ROLE_DEFAULT_PERM_USER; SET ROLE ...
CREATE TABLE Loan( LoanID INT(10) UNSIGNED AUTO_INCREMENT PRIMARY KEY,LoanNAME VARCHAR(30) NOT NULL,LoanADDRESS VARCHAR(30) NOT NULL,LoanCITY VARCHAR(30) NOT NULL,LoanSTATE VARCHAR(30) NOT NULL,LoanCOUNTRY VARCHAR(30) NOT NULL,LoanZIPCODE VARCHAR(30) NOT NULL)
COPY ( SELECT rna.id, xref.upi, xref.last FROM xref JOIN rna ON rna.upi = xref.upi ) TO STDOUT (FORMAT CSV)
create table data.people ( Id int not null AUTO_INCREMENT, Name varchar(255) not null, Dob date not null, Phone varchar(20) not null, Aadhar varchar(20) not null, Bank varchar(20) not null, is_pending int not null, Filename varchar(255) not null, Hash varchar(500) not null, PRIMARY KEY (Id) ); -- GRANT AL...
create database pdx; create user pdxuser with encrypted password '<PASSWORD>';
-- 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. USE [generate] GO SET ANSI_NULLS ON GO SET QUOTED...
UPDATE cycling.cyclist_name SET comments ='Rides hard, gets along with others, a real winner' WHERE id = fb372533-eb95-4bb4-8685-6ef61e994caa IF EXISTS; UPDATE cycling.cyclists SET firstname = 'Marianne', lastname = 'VOS' WHERE id = 88b8fd18-b1ed-4e96-bf79-4280797cba80; UPDATE cycling.c...
CREATE TABLE `mnl_item` ( `id` int(11) NOT NULL, `title_id` int(11) NOT NULL, `item_text` text NOT NULL, `type` int(11) NOT NULL DEFAULT 0 COMMENT '0 = normal, 1 = steps, 3 = bullet' ) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4; -- -- Dumping data for table `mnl_item` -- INSERT INTO `mnl_item` (`id`, `title_id`, ...
-- -- PostgreSQL database dump -- SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false; SET client_min_messages = warning; -- -- Name: plpgsql; Type: EXTENSION; Schema: -; Owner: - -- CREATE EXTENSION IF NOT EXISTS plpg...
<filename>core/src/main/assets/migrations/88.sql # Drops unused table ProgramOrganisationUnitLastUpdated DROP TABLE ProgramOrganisationUnitLastUpdated;
-- +goose Up -- SQL in section 'Up' is executed when this migration is applied CREATE TABLE tests ( id char(38) NOT NULL, name varchar(128) NOT NULL, created_at timestamp DEFAULT now(), modified_at timestamp DEFAULT now() ON UPDATE now(), c...
<filename>SistemaUniversidad.BackEnd.BD/Functions/FN_Universidades_SeleccionarTodos.sql CREATE FUNCTION FN_Universidades_SeleccionarTodos() RETURNS TABLE AS RETURN SELECT * FROM VW_Universidades_SeleccionarTodos
CREATE TABLE `cf_values` ( `cf_values_id` int(11) unsigned NOT NULL AUTO_INCREMENT, `rel_crud_id` int(11) DEFAULT NULL, `cf_id` int(11) DEFAULT NULL, `curd` varchar(250) DEFAULT NULL, `value` varchar(250) DEFAULT NULL, PRIMARY KEY (`cf_values_id`) ) ENGINE=InnoDB DEFAULT CHARSET=latin1; ...
<filename>sql/newFeedback.sql<gh_stars>0 -- simile select used to get newly add person SELECT * from info ORDER by info_id desc LIMIT 1;
--1 SELECT CustomerId, FirstName, LastName, Country FROM Customer WHERE Country != 'USA'; --2 SELECT CustomerId, FirstName, LastName, Country FROM Customer WHERE Country = 'Brazil'; --3 SELECT * FROM Employee WHERE Title LIKE '%Sales%Agent%'; --4 SELECT DISTINCT BillingCountry FROM Invoice; --5 SELECT COUNT(InvoiceId) ...
<filename>jeff-farm-ws/src/main/sql/tables/audit/hive_inspection_groups_audit.sql CREATE TABLE IF NOT EXISTS hive_inspection_groups_audit ( audit_id SERIAL PRIMARY KEY , action_type CHAR(1) NOT NULL -- i (insert), b (before update), a (after update), d (delete) , user_id INT NOT NULL , action_date TIMESTAMP DEFAULT...
/* * Skript fuer die initialisierung des Prototyps mit sinnvollen Testdaten fuer die Entitaeten * - Productset * - Facadelayer * - DataSet * * ACHTUNG: Loescht alle vorherig enthaltenen Daten * */ -- delete statements DELETE FROM public.simi_dataset_list_properties; DELETE FROM public.simi_single_actor_list...
<reponame>stuart-rickard/staff-sql DROP DATABASE IF EXISTS staff_12; CREATE DATABASE staff_12; USE staff_12;
<gh_stars>1-10 -- -- TH-353 Recommendation module -- SQL authors: -- <NAME> -- <NAME> -- BEGIN; CREATE TABLE `user_reference_type` ( `id` bigint(20) NOT NULL AUTO_INCREMENT, `version` bigint(20) NOT NULL, `type` varchar(255) NOT NULL, PRIMARY KEY (`id`) ); COMMIT;
-- phpMyAdmin SQL Dump -- version 4.6.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 09, 2017 at 03:43 PM -- Server version: 5.7.14 -- PHP Version: 5.6.25 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */...
CREATE TABLE [dbo].[Documents] ( [Id] NVARCHAR (128) NOT NULL, [Name] NVARCHAR (128) NOT NULL, [Description] NVARCHAR (256) NULL, [DocumentType] NVARCHAR (32) NOT NULL, [FileGuid] NVARCHAR (128) NOT NULL, [GroupId] NVARCHAR (128) NOT NULL, CONSTRAINT [PK_dbo.Doc...
SET CHARSET UTF8; CREATE TABLE users ( id BIGINT unsigned NOT NULL AUTO_INCREMENT COMMENT 'ID', screen_name VARCHAR(255) UNIQUE NOT NULL COMMENT 'スクリーンネーム', password VARCHAR(255) NOT NULL COMMENT 'パスワード', privilege_id BIGINT unsigned NOT NULL COMMENT 'ピアID', created_at DATETIME DEFAULT CURRENT_TIMESTAMP NOT NU...
-- Use this script at the SOURCE USE [SourceDatabase] GO SELECT TOP(1) MAX(OrderID) FROM Sales.Orders; SELECT TOP (5) [OrderID] ,[Comments] ,[CustomerID] ,[SalespersonPersonID] ,[PickedByPersonID] ,[ContactPersonID] ,[BackorderOrderID] ,[OrderDate] ,[Expec...
INSERT INTO `status` (id,status) VALUES (1,'accepted'),(2,'synonym'); INSERT INTO `habit` (id,habit) VALUES (1,''),(2,'herb'),(3,'shrub'),(4,'tree'),(5,'vine'); INSERT INTO `excludedcode` (id,excludedcode) VALUES (1,''), (2,'misidentification'), (3,'documented'), (4,'cultivated'), (5,'old'), (6,'ephemeral'), (7,'det...
DROP INDEX "idx_beer_transfers_give_at";
CREATE DATABASE configurationservice; USE configurationservice; CREATE TABLE APP_CONFIG ( id INT AUTO_INCREMENT PRIMARY KEY, APPLICATION VARCHAR(255), PROFILE VARCHAR(255), LABEL VARCHAR(255), CODE VARCHAR(255), VALUE VARCHAR(255), CREATED_ON TIMESTAMP ); ...
<reponame>rudi-bruchez/tsql-scripts<gh_stars>10-100 -- check is the query store is enabled on some databases. SELECT d.name, d.database_id, d.create_date, d.state_desc as [state] FROM sys.databases d WHERE d.is_query_store_on = 1;
/* This script configures the permissions for the datastore. It ensures that the datastore read-only user will only be able to select from the datastore database but has no create/write/edit permission or any permissions on other databases. You must execute this script as a database superuser on the PostgreSQL server t...
/* Copyright 2021 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 writi...
<reponame>cs-fullstack-2019-spring/sql-review1-extra-Litterial -- 2) The number of packages listed in this table? select count(package) as Total_number_of_packages from cw_table;
<reponame>warlock2207/warlock INSERT INTO `guns`.`sys_menu` (`id`, `code`, `pcode`, `pcodes`, `name`, `icon`, `url`, `num`, `levels`, `ismenu`, `tips`, `status`, `isopen`) VALUES ('1133650090955444225', 'taskInfo', 'system', '[0],[system],', '账号管理', '', '/taskInfo', '99', '2', '1', NULL, '1', '0'); INSERT INTO `guns`.`...
<filename>University_table.sql<gh_stars>1-10 drop database University; CREATE DATABASE IF NOT EXISTS University DEFAULT CHARACTER SET utf8; USE University; /*学院表*/ /*学院ID(主键) 学院名称 学院描述 学院主管*/ CREATE TABLE unacademy ( academy_id int NOT NULL AUTO_INCREMENT, academy_name varchar(50) NOT NULL, academy_desc varchar(200)...
<reponame>kerbelp/redshift-utils /* A query displaying current locks. result example: table_id | last_update | lock_owner |lock_owner_pid| lock_status ----------+---------------------+------------+--------------+-------------+ 10023 | 2016-12-31 13:15:28 | 2342132 | 12032 | Holding writ...
library AbdominalLipectomy version '1.0.0' using FHIR version '4.0.0' include FHIRHelpers version '4.0.0' called FHIRHelpers codesystem "ICD-10-CM": 'http://hl7.org/fhir/sid/icd-10-cm' codesystem "LOINC": 'http://loinc.org' codesystem "HCPCS": 'https://hcpcs.codes/' codesystem "SNOMED-CT": 'http://snomed.info/sct' c...
------------------------------------------------------------------------- -- <copyright file="SeedData.sql"> -- Copyright © <NAME>. All rights reserved. -- </copyright> ------------------------------------------------------------------------- -- START SECTION INSERT INTO BtcDbSettings(PropertyName, PropertyValue) VAL...
{{ config(materialized='incremental', partition_by={'field':'test_date'}, cluster_by='ip' ) }} SELECT client.IP ip, a.*, * EXCEPT(a) FROM `measurement-lab.ndt.unified_downloads` WHERE test_date >= '2019-11-17'
/*L Copyright SAIC Copyright SAIC-Frederick Distributed under the OSI-approved BSD 3-Clause License. See http://ncip.github.com/camod/LICENSE.txt for details. L*/ -- Add new column named thumb_url and populate column with data from the URL column -- The column data will be different for tif imag...
create table lmv_bright.landuse_overlays ( gid int primary key, the_geom geometry, type varchar(16) ); INSERT INTO lmv_bright.landuse_overlays SELECT ogc_fid, the_geom, CASE WHEN funktion IN ('Golfbana') THEN 'golf_course' WHEN funktion IN ('Övrigt') THEN 'other' ...
<reponame>bogdanghita/public_bi_benchmark-master_project --SELECT "YaleLanguages_5"."Calculation_4170108085057450" AS "Calculation_4170108085057450", SUM(CAST("YaleLanguages_5"."Number of Records" AS BIGINT)) AS "sum:Number of Records:ok" FROM "YaleLanguages_5" WHERE (("YaleLanguages_5"."BIB_SUPPRESS_IN_OPAC" = 'N') ...
rem rem Header: oe_idx.sql 09-jan-01 rem rem rem NAME rem soedgindexes_pk_2.sql - create indexes for V2 SOE Schema rem rem DESCRIPTON rem Empty Stub rem -- Nothing here... Move on --End
<filename>src/Microsoft.Health.Fhir.SqlServer/Features/Schema/Sql/Tables/TaskInfo.sql /************************************************************* Task Table **************************************************************/ CREATE TABLE [dbo].[TaskInfo]( [TaskId] [varchar](64) NOT NULL, CONSTRAINT PKC_TaskInf...
CREATE DATABASE xero_db;
<reponame>jonathanprill/hacker-forum DROP DATABASE IF EXISTS hacker_forum_db; CREATE DATABASE hacker_forum_db;
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 03, 2020 at 04:14 AM -- Server version: 10.4.6-MariaDB -- PHP Version: 7.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
<gh_stars>0 select TABLE_NAME, COLUMN_NAME, DATA_TYPE, NULLABLE, DATA_PRECISION, DATA_SCALE, DATA_LENGTH from all_tab_columns where table_name = ? and COLUMN_NAME = ? and owner = ?
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 05, 2021 at 10:23 PM -- Server version: 10.1.38-MariaDB -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
DROP FUNCTION IF EXISTS grest.pool_blocks_in_epoch (_pool_bech32 text, _epoch_no uinteger); CREATE FUNCTION grest.pool_blocks_in_epoch (_pool_bech32 text, _epoch_no uinteger DEFAULT NULL) RETURNS TABLE ( block_hash text, block_no uinteger, epoch_no uinteger, epoch_slot_no uinteger, ...
-- -- Table structure for table `login` -- CREATE TABLE `login` ( `id` int(11) NOT NULL, `username` varchar(64) NOT NULL, `email` varchar(128) NOT NULL, `password` varchar(60) NOT NULL, `enabled` int(1) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET=latin1; -- -- Indexes for table `login` -- ALTER TABLE `login` ...
<filename>noticeboard.sql -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Oct 23, 2018 at 08:51 AM -- Server version: 10.1.28-MariaDB -- PHP Version: 7.1.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+...
<filename>packages/core-database-postgres/src/queries/state-builder/second-signatures.sql SELECT sender_public_key, asset FROM transactions WHERE type = 1 AND type_group = 1
<reponame>OpenDRR/opendrr-data-store<filename>scripts/Indicators/2.0 Seismic Risk (PSRA)/v1.1/psra_EQRiskIndex_test.sql -- calculate new EQRiskIndex indicator for PSRA --DROP TABLE IF EXISTS results_psra_{prov}.psra_{prov}_eqriskindex_calc CASCADE; --CREATE TABLE results_psra_{prov}.psra_{prov}_eqriskindex_calc AS DROP...
-- -- create table sa_suorat_koodistot_arvo_vastaukset -- USE ANTERO IF NOT EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='sa' AND TABLE_NAME='sa_suorat_koodistot_arvo_vastaukset') BEGIN CREATE TABLE [sa].[sa_suorat_koodistot_arvo_vastaukset] ( [koodi] [int] NULL, [selite_FI] [varchar](200...
<filename>src/test/resources/sql/_unknown/57be1a64.sql<gh_stars>10-100 -- file:plpgsql.sql ln:3078 expect:false for r in c2 loop raise notice '% from %', r.i, c2
-- CreateTable CREATE TABLE "cask" ( "id" SERIAL NOT NULL, "title" VARCHAR, "created_at" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP, "updated_at" TIMESTAMP(6) DEFAULT CURRENT_TIMESTAMP, "name" VARCHAR, "description" TEXT, CONSTRAINT "cask_pkey" PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE...
<reponame>Pronoy999/PTransfer drop procedure if exists sp_GetUploadRequestDetails; create procedure sp_GetUploadRequestDetails(parRequestId int) begin select r.id, r.total_parts, r.file_hash, r.file_owner, u.first_name, u.last_name, r.file_name, ...
<gh_stars>0 VALUES('Fuck You Github')
DROP TRIGGER IF EXISTS recalculate_totals on ${myuniversity}_${mymodule}."transaction"; DROP FUNCTION IF EXISTS ${myuniversity}_${mymodule}.recalculate_totals();
SET AUTOCOMMIT = 0; START TRANSACTION; INSERT INTO client_details (client_id, client_name, access_token_validity_seconds, logo_uri, token_endpoint_auth_method) VALUES ('040c7a59-7250-43e6-946d-941e765320a6', 'VisualDx Diagnostic CDS DSTU 2', 86400, 'https://sandbox.hspconsortium.org/dstu2/hspc-reference-apps/static/...
<reponame>wangjue2020/SQL<gh_stars>0 #流程控制结构 /* 顺序结构:程序从上往下依次执行 分支结构:程序从两条或多条路径中选择一条去执行 循环结果:程序在满足一定条件的基础上,重复执行一段代码 */ #一、分支结构 #1、if函数 /* 功能:实现简单的双分支 语法 IF (表达式1, 表达式2, 表达式3) 执行顺序: 如果表达式1成立,则IF函数返回表达式2的值,否则返回表达式3的值 应用:任何地方 */ #2、case 结构 /* 方式一: 语法: CASE 变量|表达式|字段 WHEN 要判断的值 THEN 返回的值1(或...
<filename>dbms/tests/queries/0_stateless/00674_join_on_syntax.sql drop table if exists test.tab1; drop table if exists test.tab2; drop table if exists test.tab3; drop table if exists test.tab1_copy; create table test.tab1 (a1 Int32, b1 Int32) engine = MergeTree order by a1; create table test.tab2 (a2 Int32, b2 Int32) ...
<reponame>bcgov/cas-ggircs<gh_stars>1-10 -- Verify ggircs:swrs/add_missing_indices on pg begin; -- No verify necessary. The existence of an index for each foreign key is ensured via a pgTap test. rollback;
<reponame>towhidulmannanuae/frapid DROP SCHEMA IF EXISTS addressbook CASCADE; CREATE SCHEMA addressbook; CREATE TABLE addressbook.contacts ( contact_id uuid PRIMARY KEY DEFAULT(gen_random_uuid()), associated_user_id integer REFERENCES account.users, first_name na...
<gh_stars>10-100 CREATE TABLE book_store ( name VARCHAR(400) NOT NULL UNIQUE );
<reponame>camba1/cdcon21BuildDriver -- Create the primary key generator create sequence public.table_id_seq; CREATE OR REPLACE FUNCTION public.next_id(OUT result bigint) AS $$ DECLARE our_epoch bigint := 1314220021721; seq_id bigint; now_millis bigint; shard_id int := 5; BEGIN SELECT nextval('publ...
<reponame>hongpx95/Babelfish-Extensions<gh_stars>0 -- test databasepropertyex() function select databasepropertyex(N'template1',N'Collation') GO select databasepropertyex(N'template1',N'IsInStandBy') GO select databasepropertyex(N'template1',N'IsAutoClose') GO select databasepropertyex(N'template1',N'IsAutoCreateStatis...
<reponame>Sergey111991KV/thirdServer<filename>src/Adapter/PostgreSQL/Migrations/1.sql CREATE TABLE IF NOT EXISTS usernews ( id_user SERIAL PRIMARY KEY, name_user text, lastname text, login_user text, password_user text, avatar_user text, datacreate_user timestamp with time zone, admin bo...
create table listing ( id binary not null, article_id varchar(255), store_id varchar(255), version bigint not null, primary key (id) ); create table stock ( article_id varchar(255) not null, store_id varchar(255) not null, value varchar(255), ...
ALTER TABLE "public"."Broadcast" DROP COLUMN "created_at";
/* Title SLM - Software Components Description Generates a list of Software Components with license details / counts and EOS / EOL information. */ SELECT s.software_pk "Software ID", s.name "Software Name", INITCAP(s.software_type) "Software Type", INITCAP(s.category_name) "Software Category", ...
<filename>models/output/bbd_week_on_week_retention_rate.sql WITH users AS ( SELECT DISTINCT user_pseudo_id, geo.country FROM `bamboodata-project.analytics_220006363.events_` /* INSERT NAME OF YOUR EVENTS TABLE HERE */ WHERE event_timestamp = user_first_touch_timestamp), registrations...
CREATE TABLE [dbo].[WaitStats]( [WaitStatsId] INT IDENTITY(1,1) NOT NULL CONSTRAINT pkWaitStats PRIMARY KEY CLUSTERED, [ReportDate] DATETIME2 NOT NULL, [Wait Type] [nvarchar](60) NOT NULL, [Wait Sec] [decimal](16, 2) NOT NULL, [Resource Sec] [decimal](16, 2) NOT NULL, [Signal Sec] [decimal](16,...
\timing on \set VERBOSITY verbose \o instalacao_log.txt \qecho /* ====================================================================== */ \echo /* ====================================================================== */ \qecho /* Instalação do banco de dados para o projeto SisBib */ \echo /* In...
//////////////////// // Note that this might not work for large size database // MATCH (a)-[r]->() DELETE a, r; //////////////////// // Note that this might not work for large size database // MATCH (a) DELETE a;
/*Returning all computers with a specific GPU (by id) and range of memory (as the above) i.e. usp_GetComputersWithGpuAndRamBetween(2, 8 GB, 16 GB)*/ USE ComputersDb GO CREATE PROC dbo.usp_GetComputersWithGpuAndRamBetween @GpuId INT, @minimumRAM INT, @maximumRAM INT AS SELECT [Id], [Vendor], [Model] FROM Co...