sql
stringlengths
6
1.05M
CREATE TABLE dialogues ( id varchar(32) PRIMARY KEY, date date, init_time time, end_time time, location varchar(128), address text, comuna integer REFERENCES comunas(id), n_members integer, group_name text, valid Boolean );
create or replace package body test_expectation_anydata is g_test_expected anydata; g_test_actual anydata; procedure cleanup_expectations is begin expectations.cleanup_expectations( ); end; procedure cleanup is begin g_test_expected := null; g_test_actual := null; cleanup_expectatio...
INSERT INTO eniwareedge.ocpp_charge (created, sessid_hi, sessid_lo, idtag, socketid, auth_status, xid, ended, posted) VALUES (?,?,?,?,?,?,?,?,?)
<gh_stars>0 INSERT INTO burgers (burger_name) VALUES ("Hamburger"), ("Cheeseburger"), ("Bacon Burger"), ("Double Cheeseburger"), ("Hawaiian Burger");
--lookupmater If Not Exists(Select 1 From LookupMaster where Name='ContactCategory') Begin INSERT INTO LookupMaster (Name, DisplayName, DeleteFlag) VALUES ('ContactCategory','ContactCategory',0); End If Not Exists(Select 1 From LookupMaster where Name='KinRelationship') Begin INSERT INTO LookupMaster (Name, DisplayName...
<filename>src/main/resources/db/migration/V1_1__create_source_data_storage.sql CREATE SCHEMA IF NOT EXISTS feed; -- invoices -- CREATE TYPE feed.invoice_status AS ENUM('unpaid', 'paid', 'cancelled', 'fulfilled'); CREATE TABLE feed.invoice( id BIGSERIAL NOT NULL, event_id BIG...
<filename>sql_file/project.sql /* Navicat MySQL Data Transfer Source Server : test Source Server Version : 50154 Source Host : localhost:3306 Source Database : project Target Server Type : MYSQL Target Server Version : 50154 File Encoding : 65001 Date: 2016-07-15 16:34:...
-- -- 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; SET search_path = public, pg_catalog; -- -- Name: assessment_weight_sum; Type: VIEW; Schema: pub...
-- phpMyAdmin SQL Dump -- version 4.4.15.9 -- https://www.phpmyadmin.net -- -- Servidor: localhost -- Tiempo de generación: 03-12-2018 a las 05:52:20 -- Versión del servidor: 5.6.37 -- Versión de PHP: 5.6.31 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
INSERT INTO TSQL2012.Stats.Tests (testid) VALUES ('Test ABC'); INSERT INTO TSQL2012.Stats.Tests (testid) VALUES ('Test XYZ');
<gh_stars>0 DELIMITER // CREATE TRIGGER artist_trig BEFORE UPDATE ON user_user FOR EACH ROW IF NEW.Followers > 49 THEN SET NEW.Artist_trigger = 1; END IF;// DELIMITER ; DELIMITER // CREATE TRIGGER artist_view_trig BEFORE UPDATE ON album_album FOR EACH ROW IF NEW.Count > 49 THEN SET NEW.Description = CONCAT(OLD.Descript...
-- SQLite SELECT city FROM Cities WHERE country = 'Ireland'
<filename>kota_tiffin.sql -- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: May 20, 2019 at 07:49 AM -- Server version: 5.7.26-0ubuntu0.16.04.1 -- PHP Version: 7.1.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET t...
-- MySQL dump 10.13 Distrib 5.7.22, for Linux (x86_64) -- -- Host: 127.0.0.1 Database: laravel-test -- ------------------------------------------------------ -- Server version 5.7.22-0ubuntu18.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER...
create role railsbadges_dev with createdb login password 'password';
<gh_stars>0 -- Update project_pitches table to use new user ids -- Add columns and foreign key constraints ALTER TABLE project_pitches ADD COLUMN user_id UUID REFERENCES users(id); ALTER TABLE project_pitches ADD COLUMN reviewer_id UUID REFERENCES users(id); -- Set values UPDATE project_pitches SET user_id = id FROM ...
<reponame>sh21shanTadze/midterm -- phpMyAdmin SQL Dump -- version 5.0.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 11, 2020 at 05:25 PM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.11 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!4...
<reponame>neusta-sd-west/watermule -- -- Copyright (c) neusta analytics & insights GmbH and contributors. All rights reserved. -- Licensed under the MIT license. See LICENSE file in the project root for details. -- CREATE SCHEMA metadata; CREATE SCHEMA timeseries; CREATE TABLE metadata.thing_nodes ( id VA...
CREATE TABLE [dbo].[dnn_EasyDNNNewsLightboxSettings] ( [Id] INT IDENTITY (1, 1) NOT NULL, [PortalID] INT NOT NULL, [ModuleID] INT NULL, [ArticleID] INT NULL, [ThumbWidth] INT ...
<reponame>guizmaii/http4s-modules create schema if not exists ct_permissions; create table if not exists ct_permissions.permission ( permission_id uuid not null primary key default gen_random_uuid(), name character varying (255) not null, description text not null default '', app_name character varying (255) ...
<gh_stars>1-10 DELIMITER // CREATE TRIGGER rt_update_stock_canceled_income AFTER UPDATE on income FOR EACH ROW BEGIN UPDATE article JOIN income_detail ON income_detail.id_article = article.id AND income_detail.id_income = NEW.id SET article.stock = article.stock - income_detail.quantity; END; // D...
<gh_stars>1-10 SET client_encoding = 'UTF8'; INSERT INTO lccs.classification_systems (created_at, updated_at, authority_name, name, title_translations, description_translations, version) VALUES (CURRENT_TIMESTAMP, CURRENT_TIMESTAMP, 'INPE', 'prodes', 'pt-br => "PRODES", en => "PRODES"', 'pt-br => "Sistema de C...
-- file:create_index.sql ln:624 expect:true SELECT * FROM array_index_op_test WHERE t @> '{AAAAAAAAAA646}' ORDER BY seqno
-- comment CREATE TABLE stuff COLUMNS(col1 INT, col2 Varchar); SELECT * FROM stuff WHERE id = 'string'; select * from stuff where id < 0.42; Select col1, col2 From stuff Where stuff.col1 IS NOT NuLL;
<reponame>iuri/tutortronics -- indicators-crm.sql create or replace function inline_0 () returns integer as ' DECLARE v_id integer; BEGIN v_id := im_indicator__new( null, ''im_indicator'', now(), 0, '''', null, ''New customers per month'', ''new_countsers_per_month'', 15110, 15000, ''select c...
<filename>gusev/lab3/1.sql CREATE OR REPLACE VIEW client_view AS SELECT (calls.*) FROM calls JOIN contracts ON (contracts.id = calls.caller_id OR contracts.id = calls.receiver_id) JOIN users ON users.id = contracts.user_id WHERE users.user_name = (SELECT current_user); CREATE ROLE client; GRANT SELECT ON...
-- Adminer 4.6.3 MySQL dump SET NAMES utf8; SET time_zone = '+00:00'; SET foreign_key_checks = 0; SET sql_mode = 'NO_AUTO_VALUE_ON_ZERO'; SET NAMES utf8mb4; DROP DATABASE IF EXISTS `wzh_db`; CREATE DATABASE `wzh_db` /*!40100 DEFAULT CHARACTER SET utf8mb4 COLLATE utf8mb4_bin */; USE `wzh_db`; DROP TABLE IF EXISTS `w...
-- API_GRAD_BATCH.BATCH_JOB_TYPE_CODE definition CREATE TABLE "BATCH_JOB_TYPE_CODE" ( "BATCH_JOB_TYPE_CODE" VARCHAR2(15), "LABEL" VARCHAR2(32) NOT NULL ENABLE, "DESCRIPTION" VARCHAR2(255) NOT NULL ENABLE, "DISPLAY_ORDER" NUMBER NOT NULL ENABLE, "EFFECTIVE_DATE" DATE NOT NULL ENABLE, "EXPIRY_DATE" DATE, "CREAT...
--liquibase formatted sql --changeset jgke:6 ALTER TABLE sources ALTER COLUMN sourcetype DROP DEFAULT; ALTER SEQUENCE sources_sourcetype_seq OWNED BY NONE; DROP SEQUENCE sources_sourcetype_seq; --rollback ALTER TABLE source ALTER COLUMN sourcetype TYPE SERIAL; ALTER TABLE tags_sources ALTER COLUMN source DROP DEFAULT...
insert into pagos_detalle (descripcion, valor,id_servicio, id_pago) values (:descripcion, :valor ,:idServicio, :idPago)
<reponame>brandstaetter/high-performance-java-persistence drop table if exists post_comment_details; drop table if exists post_comment; drop table if exists post_details; drop table if exists post_tag; drop table if exists post; drop table if exists tag; create table post (id bigint not null AUTO_INCREMENT, title varc...
SELECT fn_db_add_column('disk_image_dynamic', 'read_ops', 'INTEGER DEFAULT 0'); SELECT fn_db_add_column('disk_image_dynamic', 'write_ops', 'INTEGER DEFAULT 0');
<gh_stars>100-1000 -- create a table to use as a basis for views and materialized views in various combinations CREATE TABLE mvtest_t (id int NOT NULL PRIMARY KEY, type text NOT NULL, amt numeric NOT NULL); INSERT INTO mvtest_t VALUES (1, 'x', 2), (2, 'x', 3), (3, 'y', 5), (4, 'y', 7), (5, 'z', 11); -- we wa...
<reponame>bibek376/PostgreSQL -- -- PostgreSQL database dump -- -- Dumped from database version 9.3.16 -- Dumped by pg_dump version 9.5.12 SET statement_timeout = 0; SET lock_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', false); SET ch...
<gh_stars>0 /* Notes: 1) First 2 attributes are included so lineage tracing and source primary key identification is clearly contained in the prospective extract file. 2) The output IDENTITY_CONTEXT clearly indicates the primary source of the extract file. 3) The output SOURCE_PK will always contain the...
<filename>src/main/resources/db/migration/V5__Add_scenario_like_table.sql create table scenario_like ( user_id bigint not null references users, scenario_id bigint not null references scenario, primary key (user_id, scenario_id) )
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Mar 12, 2022 at 08:25 AM -- Server version: 10.4.14-MariaDB -- PHP Version: 7.4.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIE...
<filename>src/main/resources/static/todos.sql INSERT INTO `vue-project`.`todos` (`title`, `completed`) VALUES ("Find a use for Slots and Mixins",1), ("Find difference between Vue Watchers and computed",1), ("Find a use for a watcher",1), ("Create a custom event with $emit",1), ("Find a use for nextTick",0), ("Refactor ...
<filename>api/migrations/2022-03-02-150254_car_brands/up.sql -- Your SQL goes here CREATE TABLE IF NOT EXISTS car_brands ( `id` INT(11) PRIMARY KEY AUTO_INCREMENT, `name` VARCHAR(60), `created_at` DATETIME DEFAULT CURRENT_TIMESTAMP, `updated_at` DATETIME DEFAULT CURRENT_TIMESTAMP ON UPDATE...
<filename>SQL-Unit-Tests/Basic-SQL-Suite/select_top/select_top.sql -- This is a simple test for a SELECT TOP statement -- SELECT TOP 1 [id], [first_name], [last_name], [username] FROM [BARRETT_TEST].[dbo].[users]
CREATE OR REPLACE FUNCTION inc(val integer) RETURNS integer AS $$ BEGIN RETURN val + 1; END; $$ LANGUAGE PLPGSQL;
ALTER TABLE signoz_index DROP COLUMN IF EXISTS httpMethod, DROP COLUMN IF EXISTS httpUrl, DROP COLUMN IF EXISTS httpCode, DROP COLUMN IF EXISTS httpRoute, DROP COLUMN IF EXISTS httpHost, DROP COLUMN IF EXISTS msgSystem, DROP COLUMN IF EXISTS msgOperation
<filename>models/base/quickbooks_journal_lines.sql with lines as ( {% if target.type == 'bigquery' %} select {{ dbt_utils.surrogate_key('line.id', 'entries.id') }} as id, {{ dbt_utils.safe_cast('entries.id', dbt_utils.type_int()) }} as entry_id, coalesce( {{ dbt_utils.safe_cast('amount...
-- Revert ggircs-portal:tables/application_review_step_001 from pg begin; -- no revert necessary commit;
--====================================================== -- -- Author: <NAME> -- Usage: This script runs the join_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 published und...
-- phpMyAdmin SQL Dump -- version phpStudy 2017 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2017 年 12 月 09 日 15:54 -- 服务器版本: 5.5.40 -- PHP 版本: 5.4.33 -- 数据库作者:Lly SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 S...
<gh_stars>10-100 CREATE PROCEDURE [cukes].[StartStep] @RunID BIGINT, @FeatureID BIGINT, @ScenarioID BIGINT, @Keyword VARCHAR(5), @Value VARCHAR(100) AS BEGIN INSERT INTO cukes.StepResults ( RunID, FeatureID, ScenarioID, Keyword, Value, StartAt) VALUES ( @RunID, @FeatureID, @ScenarioID, ...
SELECT toDateTime64('2021-03-01 01:02:03.123456789', 3, 'UTC') AS val, toTypeName(val) AS ty
<reponame>andersk/pgroonga<filename>sql/full-text-search/text/single/declarative-partitioning.sql CREATE TABLE memos ( id integer, content text ) PARTITION BY RANGE (id); CREATE TABLE memos_0_10000 PARTITION OF memos FOR VALUES FROM (0) TO (10000); CREATE TABLE memos_10000_20000 PARTITION OF memos FOR VALU...
-- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Хост: 127.0.0.1 -- Время создания: Янв 24 2022 г., 10:11 -- Версия сервера: 10.4.22-MariaDB -- Версия 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=@@...
INSERT INTO `Country` VALUES (1, 'US', 'United States',datetime('now'),datetime('now')); INSERT INTO `Country` VALUES (2, 'CA', 'Canada',datetime('now'),datetime('now')); INSERT INTO `Country` VALUES (3, 'AF', 'Afghanistan',datetime('now'),datetime('now')); INSERT INTO `Country` VALUES (4, 'AL', 'Albania',datetime('now...
<reponame>grassrootza/grassroot-platform<gh_stars>10-100 alter table group_user_membership add column tags text[] default '{}'; update group_user_membership set tags = '{}'; create index member_tag_index on group_user_membership using gin(tags);
-- @testpoint: update的使用 drop table if exists test_left; create table test_left(a int,b varchar2(20)); insert into test_left values(1,'xiexiaoyu'); insert into test_left values(2,'llllll'); insert into test_left values(3,'vvvvvv'); update test_left set B='888' where LEFT(B,4) = 'xiex'; select A,B from test_left order ...
<filename>Code/part_2.sql # Monthly Distribution SELECT substr(`date`,1,2) as month_occurred, count(*) as case_num FROM chicago_crimes GROUP BY substr(`date`,1,2) SORT BY month_occurred DESC # Monthly distribution by District SELECT district,substr(`date`,1,2) as month_occurred, count(*) as case_num FROM chicago_crime...
SELECT Hackers.hacker_id, name, TotalScore FROM ( SELECT hacker_id, SUM(MaxsScore) AS TotalScore FROM ( SELECT hacker_id, challenge_id, MAX(score) as MaxsScore FROM Submissions GROUP BY hacker_id, challenge_id ) MaxScores GROU...
DROP TABLE EMP; DROP TABLE DEPT; DROP TABLE SALGRADE; CREATE TABLE DEPT ( DEPTNO NUMBER(2) NOT NULL, DNAME VARCHAR2(14), LOC VARCHAR2(13), CONSTRAINT DEPT_PRIMARY_KEY PRIMARY KEY (DEPTNO)); INSERT INTO DEPT VALUES (10,'ACCOUNTING','NEW YORK'); INSERT INTO DEPT VALUES (2...
<filename>sql/cdm/v5.3.1/omop_vocabulary_indexes_constraints/dbo/Tables/domain.sql CREATE TABLE [dbo].[domain] ( [domain_id] VARCHAR (20) NOT NULL, [domain_name] VARCHAR (255) NOT NULL, [domain_concept_id] INT NOT NULL, CONSTRAINT [xpk_domain] PRIMARY KEY NONCLUSTERED ([domain_...
insert into org_unit ( description, last_update) values ( 'HMCTS', timezone('utc', now())); insert into org_business_area ( description, last_update) values ( 'Civil, Family and Tribunals', timezone('utc', now())) ; insert into org_sub_business_area ( description, last_updat...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.3 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Dec 30, 2018 at 04:48 PM -- Server version: 10.1.35-MariaDB -- PHP Version: 7.2.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
-- Experimental Query (!) to export a table as csv-file -- works (currently on windows but path can be changed) but 'no value' in a field is represented as "\N" which has to be manually replaced afterwards with "" to get a clean output SELECT * INTO OUTFILE 'C:\\result.csv' FIELDS TERMINATED BY ',' OPTIONALLY ENCLOS...
<reponame>PetePrattis/medical-application-with-jdbc-relational-database<gh_stars>1-10 select c.name as most_visited_departments from -- finds the name from (select dp.name as name, count(a.id) as cnt-- finding the name and number of ids from appointments a, doctors d, departments dp -- from tables a, d, dp where a.d...
-- Never run this is a production environment DROP table if exists public.tenant_digitalassetmanagers; DROP table if exists public.tenant; DROP table if exists public.digitalassetmanagers; CREATE TABLE public.tenant ( id int4 NOT NULL GENERATED ALWAYS AS IDENTITY, name varchar NOT NULL, CONSTRAINT tenant_pk PRIMAR...
-- file:strings.sql ln:392 expect:true SELECT substr(f1, -1, 5) from toasttest
-- -- 00-initial-schema.sql -- -- Set up reatime -- create publication supabase_realtime; -- defaults to empty publication create publication supabase_realtime; -- Supabase super admin -- create user supabase_admin; -- alter user supabase_admin with superuser createdb createrole replication bypassrls; -- Extension ...
CREATE OR REPLACE FUNCTION dz_lrs.is_measure_decreasing( IN pGeometry GEOMETRY ) RETURNS BOOLEAN IMMUTABLE AS $BODY$ DECLARE num_start NUMERIC; num_end NUMERIC; BEGIN num_start := ST_M(ST_StartPoint(pGeometry)); num_end := ST_M(ST_EndPoint(pGeometry)); IF num_start IS NULL ...
ALTER TABLE discipline DROP COLUMN description; DELETE FROM flyway_schema_history WHERE version = '2021.03.26.01';
<gh_stars>0 CREATE EXTENSION clickhouse_fdw; SET datestyle = 'ISO'; CREATE SERVER loopback FOREIGN DATA WRAPPER clickhouse_fdw OPTIONS(dbname 'regression', driver 'binary'); CREATE SERVER loopback2 FOREIGN DATA WRAPPER clickhouse_fdw OPTIONS(dbname 'regression', driver 'binary'); CREATE USER MAPPING FOR CURRENT_USER S...
drop table if exists fw_context_role_authority; /*==============================================================*/ /* Table: fw_context_role_authority */ /*==============================================================*/ create table fw_context_role_authority ( ID bigin...
<gh_stars>1-10 use mledger; DROP TABLE IF EXISTS tb_GLTransaction; -- MService general ledger transaction entity CREATE TABLE tb_GLTransaction ( -- general ledger transaction unique identifier inbGlTransactionId BIGINT AUTO_INCREMENT NOT NULL, -- creation date dtmCreated DATETIME NOT NULL, -- mod...
<filename>Database/procedures/getIncomeSupportOutput.sql DROP PROCEDURE IF EXISTS getIncomeSupportOutput; CREATE DEFINER=`root`@`localhost` PROCEDURE `getIncomeSupportOutput`(IN start_age int(2), IN end_age int(2), IN sexIn VARCHAR(25), ...
<reponame>otac0n/GitReview CREATE SEQUENCE [dbo].[ReviewIds] START WITH 1
<filename>src/main/webapp/static/mysql.sql<gh_stars>0 /* Navicat MySQL Data Transfer Source Server : lcoal Source Server Version : 50540 Source Host : localhost:3306 Source Database : honey Target Server Type : MYSQL Target Server Version : 50540 File Encoding : 65001 Date: 2015-09...
<gh_stars>0 CREATE FUNCTION sganet_fn_Interfaz_Cliente360_ValidarClienteServicios( @vi_nu_documento VARCHAR(25)) RETURNS BIT AS BEGIN DECLARE @fl_cliente_servicios BIT= 0; -------------------------------------------------------------------------------------------------------------------------- --Valida Si...
<filename>book.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2.1 -- http://www.phpmyadmin.net -- -- Client : localhost -- Généré le : Jeu 17 Janvier 2019 à 14:26 -- Version du serveur : 5.7.24-0ubuntu0.16.04.1 -- Version de PHP : 7.2.13-1+ubuntu16.04.1+deb.sury.org+1 SET SQL_MODE = "NO_AUTO_VAL...
/* Post-Deployment Script Template -------------------------------------------------------------------------------------- This file contains SQL statements that will be appended to the build script. Use SQLCMD syntax to include a file in the post-deployment script. Example: :r .\myfile.sql ...
SELECT geonames_id, name, feature_class, feature_code, country_code, cc2, admin1_code, admin2_code, admin3_code, admin4_code, population, elevation, dem, timezone, modification_date FROM geonames WHERE country_code = ? AND admin1_code = ? AND fea...
USE [NuScien5] GO SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO /* Settings */ CREATE TABLE [dbo].[nssettings]( [id] [varchar](80) NOT NULL, [name] [nvarchar](250) NOT NULL, [state] [int] NOT NULL, [creation] [datetime2](7) NOT NULL, [lastupdate] [datetime2](7) NOT NULL, [revision] [varchar](80) NOT NULL, ...
<reponame>aleksey-mashanov/onlineconf<filename>admin/etc/notification-update-1.sql ALTER TABLE `my_change_notification` MODIFY `Origin` varchar(255) CHARACTER SET utf8mb4 NOT NULL, MODIFY `Message` mediumtext CHARACTER SET utf8mb4 NOT NULL, DEFAUlT CHARSET=utf8mb4;
-- file:arrays.sql ln:96 expect:true SELECT a FROM arrtest WHERE a[2] IS NULL
-- file:create_table_like.sql ln:13 expect:true CREATE TABLE foo (LIKE nonexistent)
DROP TABLE IF EXISTS `CADJPY_M30`; CREATE TABLE IF NOT EXISTS `CADJPY_M30`( `id` int(5) NOT NULL, `open` varchar(30) NOT NULL, `high` varchar(30) NOT NULL, `close` varchar(30) NOT NULL, `low` varchar(30) NOT NULL, `time` varchar(30) NOT NULL); ALTER TABLE `CADJPY_M30` ADD PRIMARY KEY (`id`); ALTER TABLE `CADJP...
/* * File: 16_katokatz_per_district.sql * File Created: Tuesday, 12th May 2020 2:42:20 pm * Author: <NAME> * Last Modified: Tuesday, 12th May 2020 4:39:07 pm * Modified By: <NAME> * ----- * (c) 2020, WHO/AFRO/UCN/ESPEN */ /* * This query will display the Katyo-katz results by sex and resul * Variable to rena...
-- phpMyAdmin SQL Dump -- version 3.5.1 -- http://www.phpmyadmin.net -- -- 主机: localhost -- 生成日期: 2017 年 04 月 26 日 07:10 -- 服务器版本: 5.5.24-log -- PHP 版本: 5.4.3 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_...
/* Navicat Premium Data Transfer Source Server : 172.16.58.3 Source Server Type : MySQL Source Server Version : 50721 Source Host : 172.16.58.3:3306 Source Schema : admin Target Server Type : MySQL Target Server Version : 50721 File Encoding : 65001 Date: 18/10/2018 ...
<filename>meetups/2019-05-22_meetup1/sql/amazon_food_reviews.sql<gh_stars>1-10 // set context USE ROLE OKC_MEETUP_ROLE; USE WAREHOUSE OKC_MEETUP_WH; // define the table CREATE TABLE IF NOT EXISTS OKC_MEETUP_DB.RAW_DATASETS.AMAZON_FOOD_REVIEWS( ID INT, PRODUCT_ID STRING, USER_ID STRING, PROFILE_NAME STRING, ...
-- This fixes the badly nested geometry that's in the shapefiles select substring(supplemental_id, 3, 3) as county , st_union(geom) into temp_county from redistricting_geounit where geolevel_id = 1 group by county; update redistricting_geounit set geom = st_multi(st_union), simple = ST_MULTI(ST_SIMPLIFYPRESERVETOPOLO...
-- -- PostgreSQL database dump -- -- Dumped from database version 12.1 -- Dumped by pg_dump version 12.1 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_strings = on; SELECT pg_catalog.set_config('search_path', '', fal...
select top 100 * from customer_address where ca_address_sk=-100 order by ca_address_id desc
<filename>migrations/004_rename_users_events.sql ALTER TABLE users_events RENAME TO user_events; ---- create above / drop below ---- ALTER TABLE user_events RENAME TO users_events;
<reponame>DanielBankov/SoftUni<gh_stars>0 SELECT CONCAT(FirstName, ' ', LastName), DATENAME(DW, s.CheckIn) FROM Employees AS e LEFT JOIN Orders AS o ON o.EmployeeId = e.Id JOIN Shifts AS s ON s.EmployeeId = e.Id WHERE o.[Datetime] IS NULL AND DATEDIFF(HOUR, s.CheckIn, s.CheckOut) > 12 ORDER BY e.Id
SET ANSI_NULLS ON GO SET QUOTED_IDENTIFIER ON GO CREATE TABLE [dbo].[employers]( id INT NOT NULL IDENTITY(1,1), [id_user] [int] NOT NULL, CONSTRAINT [PK_EMPLOYERS_ID] PRIMARY KEY CLUSTERED ( [id] ASC )WITH (STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF) ON [PRIMARY] ) ON [PRIMARY] GO ALTER TABLE [dbo].[em...
<filename>db/1. Schema Creation.sql create schema config Go Create table [config].[Dashboard] ( Id bigint not null primary key identity(1, 1), [Name] nvarchar(50) not null, [IframeUrl] nvarchar(200) null, [Status] bit not null, CreatedOn datetime not null, CreatedBy nvarchar(20) not null, UpdatedOn datetime null...
INSERT INTO readings (id, book_id, student_id, duration, ) VALUES (1, 1, 1, TIMESTAMP ), (2, 2, 2, TIMESTAMP ), (3, 3, 3, TIMESTAMP ), (4, 4, 4, TIMESTAMP ), (5, 5, 5, TIMESTAMP ), (6, 6, 6, TIMESTAMP ); INSERT INTO books (id, title, ) VALUES (1, "Red Wall" ), (2, "The Hobbit" ), (3, "The Giver" ), (4. "James and the ...
<filename>src/main/resources/db/migration/V1_5__room_mappings_hewell.sql insert into room_id (nomis_room_description, prison_id, vsip_id, is_open) values ('HEI-VISITS-HB8VA', 'HEI','VISITS-HB8LV',true);
<reponame>Chysn/wav2evolver<filename>private/dbschema/download.sql /* Navicat Premium Data Transfer Source Server : Local Source Server Type : MySQL Source Server Version : 50144 Source Host : localhost Source Database : wav2evolver Target Server Type : MySQL Target Server Versio...
CREATE EXTENSION IF NOT EXISTS "uuid-ossp"; CREATE TABLE employeeDetails ( user_id BIGSERIAL PRIMARY KEY, firstName VARCHAR(50) NOT NULL, lastName VARCHAR(50) NOT NULL, email VARCHAR(150) UNIQUE NOT NULL, userPassword VARCHAR(50) UNIQUE NOT NULL, gender VARCHAR(7), jobRole VARCHAR(50), ...
/* Warnings: - The primary key for the `onchain_transaction` table will be changed. If it partially fails, the table could be left without primary key constraint. - You are about to drop the column `transactionHash` on the `onchain_transaction` table. All the data in the column will be lost. - You are about to...
-- Copyright (c) Avanade. Licensed under the MIT License. See https://github.com/Avanade/Beef CREATE PROCEDURE [dbo].[spThrowBusinessException] @Message NVARCHAR(2048) = NULL AS BEGIN SET NOCOUNT ON; THROW 56002, @Message, 1 END
<gh_stars>1000+ -- 26.02.2016 15:32 -- I forgot to set the DICTIONARY_ID_COMMENTS System Configurator INSERT INTO AD_EntityType (AD_Client_ID,AD_EntityType_ID,AD_Org_ID,Created,CreatedBy,EntityType,IsActive,IsDisplayed,ModelPackage,Name,Processing,Updated,UpdatedBy) VALUES (0,5378,0,TO_TIMESTAMP('2016-02-26 15:32:49','...
<gh_stars>1-10 /* Additional required data elements that do not have a data dictionary entry */ library ANCBaseDataElements using FHIR version '4.0.1' include FHIRHelpers version '4.0.1' include ANCCommon called AC include FHIRCommon called FC include ANCBaseConcepts called BCx context Patient /* define "Pregnant":...