sql
stringlengths
6
1.05M
-- file:enum.sql ln:77 expect:true create type insenum as enum ('L1', 'L2')
-- 2020-10-09T10:11:42.177Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Menu (Action,AD_Client_ID,AD_Element_ID,AD_Menu_ID,AD_Org_ID,AD_Process_ID,Created,CreatedBy,Description,EntityType,InternalName,IsActive,IsCreateNew,IsReadOnly,IsSOTrx,IsSummary,Name,Updated,UpdatedBy) VALUES (...
-- Nodes CREATE INDEX IF NOT EXISTS osm_nodes_spgist ON osm_nodes USING SPGIST (geom); -- Ways CREATE INDEX IF NOT EXISTS osm_ways_spgist ON osm_ways USING SPGIST (geom); CREATE INDEX IF NOT EXISTS osm_ways_z0_spgist ON osm_ways_z0 USING SPGIST (geom); CREATE INDEX IF NOT EXISTS osm_ways_z1_spgist ON osm_ways_z1 USING...
<gh_stars>0 SELECT objectid, date_time FROM cnprcSrc_srl_aud.ASRL_TESTS WHERE ST_AUD_CODE = 'D';
<gh_stars>0 CREATE TABLE `tb_ferias` ( `Id_ferias` int(11) NOT NULL AUTO_INCREMENT, `matricula` int(11) DEFAULT NULL, `periodo` date DEFAULT NULL, `qtd_dias` int(2) DEFAULT NULL, PRIMARY KEY (`Id_ferias`), KEY `fk_matricula` (`matricula`), CONSTRAINT `fk_matricula` FOREIGN KEY (`matricula`) REFERENCES `tb...
<reponame>liangdefeng/cuba<filename>modules/core/db/update/postgres/19/190624-insertPredefinedRolesForAdminAndAnonymous.sql insert into SEC_USER_ROLE (ID, CREATE_TS, VERSION, USER_ID, ROLE_NAME) values ('cbdddc70-1ee2-0fe4-b63a-2d92ef0b15a2', now(), 0, '60885987-1b61-4247-94c7-dff348347f93', 'Administrators')^ insert ...
<filename>schema/test/unit/tables/application_revision_test.sql set client_min_messages to warning; create extension if not exists pgtap; reset client_min_messages; begin; select plan(18); -- Table exists select has_table( 'ggircs_portal', 'application_revision', 'ggircs_portal.application_revision should exist, ...
<filename>internal/post/sql/insert.sql<gh_stars>1-10 INSERT INTO Posts (userId, created, published, content) VALUES (?, ?, ?, ?)
<reponame>ynsingh/brihCI CREATE TABLE `user_role_type` ( `id` INT(11) PRIMARY KEY AUTO_INCREMENT, `userid` int(11) NOT NULL, `roleid` int(11) NOT NULL, `scid` int(10) DEFAULT NULL, `deptid` int(10) DEFAULT NULL, `usertype` varchar(255) NOT NULL, `ext1` varchar(255) NOT NULL ) ENGINE=InnoDB DEFAULT CHARSET...
create OR REPLACE table article( id int auto_increment, title varchar(1024) not null, slug varchar(1024) not null, body LONGTEXT not null, created_at int, updated_at int, created_by int, updated_by int, PRIMARY KEY (id) ); alter table article add constraint article_user_created_b...
DROP TABLE IF EXISTS `admin_user`; CREATE TABLE IF NOT EXISTS `admin_user` ( `id` int(11) NOT NULL AUTO_INCREMENT, `name` varchar(15) COLLATE utf8_czech_ci NOT NULL, `password` varchar(255) COLLATE utf8_czech_ci NOT NULL, `email` varchar(100) COLLATE utf8_czech_ci NOT NULL DEFAULT '@', `role` varchar(10) COLL...
set system parameters 'dont_reuse_heap_file=yes'; drop if exists t; create table t (i int not null, j int, k int, l int, s string); INSERT INTO t values (2,3,3876,1770,'H'), (0,9,982,1919,'J'), (2,3,4282,1453,'I'), (0,7,197,1679,'B'), (0,9,134,1909,'E'), (1,1,908,1293,'A'), (2,2,3772,1586,'F'), (1,6,111,1862,'D'), (0,6...
<filename>openGaussBase/testcase/KEYWORDS/message_length/Opengauss_Function_Keyword_Message_length_Case0033.sql<gh_stars>0 -- @testpoint:opengauss关键字message_length(非保留),作为视图名 --关键字explain作为视图名,不带引号,创建成功 CREATE or replace VIEW message_length AS SELECT * FROM pg_tablespace WHERE spcname = 'pg_default'; drop view messa...
<filename>database/db_schema/rest-api-laravel-6.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Feb 24, 2021 at 06:07 PM -- Server version: 5.7.24 -- PHP Version: 7.2.19 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; STAR...
<reponame>svetlimladenov/Databases-Basics---MS-SQL-Server GO CREATE PROC usp_AssignEmployeeToReport (@employeeId INT , @reportId INT) AS BEGIN BEGIN TRANSACTION UPDATE Reports SET EmployeeId = @employeeId WHERE @reportId = @reportId DECLARE @DeparmentEmployee INT = (SELECT DepartmentId FROM Employees WHERE Id = ...
/* SQLyog Ultimate v11.11 (64 bit) MySQL - 5.5.5-10.4.20-MariaDB : Database - laravel ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40101 SET @OLD_SQL...
<reponame>sohammanjrekar/HackerRank /* Author: <NAME> Query the list of CITY names from STATION which have vowels (i.e., a, e, i, o, and u) as both their first and last characters. Your result cannot contain duplicates. */ SELECT DISTINCT CITY FROM STATION WHERE REGEXP_LIKE(CITY,'^[aeiouAEIOU].*[aeiouAEIO...
<gh_stars>0 EXEC xp_instance_regread N'HKEY_LOCAL_MACHINE', N'HARDWARE\DESCRIPTION\System\CentralProcessor\0', N'ProcessorNameString';
<gh_stars>0 DROP TABLE IF EXISTS digimon; CREATE TABLE digimon( id SERIAL PRIMARY KEY, name VARCHAR(255), img VARCHAR(255), level VARCHAR(255) ); INSERT INTO digimon(name,img,level)VALUES('Yokomon','https://digimon.shadowsmith.com/img/yokomon.jpg','In Training');
BEGIN; CREATE TEMPORARY TABLE audit_reports_upsert ( demarcation_code TEXT, financial_year integer, url TEXT ) ; \copy audit_reports_upsert (demarcation_code, financial_year, url) FROM '/home/jdb/proj/code4sa/municipalmoney/django-project/audit_reports.csv' DELIMITER ',' CSV HEADER; UPDATE a...
<filename>SQL/Dashboard/Users.sql<gh_stars>1-10 select * From UserSettings order by LastLogin desc
<gh_stars>1-10 USE omop_synpuf; GO IF(OBJECT_ID('cdm_synpuf.concept') IS NOT NULL) BEGIN TRUNCATE TABLE cdm_synpuf.concept; BULK INSERT cdm_synpuf.concept FROM 'C:\Users\dldenton\Downloads\synpuf5pct_20180710\concept.csv' WITH ( FIRSTROW = 1, FIELDTERMINATOR = '\t', ROWTERMINATOR = '0x0...
<reponame>llitfkitfk/bk-job SET NAMES utf8mb4; USE job_file_gateway; alter table file_source add unique uniq_code(`code`);
<gh_stars>1-10 COPY imdb.name_basics FROM 's3://colibri-digital-source-data/name.basics.tsv.gz' IGNOREHEADER 1 ACCEPTINVCHARS DELIMITER '\t' GZIP iam_role 'arn:aws:iam::997661567820:role/redshift-spectrum-AccessS3BucketsRole-ZY449P7KMG0D'; COPY imdb.title FROM 's3://colibri-digital-source-data/title.akas.tsv' IGNOREH...
<gh_stars>10-100 -- MYSQL TestDB SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=1; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=1; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_MODE='TRADITIONAL'; -- create users table DROP TABLE IF EXISTS TestDB.Users; CREATE TABLE IF NOT EXISTS TestDB.Users ( ...
SELECT MIN(k.keyword) AS movie_keyword, MIN(n.name) AS actor_name, MIN(t.title) AS marvel_movie FROM title AS t JOIN (movie_keyword AS mk JOIN keyword AS k ON k.id = mk.keyword_id) ON t.id = mk.movie_id JOIN (cast_info AS ci JOIN name AS n ON n.id = ci.person_id) ON t.id = ci.movie_id WHERE k.keyword = 'm...
-- file:matview.sql ln:144 expect:true DROP TABLE mvtest_foo CASCADE
-- 2019-11-12T13:08:57.694Z -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator UPDATE AD_Column SET IsSelectionColumn='N', SelectionColumnSeqNo=0,Updated=TO_TIMESTAMP('2019-11-12 14:08:57','YYYY-MM-DD HH24:MI:SS'),UpdatedBy=100 WHERE AD_Column_ID=545315 ; -- 2019-11-12T13:08:57.714Z -- I forgot to set t...
<gh_stars>0 CREATE TABLE PERSON_MASS_CHANGE_DOCUMENT ( DOCUMENT_NUMBER VARCHAR2(40 BYTE) NOT NULL, UPDATE_USER VARCHAR2(60) NOT NULL, UPDATE_TIMESTAMP DATE NOT NULL, OBJ_ID VARCHAR2(36) NOT NULL, VER_NBR NUMBER(8,0) DEFAULT 1 NOT NULL ) / ALTER TABLE PERSON_MASS_CHANGE_DOCUMENT...
SELECT ogc_fid, reason(ST_IsValidDetail(wkb_geometry)) FROM fmp.main_rivers_10k WHERE ST_IsValid(wkb_geometry) = false;
<gh_stars>0 -------------------------------------------------------- -- File created - Friday-April-03-2015 -------------------------------------------------------- REM INSERTING into PERSONS SET DEFINE OFF; Insert into PERSONS (PERSON_ID,FIRST_NAME,LAST_NAME,ADDRESS,EMAIL,PHONE) values (9,'Jessamine','Yuli','P.O. ...
SET client_min_messages = warning; \set ECHO none \set ECHO all \set max_parallel_workers_per_gather 8 \set max_parallel_maintenance_workers 8 RESET client_min_messages; CREATE TABLE IF NOT EXISTS sm_pkt_32000(pkt text, id SERIAL); CREATE OR REPLACE FUNCTION copy_if_not_exists_pkt_32000 () RETURNS void AS $_$ BEGIN ...
<reponame>springbootbuch/embedded_h2 CREATE TABLE spring_data_modules ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(50) NOT NULL, PRIMARY KEY (id), UNIQUE KEY (name) );
<filename>framework/resources/Functional/semijoin/multiColumnJoin10.sql set `planner.enable_semijoin` = true; select orders.o_totalprice from orders where (orders.o_custkey,orders.o_totalprice) in (select customer.c_custkey,customer.c_acctbal from customer) order by orders.o_totalprice limit 10; reset `planner.enable_...
<gh_stars>1-10 DROP DATABASE BookingService; CREATE DATABASE BookingService; USE BookingService; drop table if exists CustOrder; create table CustOrder( OrderID int, Date date, CarID varchar(50), CustID varchar(50), primary key (OrderID) ); drop table if exists Accounts; create table Accounts ( acc...
--====================================================== -- -- Author: <NAME> -- Usage: This script runs the single_II_test procedure with different indexes. -- Database system supported/tested: SQL Server 2016 -- URL of the project: https://github.com/RadimBaca/QueryOptimizerBenchmark -- License: This code is publishe...
CREATE TABLE organization_team( organization_id INT NOT NULL REFERENCES organizations(id), team_id INT NOT NULL REFERENCES teams(id) ON DELETE CASCADE, PRIMARY KEY(organization_id, team_id) ); CREATE INDEX organization_team_organization_id_idx ON organization_team(organization_id); CREATE INDEX organization_tea...
<gh_stars>1-10 CREATE TABLE IF NOT EXISTS `hiredmerchitems` ( `inventoryitemid` bigint(20) UNSIGNED NOT NULL, `characterid` int(11) DEFAULT NULL, `accountid` int(11) DEFAULT NULL, `packageid` int(11) DEFAULT NULL, `itemid` int(11) NOT NULL DEFAULT 0, `inventorytype` int(11) NOT NULL DEFAULT 0, `position` ...
<filename>metacat-metadata-mysql/src/test/resources/sql/prepare-test.sql CREATE SCHEMA if not exists metacat; -- Create syntax for TABLE 'data_metadata' CREATE TABLE metacat.data_metadata ( id bigint(20) NOT NULL AUTO_INCREMENT, version bigint(20) NOT NULL, created_by varchar(255) NOT NULL, data longtext NOT NU...
<reponame>gusdyd98/py_datapreprocessingwar SELECT *, -- sex와 연령을 10살 단위로 구분한 카테고리값을 문자열로 하여, 사이에 '_'를 더해서 결합 sex || '_' || CAST(FLOOR(age / 10) * 10 AS TEXT) AS sex_and_age FROM work.customer_tb
-- -- Drop tables structure if already exists -- DROP TABLE IF EXISTS `evaluationmarker`; DROP TABLE IF EXISTS `evaluationimage`; DROP TABLE IF EXISTS `evaluation`; -- -- Table structure for table `evaluation` -- CREATE TABLE `evaluation` ( `id` int(11) NOT NULL AUTO_INCREMENT, `adddate` datetime DEFAULT NULL, ...
<reponame>HSSC/ProfilesRNS SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE procedure [Profile.Data].[Publication.PubMed.GetPersonInfoForDisambiguation] AS BEGIN SET nocount ON; DECLARE @search XML, @batchID UNIQUEIDENTIFIER, @batchcount INT, @threshold FLOAT --SET Custom Threshold based on int...
<filename>blog.sql -- -- PostgreSQL database dump -- -- Started on 2009-02-25 21:20:13 GMT SET client_encoding = 'UTF8'; SET standard_conforming_strings = off; SET check_function_bodies = false; SET client_min_messages = warning; SET escape_string_warning = off; -- -- TOC entry 1749 (class 1262 OID 16644) -- Name: b...
drop table if exists TC; create table TC ( A VARCHAR(6) NOT NULL , B INT NOT NULL ); insert into TC values ('200605',1); insert into TC values ('200302',0); SELECT DISTINCT A FROM TC START WITH B = 1 CONNECT BY B = 0 order by 1; drop table if exists TC;
<filename>openGaussBase/testcase/KEYWORDS/within/Opengauss_Function_Keyword_Within_Case0024.sql -- @testpoint: opengauss关键字within(非保留),作为存储过程名,部分测试点合理报错 --关键字不带引号-成功 drop procedure if exists within; create procedure within( section number(6), salary_sum out number(8,2), staffs_count out integer) is begin select...
<gh_stars>0 --GenerisiStanjeZalNaDan (nOrgDeo Number, dDatum DECLARE nRbr NUMBER; BEGIN nRbr := 0; FOR MAG IN(SELECT DISTINCT ORG_DEO, datum_dok FROM DOKUMENT WHERE VRSTA_dOK = 21 AND GODINA = 2012 AND STATUS=1 ORDER BY ORG_DEO ) LOOP ...
-- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 05-03-2018 a las 17:05:54 -- Versión del servidor: 10.1.30-MariaDB -- Versión de PHP: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; ...
create table if not exists BusLine ( line varchar(20) not null, description varchar(255), primary key (line) ); create table if not exists BusStop ( id varchar(20) not null, name varchar(255) not null, lat double precision, lng double precision, primary key (id) ); create table if not exists BusLineSt...
truncate table egbpa_sub_usage cascade; ALTER TABLE egbpa_sub_usage RENAME TO egbpa_builing_usage; alter table egbpa_builing_usage drop constraint fk_egbpa_sub_usage; alter table egbpa_builing_usage rename suboccupancy to usage; alter table egbpa_builing_usage add FOREIGN KEY (usage) REFERENCES egbpa_usage(id);
<filename>INFO/Books Codes/Oracle Database 10g PLSQL/Code/Chapter7/DupValOnIndex.sql /* * Chapter 7, Oracle10g PL/SQL Programming * by <NAME>, <NAME>, and <NAME> * * This block will raise the DUP_VAL_ON_INDEX exception. */ BEGIN INSERT INTO authors (id, first_name, last_name) VALUES (20000, 'John', 'Smith')...
<reponame>ingscarrero/dotNet CREATE PROCEDURE [dbo].[spFAMGetAvailabilityForecastItem] @token_id NVARCHAR(50), @filter_avlfrcitm_id_Pk BIGINT = NULL, @filter_avlfrcitm_fixed_asset_Fk BIGINT = NULL, @filter_avlfrcitm_stock INT = NULL, @filter_avlfrcitm_status NVARCHAR(100) = NULL, @filter_avlfrcitm_from DATE...
<filename>bumdes.sql -- phpMyAdmin SQL Dump -- version 4.9.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Feb 18, 2020 at 07:56 AM -- Server version: 10.4.8-MariaDB -- PHP Version: 7.3.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"...
CREATE PROC [dbo].[uspIssueSelectForUser] @UserID uniqueidentifier, @ListOfOrganizations Nvarchar(2000) AS /*---------------------------------------------------- - Getting My Sets for the Current User ----------------------------------------------------*/ SELECT Issue.IssueID , Issue.IssueName ...
<filename>ilut_tools/ILUT/sql_bcp/create_tour_table.sql CREATE TABLE {} ( [id] [int] NULL, [person_id] [int] NULL, [person_day_id] [int] NULL, [hhno] [int] NULL, [pno] [smallint] NULL, [day] [smallint] NULL, [tour] [smallint] NULL, [jtindex] [smallint] NULL, [parent] [smallint] NULL, [subtrs] [smallint] NULL...
-- phpMyAdmin SQL Dump -- version 4.2.10 -- http://www.phpmyadmin.net -- -- Host: localhost:8889 -- Generation Time: 2014 年 11 月 07 日 09:49 -- サーバのバージョン: 5.5.38 -- PHP Version: 5.6.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `cebu_app` -- -- -----------------------------------...
<gh_stars>1-10 SELECT day_of_week(from_unixtime(starttime)) AS day, interfaceid, sourceaddress, action, protocol FROM ${flow_log_athena_table} WHERE action = 'REJECT' AND protocol = 6 AND ingestdatetime > '2017-01-01-01' LIMIT 100;
<filename>src/Script/1. Usuario.sql CREATE USER BD_SGP IDENTIFIED BY s_gestion DEFAULT TABLESPACE "USERS" TEMPORARY TABLESPACE "TEMP"; GRANT "RESOURCE" TO BD_SGP; GRANT "CONNECT" TO BD_SGP;
CREATE OR REPLACE FUNCTION ti.gettablerecordcountbymonth(_tablename character varying) RETURNS TABLE(year integer, month integer, count integer, runningcount integer) LANGUAGE plpgsql AS $function$ BEGIN RETURN QUERY EXECUTE format( 'select distinct year , month , count(*)::integer as count ,(SUM(COUNT(*...
SELECT asm.p_id_iris_frmtd, grid.id AS grid_2000m_id INTO detroit.lookup_summary_area_by_property_id FROM detroit.assessments asm, detroit.grid_2000m grid WHERE ST_Intersects(grid.geom, ST_Transform( ST_SetSRID( ST_Point(asm.property_level_longitude, asm.propert...
<gh_stars>10-100 /* Navicat MySQL Data Transfer Source Server : 5.59 Source Server Version : 50721 Source Host : 192.168.5.59:3306 Source Database : fullstack Target Server Type : MYSQL Target Server Version : 50721 File Encoding : 65001 Date: 2018-03-22 10:33:23 */ SET FOREIGN_KE...
--- URI Online Judge SQL --- Copyright URI Online Judge --- www.urionlinejudge.com.br --- Problem 2613 CREATE TABLE prices ( id numeric PRIMARY KEY, categorie varchar(50), value numeric ); CREATE TABLE movies ( id numeric PRIMARY KEY, name varchar(50), id_prices numeric REFERENCES prices (id) ); INSERT ...
<reponame>chitratsr/AzureSynapseScriptsAndAccelerators<gh_stars>10-100 select * from admin._v_system_info;
<reponame>RyanAFinney/sakai -- Emergency fix to enable course site creation in 2.4.x demo systems. update CM_ACADEMIC_SESSION_T set START_DATE='01-JAN-2008', END_DATE='01-APR-2008' where START_DATE='01-JAN-2007'; update CM_ACADEMIC_SESSION_T set START_DATE='01-APR-2008', END_DATE='01-JUN-2008' where START_DATE='01-APR...
<gh_stars>0 -- MySQL dump 10.13 Distrib 8.0.13, for Linux (x86_64) -- -- Host: localhost Database: tackpion -- ------------------------------------------------------ -- Server version 8.0.13 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RE...
<filename>modules/core/db/init/postgres/10.create-db.sql<gh_stars>0 -- begin LIS_FA_FILE create table lis_fa_file ( fa_per_id varchar(10), -- fa_action_code varchar(1), fa_do_nbr integer, fa_end_date date, fa_fac_nbr integer, fa_fac_type integer, fa_last_upd_date date, fa_personnel_t...
<reponame>Ed-Fi-Alliance-OSS/Ed-Fi-MigrationUtility<gh_stars>0 -- 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 i...
INSERT INTO `demo`.`md_tables` (`md_tables_id`, `tenant_id`, `database_id`, `schema_code`, `md_tables_name`, `md_tables_desc`, `public_flag`, `text_column1`, `text_column2`, `text_column3`, `text_column4`, `text_column5`, `int_column1`, `int_column2`, `int_column3`, `num_column1`, `num_column2`, `num_column3`, `date_co...
<gh_stars>10-100 DROP TABLE IF EXISTS t_delay_task; CREATE TABLE t_delay_task ( TASK_ID varchar(20) NOT NULL COMMENT '任务ID', RELATIVE_ID varchar(100) NULL COMMENT '关联ID,比如订单ID\会员卡ID\排期ID等', CLASSIFIER varchar(20) NOT NULL COMMENT '任务分类', TASK_NAME varchar(100) NOT NULL COMMENT '任务名称', TASK_SERVICE varchar(100) NOT...
<reponame>hayeb/teiid-spring-boot<gh_stars>10-100 /* ########################################### # START DATABASE customer ########################################### */ CREATE DATABASE customer VERSION '1' OPTIONS (ANNOTATION 'Customer VDB'); USE DATABASE customer VERSION '1'; --############ Translators ############ ...
<reponame>UAMS-DBMI/PosdaTools<gh_stars>1-10 -- Name: GetPatientMappingForPatientsInTimepointWithMissing -- Schema: posda_files -- Columns: ['from_patient_id', 'to_patient_id', 'to_patient_name', 'collection_name', 'site_name', 'batch_number', 'diagnosis_date', 'baseline_date', 'date_shift', 'uid_root', 'site_code', 'f...
<reponame>cuadradek/perun -- database version 3.1.82 (don't forget to update insert statement at the end of file) CREATE EXTENSION IF NOT EXISTS "unaccent"; CREATE EXTENSION IF NOT EXISTS "pgcrypto"; -- VOS - virtual organizations create table vos ( id integer not null, name varchar not null, -- full n...
CREATE UNIQUE INDEX uniq_email ON auth_user(email) WHERE email IS NOT NULL;
-- @testpoint:opengauss关键字release(非保留),作为外部数据源名 --关键字不带引号-成功 drop data source if exists release; create data source release; drop data source release; --关键字带双引号-成功 drop data source if exists "release"; create data source "release"; drop data source "release"; --关键字带单引号-合理报错 drop data source if exists 'release'; --...
CREATE TABLE [Stage].[PlanedToRealPayments] ( [Id] [bigint] NOT NULL, [GID] [uniqueidentifier] NOT NULL, [PlanedPaymentGID] [uniqueidentifier] NOT NULL, [RealPaymentGID] [uniqueidentifier] NOT NULL, [Value] [decimal](18, 2) NOT NULL, [Deleted] [bit] NOT NULL, [AuthorGID] [uniqueidentifier] NULL, [_Crea...
<reponame>gegagome/IRS_Preparers CREATE TABLE [dbo].[Table] ( [Id] INT NULL, [Name of Business] TEXT NULL, [Address] TEXT NULL, [Location] TEXT NULL, [Point of Contact] TEXT NULL, [Telephone] TEXT NULL, [Type of Service] TEXT NULL, PRIMARY...
<gh_stars>0 //Description: The script generates a report of tablesapces, data files, roll back segments, control files, log files, objects (user wise, valid and invalid) set long 132 set serveroutput on declare cursor tablespaces is select t.tablespace_name, round(sum(bytes/(1024*1024)),0) ts_size from dba_...
select c_last_name ,c_first_name ,ca_city ,bought_city ,ss_ticket_number ,amt,profit from (select ss_ticket_number ,ss_customer_sk ,ca_city as bought_city ,sum(ss_coupon_amt) as amt ,sum(ss_net_profit) as profit from store_sales ...
ALTER TABLE persons ADD COLUMN IF NOT EXISTS locationOfBirth UUID, ADD COLUMN IF NOT EXISTS locationOfDeath UUID;
IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Sportsfest_MemberId]') AND type = 'D') BEGIN ALTER TABLE [dbo].[Sportsfest] DROP CONSTRAINT [DF_Sportsfest_MemberId] END GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = OBJECT_ID(N'[DF_Sportsfest_EntryDate]') AND type = 'D') BEGIN ALTER TABLE [...
<reponame>Shuttl-Tech/antlr_psql -- file:portals.sql ln:268 expect:true declare c1 cursor for select count_tt1_v(), count_tt1_s()
<filename>01 - [MS SQL Problems]/10 - [Subqueries and Joins - Exercise]/P14_CountriesWithRivers.sql SELECT TOP (5) c.CountryName, r.RiverName FROM Countries AS c LEFT JOIN CountriesRivers AS cr ON cr.CountryCode = c.CountryCode LEFT JOIN Rivers r ON r.Id = cr.RiverId WHERE c.ContinentC...
-- 29.06.2016 11:04 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_Table (AccessLevel,ACTriggerLength,AD_Client_ID,AD_Org_ID,AD_Table_ID,CopyColumnsFromTable,Created,CreatedBy,EntityType,ImportTable,IsActive,IsAutocomplete,IsChangeLog,IsDeleteable,IsHighVolume,IsSecurityEnabled,IsView,...
<gh_stars>1-10 DROP DATABASE IF EXISTS localshop_database; CREATE DATABASE localshop_database;
CREATE SEQUENCE test_sequence START WITH 1 INCREMENT BY 1 MINVALUE 1 ALTER SEQUENCE test_sequence INCREMENT BY 10 MINVALUE 1 MAXVALUE 371717 CYCLE
<reponame>octanner/kafka-api<gh_stars>0 # --- !Ups CREATE TABLE TOPIC_KEY_MAPPING ( TOPIC_ID TEXT NOT NULL REFERENCES TOPIC(TOPIC_ID), KEY_TYPE TEXT NOT NULL, SCHEMA TEXT NULL, VERSION INT NULL, CLUSTER TEXT NOT NULL, CREATED_TIMESTAMP TIMESTAMP DEFAULT now(), PRIMARY KEY (TOPIC_ID) );
CREATE TABLE dbuserpasswordresettoken (Domain varchar(255), UserId varchar(255), Token varchar(255), ExpireDate datetime);
/* List all procedures and functions in the graph algorithms library (algo.*) */ CALL algo.list() /* List all procedures and functions in the graph algorithms library whose name contains a given pattern, for instance "pageRank" */ CALL algo.list("pageRank")
-- ============================================= -- Create date: <2016/6/18> -- Description: 查看数据库错误日志 -- ============================================= EXEC xp_readerrorlog 0,1,NULL,NULL,'2016-04-28','2018-10-10','DESC'
<gh_stars>1000+ -- -- PostgreSQL database dump -- -- Dumped from database version 9.6.2 -- Dumped by pg_dump version 9.6.2 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SET check_function_bodies = false...
<reponame>Anshelen/portfolio<gh_stars>0 ALTER TABLE account ADD COLUMN version INTEGER DEFAULT 0; ALTER TABLE verification_token ADD COLUMN version INTEGER DEFAULT 0;
-- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Servidor: localhost -- Tiempo de generación: 14-11-2018 a las 18:55:56 -- Versión del servidor: 10.1.36-MariaDB -- Versión de PHP: 7.2.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00";...
CREATE TABLE "room"."ShuffleAlgorithm"("name" text NOT NULL, "description" text NOT NULL, PRIMARY KEY ("name") );
drop table if exists TPRIVILEGE; CREATE TABLE PUBLIC.TPRIVILEGE ( C_PRIVILEGEID VARCHAR(100), C_PRIVILEGECODE VARCHAR(100), C_PRIVILEGENAME VARCHAR(100), C_PRIVILEGEFULLCODE VARCHAR(100), C_PARENTFULLCODE VARCHAR(100), C_PRIVILEGETYPE VARCHAR(100), C_PRIVILEGEURL VARCHAR(100), C_ICON VARCHAR(100), L_SORTID I...
CREATE TABLE facts( factsID SERIAL NOT NULL PRIMARY KEY, dateCreated TIMESTAMPTZ NOT NULL DEFAULT NOW(), data JSON NOT NULL ); CREATE OR REPLACE FUNCTION trigger_set_timestamp() RETURNS TRIGGER AS $$ BEGIN NEW.updated_at = NOW(); RETURN NEW; END; $$ LANGUAGE plpgsql; CREATE TRIGGER set_timestamp BEFOR...
<reponame>uk-gov-mirror/SkillsFundingAgency.das-login-service<filename>src/SFA.DAS.LoginService.Database/Tables/IdentityServer/IdentityServer.ApiProperties.sql CREATE TABLE [IdentityServer].[ApiProperties] ( [Id] [int] IDENTITY(1,1) NOT NULL, [Key] [nvarchar](250) NOT NULL, [Value] [nvarchar](2000) NOT NULL, [ApiR...
EXEC [EST].[Proc_yjbb_Ins] @Code = N'603811',@CutoffDate = N'2017-09-30',@EPS = N'0.58',@EPSDeduct = N'0',@Revenue = N'2.27亿',@RevenueYoy = N'6.35',@RevenueQoq = N'17.91',@Profit = N'4561.75万',@ProfitYoy = N'1.06',@ProfiltQoq = N'-1.91',@NAVPerUnit = N'6.7392',@ROE = N'9.58',@CashPerUnit = N'0.3898',@GrossProfitRate = ...
<gh_stars>0 /* SQLyog Professional MySQL - 10.4.11-MariaDB : Database - dbperpus ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */; /*!40014 SET @OLD_FOREIGN_KEY_CHECKS=@...
<filename>db/src/libs/util/schema.sql drop schema if exists util cascade; create schema util; set search_path = util, public; \ir mutation_comments_view.sql;
DROP SCHEMA public CASCADE; CREATE SCHEMA public; CREATE EXTENSION pg_trgm; CREATE TABLE companies ( id SERIAL PRIMARY KEY, name VARCHAR(255) NOT NULL, ic_id VARCHAR(63) NOT NULL UNIQUE, created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, login_url VARCHAR(255), has_support BOOLEAN DEFAULT FALSE, detai...
CREATE INDEX flw_name_idx ON flows (name);