sql
stringlengths
6
1.05M
-- @testpoint:opengauss关键字uncommitted(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists uncommitted; CREATE TABLESPACE uncommitted RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace uncommitted; --关键字带双引号,创建成功 drop tablespace if exists "uncommitted"; CREATE TABLESPACE "uncommitted" RELATIVE ...
-- name: write_specializations_table.sql -- version: 0.0.1 -- date: 20201128 -- author: <NAME> -- desc: Create a list of specializations. .headers on .nullvalue [NULL] DROP TABLE IF EXISTS specializations; CREATE TABLE specializations ( idx INTEGER NOT NULL PRIMARY KEY, specialization ...
<gh_stars>100-1000 Opened "TEST.h5" with sec2 driver. Monitoring dataset /DSET_CMPD_TWO... dimension 0: 4->6 (increases) dimension 1: 10->10 (unchanged) Data: (4,0) {2, {2, {2, 2, 2}, 2}}, {2, {2, {2, 2, 2}, 2}}, (4,2) {2, {2, {2, 2, 2}, 2}}, {2, {2, {2, 2, 2}, 2}}, (4,4) {2, {2, {2, 2, 2}, ...
CREATE TABLE processed_archive_page ( publisher VARCHAR, url VARCHAR PRIMARY KEY ) CREATE TABLE article ( url VARCHAR PRIMARY KEY, publisher VARCHAR, title VARCHAR, published TIMESTAMP WITH TIME ZONE, category VARCHAR, -- publisher specific content VARCHAR, tags VARCHAR[], -- publisher specific about_c_c B...
<reponame>devkishor8007/relation_db_nestjs_prisma<filename>prisma/migrations/20220211082908_many2many/migration.sql -- CreateTable CREATE TABLE "Post" ( "id" SERIAL NOT NULL, "title" TEXT NOT NULL, CONSTRAINT "Post_pkey" PRIMARY KEY ("id") ); -- CreateTable CREATE TABLE "Category" ( "id" SERIAL NOT NU...
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 1192.168.3.11 -- Generation Time: Jul 25, 2020 at 10:54 AM -- Server version: 10.4.13-MariaDB -- PHP Version: 7.4.8 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
-- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Počítač: 127.0.0.1 -- Vytvořeno: Čtv 11. bře 2021, 22:17 -- Verze serveru: 10.4.14-MariaDB -- Verze PHP: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
-- phpMyAdmin SQL Dump -- version 4.8.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 04, 2019 at 05:12 PM -- 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 = "+00:00"; /*!40101 SET @OLD...
/* * BooleanLiteral.sql * Chapter 3, Oracle10g PL/SQL Programming * by <NAME>, <NAME>, <NAME> * * This script demonstrates Boolean literals */ exec clean_schema.trigs exec clean_schema.procs exec clean_schema.tables SET SERVEROUTPUT ON PROMPT PROMPT ** The following example shows how Boolean variables PROMPT *...
CREATE TABLE Movie ( ID INT AUTO_INCREMENT, Title VARCHAR(100), Rating CHAR(5) CHECK (Rating IN ('G', 'PG', 'PG-13', 'R')), ReleaseDate DATE, PRIMARY KEY (ID) ); INSERT INTO Movie (Title, Rating, ReleaseDate) VALUES ('Casablanca', 'PG', '1943-01-23'), ('Bridget Jones\'s Diary', 'PG-13', '2001-04-13'), ...
<gh_stars>0 --codigo receita, nome_receita, agrupar valores por data select * from pt_receitadetalhe limit 100 select * from receitacodigotcm limit 100 select split_part(pt_receitadetalhe.receitacodigotcmid, '.', 2), sum(pt_receitadetalhe.pt_receitadetalhevalor), receitacodigotcm.receitacodigotcmdescricao from pt...
-- ===================================================================================================== -- Generated by Data Dictionary Version 1.0.0.0 -- Date: 18 July 2016 10:27 -- Profile: 1516 Test Harness Validation -- Rulebase Version: ILR Trailblazer Validation 1617, Drop 000, Version 1617.03 -- ===============...
CREATE OR REPLACE FUNCTION test_global_transformer_6(a timestamp) RETURNS timestamp AS $$ BEGIN RETURN a; END; $$ LANGUAGE plpgsql SECURITY DEFINER;
/*####################################################################################################### # TYPE: Stored Procedure # # NAME: deletedatabase # # SUMMARY: Deletes a database. # # PARAMETERS: database name, user name # # RETURNS: status message (string) # ...
<filename>zs_m_live/ZS_LIVE_2_2_BOOLEAN_TYPE.sql<gh_stars>1-10 /* SHOW search_path; ALTER DATABASE <database_name> SET search_path TO schema1,schema2; ALTER ROLE <role_name> SET search_path TO schema1,schema2; */ CREATE TABLE test2 ( field text ); INSERT INTO test2 VALUES ('Yes'), ('No'),('Y'),('N'),(...
<reponame>Darkr4ptor/WCPStandard<gh_stars>1-10 /* SQLyog Community v13.1.1 (64 bit) MySQL - 10.1.29-MariaDB : Database - wcps-authentication ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS...
<reponame>ericminio/learning-sqlserver @@./oracle/init.sql execute drop_table_if_exists('event'); create table event( type varchar2(10) not null, label varchar2(50) not null ); insert into event(type, label) values('MATCH', 'new year'); insert into event(type, label) values('MATCH', 'new month'); insert into ...
INSERT INTO users(id, name, role_id, email, password) VALUES (1, 'Gerhard', 1, '<EMAIL>', 'asd'), (2, 'Alien', 2, '<EMAIL>', 'asd');
drop database if exists `pro_x`; create database `pro_x`; use `pro_x`; create table if not exists `user_status` ( `id` int(4) not null auto_increment, `name` varchar(30) not null, `description` text null, primary key (`id`) ); create table if not exists `user_role` ( `id` int(4) not null auto_increment, `name...
-- file:privileges.sql ln:933 expect:true ALTER DEFAULT PRIVILEGES GRANT ALL ON SCHEMAS TO regress_user2
INVALID TEST -- It is not possible to test createFunction change type with current test-harness build. H2 supports only Java/JQQQ written -- functions which should be passed to a database classpath (which is currently dockerized)
set echo off set feedback off set verify off set linesize 500 set pages 100 REM ---------------------------------------------------------------- REM File name : sel_usertables.sql REM Author : sai REM Description : TABLE DETAIL view REM ---------------------------------------------------------------- cle...
-- 客户表 create table customer ( id serial primary key auto_increment comment '自增主键', name varchar(100) comment '姓名', gender varchar(20) comment '性别', age int comment '年龄' ) engine = InnoDB default charset utf8mb4; -- 商品表 create table commodity ( id serial primary key auto_increm...
<gh_stars>0 select count(*) as CNT from test_seller_type_dim
-- Table: public.environmentvariable -- DROP TABLE IF EXISTS public.environmentvariable; CREATE TABLE IF NOT EXISTS public.environmentvariable ( key character varying COLLATE pg_catalog."default" NOT NULL, value character varying COLLATE pg_catalog."default" NOT NULL, type character varying COLLATE pg_cat...
<reponame>w0xter/morph-csv-demo DROP TABLE IF EXISTS "calendar" CASCADE; CREATE TABLE calendar(service_id VARCHAR,PRIMARY KEY (service_id)); DROP TABLE IF EXISTS "calendar_dates" CASCADE; CREATE TABLE calendar_dates(service_id VARCHAR,PRIMARY KEY (service_id)); DROP TABLE IF EXISTS "routes" CASCADE; CREATE TABLE routes...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jun 15, 2019 at 05:32 PM -- Server version: 10.1.40-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
<filename>imooc-c2-local-tran-sql/mysql-transaction.sql -- 查看全局和当前session的事务隔离级别 SELECT @@GLOBAL.tx_isolation, @@tx_isolation; -- 设置隔离级别 SET SESSION TRANSACTION ISOLATION LEVEL READ UNCOMMITTED -- level: READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ, SERIALIZABLE -- session 1: START TRANSACTION; UPDATE t_user ...
IF OBJECT_ID('inventory.get_account_id_by_shipper_id') IS NOT NULL DROP FUNCTION inventory.get_account_id_by_shipper_id; GO CREATE FUNCTION inventory.get_account_id_by_shipper_id(@shipper_id integer) RETURNS integer AS BEGIN RETURN ( SELECT inventory.shippers.account_id FROM inventory.s...
<reponame>UAMS-DBMI/PosdaTools<gh_stars>1-10 -- Name: FindSeriesInCollectionWhichAreNotInActivity -- Schema: posda_files -- Columns: ['series_instance_uid', 'dicom_file_type', 'modality', 'visibility', 'num_files'] -- Args: ['collection', 'activity_id'] -- Tags: [] -- Description: Find all series which are in specified...
<reponame>TTGS/IT_script<gh_stars>0 CREATE OR REPLACE FUNCTION public.check_china_id_reason(id text) RETURNS text LANGUAGE plpgsql AS $function$ DECLARE -- 我自己的参数 p_id text:=id; ck_bool boolean:=null; ck_step text:=null; ck_len int:=null; ck_text boolean:=null; ck_date date:=null; p_steen...
<gh_stars>10-100 SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE PROCEDURE [Profile.Data].[Publication.Pubmed.AddPubMedXMLBatch] @Data xml AS BEGIN create table #tmpPubs (pmid int primary key, Filename varchar(50), x xml) insert into #tmpPubs (pmid, Filename, x) select t.x.value('@PMID', ...
<gh_stars>0 -- @testpoint:opengauss关键字group(保留),作为存储过程名 --关键字不带引号-合理报错 create or replace procedure group() is V1 BLOB; begin IF V1 is NULL then raise info 'V1 is NULL'; else raise info 'V1 is not NULL'; end if; end; / --关键字带双引号-成功 create or replace procedure "group"() is V1 BLOB; begin IF V1 is NULL then...
-- @testpoint:opengauss关键字sqlstate(非保留),作为表空间名 --关键字不带引号,创建成功 drop tablespace if exists sqlstate; CREATE TABLESPACE sqlstate RELATIVE LOCATION 'hdfs_tablespace/hdfs_tablespace_1'; drop tablespace sqlstate; --关键字带双引号,创建成功 drop tablespace if exists "sqlstate"; CREATE TABLESPACE "sqlstate" RELATIVE LOCATION 'hdfs_tab...
-- @testpoint: opengauss关键字mapping(非保留),作为函数名,部分测试点合理报错 --关键字不带引号-成功 drop function if exists mapping; create function mapping(i integer) returns integer as $$ begin return i+1; end; $$ language plpgsql; / --关键字带双引号-成功 drop function if exists "mapping"; create function "mapping"(i integer) returns integer as $$ beg...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 19, 2021 at 04:56 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<gh_stars>0 INSERT INTO t_nilai_ijz (mapel_id, santri_id, tahun_id, nrp) SELECT n.`mapel_id`, n.`santri_id`, 3 AS tahun_id, ROUND(AVG(n.`nrp`),0) AS r_rpt FROM t_na n JOIN m_santri s ON s.`id_santri` = n.`santri_id` WHERE n.`mapel_id` IN (SELECT m.`id_mapel` FROM t_urutmapel u JOIN m_mapel m ON u.`mapel_id` = m.`id_...
<gh_stars>0 -- Affichage de la table personne par le titre "Melle" puis "Mme" puis "Mr" SELECT * FROM Personne ORDER BY Titre ASC
<filename>scripts/script-teatro.sql -- ----------------------------------------------------- -- Schema mydb -- ----------------------------------------------------- CREATE DATABASE IF NOT EXISTS `teatro_bd` DEFAULT CHARACTER SET utf8 ; USE `teatro_bd` ; -- ----------------------------------------------------- -- Table...
<reponame>qoneqo/lawencon_inventory -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 25, 2021 at 05:23 PM -- Server version: 10.6.3-MariaDB -- PHP Version: 7.2.34 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /...
<reponame>Ewertton/prfight -- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Feb 26, 2017 at 02:36 AM -- Server version: 10.1.21-MariaDB -- PHP Version: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTE...
<reponame>ThilineTissera/PAF-assignment /* Navicat MySQL Data Transfer Source Server : localhost_3306 Source Server Version : 50505 Source Host : localhost:3306 Source Database : pos Target Server Type : MYSQL Target Server Version : 50505 File Encoding : 65001 Date: 20...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Servidor: 1172.16.31.10 -- Tiempo de generación: 23-03-2022 a las 04:50:05 -- Versión del servidor: 10.4.22-MariaDB -- Versión de PHP: 8.0.13 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
<gh_stars>0 DROP TABLE IF EXISTS `test_001`;
<reponame>Arbinuity/markets DROP TABLE IF EXISTS core_settings; CREATE TABLE core_settings ( name VARCHAR(100) NOT NULL, data VARCHAR(250) NOT NULL ); INSERT INTO core_settings (name, data) VALUES ('init_stream', '0'), ('init_markets', '0'), ('base_currency', 'usd'), ('qu...
<reponame>trigyn-products/jquiver<gh_stars>0 DROP TABLE IF EXISTS `jq_master_module_role_association`; DROP TABLE IF EXISTS `jq_master_module`; CREATE TABLE `jq_master_module` ( `master_module_id` varchar(50) NOT NULL, `master_module_name` varchar(100) NOT NULL, `grid_details_id` varchar(50) NOT NULL, `module_...
drop table if exists demo.org_user cascade;
CREATE TABLE [nomenclature].[ActionType] ( [ActionTypeId] INT NOT NULL, [Name] VARCHAR (100) NULL, CONSTRAINT [ActionTypeId_pk] PRIMARY KEY CLUSTERED ([ActionTypeId] ASC) );
create table temperature.temperature ( ID int auto_increment primary key, Temp float null, Time timestamp null, Location char(255) null );
<gh_stars>1-10 select distinct ClientVersion, count(*) as Installs from v_CombinedDeviceResources group by ClientVersion order by ClientVersion
CREATE INDEX IF NOT EXISTS index_eg_pt_billingslab_v2_tenantid ON eg_pt_billingslab_v2 (tenantid); CREATE INDEX IF NOT EXISTS index_eg_pt_billingslab_v2_propertytype ON eg_pt_billingslab_v2 (propertytype); CREATE INDEX IF NOT EXISTS index_eg_pt_billingslab_v2_propertysubtype ON eg_pt_billingslab_v2 (propertysubtype);...
<filename>src/test/resources/tclsqlite.test_65.sql -- tclsqlite.test -- -- db eval {INSERT INTO t5 VALUES(x)} INSERT INTO t5 VALUES(x)
<reponame>heryvandoro/ehunter-backend<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost:3306 -- Generation Time: May 15, 2018 at 01:55 PM -- Server version: 5.7.22-0ubuntu0.16.04.1 -- PHP Version: 7.0.30-0ubuntu0.16.04.1 SET SQL_MODE = "NO_AUTO_VALUE_...
alter table ad_field add column iscentrallymaintained char(1) not null default 'N';
<reponame>smith750/kc<gh_stars>0 DELIMITER / CREATE TABLE IACUC_PROTOCOL_PROJECT_TYPE ( PROJECT_TYPE_CODE VARCHAR(3) NOT NULL, DESCRIPTION VARCHAR(200) NOT NULL, UPDATE_TIMESTAMP DATE NOT NULL, UPDATE_USER VARCHAR(60) NOT NULL, VER_NBR DECIMAL(8,0) DEFAULT 1 NOT NULL, OBJ_ID VARCHAR(36) NO...
-- Album insert into gw_collab_Album values (1, '2014-01-10', 'aá', 'aaaaa','aaaaa', 1, 1); insert into gw_collab_Album values (2, '2011-11-11', '1á', 'a11111aaaa','aa1111aaa', 2, 1); -- Album_Elements insert into gw_collab_Album_Elements values (1, 'photo', 1, null); insert into gw_collab_Album_Elements values (2, '...
<filename>testdatamass/store_store.sql use StoreModule; INSERT INTO `store_store` (`id`, `name`) VALUES (1, 'London'), (2, 'Moscow'), (3, 'New York'), (4, 'Rostov v Danu'), (5, 'Подвальчик'), (6, '<NAME>');
DROP TABLE IF EXISTS `hl_adlist`; CREATE TABLE `hl_adlist` ( `id` int(11) NOT NULL AUTO_INCREMENT, `cid` int(11) NOT NULL, `title` varchar(50) NOT NULL, `img` varchar(100) DEFAULT NULL, `link` varchar(200) DEFAULT NULL, `desc` varchar(255) DEFAULT NULL, `siteid` tinyint(4) DEFAULT NULL, PRIMARY KEY (`id...
# --- Created by Ebean DDL # To stop Ebean DDL generation, remove this comment and start using Evolutions # --- !Ups create table item ( item_id varchar(255) not null, title varchar(255), cost double, description varchar(...
-- Copyright (c) 2016-2018 Timescale, Inc. All Rights Reserved. -- -- This file is licensed under the Apache License, see LICENSE-APACHE -- at the top level directory of the TimescaleDB distribution. CREATE OR REPLACE FUNCTION _timescaledb_internal.generate_uuid() RETURNS UUID AS '@MODULE_PATHNAME@', 'ts_uuid_generat...
<gh_stars>0 {{ config( materialized='view' ) }} SELECT order_id , product_id , quantity FROM {{ source('tutorial', 'order_items') }}
-- Procedure ma hoa luong moi khi them nhan vien vao bang NhanVien CREATE OR REPLACE PROCEDURE Them_NhanVien (maNV IN VARCHAR2,hoTen IN VARCHAR2,diaChi IN VARCHAR2,dienThoai IN VARCHAR2,email IN VARCHAR2,maPhong IN VARCHAR2,chiNhanh IN VARCHAR2,luong IN VARCHAR2) AS BEGIN DECLARE I_luong VARCHAR(2000) := luo...
-- 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. DO $$ DECLARE application_id INTEGER; cl...
-- complain if script is sourced in psql, rather than via CREATE EXTENSION \echo Use "CREATE EXTENSION forecastsolver" to load this file. \quit -- Install all the required data types -- Registers the solver and 1 method. WITH -- Registers the solver and its parameters. solver AS (INSERT INTO sl_solver(na...
drop index if exists fki_readings_fk1; CREATE INDEX fki_readings_fk1 ON fledge.readings USING btree (asset_code);
HDF5 "2_vds.h5" { GROUP "/" { DATASET "vds_dset" { DATATYPE H5T_STD_I32LE DATASPACE SIMPLE { ( 6, 8, 14 ) / ( H5S_UNLIMITED, 8, 14 ) } DATA { (0,0,0): 10, 10, 10, 10, 10, 10, 10, 40, 40, 40, 40, 40, 40, 40, (0,1,0): 10, 10, 10, 10, 10, 10, 10, 40, 40, 40, 40, 40, 40, 40, (0,2,0)...
-- MySQL dump 10.18 Distrib 10.3.27-MariaDB, for debian-linux-gnueabihf (armv8l) -- -- Host: localhost Database: keexybox -- ------------------------------------------------------ -- Server version 10.3.27-MariaDB-0+deb10u1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACT...
--- returns: one || none --- SELECT * FROM recoveries WHERE email = ${email} AND created_at > now() - interval '3 hours'
<reponame>mauriliofelipe/data-manipulation create database imdb character set utf8 collate utf8_general_ci; use imdb; create table if not exists films ( id int not null auto_increment, title varchar(255) not null, synopsis text not null, year year not null, maturity varchar(2) not null default 'L', rating...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.1.0 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Jun 03, 2021 at 06:20 AM -- Server version: 5.7.24 -- PHP Version: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_S...
CREATE OR REPLACE FUNCTION ldo.fn_despesa_projetada_configuracao( integer, character) RETURNS SETOF record LANGUAGE plpgsql AS $BODY$ DECLARE inCodPPA ALIAS FOR $1; stExercicio ALIAS FOR $2; stExercicioInicial VARCHAR; stSql VARCHAR; stSqlAux ...
<gh_stars>0 CREATE TABLE FRAIS_VOYAGE (ID bigint not null, MONTANT NUMERIC(10, 2) not null, DATE_DEBUT_VALIDITE date not null, DATE_FIN_VALIDITE date, primary key (id)); ALTER TABLE Sejour ADD COLUMN FRAIS_VOYAGE NUMERIC(10, 2); UPDATE Sejour SET FRAIS_VOYAGE = 0 WHERE FRAIS_VOYAGE IS NULL;
<gh_stars>0 -- sc: https://ru.hexlet.io/courses/rdb-basics/lessons/transactions/exercise_unit -- Механизм дружбы в социальных сетях, обычно, реализуется через отдельную таблицу -- friendship ссылающуюся на обоих пользователей. Когда два человека начинают -- дружить, то в эту таблицу заносятся сразу две записи: ...
<filename>SQL/Basic Select/Weather Observation Station 11.sql /* Enter your query here. */ SELECT DISTINCT CITY FROM STATION WHERE CITY NOT REGEXP '^[AEIOU]' OR CITY NOT REGEXP '[AEIOU]$';
-- This should only be run once, right after running createBrewDB. -- Equipment Table INSERT INTO equipment(batch_size, extract_efficeny) VALUES(5,0.70); -- default values, 5 gallon batch with 70% efficiency -- Hops Table INSERT INTO hops(name, description, alpha_acid, purpose) VALUES('Cascade 5.5AA', null, 5.5,'aro...
-- Keep a log of any SQL queries you execute as you solve the mystery. -- the theft took place on July 28, 2020 and that it took place on Chamberlin Street. -- looking the crime scene report >> SELECT description FROM crime_scene_reports WHERE month = 7 AND day = 28 AND year = 2020 AND street = 'Chamberlin Street'; ...
CREATE DATABASE IF NOT EXISTS `users_manager_db` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `users_manager_db`; -- MySQL dump 10.13 Distrib 5.7.9, for Win64 (x86_64) -- -- Host: localhost Database: users_manager_db -- ------------------------------------------------------ -- Server version 5.6.11 /*!40101 SET @O...
/* Patient Resource */ SELECT nhsNumber, nhsNumberTraceStatusDesc, nhsNumberTraceStatusCode, patient.patientNo, identifiers.secondaryIdentifiers, active, ethnicCategoryCode, ethnicCategoryDesc, ethnic.CareConnect_Code AS ethnicCategoryCareConnectCode, ethnic.CareConnect_Display AS ethnicCategoryCareConnectDes...
SELECT pypi_tmp.constrain_product_version(); SELECT pypi_tmp.constrain_download_counts();
<gh_stars>1-10 -- -------------------------------------------------------- -- Host: localhost -- Server version: 5.7.24 - MySQL Community Server (GPL) -- Server OS: Win64 -- HeidiSQL Version: 10.2.0.5599 -- --------------------------------------------...
<reponame>sedc-codecademy/skwd8-07-dbdevdesign --ALTER TABLE [dbo].[OrderDetails] WITH NOCHECK ADD CONSTRAINT [FK_OrderDetails_Product] FOREIGN KEY ([ProductId]) REFERENCES [dbo].[Product]([Id]); --GO ALTER TABLE [dbo].[OrderDetails] ADD CONSTRAINT [FK_OrderDetails_Product] FOREIGN KEY ([ProductId]) REFERENCES [dbo].[P...
<filename>src/test/resources/sql/insert/4cd82d58.sql<gh_stars>10-100 -- file:combocid.sql ln:20 expect:true INSERT INTO combocidtest VALUES (1)
<filename>modules/ide-integration/src/main/resources/database_scripts/init/02-sharing-registry-migrations.sql use sharing_catalog; ALTER TABLE DOMAIN ADD COLUMN IF NOT EXISTS INITIAL_USER_GROUP_ID varchar(255); ALTER TABLE DOMAIN ADD CONSTRAINT `DOMAIN_INITIAL_USER_GROUP_ID_FK` FOREIGN KEY IF NOT EXISTS (INITIAL_USER_...
<reponame>aluhvihn/UniversityProjects DROP TABLE IF EXISTS Bids; DROP TABLE IF EXISTS ItemCategories; DROP TABLE IF EXISTS Items; DROP TABLE IF EXISTS Users;
-- -- Constraints der exportierten Tabellen -- -- -- Constraints der Tabelle `pc_news_archive` -- ALTER TABLE `pc_news_archive` ADD CONSTRAINT `pc_news_archive_ibfk_1` FOREIGN KEY (`Page`) REFERENCES `pc_core_page` (`ID`) ON DELETE SET NULL ON UPDATE CASCADE; -- -- Constraints der Tabelle `pc_news_article` -- ALTER...
/* Navicat MySQL Data Transfer Source Server : 192.168.172.25 Source Server Type : MySQL Source Server Version : 50726 Source Host : 192.168.172.25 Source Database : renren_fast_test Target Server Type : MySQL Target Server Version : 50726 File Encoding : utf-8 Date: 1...
-- Appointments alter table o_ap_topic add column a_participation_visible bool default true not null; -- VFS alter table o_vfs_metadata add column fk_lastmodified_by bigint default null; alter table o_vfs_metadata add constraint fmeta_modified_by_idx foreign key (fk_lastmodified_by) references o_bs_identity (id); --...
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; -- -- Database: `entrance` -- DROP SCHEMA IF EXISTS `entrance`; CREATE SCHEMA `entrance`; USE `entrance`; -- -------------------------------------------------------- -- -- Table structure for table `category` -- DROP TABLE IF EXISTS `category`; CREAT...
//// CHANGE name=change0 create table TableSuffixTest ( idField int not null , PRIMARY KEY CLUSTERED ( idField ) on 'default' ) lock datarows with exp_row_size = 1 on 'default' GO
<reponame>mikesep/comdb2<filename>tests/datetime.test/t09.sql create table t8 { schema { int i datetime dt dbstore="ARANDOMSTRING" } }$$
ALTER TABLE "selfservice_login_flows" DROP COLUMN "messages";
CREATE OR REPLACE FUNCTION jobcenter.do_lock_task(a_workflow_id integer, a_task_id integer, a_job_id bigint) RETURNS nexttask LANGUAGE plpgsql SET search_path TO jobcenter, pg_catalog, pg_temp AS $function$DECLARE v_args jsonb; v_vars jsonb; v_action_id int; v_inargs jsonb; v_locktype text; v_lockvalue text; ...
-- phpMyAdmin SQL Dump -- version 4.1.14 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: Nov 01, 2015 at 04:05 PM -- 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_CLIENT=@@CHARACTER_SET_CLIENT */;...
CREATE DATABASE wildlife; \c wildlife; CREATE TABLE IF NOT EXISTS animals( id SERIAL PRIMARY KEY, sighting_id INTEGER, animal_name VARCHAR ); CREATE TABLE IF NOT EXISTS endangeredAnimals( id SERIAL PRIMARY KEY, animal_name VARCHAR, animal_age VARCHAR, animal_health VARCHAR, sighting_id INTEGER ); CREATE TABLE IF NOT...
<gh_stars>0 -- CREATE SCHEMA IF NOT EXISTS backend_test DEFAULT CHARACTER SET utf8; USE node_kafka; -- ----------------------------------------------------- -- Tabela produtos -- ----------------------------------------------------- CREATE TABLE IF NOT EXISTS products ( id INT NOT NULL AUTO_INCREMENT, ...
start transaction; drop table if exists agents_across_repositories; CREATE TABLE agents_across_repositories ( INDEX (agent_person_id , agent_family_id , agent_corporate_body_id) ) SELECT * FROM agents_view WHERE agent_person_id IN (SELECT T1.agent_person_id FROM agents_view...
<reponame>aanolan51/EmployeeTracker DROP DATABASE IF EXISTS employee_trackerDB; CREATE database employee_trackerDB; USE employee_trackerDB; --This is the main/parent table. The id created here will need to be referenced in the other tables in order to link them-- CREATE TABLE department ( id INT NOT NULL AUTO_INCREM...
<reponame>mkiki/willie-treeregister -------------------------------------------------------------------------------- -- willie-treeregister - Builtin data -------------------------------------------------------------------------------- DELETE FROM treeregister_poi_tree WHERE poiId IN ( 'f1e07bdf-07b5-4230-a3ea-a5eaf...
<reponame>liangzi4000/grab-share-info<filename>sql/yjbb/601878.sql EXEC [EST].[Proc_yjbb_Ins] @Code = N'601878',@CutoffDate = N'2017-09-30',@EPS = N'0.26',@EPSDeduct = N'0',@Revenue = N'32.85亿',@RevenueYoy = N'-2.67',@RevenueQoq = N'16.57',@Profit = N'8.12亿',@ProfitYoy = N'-17.12',@ProfiltQoq = N'8.42',@NAVPerUnit = N'...
\echo # Creating messages view set search_path = api, public; create or replace view messages as select id as id, content, conversation_id, "from", "to" from data.message t; alter view messages owner to api; -- it is important to set the correct owner to the RLS policy kicks in