sql
stringlengths
6
1.05M
SET search_path TO public; create extension pg_trgm; create extension btree_gin; create schema dds; create table dds.entity ( urn text not null, loaded_by text not null, entity_name text not null, entity_type text not null, entity_name_short text, info text, search_data text, codes jsonb, grid jsonb,...
begin; truncate table abort_create_needed_cr_heap_truncate_table; DROP TABLE abort_create_needed_cr_heap_truncate_table; commit;
use brihaspati; drop table if exists USER_PREF; CREATE TABLE USER_PREF ( USER_ID INTEGER NOT NULL, USER_LANG VARCHAR (32) default 'english' NOT NULL, PRIMARY KEY(USER_ID), UNIQUE (USER_ID) ); insert into ID_TABLE (id_table_id, table_name, next_id, quantit...
-- CIRCUS CS DB Migration 10 CREATE INDEX ON study_list (patient_id);
# add forum schemas, data and views # Table schemas for forum-related tables # Drop order and create order are the reverse of each other because of the # foreign keys. DROP TABLE IF EXISTS forum_thread_player_map; DROP TABLE IF EXISTS forum_board_player_map; DROP TABLE IF EXISTS forum_post; DROP TABLE IF EXISTS for...
--test to_timestamp function, with en_US language --+ holdcas on; set system parameters 'intl_date_lang=en_US'; prepare st from 'select to_timestamp(?, ?)'; execute st using '10:10:45 CST 8', 'HH:MI:SS TZD TZH'; execute st using '10:10:45 America/Tijuana PST -8', 'HH:MI:SS TZR TZD5 TZH'; prepare st from 'select t...
/* ################################################################################ # TESTCASE NAME : skew_hint_01.py # COMPONENT(S) : skew hint功能测试: skew hint DFX测试 # PREREQUISITE : skew_setup.py # PLATFORM : all # DESCRIPTION : skew hint # TAG : hint # TC LEVEL : Level 1 #####################...
CREATE OR ALTER PROCEDURE usp_CalculateFutureValueForAccount (@accountId INT, @interestRate FLOAT) AS SELECT a.Id, ah.FirstName AS [First Name], ah.LastName AS [Last Name], a.Balance AS [Current Balance], [dbo].[ufn_CalculateFutureValue] (a.Balance, @interestRate, 5) FROM Accounts AS a JOIN AccountHolder...
create database if not exists myJavaDB; use myJavaDB; create table if not exists Users( userId varchar(25) unique not null, name varchar(20) not null, password varchar(200) not null, position varchar(10) not null, primary key(userId) ); create table if not exists Task( id int not null auto_increment, title varchar(20...
<reponame>cPolaris/school-is-fun DELETE FROM User; DELETE FROM Location; DELETE FROM HobbyTag; DROP PROCEDURE ; DROP VIEW TakenRegistrationView; DROP TABLE TempUser; DROP TABLE Follow; DROP TABLE Appear; DROP TABLE UserHobby; DROP TABLE Message; DROP TABLE Rank; DROP TABLE HobbyTag; DROP TABLE Location; DROP TABLE U...
CREATE TABLE users ( id BIGSERIAL PRIMARY KEY, created TIMESTAMP NOT NULL, updated TIMESTAMP, created_by BIGINT, updated_by BIGINT, first_name VARCHAR(128), last_name VARCHAR(128), username VARCHAR(128), email VARCHAR(256) NOT NULL, phone VARCHAR(16)...
INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (302, 'EGF', true, 'egf', NULL, 'Financials', 4); INSERT INTO eg_module (id, name, enabled, contextroot, parentmodule, displayname, ordernumber) VALUES (303, 'Budgeting', true, NULL, 302, 'Budgeting', 8); INSERT INTO...
DECLARE num1 number ; num2 number ; res number ; choise number ; BEGIN num1 := &num1 ; num2 := &num2 ; dbms_output.put_line('~~~MENUS~~~'); dbms_output.put_line('1. Addition'); dbms_output.put_line('2. Subtract'); dbms_output.put_line('3. Multiply'); dbms_output.put_line('4. Exit'); dbms_output.put_line('...
<filename>koperasi.sql -- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 04 Bulan Mei 2021 pada 15.35 -- Versi server: 10.4.16-MariaDB -- Versi PHP: 7.4.12 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET ...
CREATE TABLE [Production].[ProductReview] ( [ProductReviewID] INT IDENTITY (1, 1) NOT NULL, [ProductID] INT NOT NULL, [ReviewerName] [dbo].[Name] NOT NULL, [ReviewDate] DATETIME CONSTRAINT [DF_ProductReview_ReviewDate] DEFAULT (getdate()) NOT NULL, [E...
<filename>sql/procedures/Solvers.sql -- Description: This file contains all solver-related stored procedures for the starexec database -- The procedures are stored by which table they're related to and roughly alphabetic order. Please try to keep this organized! -- Adds a solver and returns the solver ID -- Author...
<filename>src/hg/xmlToSql/test/hotnews/expected/description.sql CREATE TABLE description ( id int not null, text longtext not null, PRIMARY KEY(id) );
DROP FUNCTION IF EXISTS `countryCode`; CREATE FUNCTION `countryCode`(country VARCHAR(255) CHARACTER SET utf8 COLLATE utf8_unicode_ci) RETURNS VARCHAR(5) CHARSET utf8 COLLATE utf8_unicode_ci READS SQL DATA DETERMINISTIC COMMENT 'Convert country name into code, returns NULL if the country does not exist in the table.' BE...
-- phpMyAdmin SQL Dump -- version 4.6.5.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Czas generowania: 12 Lut 2017, 23:42 -- Wersja serwera: 10.1.21-MariaDB -- Wersja PHP: 5.6.30 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIE...
-- phpMyAdmin SQL Dump -- version 4.1.12 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 09, 2015 at 06:14 PM -- Server version: 5.0.51b-community-nt-log -- PHP Version: 5.3.9 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACT...
ALTER TABLE QueuedInternalCommands DROP COLUMN CorrelationId ALTER TABLE QueuedInternalCommands ADD Correlation [nvarchar](255) NOT NULL DEFAULT('None');
<gh_stars>0 CREATE DATABASE IF NOT EXISTS ControleVenda; USE ControleVenda; DROP TABLE IF EXISTS pedido; CREATE TABLE IF NOT EXISTS pedido ( id int AUTO_INCREMENT PRIMARY KEY, controle int default NULL, data datetime not null DEFAULT NOW(), produto varchar(50) DEFAULT NULL, valorunitario decimal...
create table promise_day( id int auto_increment, note VARCHAR(1000) NOT NULL, create_time timestamp default CURRENT_TIMESTAMP , PRIMARY KEY ( id ) )ENGINE=InnoDB DEFAULT CHARSET=utf8; insert into promise_day (note) values ('创建mysql表'); select * from dream.promise_day; select * from dream.bug; mysql...
<reponame>oolso/yobi<gh_stars>100-1000 # --- !Ups create table notification_event ( id bigint not null, title varchar(255), message clob, sender_id bigint, created timestamp, url_to_view varchar(255...
<reponame>zdenulo/bigquery-openstreetmap SELECT 7201 AS layer_code, 'land_use' AS layer_class, 'forest' AS layer_name, feature_type AS gdal_type, osm_id, osm_way_id, osm_timestamp, all_tags, geometry FROM `openstreetmap-public-data-prod.osm_planet.features` WHERE EXISTS(SELECT 1 FROM UNNEST(all_tags) as tags WHERE (...
--[er]test incr, decr using incr, decr in select-list together CREATE CLASS board ( id INT, title VARCHAR(100), content VARCHAR(4000), read_count INT ,edit_count INT); INSERT INTO board VALUES (1, 'aaa', 'text...', 0,10); INSERT INTO board VALUES (2, 'bbb', 'text...', 0,0); INSERT INTO board VALUES (3, 'ccc', 'tex...
CREATE USER jamesFulford IDENTIFIED BY theFulfordDataman DEFAULT TABLESPACE radiosilence PASSWORD EXPIRE; GRANT tutor TO jamesFulford; ALTER USER jamesFulford DEFAULT ROLE tutor;
-- phpMyAdmin SQL Dump -- version 5.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 03, 2022 at 05:05 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.3.15 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OL...
<filename>banco-relacional/consultarComAgregacao.sql SELECT regiao AS 'Região', sum(populacao) as Total FROM estados GROUP BY regiao ORDER BY Total desc; SELECT SUM(populacao) as Total FROM estados SELECT AVG(populacao) as 'Media por Estado' FROM estados;
CREATE OR REPLACE VIEW public.vw_repacked_pallet_sequence_flat AS SELECT ps.id, ps.repacked_from_pallet_id, scrapped_ps.pallet_number AS repacked_from_pallet_number, ps.pallet_id, ps.pallet_number AS repacked_to_pallet_number, ifr.failure_reason AS inspection_failure_reason, p.repacked, p....
-- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Aug 27, 2019 at 01:29 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
-- phpMyAdmin SQL Dump -- version 4.5.1 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: 12 Jan 2017 pada 06.09 -- 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=@@CHARACTER_SET_CLIENT ...
<filename>migration/verify/insert-data.sql<gh_stars>0 -- Verify yabon-prono:insert-data on pg BEGIN; -- XXX Add verifications here. ROLLBACK;
<reponame>jichang/sso DROP TABLE sso.authorizations;
-- 开始初始化数据 把no_cache=1改为 true: ^(INSERT([^,]*?,){10})\s*(1,)(.*?;)$ 替换为 $1 true,$4 这行要删除才能执行; BEGIN; INSERT INTO sys_menu VALUES (2, 'Upms', '系统管理', 'example', '/upms', '/0/2', 'M', '无', '', 0, true, '', 'Layout', 1, '0', '1', '1', '0', '2020-04-11 15:52:48', NULL, NULL); INSERT INTO sys_menu VALUES (3, 'Sysuser', '用...
<reponame>ArthurR2/angular-review<gh_stars>1-10 /* Warnings: - The migration will add a unique constraint covering the columns `[firstName,middleName,lastName]` on the table `authors`. If there are existing duplicate values, the migration will fail. */ -- CreateIndex CREATE UNIQUE INDEX "authors.firstName_middleN...
<gh_stars>1-10 USE ANTERO IF EXISTS (SELECT * FROM INFORMATION_SCHEMA.TABLES WHERE TABLE_SCHEMA='dw' AND TABLE_NAME='d_erityisopetus') BEGIN ALTER TABLE [dw].[d_erityisopetus] DROP CONSTRAINT [DF__d_erityisopetus__username]; ALTER TABLE [dw].[d_erityisopetus] DROP CONSTRAINT [DF__d_erityisopetus__loadtime]; DROP TABL...
<filename>db/sql/2934__drop_and_create_f_5_4_yosairaaloiden_tutkimus_ja_kehitys_rahoitus.sql USE [VipunenTK_DW] GO /****** Object: Table [dbo].[f_5_4_yosairaaloiden_tutkimus_ja_kehitys_rahoitus] Script Date: 26.3.2020 11:44:53 ******/ DROP TABLE [dbo].[f_5_4_yosairaaloiden_tutkimus_ja_kehitys_rahoitus] GO /******...
<filename>plugins/admin/tables.sql INSERT INTO plugins (plugin, version) VALUES ('admin', 'v1.0') ON CONFLICT (plugin) DO NOTHING; CREATE TABLE IF NOT EXISTS servers (server_name TEXT PRIMARY KEY, agent_host TEXT NOT NULL, host TEXT NOT NULL DEFAULT '127.0.0.1', port BIGINT NOT NULL, chat_channel BIGINT, status_channel...
-- file:with.sql ln:199 expect:true SELECT * FROM vsubdepartment ORDER BY name
create table basetable(id serial primary key, name text); create view ddd_changed as select name, 'x' as x from basetable; create view ddd_unchanged as select name from ddd_changed;
/* Navicat MySQL Data Transfer Source Server : makeshop Source Server Version : 50553 Source Host : localhost:3306 Source Database : test Target Server Type : MYSQL Target Server Version : 50553 File Encoding : 65001 Date: 2018-09-08 00:06:46 */ SET FOREIGN_KEY_CHECKS=0; -- -----...
<filename>FormSubmitExport/admin/sql/updates/mysql/0.0.2.sql<gh_stars>0 --DROP TABLE IF EXISTS `#__helloworld_hello`; -- -------------------------------------------------------- -- -- Table structure for table `#__helloworld_hello` -- CREATE TABLE `#__helloworld_hello` ( `id` int(11) NOT NULL, `name` v...
<filename>sgipd-db/sql-new/Criterio_table.sql --liquibase formatted sql --changeset xtecuan:23 dbms:mssql CREATE TABLE Criterio ( id_criterio bigint IDENTITY(1,1) NOT NULL, nombre_criterio varchar(25) COLLATE Modern_Spanish_CI_AS NOT NULL, descripcion_criterio text COLLATE Modern_Spanish_CI_AS NOT NULL, puntaje_ma...
<gh_stars>0 CREATE TABLE products ( id bigint NOT NULL, create_datetime timestamp, update_datetime timestamp, marked boolean NOT NULL, description varchar(1000), quantity varchar(255), title varchar(255) NOT NULL, unit varchar(255), user_id bigint NOT NULL, PRIMARY KEY (id) ); C...
<reponame>giosil/wcron -- -- Functions -- CREATE OR REPLACE FUNCTION ENCRYPT_TEXT(vcText IN VARCHAR2) RETURN VARCHAR2 IS vcResult VARCHAR2(2048); vcKey VARCHAR2(32); BEGIN vcResult := NULL; vcKey := '<KEY>'; dbms_obfuscation_toolkit.DESEncrypt(input_string => RPAD(vcText, 48, ' '), key_string => vcKey, enc...
INSERT INTO user (id, username, password, name, email) VALUES (1, 'admin', '<PASSWORD>', '老卫', '<EMAIL>'); INSERT INTO user (id, username, password, name, email) VALUES (2, 'waylau', '<PASSWORD>', '<NAME>', '<EMAIL>'); INSERT INTO authority (id, name) VALUES (1, 'ROLE_ADMIN'); INSERT INTO authority (id, name) VALUES ...
/****** Object: Synonym [dbo].[S_DMS_V_DatasetFullDetails] ******/ CREATE SYNONYM [dbo].[S_DMS_V_DatasetFullDetails] FOR [DMS5].[dbo].[V_DatasetFullDetails] GO GRANT VIEW DEFINITION ON [dbo].[S_DMS_V_DatasetFullDetails] TO [DDL_Viewer] AS [dbo] GO
<reponame>lattwood/presto SELECT "i_item_desc" , "w_warehouse_name" , "d1"."d_week_seq" , "sum"((CASE WHEN ("p_promo_sk" IS NULL) THEN 1 ELSE 0 END)) "no_promo" , "sum"((CASE WHEN ("p_promo_sk" IS NOT NULL) THEN 1 ELSE 0 END)) "promo" , "count"(*) "total_cnt" FROM ((((((((((${database}.${schema}.catalog_sales INNER...
<reponame>FRRdev/J_Search -- upgrade -- ALTER TABLE "task" ALTER COLUMN "worker_id" DROP NOT NULL; -- downgrade -- ALTER TABLE "task" ALTER COLUMN "worker_id" SET NOT NULL;
<gh_stars>0 -- @testpoint:opengauss关键字is(保留),作为用户组名 --关键字不带引号-合理报错 drop group if exists is; create group is with password '<PASSWORD>'; --关键字带双引号-成功 drop group if exists "is"; create group "is" with password '<PASSWORD>'; --清理环境 drop group "is"; --关键字带单引号-合理报错 drop group if exists 'is'; create group 'is' with pas...
<filename>openGaussBase/testcase/SQL/INNERFUNC/Datetime/Opengauss_Function_Innerfunc_Multiplies_Case0014.sql -- @testpoint: 时间和日期操作符*,reltime乘以负数 drop table if exists test_date01; create table test_date01 (col1 reltime); insert into test_date01 values ('60'); select '-10' * col1 from test_date01; drop table if exists ...
<reponame>juansdev/videos_favoritos CREATE DATABASE IF NOT EXISTS api_rest_symfony; USE api_rest_symfony; CREATE TABLE IF NOT EXISTS users( id INT(255) AUTO_INCREMENT NOT NULL, name VARCHAR(50) NOT NULL, surname VARCHAR(150), email VARCHAR(255), password V...
-- -------------------------------------------------------- -- Host: 127.0.0.1 -- Server version: 5.6.17 - MySQL Community Server (GPL) -- Server OS: Win32 -- HeidiSQL Version: 9.4.0.5173 -- -------------------------------------------------------- /*...
USE department_db; SET FOREIGN_KEY_CHECKS=0; INSERT INTO departments (name) VALUES ('Support'), ('Hosting'), ('Training'), ('Programming'); INSERT INTO role (title,salary,department_id) VALUES ('Level 1 Tech', 30000,1), ('Level 2 Tech', 40000,1), ('Tech Lead', 70000, 1), ('Hostin...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 13, 2020 at 01:25 AM -- Server version: 10.3.16-MariaDB -- PHP Version: 7.3.6 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @O...
DROP TABLE IF EXISTS explorer, weather, eventful; CREATE TABLE explorer ( id SERIAL PRIMARY KEY, city VARCHAR(255), formattedquery VARCHAR(255), lat NUMERIC(10, 7), long NUMERIC(10, 7) ); CREATE TABLE weather ( id SERIAL PRIMARY KEY, forecast VARCHAR(255), time VARCHAR(255) ); CREATE TABLE even...
<filename>Scripts BD/20181106_ModificacionLlaveTablaComentarioLike.sql /* Se corrije error ortográfico en el nombre de columna */ -- ---------------------------- -- Tabla ComentarioLIke -- ---------------------------- ALTER TABLE public."ComentarioLike" RENAME "iIdCometario" TO "iIdComentario"; ALTER TABLE publ...
INSERT INTO `posts` (`post`, `native_id`, `post_account_id`, `image_url`, `video_url`, `likes`, `num_comments`, `shares`, `time_posted`, `link`, `post_type`, `link_text`) VALUES ("Providers estimate that there have been 77 million tests done in the U.S. so far, which means hundreds of thousands of people are not gettin...
INSERT INTO `entries` (`entryID`, `childID`, `height`, `weight`, `waist`, `WHR_v`, `BMI_v`, `fruits`, `veggies`, `exercise`, `screenTimeSD`, `screenTimeNSD`, `sleepSD`, `sleepNSD`, `created_at`, `updated_at`) VALUES (1,1,162.00,44.00,44.00,0.30,0.46,3.00,3.00,'01:00:00',3.00,3.00,'10:00:00','10:00:00','2018-10-19 12:3...
/* Navicat MySQL Data Transfer Source Server : localhost2018 Source Server Version : 100136 Source Host : localhost:3306 Source Database : nuestronegocio Target Server Type : MYSQL Target Server Version : 100136 File Encoding : 65001 Date: 2018-12-27 02:10:59 */ SET FOREIGN_KEY_CH...
<filename>database/seeds/user.sql INSERT INTO `users` (`id`, `name`, `email`, `email_verified_at`, `password`, `remember_token`, `created_at`, `updated_at`) VALUES (1, 'Admin', '<EMAIL>', NULL, '$2y$10$IvS0n0hZxSJZIRbrwoBste2WEwrZlBO1hYZXkDJG33h5IGKQmM7yq', NULL, '2019-05-19 15:11:36', '2020-05-21 14:04:56');
<reponame>estebansalgado/boiler-plate-codeigniter<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 9.6.9 -- Dumped by pg_dump version 9.6.9 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_st...
<filename>efatwa.sql<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.0.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Sep 08, 2018 at 01:51 PM -- Server version: 10.1.32-MariaDB -- PHP Version: 7.2.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zo...
select * from liste where OBR_OBRACUN=177 and RADNIK_RADNIK in ('008661','008696','007903','007818','008745')
\set id random(1, {{ recordcount }}) select data->0 from jsonb_test where id = :id; select data->38 from jsonb_test where id = :id; select * from jsonb_test where id = :id; update jsonb_test set data = jsonb_set(data, '{0}', '"test"') where id = :id; update jsonb_test set data = jsonb_set(data, '{38}', '"test"') whe...
<filename>SQL/UpdateLogExist.sql /*If I am creating a function, the script block will be executed before this script is called*/ if not exists (select * from UpdateLog where ScriptID = '@ScriptID') begin @ScriptBlock @InsertUpdateLog select 1 [Inserted]; end else begin select 0 [Inserted]; end
ALTER TABLE Employee ADD COLUMN email VARCHAR(255); ALTER TABLE Employee ADD UNIQUE (email); -- transfer the email to the employee UPDATE Employee e SET email = (SELECT email FROM Credential WHERE id = e.id); ALTER TABLE Employee ALTER COLUMN email SET NOT NULL; CREATE TABLE Settings ( id INT8 NOT NUL...
<filename>buildmimic/aws-athena/mimic-aws-athena-ddl.sql CREATE EXTERNAL TABLE `admissions`( `row_id` int, `subject_id` int, `hadm_id` int, `admittime` timestamp, `dischtime` timestamp, `deathtime` timestamp, `admission_type` string, `admission_location` string, `discharge_location` string, ...
# ************************************************************ # Sequel Pro SQL dump # Version 4541 # # http://www.sequelpro.com/ # https://github.com/sequelpro/sequelpro # # Host: 127.0.0.1 (MySQL 5.7.36) # Database: website_maker # Generation Time: 2022-02-11 08:20:57 +0000 # *****************************************...
-- add a new permission for modifying award report tracking INSERT INTO KRIM_PERM_T (PERM_ID, OBJ_ID, VER_NBR, PERM_TMPL_ID, NMSPC_CD, NM, DESC_TXT, ACTV_IND) VALUES (KRIM_PERM_ID_BS_S.NEXTVAL, SYS_GUID(), 1, (SELECT PERM_TMPL_ID FROM KRIM_PERM_TMPL_T WHERE NM = 'Edit Document'), 'KC-AWARD', 'Modify Award Report Trac...
<gh_stars>0 -- Copyright [1999-2015] Wellcome Trust Sanger Institute and the EMBL-European Bioinformatics Institute -- Copyright [2016-2019] EMBL-European Bioinformatics Institute -- -- Licensed under the Apache License, Version 2.0 (the "License"); -- you may not use this file except in compliance with the License. -...
with base as ( select * from {{ ref('stg_lever__interview_tmp') }} ), fields as ( select {{ fivetran_utils.fill_staging_columns( source_columns=adapter.get_columns_in_relation(ref('stg_lever__interview_tmp')), staging_columns=get_interview_columns() ...
<filename>src/org.xtuml.bp.io.mdl.test/models/sql/enum2.sql -- BP 6.1D content: domain syschar: 3 INSERT INTO S_DOM VALUES (111189, 'enum2', 'This test is a helper domain for enum1. See enum1 for a complete description. ** Note: This domain cannot be run in Verifier as it relies on the transfer of data bet...
<reponame>brucelawson/almanac.httparchive.org #standardSQL # 08_14: Frame-ancestor CSP directive SELECT client, csp_frame_ancestors_count, csp_frame_ancestors_none_count, csp_frame_ancestors_self_count, total, ROUND(csp_frame_ancestors_count * 100 / total, 2) AS pct_csp_frame_ancestors, ROUND(csp_frame_an...
<filename>modules/web-base/src/main/java/META-INF/org/nlh4j/web/system/role/domain/dao/SystemRoleDao/findRolesBy.sql<gh_stars>1-10 SELECT r.id , COALESCE( r.viewable, false ) viewable , COALESCE( r.insertable, false ) insertable , COALESCE( r.updatable, false ) updatable , COALESCE( r.updatable, false ) ...
create extension if not exists timescaledb cascade; drop table if exists raw_data; create table raw_data ( _time timestamptz not null, _key varchar[] not null, _value bytea not null ); select create_hypertable('raw_data', '_time'); drop table if exists key_value_data; create table key_value_data ( ...
<filename>posda/posdatools/queries/sql/GetBasicSeriesInfo.sql<gh_stars>1-10 -- Name: GetBasicSeriesInfo -- Schema: posda_files -- Columns: ['file_id', 'sop_instance_uid', 'series_instance_uid', 'series_date', 'study_instance_uid', 'study_date', 'instance_number', 'patient_id', 'modality', 'dicom_file_type', 'for_uid', ...
drop table user if exists; drop table role if exists; create table user ( id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1) PRIMARY KEY, name VARCHAR(32) DEFAULT 'DEFAULT', sex VARCHAR(2) ); create table role ( id INTEGER GENERATED BY DEFAULT AS IDENTITY (START WITH 1) PRIMARY KEY, n...
/* CSIL - Columnstore Indexes Scripts Library for SQL Server vNext: Columnstore Alignment - Shows the alignment (ordering) between the different Columnstore Segments Version: 1.5.1, September 2017 Copyright 2015-2017 <NAME>, OH22 IS (http://www.nikoport.com/columnstore/), (http://www.oh22.is/) Licensed under th...
<reponame>masseelch/FastTrackBalancing UPDATE StartBiasFeatures SET Tier=4 WHERE CivilizationType='CIVILIZATION_EGYPT' AND FeatureType='FEATURE_FLOODPLAINS_PLAINS'; UPDATE StartBiasFeatures SET Tier=4 WHERE CivilizationType='CIVILIZATION_EGYPT' AND FeatureType='FEATURE_FLOODPLAINS_GRASSLAND'; INSERT INTO Requirements ...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 28-Fev-2019 às 13:43 -- Versão do servidor: 10.1.37-MariaDB -- versão do PHP: 7.2.14 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @...
<filename>config/db.sql SET LOCAL client_min_messages = warning; CREATE UNIQUE INDEX IF NOT EXISTS unique_name_lower ON "user" (LOWER(name));
--Test greatest() function with collections create class t1 (a int, b timestamp); select greatest({1000,99,88},{1000,98,99}) from db_root; select greatest({1000,99,88},{1000,100,99}) from db_root; select greatest({1001,99,88},{1000,100,99}) from db_root; drop class t1;
-- @testpoint:opengauss关键字nullable(非保留),作为数据库名 --关键字不带引号-成功 drop database if exists nullable; create database nullable; drop database nullable; --关键字带双引号-成功 drop database if exists "nullable"; create database "nullable"; drop database "nullable"; --关键字带单引号-合理报错 drop database if exists 'nullable'; create database 'n...
<gh_stars>0 CREATE DATABASE IF NOT EXISTS ormPHP COLLATE 'utf8_general_ci'; use ormPHP; CREATE TABLE users( id INT(11) NOT NULL AUTO_INCREMENT PRIMARY KEY, username VARCHAR(50) NOT NULL UNIQUE KEY, password VARCHAR(255) NOT NULL, first_name VARCHAR(50) NOT NULL, last_name VARCHAR(50) NULL, born_on DATETIME ...
-- 클러스터 생성 create cluster shipment_clu (shipment_id number(9)) size 1k tablespace users; -- 클러스터용 인덱스 생성 create index shipment_index on cluster shipment_clu; -- 테이블을 클러스터 안에 생성 create table c_shipment cluster shipment_clu(id) as select * from shipment; -- 이름 바꾸기 rename shipment to old_shipment; rename c_shipment t...
<reponame>Suiname/sinatra_songs CREATE DATABASE sinatra_songs; \c sinatra_songs CREATE TABLE songs (id SERIAL PRIMARY KEY, artist varchar(255), title varchar(255), release_year Interval year);
CREATE TABLE user ( id integer primary key, name text ); CREATE TABLE user_private ( id integer primary key, user_id integer, password_hash text );
<filename>trainit_cici (1).sql -- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 12 Feb 2020 pada 07.19 -- Versi Server: 10.1.25-MariaDB -- PHP Version: 7.1.7 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+...
<filename>schema.sql DROP DATABASE IF EXISTS bamazonDB; CREATE database bamazonDB; USE bamazonDB; CREATE TABLE products ( position INT NOT NULL AUTO_INCREMENT, product_name VARCHAR(100) NOT NULL, department_name VARCHAR(50) NOT NULL, department_ID INT NOT NULL, price DECIMAL(6,2) NOT NULL, stock_quantity ...
create table point( landcode varchara(10) primary key, lat double(8,6) DEFAULT NULL, lng double(9,6) DEFAULT NULL );
<filename>db/sql/init-check.sql SELECT TRUE FROM information_schema.tables WHERE table_schema='public' AND table_name='links';
-- sequence for import model DROP SEQUENCE IF EXISTS galette_import_model_id_seq; CREATE SEQUENCE galette_import_model_id_seq START 1 INCREMENT 1 MAXVALUE 2147483647 MINVALUE 1 CACHE 1; -- Table for import models DROP TABLE IF EXISTS galette_import_model; CREATE TABLE galette_import_model ( model...
<reponame>x87-va/sputnik TRUNCATE TABLE starwars.characters;
-- Connect to the 'Orders' database to run this snippet USE [Orders] GO -- Select the product names and the order dates from the 'Orders' table -- Create a column 'Pay Due' that adds 3 days to the order date -- Create a column 'Deliver Due' that adds 1 month to the order date SELECT [ProductName] , [OrderDate] ...
<filename>SQL/1159. Market Analysis II.sql /* 1159. Market Analysis II Table: Users +----------------+---------+ | Column Name | Type | +----------------+---------+ | user_id | int | | join_date | date | | favorite_brand | varchar | +----------------+---------+ user_id is the primary key of th...
--DROP TABLE IF EXISTS public.event_journal; CREATE TABLE IF NOT EXISTS public.event_journal( ordering BIGSERIAL, persistence_id VARCHAR(255) NOT NULL, sequence_number BIGINT NOT NULL, deleted BOOLEAN DEFAULT FALSE NOT NULL, writer VARCHAR(255) NOT NULL, write_timestamp BIGINT, adapter_manifest VARCHAR(...
<filename>coeus-db/coeus-db-sql/src/main/resources/org/kuali/coeus/coeus-sql/current/5.2.1/sequences/KC_SEQ_SUBAWARD_ATTACHMENT_ID.sql CREATE SEQUENCE SEQ_SUBAWARD_ATTACHMENT_ID INCREMENT BY 1 START WITH 1 NOCACHE /
<gh_stars>1-10 CREATE FUNCTION statsd.add_timing(text, int4, text, int4) returns void as 'statsd', 'statsd_add_timing' language C immutable; COMMENT ON FUNCTION statsd.add_timing(text, int4, text, int4) IS 'Add a timing value in milliseconds to statsd for the given metric name (host, port, metric_name, value)'; CREAT...