sql
stringlengths
6
1.05M
<filename>db/init/00-database.sql /*Connecting to the database automatically creates it*/ \connect forum_example; /*Create user table in public schema*/ CREATE TABLE public.user ( id SERIAL PRIMARY KEY, username TEXT, created_date TIMESTAMP DEFAULT CURRENT_TIMESTAMP ); COMMENT ON TABLE public.us...
SELECT slice.name AS currentSliceName, descendant.name AS descendantSliceName FROM slice LEFT JOIN descendant_slice(slice.id) AS descendant ORDER BY slice.ts ASC, descendant.ts ASC, slice.name ASC, descendant.name ASC;
<reponame>ahmedrad/dbt-expectations<gh_stars>100-1000 {% macro median(field) %} {{ dbt_expectations.percentile_cont(field, 0.5) }} {% endmacro %}
-- phpMyAdmin SQL Dump -- version 4.5.4.1deb2ubuntu2 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: May 11, 2017 at 07:57 PM -- Server version: 5.7.17-0ubuntu0.16.04.1 -- PHP Version: 5.6.30-10+deb.sury.org~xenial+2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SE...
CREATE TABLE user_signup_email_verification ( request_key VARCHAR(32) NOT NULL, email_address VARCHAR(255) NOT NULL, request_time DATETIME NOT NULL, PRIMARY KEY(request_key), UNIQUE(email_address) ) ENGINE=InnoDB;
alter table users modify qq_openid varchar(255) unique; alter table users add phone varchar(255) unique;
<reponame>opengauss-mirror/Yat<filename>openGaussBase/testcase/SQL/INNERFUNC/type-trans/Opengauss_Function_Innerfunc_Type_Trans_Clob_Case0001.sql -- @testpoint: 类型转换函数to_clob(char/nchar/varchar/varchar2/nvarchar2/text/raw),入参为有效值 select to_char('01110'); -- char转换为to_clob select to_clob('hello111'::char(15)); select t...
-- phpMyAdmin SQL Dump -- version 4.2.11 -- http://www.phpmyadmin.net -- -- Host: 127.0.0.1 -- Generation Time: May 29, 2015 at 05:19 PM -- Server version: 5.6.21 -- PHP Version: 5.6.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; ...
-- -- This SQL script is to migrate the pre-Singapore Oracle version of the -- BioSQL schema to the so-called Singapore version (even though it is -- being finalized a while after the 2003 Hackathon ended). -- -- Disclaimer: This script and scripts it launches will modify the schema. It -- will modify and drop tables, ...
--DROP TABLE quiz_topics_auth; CREATE TABLE quiz_topics_auth ( topic_id VARCHAR2(30) NOT NULL, user_id VARCHAR2(240) NOT NULL, is_available CHAR, -- just to use view trigger -- created_by VARCHAR2(240), created_at DATE, -- CONSTRAINT...
<filename>sql/Ambalaza/nena/Poredi PS_AMB.sql Select d.godina, d.vrsta_dok, d.broj_dok, d.tip_dok, d.datum_Dok , d.org_deo, PPartner PRT, sd.Proizvod PRO , Kolicina * Faktor * Decode( K_Robe, 1, 1, 0 ) Ulaz , Kolicina * Faktor * Decode( K_Robe, -1, 1, 0 ) Izlaz -- ...
-- Create affiliates hits table. CREATE TABLE IF NOT EXISTS `tblaffiliates_hits` ( `id` int(10) unsigned NOT NULL AUTO_INCREMENT, `affiliate_id` int(10) unsigned NOT NULL DEFAULT 0, `referrer_id` int(10) unsigned NOT NULL DEFAULT 0, `created_at` datetime NOT NULL DEFAULT '0000-00-00 00:00:00', PRIMARY KEY (`i...
\pset footer off SET client_min_messages TO WARNING; \set ON_ERROR_STOP ON INSERT INTO public.categoria_pnn (id_categoria, nom_categoria) VALUES('C1','Distritos Nacionales de Manejo Integrado'); INSERT INTO public.categoria_pnn (id_categoria, nom_categoria) VALUES('C2','Distritos Regionales de Manejo Integrado'); INSER...
IF OBJECT_ID('zdm.RebuildDependencies') IS NOT NULL DROP PROCEDURE zdm.RebuildDependencies GO CREATE PROCEDURE zdm.RebuildDependencies @listAllObjects bit = 0 AS SET NOCOUNT ON SET TRANSACTION ISOLATION LEVEL READ UNCOMMITTED DECLARE @objectName nvarchar(500), @typeName nvarchar(60) DECLARE @cursor CURS...
<gh_stars>1-10 -- phpMyAdmin SQL Dump -- version 4.7.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 03-10-2018 a las 19:37:11 -- Versión del servidor: 10.1.29-MariaDB -- Versión de PHP: 7.2.0 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zo...
<reponame>maiha/facebook.cr<gh_stars>1-10 CREATE TABLE reach_frequency_estimates_curve ( budget Array(Int64), conversion Array(Int64), impression Array(Int64), interpolated_reach Nullable(Float64), num_points Nullable(Int64), raw_impression Array(Int64), raw_reach Array(Int64), reach Array(Int64) ) ENGI...
<filename>samples/Shriek.Samples.Dapper/eventstore.sql /* Navicat PGSQL Data Transfer Source Server : postgres Source Server Version : 100000 Source Host : localhost:5432 Source Database : shriek_eventstore Source Schema : public Target Server Type : PGSQL Target Server Version : 70...
<filename>src/DataShip/db_management/scripts/populate_dataship_db.sql -- populate dataship database -- populate users table INSERT INTO users (name, username, email, password, created_at) VALUES ('Admin', 'admin',NULL, '8c6976e5b5410415bde908bd4dee15dfb167a9c873fc4bb8a81f6f2ab448a918', DATE('now')), ...
<filename>src/test/resources/sql/create_index/3cf520a3.sql<gh_stars>10-100 -- file:box.sql ln:206 expect:true CREATE INDEX quad_box_tbl_idx ON quad_box_tbl USING spgist(b)
-- Fix spell on Gale of Shadows -- By mikadmin for arkania UPDATE `item_template` SET `spellid_1` = 90943 WHERE `entry` = 56462;
/*************************************************************************/ -- Assigment: Conformance- value -- Description: this medical dept could not prescribe the procedure -- Author: <NAME> -- Date: 11.Jan, 2020 -- Job name: this medical dept could not prescribe the drug -- Language: MSSQL -- Target data: ...
CREATE TABLE test_table ( EventDate DateTime, CounterID UInt32, UserID UInt32 ) ENGINE = ReplicatedMergeTree('/clickhouse/tables/{shard}/test_table', '{replica}') PARTITION BY toYYYYMM(EventDate) ORDER BY (CounterID, EventDate, intHash32(UserID)) SAMPLE BY intHash32(UserID)
-- DropIndex DROP INDEX `Domains_name_key` ON `Domains`; -- DropIndex DROP INDEX `Domains_punycode_key` ON `Domains`; -- DropIndex DROP INDEX `Emails_name_key` ON `Emails`; -- DropIndex DROP INDEX `Emails_punycode_key` ON `Emails`; -- CreateIndex CREATE INDEX `Domains_name_punycode_idx` ON `Domains`(`name`, `punyco...
CREATE MEMORY TABLE PUBLIC."SUPPLIERS"("SUP_ID" INTEGER NOT NULL PRIMARY KEY,"SUP_NAME" VARCHAR(254) NOT NULL,"STREET" VARCHAR(254) NOT NULL,"CITY" VARCHAR(254) NOT NULL,"STATE" VARCHAR(254) NOT NULL,"ZIP" VARCHAR(254) NOT NULL); CREATE MEMORY TABLE PUBLIC."COFFEES"("COF_NAME" VARCHAR(254) NOT NULL PRIMARY KEY,"SUP_ID"...
use olas; alter table seat_program_studycenter change spsc_ext1 spsc_acadyear varchar(255) ; alter table seat_program_studycenter change spsc_ext2 spsc_sem varchar(255) ; alter table seat_program_studycenter add spsc_creatorid varchar(255) after spsc_sem; alter table seat_program_studycenter add spsc_createdate varc...
autocommit off; alter vclass inventory_v modify attribute new_attr string default '10'; rollback work; rollback;
<gh_stars>0  update AulaCSharp set Aluno = 'Robson', Idade = 31 WHERE Id = 2; GO SELECT * FROM AulaCSharp;
<filename>dbku.sql<gh_stars>0 /* SQLyog Enterprise v12.5.1 (64 bit) MySQL - 10.1.30-MariaDB : Database - dbpelatihanweb ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0 */;...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 1172.16.17.32 -- Generation Time: May 20, 2019 at 03:36 AM -- Server version: 10.1.39-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 ...
-- phpMyAdmin SQL Dump -- version 5.0.4 -- https://www.phpmyadmin.net/ -- -- Servidor: 127.0.0.1 -- Tiempo de generación: 15-04-2021 a las 01:06:22 -- Versión del servidor: 10.4.17-MariaDB -- Versión de PHP: 8.0.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_...
-- phpMyAdmin SQL Dump -- version 4.8.4 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Waktu pembuatan: 22 Jul 2019 pada 04.38 -- 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...
<filename>awe.sql<gh_stars>0 -- -- PostgreSQL database dump -- -- Dumped from database version 13.0 -- Dumped by pg_dump version 13.0 -- Started on 2021-06-17 21:03:17 SET statement_timeout = 0; SET lock_timeout = 0; SET idle_in_transaction_session_timeout = 0; SET client_encoding = 'UTF8'; SET standard_conforming_s...
CREATE VIEW [dbo].[GrantsPerProfile] AS SELECT GrantID, ProfileID, GroupID FROM dbo.[Grant] union select -1,1,1 CREATE VIEW [dbo].[GrantedGroupsPerProfile] AS WITH RecursiveGroup AS (SELECT dbo.[Grant].ProfileID, dbo.[Group].GroupID FROM dbo.[Grant] INNER JOIN dbo.[Group] ON dbo.[Grant].GroupID = d...
CREATE PROCEDURE [dbo].[spAdauga_Medic] @Nume nvarchar(50), @Prenume nvarchar(50), @CNP nvarchar(50), @SerieCI nvarchar(50), @NumarCI int, @SerieContract nvarchar(50), @NumarContract int, @SerieCertificatCM nvarchar(50), @NumarCertificatCM int, @Utilizator nvarchar(50), @Parola nvarchar(50), @Telefon nvarc...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 12, 2019 at 08:26 AM -- Server version: 10.1.39-MariaDB -- PHP Version: 7.3.5 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40...
<filename>sql/insertCarePlans.sql INSERT INTO `healthcareplans` (`planName`, `checkups`, `hygieneVisits`, `repairs`, `monthlyCost`) VALUES ('NHS-Free', 2, 2, 6, 0.0); INSERT INTO `healthcareplans` (`planName`, `checkups`, `hygieneVisits`, `repairs`, `monthlyCost`) VALUES ('Maintenance', 2, 2, 0, 15.0); INSERT INTO `h...
<reponame>famivac/famivac-gestionnaire CREATE INDEX idx_membrefamille_nom ON membrefamille (nom); CREATE INDEX idx_membrefamille_prenom ON membrefamille (prenom); CREATE INDEX idx_membrefamille_referent ON membrefamille (referent);
<gh_stars>0 -- aas-std.sql -- gather AAS metrics from AWR @clear_for_spool set term off spool aas-std-lks.csv prompt begin_time,end_time,instance_number,elapsed_seconds,AAS with data as ( select to_char(h.begin_time,'yyyy-mm-dd hh24:mi:ss') begin_time , to_char(h.end_time,'yyyy-mm-dd hh24:mi:ss') end_time ...
CREATE PROCEDURE [dbo].[WebGroup_Get] ( @Id int = -1, @Name nvarchar(250) = NULL, @ParentId int = -2 ) AS SET NOCOUNT ON SELECT Id, Name, IsSystem, DateModified, OwnerId, ParentId, JoinApproval, JoinAlert, PageUrl, PageId, Description, Managers FROM WebGroup WHERE (@Id = -1 OR Id = @Id)...
--[4] 빌트인(BuiltIn) 관리용 사용자에 대한 권한(역할:Role) 부여 --Insert Membership (UserUID, GroupUID) --Values(5, 1) -- Administrator -> Administrators(1) --Go --Insert Membership (UserUID, GroupUID) --Values(5, 3) -- Administrator -> Users(3) --Go --Insert Membership (UserUID, GroupUID) --Values(6, 4) -- Guest -> Guests(4) --Go ...
create table tuscany.german_august as ( select arrs.customer_id, arrs.location_id, arrs.time_stamp from tpt.tuscany.vodafone as arrs inner join (select customer_id , mon_arvl_tusc, mcc from tpt.tuscany.customer_feature fe where fe.mon_arvl_tusc = 8 and mcc = 262 and fe.customer_id not in (select customer_id from tusc...
alter table "public"."games" add constraint "games_host_id_fkey" foreign key ("host_id") references "public"."players" ("id") on update restrict on delete restrict;
-- trans.test -- -- execsql { -- PRAGMA default_cache_size=10; -- } PRAGMA default_cache_size=10;
-- zeroblob.test -- -- db eval {PRAGMA cache_size=10} PRAGMA cache_size=10
<filename>src/test/resources/sql/drop_table/7ddd7a07.sql -- file:alter_table.sql ln:1423 expect:true drop table at_base_table
CREATE TABLE "public"."users" ( "name" varchar(250) NOT NULL DEFAULT ''::character varying, "role" varchar(250) NOT NULL DEFAULT ''::character varying, "accessLevel" int4 NOT NULL DEFAULT 0, PRIMARY KEY ("name") ); CREATE TABLE "public"."documents" ( "name" varchar(250) NOT NULL DEFAULT ''::chara...
<reponame>MeerBiene/commune -- +goose Up -- +goose StatementBegin CREATE TABLE IF NOT EXISTS oauth2_login( id BIGSERIAL PRIMARY KEY, service text NOT NULL, email text NOT NULL UNIQUE, access_token text NOT NULL UNIQUE, refresh_token text NOT NULL UNIQUE, created_at timestamp WITH time zone DEFAU...
CREATE OR REPLACE FUNCTION apigrabber.getrxnormbystatus ( rxstatus varchar ) RETURNS TABLE ( rxcode text ) AS $body$ BEGIN return query select minConcept->>'rxcui' from (select http_content::json#>'{minConceptGroup}' minConceptGroup from vocabulary_download.py_http_get(url=>'https://rxnav.nlm.nih.gov/REST/al...
<filename>EdFi.Ods.Utilities.Migration/Scripts/MsSql/02Upgrade/v25_to_v31/11 Create Constraints/41120 InterventionStudyInterventionEffectiveness [PK, IX, D].sql<gh_stars>0 -- SPDX-License-Identifier: Apache-2.0 -- Licensed to the Ed-Fi Alliance under one or more agreements. -- The Ed-Fi Alliance licenses this file to y...
DECLARE @tablename SYSNAME DECLARE @tables_cursor CURSOR SET @tables_cursor = CURSOR FOR SELECT table_name FROM INFORMATION_SCHEMA.TABLES WHERE table_name IN ('Relation','Policy','CoverType','Premium') OPEN @tables_cursor FETCH NEXT FROM @tables_cursor INTO @tablename WHILE @@FETCH_STATUS = 0 BEGIN ...
--[GLOBAL: SIF PACKAGE SR_PROCESS] --[VERIFY: OWNER: SR TYPE: PACKAGE OBJECT: SR_PROCESS] CREATE OR REPLACE PACKAGE CTUSR.SR_PROCESS authid current_user AS --***************************************************************************** --Module : Generic --Type : PL/SQL - Package --Filename : ...
<gh_stars>100-1000 CREATE EXTENSION IF NOT EXISTS "babelfishpg_tsql" CASCADE; -- The default scale is 2 in PG. select CAST('$100,123.4567' AS money); -- Currency symbol followed by number without being quoted is not recognized -- as Money in postgres dialect. select CAST($100123.4567 AS money); -- Scale changes to th...
--test with prepared statements create table trunc_ps( id int primary key auto_increment, str varchar not null, dt date, ts timestamp default current_timestamp, dtime datetime default sysdatetime ); insert into trunc_ps(str, dt, ts, dtime) values('aaa', '1990-12-1', '2000-09-01 12:12:12', '2010-07-01 12:12:12.1...
CREATE SCHEMA IF NOT EXISTS `lmjfdb` DEFAULT CHARACTER SET utf8 ; CREATE TABLE IF NOT EXISTS `lmjfdb`.`anneeScolaire` ( `academicYear` VARCHAR(45) NOT NULL, `created_at` TIMESTAMP NOT NULL, `updated_at` TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, PRIMARY KEY (`AcademicYear...
<filename>server/migrations/000006_init_genere_movie.up.sql INSERT INTO movie_generes (genere_genere_id, movie_movie_id) VALUES ( '0005b3cb-9411-4b61-bd56-5b9622f8e4bb', '472d4e70-dcd6-4bdf-a95c-e2d8c9f06b7f' ), ( '000def53-9f59-49cc-a3fa-9bfe4473a795', '0101c8c1-5734-4da6-b03e-e4cf5a731a52' ), ( '0044c85a-6298-4dc2-9c...
<gh_stars>0 SELECT SYSO.name AS TableName , SYSO.type AS TableType , SYSO.type_desc AS TableDesc , SYSP.index_id AS TableIndexID , COALESCE(SYSI.name, '...
CREATE TABLE `users`.`users` ( `id` INT NOT NULL AUTO_INCREMENT, `name` VARCHAR(200) CHARACTER SET 'utf8' NOT NULL, PRIMARY KEY (`id`), UNIQUE INDEX `id_UNIQUE` (`id` ASC));
SELECT a_int FROM types_i WHERE a_year = ?
-- v 0.4.1 ALTER TABLE trivial_configs ADD COLUMN Name varchar; UPDATE trivial_configs SET Name = 'Trivial ' || (id::text); ALTER TABLE trivial_configs ALTER COLUMN Name SET NOT NULL;
<reponame>Archie-Sharma/hermes<filename>src/lib/sql/template_select_all.sql SELECT id, cookie_name, path, max_age, http_only, secure, domain, same_site, rolling, template_name FROM auth.session_cookies_template;
<filename>migrations/sql/V2018.04.13.1100__AlterBurdenOutcomeIndex.sql -- this took 16 minutes on UAT -- disable triggers ALTER TABLE impact_estimate_ingredient DISABLE TRIGGER ALL; ALTER TABLE burden_outcome DISABLE TRIGGER ALL; -- alter type of burden_outcome.id ALTER TABLE burden_outcome ALTER COLUMN id TYPE SMAL...
<filename>src/sql/user_register.sql INSERT INTO user (student_id, pw, major_code, name) VALUES (%s, %s, (SELECT major_code FROM major where name = %s LIMIT 1), %s)
CREATE OR REPLACE FUNCTION audit_column_to_query( column_name information_schema.columns.column_name%TYPE, data_type information_schema.columns.data_type%TYPE, character_maximum_length information_schema.columns.character_maximum_length%TYPE, udt_name information_schema.columns.udt_name%TYPE, _alter VARCHAR DEFAUL...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Nov 20, 2018 at 06:25 PM -- Server version: 10.1.31-MariaDB -- PHP Version: 7.2.3 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD...
DROP TABLE IF EXISTS `genes`; CREATE TABLE `genes` ( `gene` varchar(30) DEFAULT NULL, `ensembl_id` varchar(20) DEFAULT NULL, `chr` varchar(2) DEFAULT NULL, `start` int(20) DEFAULT NULL, `end` int(20) DEFAULT NULL, `id` int(11) NOT NULL AUTO_INCREMENT, PRIMARY KEY (`id`), KEY `gene` (`gene`), KEY `ens...
-- -- CzechIdM 9 Flyway script -- BCV solutions s.r.o. -- -- Add ID of role-request to the provisioning operation and archive ALTER TABLE sys_provisioning_operation ADD COLUMN role_request_id bytea; CREATE INDEX idx_sys_p_o_role_request_id ON sys_provisioning_operation USING btree (role_request_id); ALTER TABLE sys_...
<gh_stars>1-10 --Liste des 10 appartements les plus chers avec le département --et le nombre de metres carrés SELECT acte.valeur_fonciere_acte AS "prix", joinB.code_departement_parcelle AS departement, joinB.surface_carrez_lot AS "surface (m2)", ROUND(SUM(acte.valeur_fonciere_acte)/SUM(joinB.surface_carrez_lot)) ...
<gh_stars>10-100 -- file:aggregates.sql ln:290 expect:true explain (costs off) select max(unique2) from tenk1 order by 1
drop table if exists testtab;
<filename>DB-init.sql -- phpMyAdmin SQL Dump -- version 3.4.10.1 -- http://www.phpmyadmin.net -- -- Host: localhost -- Generation Time: Aug 06, 2015 at 11:27 PM -- Server version: 5.0.96 -- PHP Version: 5.2.17 SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO"; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CH...
<gh_stars>0 -- settings SET @iMaxOrder = (SELECT `menu_order` + 1 FROM `sys_options_cats` ORDER BY `menu_order` DESC LIMIT 1); INSERT INTO `sys_options_cats` (`name`, `menu_order`) VALUES ('Deano - Cron Monitor', @iMaxOrder); SET @iCategId = (SELECT LAST_INSERT_ID()); INSERT INTO `sys_options` (`Name`, `VALUE`, `kateg...
<reponame>PauloMagri/ControlLicencias /* SQLyog Ultimate v9.63 MySQL - 5.5.5-10.1.40-MariaDB : Database - controllicencias ********************************************************************* */ /*!40101 SET NAMES utf8 */; /*!40101 SET SQL_MODE=''*/; /*!40014 SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQ...
---------------------------------- -- grant for HHS_BIIS_VIEW_ROLE ---------------------------------- GRANT SELECT ON EHRP.PS_DEPT_TBL TO HHS_BIIS_VIEW_ROLE; GRANT SELECT ON EHRP.PS_HE_EWIT_DEPT_1 TO HHS_BIIS_VIEW_ROLE; GRANT SELECT ON EHRP.PS_HE_RECRUIT_EWIT TO HHS_BIIS_VIEW_ROLE; GRAN...
<reponame>irvnet/quote-server # adds dummy data for testing insert into quotes (quote_id, quote_desc, quote_author) values (1, 'dummy quote 01', 'author 01'); insert into quotes (quote_id, quote_desc, quote_author) values (2, 'dummy quote 02', 'author 02'); insert into quotes (quote_id, quot...
<gh_stars>0 /*################ # create trigger to insert updatetrigger for facetcache #################*/ DROP PROCEDURE IF EXISTS `InsertFacetCacheUpdateTriggerTableEntry`;
alter table LogLevel add constraint LogLevel_LogType foreign key(`type`) references LogType(typeID); alter table LogRecord add constraint LogRecord_LogLevel foreign key(`level`) references LogLevel(levelID), add constraint LogRecord_ApplicationVersion foreign key(app, appVersion) references ApplicationVersio...
<gh_stars>0 SELECT SUM(ss.ss_net_paid_inc_tax) OVER (PARTITION BY ss.ss_store_sk) AS TotalSpend FROM store_sales ss ORDER BY 1 LIMIT 20;
set schema 'mergetest'; -- Create and populate tables with auto increment columns create table EMPSEQ ( INCCOL bigint generated by default as identity (maxvalue 209 start with 100) not null, EMPNO integer not null, FNAME varchar(15), LNAME varchar(15), SEX char(1), DEPTNO integer, MANAGER integer, ...
<reponame>ssaarela/javersion ------------------------------------------------ -- For custom repositories, replace DOCUMENT_ -- ------------------------------------------------ create table DOCUMENT_VERSION ( DOC_ID varchar(255) not null, REVISION varchar(32) not null, STATUS numeric(1) not null, TX_ORDINAL big...
DROP DATABASE youMayLike; CREATE DATABASE IF NOT EXISTS youMayLike; USE youMayLike; DROP TABLE IF EXISTS shoes; CREATE TABLE shoes ( id INT NOT NULL AUTO_INCREMENT, name VARCHAR(250), picture TEXT NOT NULL, price INT NOT NULL, type VARCHAR(250), PRIMARY KEY (id) );
HDF5 "trefer_ext2.h5" { GROUP "/" { DATASET "Dataset3" { DATATYPE H5T_REFERENCE { H5T_STD_REF } DATASPACE SIMPLE { ( 4 ) / ( 4 ) } DATA { ATTRIBUTE "trefer_ext1.h5/Group1/Dataset1/Attr1" { DATATYPE H5T_STD_U32LE DATASPACE SIMPLE { ( 4 ) / ( 4 ) } DAT...
delete from dbo.attendee_product declare @idProduct int; -- food select @idProduct = [id] from dbo.product where code = 'pv'; insert into dbo.attendee_product (idAttendee, idProduct) SELECT [id], @idProduct FROM [dbo].[attendee] where piatokVecera = 1; select @idProduct = [id] from dbo.product where code = 'pv2'; i...
<reponame>SoleilDivin/ExamenFinalS3 INSERT INTO public.entree_imprevu (id_in_imprevu, date_in_imprevu, montant_in_imprevu) VALUES ('IMP0001', '2022-01-16', 200000); INSERT INTO public.entree_imprevu (id_in_imprevu, date_in_imprevu, montant_in_imprevu) VALUES ('IMP0002', '2022-02-19', 100000);
-- ash-snapshot-define-begin-end.sql -- <NAME> <EMAIL> -- 2017-05-09 -- A method to define snapshot bracketing by specific time or BEGIN or END of snapshots -- define snap_begin_time='2016-03-16 13:00' define snap_end_time='2016-03-16 14:15' define snap_begin_time='BEGIN' define snap_end_time='END' select max(sa...
<filename>sncs2021_evaluation/secProc.sql DROP PROCEDURE IF EXISTS Query2; /* SELECT COUNT(Student_id) FROM Student WHERE age > 18 */ DELIMITER // CREATE PROCEDURE Query2(in kcaller varchar(250), in krole varchar(250)) BEGIN DECLARE _rollback int DEFAULT 0; DECLARE EXIT HANDLER FOR SQLEXCEPTION BEGIN SET _rollback = ...
<reponame>iproger/OpenCartExtensions<gh_stars>0 -- -- Table structure `singleclick` -- CREATE TABLE IF NOT EXISTS `singleclick` ( `id` int(18) NOT NULL AUTO_INCREMENT, `name` varchar(255) DEFAULT NULL, `phone` varchar(255) DEFAULT NULL, `message` text, `date` varchar(255) DEFAULT NULL, PRIMARY KEY (`id`) )...
<gh_stars>0 -- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jul 26, 2020 at 11:28 AM -- Server version: 10.4.11-MariaDB -- PHP Version: 7.4.4 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACT...
--liquibase formatted sql --changeset patcher-core:Page_12987721 dbms:postgresql runOnChange:true splitStatements:false stripComments:false select pkg_patcher.p_remove_page('12987721'); INSERT INTO s_mt.t_page (ck_id, ck_parent, cr_type, cv_name, cn_order, cl_static, cv_url, ck_icon, ck_view, ck_user, ct_change, cl_me...
<filename>src/database/bd_exported/spo_distritourbanos.sql -- MySQL dump 10.13 Distrib 8.0.22, for Win64 (x86_64) -- -- Host: localhost Database: spo -- ------------------------------------------------------ -- Server version 5.7.31 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OL...
PRAGMA application_id=0x47504b47; PRAGMA user_version=10200; CREATE TABLE gpkg_spatial_ref_sys ( srs_name TEXT NOT NULL, srs_id INTEGER NOT NULL PRIMARY KEY, organization TEXT NOT NULL, organization_coordsys_id INTEGER NOT NULL, definition ...
<reponame>Shuttl-Tech/antlr_psql -- file:float4.sql ln:37 expect:true SELECT 'NaN x'::float4
<filename>src/test/resources/sql/select/677da928.sql -- file:timestamptz.sql ln:446 expect:true SELECT '2014-10-25 21:59:59 UTC'::timestamptz AT TIME ZONE 'MSK'
<filename>src/test/resources/sql/select/65838389.sql -- file:json.sql ln:222 expect:true SELECT json_object_keys(test_json) FROM test_json WHERE json_type = 'scalar'
<filename>sql/kingbase/down_files.sql /*drop table down_files*/ CREATE TABLE down_files ( f_id varchar2(32) NOT NULL ,f_uid INT4 DEFAULT 0 /*用户ID*/ ,f_mac VARCHAR(50) DEFAULT '' /*MAC地址,用来识别不同电脑的下载任务*/ ,f_nameLoc VARCHAR(255) DEFAULT '' ,f_pathLoc VARCHAR(255) DEFAULT '' /*...
-- Licensed to the Apache Software Foundation (ASF) under one or more -- contributor license agreements. The ASF licenses this file to You -- under the Apache License, Version 2.0 (the "License"); you may not -- use this file except in compliance with the License. -- You may obtain a copy of the License at -- -- ...
<filename>2.- Seleccion y manipulacion de datos/2.2 Filtrado de datos/filtrado de datos.sql<gh_stars>0 SELECT id, publish_date, title, content FROM news WHERE id >8 AND id < 14 AND publish_date < '2016-12-31'
create sequence hibernate_sequence start 1 increment 1; create table usr ( id int8 not null, username text not null, password text not null, email text not null, first_name text not null, last_name text not null, created timestamp not null,...
<gh_stars>1-10 CREATE DATABASE IF NOT EXISTS `test` /*!40100 DEFAULT CHARACTER SET utf8 */; USE `test`; -- MySQL dump 10.13 Distrib 5.7.17, for Win64 (x86_64) -- -- Host: 127.0.0.1 Database: test -- ------------------------------------------------------ -- Server version 5.7.20-log /*!40101 SET @OLD_CHARACTER_SET...
<reponame>turbot/steampipe-mod-oci-compliance select -- Required Columns id as resource, 'info' as status, 'Manual verification required.' as reason, -- Additional Dimensions name from oci_identity_tenancy;
{% macro get_optional_fields(enabled, fields, col_prefix, relation, relation_alias) -%} {%- if enabled -%} {%- set combined_fields = snowplow_utils.combine_column_versions( relation=relation, column_prefix=col_prefix, ...