sql
stringlengths
6
1.05M
<reponame>commular/commular-bb-generate alter table TB_PUBLISHING_JOBS add UPDATE_PUBLISH_STATES boolean; update TB_PUBLISHING_JOBS set UPDATE_PUBLISH_STATES = 0; alter table TB_WORK_PACKAGES add STATUS_CHANGE_DATE timestamp null default null; alter table TB_PUBLISHING_JOBS modify FINISHED_DATE timestamp ...
INSERT INTO `arenes`(`id`, `nom`, `id_badges`, `id_positions`) VALUES (1,'Arène d\'Argenta',1,1); INSERT INTO `arenes`(`id`, `nom`, `id_badges`, `id_positions`) VALUES (2,'Arène d\'Azuria',2,2); INSERT INTO `arenes`(`id`, `nom`, `id_badges`, `id_positions`) VALUES (3,'Arène de <NAME>',3,3); INSERT INTO `arenes`(`id`, `...
CREATE VIEW `E306` AS SELECT CONCAT( abo_nom, ' ', abo_prn ) AS 'identité', COUNT(*) AS 'nb abonnement' FROM ABONNE, ABONNEMENT WHERE ABONNEMENT.abo_id = ABONNE.abo_id GROUP BY ABONNE.abo_id ORDER BY 2 DESC;
<gh_stars>0 -- Column datatype limits aiming to balance compactness with potential for future edge cases -- Frequently shorter than the prod database source datatypes, where I believe those are overly long. drop table if exists extract_dim_society_combo; create table extract_dim_society_combo( SocietyComboValueRaw ...
<filename>assets/scripts.sql RENAME TABLE articulo_urk TO articulo; RENAME TABLE inventario_urk TO inventario;
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 12 Nov 2020 pada 05.57 -- Versi server: 10.1.37-MariaDB -- Versi PHP: 7.3.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
CREATE DATABASE print_to_resist;
ALTER TABLE logs ADD COLUMN version VARCHAR(20) NOT NULL DEFAULT '1'; UPDATE logs AS l1 SET version = (SELECT count(entry_id) + 1 FROM logs AS l2 WHERE l2.entry_id = l1.entry_id AND l2.id < l1.id) WHERE l1.entry_id IN (SELECT entry_id FROM logs GROUP BY entry_id HAVING count(entry_id) > 1);
<filename>prisma/migrations/20210408145424_lost_pets/migration.sql<gh_stars>1-10 -- CreateTable CREATE TABLE "lost_pet" ( "id_lost_pet" SERIAL NOT NULL, "archived" BOOLEAN NOT NULL DEFAULT false, "archive_date" TIMESTAMP(3), "description" TEXT NOT NULL, "created_at" TIMESTAMP(3) NOT NULL DEFAULT CUR...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 10.1.35-MariaDB - mariadb.org binary distribution -- Server OS: Win32 -- HeidiSQL Version: 9.4.0.5125 -- ------------------------------------------------...
SELECT COUNT(*) FROM ( SELECT c.code, c.name, SUM(cl.percentage) FROM countries c LEFT JOIN countries_languages cl ON cl.countrycode = c.code GROUP BY c.code HAVING SUM(cl.percentage) < 100 OR SUM(cl.percentage) IS NULL ) Result -- Answer: 202
-- file:rangetypes.sql ln:342 expect:true select '[2010-01-01 01:00:00 -08, 2010-01-01 02:00:00 -05)'::tstzrange
CREATE TABLE [Membership].[UserDetails] ( [Id] INT NOT NULL IDENTITY, [Username] NVARCHAR(30) NOT NULL, [Email] NVARCHAR(254) NOT NULL, [Comment] NVARCHAR(MAX) NULL, CONSTRAINT [PK_UserDetails_Id] PRIMARY KEY CLUSTERED ([Id] ASC), CONSTRAINT [UI_UserDetails_Username] UNIQUE ([Username]) ) GO EXEC sp_add...
<reponame>uk-gov-mirror/defra.water-abstraction-service alter table water.change_reasons drop column position; insert into water.change_reasons (description, date_created, triggers_minimum_charge, type, is_enabled_for_new_charge_versions) values ('Licence revoked within a month of annual billing', NOW(), false, 'ne...
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; /*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; /*!40101 SET NAMES utf8 */; CREATE DATABASE IF NOT E...
<reponame>Haotian9850/com.haotian9850 USE haotian1_cms; INSERT INTO posts (coverImage, publicationDate, title, author, summary, content) VALUES( "mt_hamilton_uphill.jpg", "2018-05-26", "Climb up <NAME>", "Hao", "While attending a 3-month software engineering internship in San Jose, California, I attempted t...
-- 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. SET IDENTITY_INSERT [edfi].[GradingPeriodType] ON...
update service_attachments set "primary" = $2, secondary_configvar_map_ids = $3, updated = now() where service_attachment::varchar(1024) = $1::varchar(1024)
<filename>superfly-sql/src/ui_get/ui_get_mapped_role_groups_list_count.prc drop procedure if exists ui_get_mapped_role_groups_list_count; delimiter $$ create procedure ui_get_mapped_role_groups_list_count(i_grop_id int(10)) main_sql: begin call int_role_groups_list_count(i_grop_id, "M"); end $$ delimit...
/****** Object: View [dbo].[V_GetPipelineSettingsFiles] ******/ SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE VIEW [dbo].[V_GetPipelineSettingsFiles] AS SELECT ID, Analysis_Tool, File_Name, Description, Active, Last_Updated, Contents, Job_Usage...
-- $Id$ -- This script creates the SCOTT schema used by some of the unit tests. !set verbose true -- create local SCOTT schema create schema SCOTT; set schema 'SCOTT'; CREATE TABLE DEPT ( DEPTNO INTEGER NOT NULL PRIMARY KEY, DNAME VARCHAR(14), LOC VARCHAR(13)); INSERT INTO DEPT VALUES (10, 'ACCOUNTI...
insert into "security_group_security_permission" (security_permission_id, security_group_id) select 'VIEW_MY_COMPETENCY_MASTERY', g.security_group_id from security_group g where g.group_name = 'STUDENT';
select name, launch_template_id from alicloud_ecs_launch_template where name = '{{ resourceName }}';
select * from {{ var('project') }}
<gh_stars>1-10 UPDATE datasetfieldtype SET facetable=false WHERE name in ('authorAffiliationIdentifier', 'grantNumberAgencyIdentifier');
<filename>src/main/resources/database/oracle/alter_15_2_x_to_15_2_7.sql -- Repository drop index descritpion_idx; alter table o_repositoryentry modify external_ref varchar2(255 char);
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1:3306 -- Время создания: Май 04 2020 г., 15:35 -- Версия сервера: 10.3.13-MariaDB-log -- Версия PHP: 7.1.32 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 S...
<filename>DB_Files/pns_erp_2017_08_27.sql /* SQLyog Ultimate v11.33 (32 bit) MySQL - 10.0.31-MariaDB-0ubuntu0.16.04.2 : Database - pns_erp ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQ...
<filename>laboratorio - Estrutura do banco.sql -- phpMyAdmin SQL Dump -- version 4.0.4 -- http://www.phpmyadmin.net -- -- Máquina: localhost -- Data de Criação: 17-Ago-2015 à s 03:28 -- Versão do servidor: 5.6.12-log -- versão do PHP: 5.4.16 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!...
<gh_stars>0 CREATE TABLE category ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(128) NOT NULL, PRIMARY KEY (id) ); CREATE TABLE author ( id int(11) NOT NULL AUTO_INCREMENT, name varchar(128) NOT NULL, login varchar(60) NOT NULL, email varchar(128) NOT NULL, pass varchar(255) NOT NULL, PRI...
<reponame>victorgv/TypeB_MessagingHub CREATE DATABASE db_messaginghub WITH OWNER = victor ENCODING = 'UTF8'; CREATE SCHEMA sc_messaginghub AUTHORIZATION victor;
<reponame>frank71336/Mrv.Wintertalentiade use Wintertalentiade; -- ################################################################################################################################################################################ IF OBJECT_ID('dbo.T_StationPings', 'U') IS NOT NULL DROP TABLE dbo.T_Stat...
<filename>lotteryModel.sql CREATE TABLE `salesinfo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `periodId` int(11) NULL DEFAULT NULL COMMENT '期间', `province` char(10) CHARACTER SET gbk COLLATE gbk_chinese_ci NULL DEFAULT NULL COMMENT '省份', `salesAmount` decimal(18,2) NULL DEFAULT NULL COMMENT '销售额', `firstPrize` varch...
# ************************************************************ # Sequel Pro SQL dump # Version 4004 # # http://www.sequelpro.com/ # http://code.google.com/p/sequel-pro/ # # Host: 192.168.10.38 (MySQL 5.5.39-36.0) # Database: kiskeclass # Generation Time: 2014-09-01 14:50:35 +0000 # *************************************...
<reponame>tavo87/AdminUserApi CREATE TABLE [dbo].[Permission] ( [Id] UNIQUEIDENTIFIER NOT NULL PRIMARY KEY DEFAULT (newid()), [Code] VARCHAR(50) NOT NULL UNIQUE, [Name] VARCHAR(100) NOT NULL, ) GO EXEC sp_addextendedproperty @name = N'MS_Description', @value = N'Identificador unico del Permiso', @le...
<reponame>RamiKerenawi/social -- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Sep 16, 2016 at 06:48 AM -- Server version: 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_CLI...
CREATE TABLE randomizers ( id INTEGER PRIMARY KEY, name TEXT NOT NULL, abbreviation TEXT NOT NULL, repository_url TEXT NOT NULL, download_url TEXT NOT NULL, support_url TEXT NOT NULL, gameid INTEGER NOT NULL REFERENCES games(id) );
set echo on spool createUser.log -- def USERNAME = &1 -- def PASSWORD = &2 -- grant connect, resource, unlimited tablespace to &USERNAME identified by &PASSWORD / alter user &USERNAME account unlock / quit
-- file:privileges.sql ln:1098 expect:true DROP TABLE atest5
<reponame>bowlofstew/comdb2<gh_stars>1-10 insert into t10 (id, d) values (1, "0.0") insert into t10 (id, d) values (2, "-0.0") insert into t10 (id, d) values (3, "0e0") insert into t10 (id, d) values (4, "-0e0") insert into t10 (id, d) values (5, "1") insert into t10 (id, d) values (6, "-1") insert into t10 (id, d) val...
SELECT hc.locationName AS name, hc.timeZone AS timeZone, l.locationName AS locationName, metricValues.metric AS metric, metricValues.dimensionalValues AS dimensionalValues FROM `<PROJECT_ID>.alligator.hourly_calls` AS hc CROSS JOIN UNNEST(hc.metricValues) AS metricValues JOIN `<PROJECT_ID>.alligator...
<reponame>drlund/agendasuper<filename>agenda.sql -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 19-Mar-2021 às 20:37 -- Versão do servidor: 10.4.18-MariaDB -- versão do PHP: 7.4.16 -- -- Banco de dados: `agenda` -- -- ---------------------------------...
drop table if exists tinybench; create table tinybench (ki int, kt varchar(100), vc int, vt text); create index tinyidx on tinybench(ki, kt);
select foo, row_number() over w from baz window w as (partition by quz), w2 as (w order by abc)
CREATE TABLE films ( code char(5) CONSTRAINT firstkey PRIMARY KEY, title varchar(40) NOT NULL, len interval hour to minute ); INSERT INTO films VALUES ('MOV01', 'Some movie 1', '1:59'); INSERT INTO films VALUES ('MOV02', 'Some movie 2', '2:59'); INSERT INTO films VALUES ('MOV...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 10-04-2017 a las 20:50:52 -- Versión del servidor: 10.1.21-MariaDB -- Versión de PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CL...
<reponame>vlganev/CSharp-DB-Fundamentals<filename>Databases Basics MSSQL Server/Data Definition and Data Types/Data Definition and Data Types Exercise.sql<gh_stars>0 -- Problem 1. Create Database CREATE DATABASE Minions -- Problem 2. Create Tables USE Minions CREATE TABLE Minions ( Id INT PRIMARY KEY IDENTITY NOT NUL...
USE Geography --P10 SELECT CountryName AS [Country Name], IsoCode AS [ISO Code] FROM Countries WHERE CountryName LIKE('%a%a%a%') ORDER BY IsoCode --P11 SELECT p.PeakName, r.RiverName, LOWER(p.PeakName+SUBSTRING(r.RiverName,2,LEN(r.RiverName)-1)) AS Mix FROM Peaks p,Rivers r WHERE RIGHT(p.PeakName,1)=...
CREATE MATERIALIZED VIEW mv_pool_avg_minutes_between_first_login_and_real_money_hand AS ( WITH t_all AS ( SELECT DATE_TRUNC('month', f_register_stamp) :: DATE AS f_date, AVG(f_minutes) AS f_avg_minutes_all FROM mv_minutes_between_first...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 11 Nov 2016 pada 10.08 -- Versi Server: 10.1.16-MariaDB -- PHP Version: 7.0.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARAC...
/*aaaa*/ /*[query]*/ select ${field} from ${db}."user" t --用户表 ${x.part1}; /*[query2]*/ select current_timestamp; /*插入语句。*/ /* [ great.insert ] */ insert into test."user" (id, name, password) values (:id, :name, :password); /*第一部分*/ /*{x.part1} */ where id = :id ${order}; /*{field}*/ /*用户表字段*/ t . id ,t.n...
<reponame>peterrobert/SQL_SQLZOO SELECT x.name, x.continent, x.population FROM world x WHERE x.continent NOT IN (SELECT y.continent FROM world y WHERE y.population > ALL(SELECT 25000000))
DROP TABLE IF EXISTS `pingdom_check`; CREATE TABLE `pingdom_check` ( `id` INT(4) UNSIGNED NOT NULL, `name` VARCHAR(8192) NOT NULL, `created_at` TIMESTAMP NOT NULL, `status` ENUM('up', 'down', 'unconfirmed_down', 'unknown', 'paused') NOT NULL, `hostname` VARCHAR(8192) NOT NULL, `type` ENUM('http'...
<filename>migrations/V2__create_tags.sql CREATE TABLE IF NOT EXISTS tags ( id SERIAL8 PRIMARY KEY, fav_id INT8 NOT NULL, label TEXT NOT NULL );
set search_path to core, extensions; create table if not exists lookups ( id uuid primary key default uuid_generate_v4() , name varchar(30) , modified_on timestamp not null default now() , modified_by varchar ); create unique index if not exists lookup_ukey on lookups(name); c...
<filename>fineract-provider/src/main/resources/sql/migrations/core_db/V297__Adding_Meeting_Time_column.sql<gh_stars>0 alter table m_calendar add meeting_time Time
CREATE TABLE IF NOT EXISTS `decentrandom_blocks` ( `height` bigint(20) unsigned NOT NULL, `block_hash` varchar(64) NOT NULL, `block_time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, `proposer` varchar(64) NOT NULL, `number_of_txs` int(10) unsigned NOT NULL, UNIQUE KEY `height` ...
<reponame>jin1xiao3long2/software_engineering INSERT INTO `disease` VALUES ('1', '1', '1', '1', '1', '1'); INSERT INTO `disease` VALUES ('Stomachache', 'pain_stomache', 'wrong eating', '无', 'right eat', 'pin_undersws');
<gh_stars>10-100 create table TAB_PARTITION_RANGE ( COL1 NUMBER(15) not null, COL2 NUMBER(15) not null ) compress partition by range (COL1,COL2)(partition part_10 values less than (10,5),partition part_20 values less than (maxvalue,maxvalue)); create table TAB_PARTITION_RANGE_TABSPACE ( COL1 NUMBER(15) not null, C...
var idv number exec :idv := 5 select sum(num) from sales where id < :idv; @plan
<filename>sql/_17_sql_extension2/_02_full_test/_05_date_time_function/_10_week/cases/week_005.sql --pass different formats of date/timestamp/datetime arguments --1. pass different formats of date arguments select week(date'2010-10-08'); --select week(date'12-25'); select if(week(date'12-25')=week(date(concat(year(sy...
USE AIRLINE; -- Insert Airports; insert into AIRPORT VALUES('0AK', 'Pilot Station Airport', 'Pilot Station', 'AK'); insert into AIRPORT VALUES('16A', 'Nunapitchuk Airport', 'Nunapitchuk', 'AK'); insert into AIRPORT VALUES('1G4', 'Grand Canyon West Airport', 'Peach Springs', 'AZ'); insert into AIRPORT VALUES('2A3', 'La...
<filename>sql/t_corp.sql /* Navicat Premium Data Transfer Source Server : 127.0.0.1_mysql Source Server Type : MySQL Source Server Version : 80016 Source Host : 127.0.0.1:3306 Source Schema : display Target Server Type : MySQL Target Server Version : 80016 File Encoding ...
-- idTipoQuarto é Serial, logo o valor 1 é assumido pra primary key do single -- 2 para duploe, 3 para casal e 4 para suito. INSERT INTO TipoQuarto (nome, preco) VALUES ('single', 25), ('duplo', 25), ('casal', 25), ('suite', 25); INSERT INTO Hotel (nome, endereco, telefone) VALUES ('Doguinhos', 'R. Blumenau, 30...
--Creating de-normalized dimension table with all attributes for time -- REM Add compression encoding -- REM Add sort key & distribution --Adding Start Time --Updating latest run stats to apollo control table UPDATE rpt_apollo.apollo_control_table set last_start_date = getdate() , status = 'Started' WHERE s...
CREATE TABLE "user" ( id serial PRIMARY KEY, username varchar(20) NOT NULL, password varchar(128) NOT NULL, email varchar(128) NOT NULL, activkey varchar(128), created TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP, lastvisit TIMESTAMP , superuser integer NOT NULL DEFAULT 0, status integer NOT NULL DEFA...
CREATE TABLE t_pembelian_customer ( id_pembelian INT(11) PRIMARY KEY AUTO_INCREMENT, tgl_pembelian DATETIME, total_bayar_customer INT(11) NOT NULL, total_harga_barang INT(11) NOT NULL, id_toko INT(11) NOT NULL, id_pegawai INT(11) NOT NULL ); ALTER TABLE t_pembelian_customer ADD CONSTRAINT id_to...
create database if not exists ims; create table if not exists ims.customers(customerid int primary key auto_increment, first_name varchar(40), surname varchar(40)); create table if not exists ims.items(itemid int primary key auto_increment, itemName varchar(40), itemPrice DOUBLE(6,2)); create table if not exists ims.or...
<filename>db_eoffice2019.sql -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 23, 2019 at 09:20 AM -- 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 = ...
<gh_stars>1-10 -- -- Database: `repairshop` -- -- -------------------------------------------------------- -- -- Table structure for table `activations` -- DROP TABLE IF EXISTS `activations`; CREATE TABLE IF NOT EXISTS `activations` ( `id` int(10) UNSIGNED NOT NULL AUTO_INCREMENT, `user_id` int(10) UNSIGNED NO...
CREATE TABLE java_topics( id INT PRIMARY KEY NOT NULL, name TEXT NOT NULL );
DROP DATABASE IF EXISTS jhjr0anlumd45h6u; CREATE DATABASE jhjr0anlumd45h6u; DROP DATABASE IF EXISTS student_behavior_db; CREATE DATABASE student_behavior_db;
-- file:plpgsql.sql ln:2168 expect:true create function void_return_expr() returns void as $$ begin perform 2+2
show databases; CREATE DATABASE IF NOT EXISTS laravel; CREATE USER IF NOT EXISTS 'laravel'@'%' IDENTIFIED BY 'password'; GRANT ALL PRIVILEGES ON laravel.* TO 'laravel'@'%'; FLUSH PRIVILEGES;
<reponame>henry-ns/iTern<filename>db/inserts.sql INSERT INTO company (email, password, cnpj, razao_social, street, number, neighborhood, city, postal_code, state) VALUES ('<EMAIL>', '1111', '00000000000100', 'Data Center', 'Rua de cima', 1, 'centro', 'Campina Grande', '58135000', 'paraíba'), ('<EMAIL>', '11...
<gh_stars>0 USE data_extracts; DROP PROCEDURE IF EXISTS executeBartsPancreas4MedicalBP2; DELIMITER // CREATE PROCEDURE executeBartsPancreas4MedicalBP2() BEGIN -- earliest CALL populateDatasetBP2('bp2_medicalhistorydataset', 'C10%,CTV3_C10%,CTV3_XaR5E%,CTV3_XaBU9%', 0, null, 'L1808,CTV3_L1808', 0); CALL populateData...
/* Navicat MySQL Data Transfer Source Server : Localhost Source Server Version : 50505 Source Host : localhost:3306 Source Database : db_coferba Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 2020-11-06 02:05:45 */ SET FOREIGN_KEY_CHECKS=0; -...
<filename>scripts/hello_world.sql select 'hello world' from dual;
<gh_stars>0 # Count the number of pathogenic variants within ACMG genes. # This query joins a precomputed table with only ACMG variants with # an Annovar annotation table and selects variants that have been # determined to be pathogenic by ClinVar. SELECT Gene, Sample_id, COUNT(Tx_Start) AS count FROM( SELECT Gene...
<reponame>alexbudarov/sample-gis-datatypes<gh_stars>1-10 alter table CRUISESAMPLE_STOP add constraint FK_CRUISESAMPLE_STOP_PORT foreign key (PORT_ID) references CRUISESAMPLE_PORT(ID); create index IDX_CRUISESAMPLE_STOP_PORT on CRUISESAMPLE_STOP (PORT_ID);
WITH pools as ( SELECT * FROM uniswapv3.pools ) -- This query shows total liquidity being deposited and withdrawn from each individual Uniswap V3 Pools each day , liquidity_pool AS ( SELECT tx_id, date_trunc('day', block_timestamp) AS date, action, liquidity_provider, li...
<reponame>artemy63/ldap-addon<filename>modules/core/db/update/mysql/18/180617-2-createMatchingRule.sql alter table LDAP_MATCHING_RULE add constraint FK_LDAP_MATCHING_RULE_ON_ACCESS_GROUP foreign key (ACCESS_GROUP_ID) references SEC_GROUP(ID); alter table LDAP_MATCHING_RULE add constraint FK_LDAP_MATCHING_RULE_ON_MATCHI...
-- ---------------------------------------------------------------------- -- Darwin Station Messages -- -- Version 1 2015/04/14 Initial version -- ---------------------------------------------------------------------- --CREATE SCHEMA darwin; SET search_path = darwin; DROP TABLE message_station; DROP TABLE message; D...
CREATE DATABASE IF NOT EXISTS july_oauth2 DEFAULT CHARACTER SET utf8 DEFAULT COLLATE utf8_general_ci; create user 'july_oauth2'@'%' identified by 'auth4321july'; grant all privileges on july_oauth2.* to 'july_oauth2'@'%'; flush privileges; USE july_oauth2; /* */ CREATE TABLE IF NOT EXISTS `undo_log` ( `branch_id`...
<filename>internal/database/migration/runner/testdata/well-formed/10002/down.sql -- No-op
DROP TABLE locality_early_vote_sites;
--TEST: [Apricot BB] Semantic: System error (generate attr) with MERGE INTO statement drop table if exists t; --server side1 create table t (a varchar(10) NOT NULL, b varchar(10)); merge into t using db_root on (a='a') when matched then update set b='b' when not matched then insert (a) values ('a'); select * from t...
<filename>hasura/migrations/1615736928062_alter_table_public_EventPerson_add_column_personId/down.sql ALTER TABLE "public"."EventPerson" DROP COLUMN "personId";
-- @testpoint:opengauss关键字K(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists K; create database K; drop database K; --关键字带双引号-成功 drop database if exists "K"; create database "K"; drop database "K"; --关键字带单引号-合理报错 drop database if exists 'K'; create database 'K'; --关键字带反引号-合理报错 drop database if exists `K`; create d...
-- @testpoint:opengauss关键字overlaps(保留),作为用户组名 --关键字不带引号-合理报错 drop group if exists overlaps; create group overlaps with password '<PASSWORD>'; --关键字带双引号-成功 drop group if exists "overlaps"; create group "overlaps" with password '<PASSWORD>'; --清理环境 drop group "overlaps"; --关键字带单引号-合理报错 drop group if exists 'overlap...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Máy chủ: 127.0.0.1 -- Thời gian đã tạo: Th10 04, 2020 lúc 03:26 AM -- Phiên bản máy phục vụ: 10.4.13-MariaDB -- Phiên bản PHP: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHAR...
SELECT molecule_dictionary.chembl_id, compound_structures.canonical_smiles FROM compound_structures INNER JOIN molecule_dictionary USING(molregno) INNER JOIN compound_properties USING(molregno) WHERE molecule_dictionary.structure_type = 'MOL' AND molecule_dictionary.molecule_type = 'Small molecule' AND compound_prope...
<gh_stars>0 alter table foo add constraint cname check (c1 > 0)
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 27 Des 2021 pada 07.53 -- Versi server: 10.4.22-MariaDB -- Versi PHP: 7.4.27 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@C...
------------------------------------------------------------------------------- -- ASSERTION FRAMEWORK ------------------------------------------------------------------------------- -- Copyright (c) 2014-2015 <NAME> <<EMAIL>> -- -- Permission is hereby granted, free of charge, to any person obtaining a copy -- of this...
<filename>proc/cte.sql drop table if exists firmy; drop table if exists posoby; drop table if exists fosoby; create table firmy ( aktualizace_db date, datum_vypisu date, cas_vypisu time, typ_vypisu varchar, rejstrik varchar, ico int32, obchodni_firma varchar collate nocase, datum_zapisu date, datum_vymazu dat...
<filename>GGShop(mysql).sql CREATE TABLE Brand( IdBrand varchar(2) not null auto_increment, PRIMARY KEY (IdBrand), NamaBrand varchar (50) not null, Tentang text null ); CREATE TABLE Kategori( IdKategori varchar(2) NOT null, PRIMARY KEY (IdKategori), NamaKategori varchar(50) not null ); CREATE TABLE P...
<filename>Chapter04/Chapter04_Listing24.sql<gh_stars>10-100 CREATE OR REPLACE FUNCTION f_insert_tags( tag_string text, separator text DEFAULT '>' ) RETURNS SETOF tags -- returns the inserted tuples AS $code$ DECLARE tag_array text[]; current_tuple tags%rowtype; BEGIN -- firs of all get all the ...
<gh_stars>0 -- /packages/intranet/sql/oracle/intranet-menu-create.sql -- -- Copyright (c) 2003-2008 ]project-open[ -- -- All rights reserved. Please check -- http://www.project-open.com/license/ for details. -- -- @author <EMAIL> -- @author <EMAIL> --------------------------------------------------------- -- Menus -- ...
INSERT INTO system ("version", "name", repository, release_date) VALUES ('test', 'test', 'http://indicia.googlecode.com/svn/tag/version_0_1', '2009-12-27')