sql
stringlengths
6
1.05M
<gh_stars>0 UPDATE ( ( CARGA LEFT JOIN F1 ON CARGA.RUT = F1.RUT ) LEFT JOIN F2 ON CARGA.RUT = F2.RUT ) LEFT JOIN F3 ON CARGA.RUT = F3.RUT SET CARGA.T1 = F1.TIPO, CARGA.F1 = F1.FONO, CARGA.T2 = F2.TIPO, CARGA.F2 = F2.FONO, CARGA.T3 = F3.TIPO, CARGA.F3 = F3.FONO;
<filename>test/sql/table.sql \set ECHO none \set QUIET 1 BEGIN; \t SET IntervalStyle = 'postgres'; \i sql/explanation.sql -- Need to mock md5() so that it emits known values, so the tests will pass. CREATE SCHEMA mock; CREATE TEMPORARY SEQUENCE md5seq; CREATE TEMPORARY TABLE md5s ( md5 TEXT, id INTEGER DEFAU...
<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 you under the Apache License, Version 2.0. -- See the LICENSE and NOTICES files in the project root for more information. DECLARE @LocalEducationAgency int; SE...
-- phpMyAdmin SQL Dump -- version 4.8.5 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Waktu pembuatan: 23 Des 2020 pada 19.10 -- Versi server: 10.1.38-MariaDB -- Versi PHP: 7.3.2 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARA...
<reponame>guerlab/flowable-engine<filename>distro/sql/upgrade/form/flowable.db2.upgradestep.6120.to.6200.form.sql<gh_stars>0 ALTER TABLE ACT_FO_FORM_INSTANCE ADD SCOPE_ID_ varchar(191); ALTER TABLE ACT_FO_FORM_INSTANCE ADD SCOPE_TYPE_ varchar(191); ALTER TABLE ACT_FO_FORM_INSTANCE ADD SCOPE_DEFINITION_ID_ varch...
use agw; INSERT INTO agw_sys(id, created_time, modified_time, version, name, `desc`) VALUES (1, now(), now(), 1, 'tradecenter', '交易中心'); INSERT INTO agw_api(id, created_time, modified_time, version, code, name, method, alias, sys_id, timeout) VALUES (1, now(), now(), 1, '1TRW556GGH#TEST', 'me.cxis.agw.sample.tracecente...
<reponame>maallen/mojito ALTER TABLE QRTZ_BLOB_TRIGGERS MODIFY BLOB_DATA longblob; ALTER TABLE QRTZ_TRIGGERS MODIFY JOB_DATA longblob; ALTER TABLE QRTZ_JOB_DETAILS MODIFY JOB_DATA longblob; ALTER TABLE QRTZ_CALENDARS MODIFY CALENDAR longblob;
CREATE TABLE barcode_scans ( id SERIAL PRIMARY KEY, time TIMESTAMPTZ NOT NULL, name VARCHAR NOT NULL, size VARCHAR NOT NULL DEFAULT 'N/A', item VARCHAR NOT NULL, barcode VARCHAR NOT NULL, link_to_item TEXT [] NOT NULL, airtable_record_id VARCHAR NOT NULL DEFAULT '' )
REM REM Standard disclaimer - anything in here can be used at your own risk. REM REM It is very likely you'll need to edit the script for correct usernames/passwords etc. REM REM No warranty or liability etc etc etc. See the license file in the git repo root REM REM *** USE AT YOUR OWN RISK *** REM clear screen @cle...
-- -- Test SP-GiST indexes. -- -- There are other tests to test different SP-GiST opclasses. This is for -- testing SP-GiST code itself. CREATE TABLE spgist_point_tbl ( id int4, p point ); CREATE INDEX spgist_point_idx ON spgist_point_tbl USING spgist (p) WITH (fillfactor = 75); -- Test vacuum-root operation...
DROP KEYSPACE IF EXISTS testks ; create KEYSPACE testks WITH replication = {'class' : 'NetworkTopologyStrategy', 'DC1':1, 'DC2':1}; CREATE TABLE testks.ACCOUNTS ( id BIGINT, value BIGINT, PRIMARY KEY (id) );
<gh_stars>0 -------------------------------------------------------- -- DDL for Materialized View GSWIND -------------------------------------------------------- CREATE MATERIALIZED VIEW "GROUNDFISH"."GSWIND" ("WIND", "WINDDESC") ORGANIZATION HEAP PCTFREE 5 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING ...
<filename>backend/app/db/sql/master.sql SET foreign_key_checks=0; DROP TABLE IF EXISTS `users`; CREATE TABLE `users` ( `id` BIGINT NOT NULL AUTO_INCREMENT, `user_name` VARCHAR(255) NOT NULL, `auth_id` VARCHAR(191) NOT NULL, `email` VARCHAR(255) NOT NULL, `created_at` DATETIME NOT NULL DEFAULT CURR...
-- phpMyAdmin SQL Dump -- version 4.7.9 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: May 22, 2020 at 01:32 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 DATABASE IF EXISTS mymart; CREATE DATABASE mymart; USE mymart;
<reponame>PandhuWibowo/GMapsLocation -- phpMyAdmin SQL Dump -- version 4.7.7 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Aug 16, 2018 at 09:59 AM -- Server version: 10.1.30-MariaDB -- PHP Version: 7.2.1 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; SET AUTOCOMMIT = 0; START TRANSACTION; SET time...
CREATE PROCEDURE [dbo].[usp_sqlwatch_local_meta_add] as begin declare @cid uniqueidentifier; exec [dbo].[usp_sqlwatch_internal_broker_dialog_new] @cid = @cid output; exec [dbo].[usp_sqlwatch_local_logger_enqueue_metadata_snapshot] @metadata = 'meta_server', @cid = @cid; exec [dbo].[usp_sqlwa...
<filename>.config/migrations/20210212235855_member_contract_items.down.sql DROP TABLE `member_contract_items`;
/* Navicat MySQL Data Transfer Source Server : Localhost PHP 7 Source Server Version : 100137 Source Host : localhost:3307 Source Database : alus2.0 Target Server Type : MYSQL Target Server Version : 100137 File Encoding : 65001 Date: 2020-01-24 10:09:45 */ SET FOREIGN_KEY_CHECKS=...
-- -- PostgreSQL database dump -- -- Dumped from database version 10.5 -- Dumped by pg_dump version 10.5 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...
<filename>studentsdemo.sql SET client_encoding = 'UTF8'; SET client_min_messages = warning; DROP DATABASE IF EXISTS "studentsdemo"; CREATE DATABASE "studentsdemo" WITH ENCODING = 'UTF8'; \c "studentsdemo" SET client_encoding = 'UTF8'; SET client_min_messages = warning; -- -- examinations -- CREATE TABLE examinati...
-- MySQL Script generated by MySQL Workbench -- Παρ 12 Ιαν 2018 08:31:26 μμ EET -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, SQL_M...
-- Remove SP IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id (N'[dbo].[mc_OutgoingEmailServiceConfigInsert]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE [dbo].[mc_OutgoingEmailServiceConfigInsert] GO IF EXISTS (SELECT * FROM dbo.sysobjects WHERE id = object_id (N'[dbo].[mc_OutgoingEmailSer...
 CREATE PROCEDURE [Queue_Schema_Name].[DeleteSubscription] @subscriptionID int WITH NATIVE_COMPILATION, SCHEMABINDING, EXECUTE AS OWNER AS BEGIN ATOMIC WITH (TRANSACTION ISOLATION LEVEL = SNAPSHOT, LANGUAGE = N'us_english') delete from [Queue_Schema_Name].[Subscription] where ID = @subscriptionID END
-- file:rules.sql ln:651 expect:true CREATE TABLE shoelace_ok ( ok_name char(10), ok_quant integer )
<reponame>svetasmirnova/mysqlcookbook # marathon.sql # marathon table: each record indicates distance and time-to-run for # each stage of marathon for a hypothetical runner DROP TABLE IF EXISTS marathon; #@ _CREATE_TABLE_ CREATE TABLE marathon ( stage INT UNSIGNED NOT NULL AUTO_INCREMENT, km INT UNSIGNED NOT N...
-- -- The DO statement is used to allow this script to be run multiple -- times without raising exceptions -- DO $$ DECLARE v_found boolean; BEGIN -- -- Was the column already renamed? -- SELECT exists( SELECT column_name FROM information_schema.columns WHERE table_name = 'party_approved_member_map'...
<reponame>hungtin3/SQL4OracleEBS<filename>CancelLamTronCostManager.sql --@E:\GoogleDrive\runall\CancelLamTronCostManager.sql UPDATE Applsys.fnd_concurrent_requests SET status_code = 'X', phase_code = 'C' WHERE request_id in (SELECT t.Request_Id FROM Fnd_Concurrent_Requests t, ...
DROP DATABASE IF EXISTS `mcpp`; CREATE DATABASE `mcpp` CHARACTER SET 'utf8mb4' COLLATE 'utf8mb4_unicode_ci'; USE `mcpp`; CREATE TABLE `settings` ( `setting` varchar(191) PRIMARY KEY, `value` text ); CREATE TABLE `log` ( `when` DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, `type` varchar(255) NOT NULL, `text` te...
<reponame>sr-2020/sr-2020-db -- karma-bonuses drop table if exists karma_bonus; create table if not exists karma_bonus ( id serial not null constraint karma_bonus_pk primary key, amount integer not null, kind varchar(255) not null, details varchar(1024),...
-- MySQL dump 10.13 Distrib 5.7.19, for Linux (x86_64) -- -- Host: localhost Database: weilai -- ------------------------------------------------------ -- Server version 5.7.19-0ubuntu0.16.04.1 /*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; /*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET...
<gh_stars>0 -- Table: job_control DROP TABLE job_control; CREATE TABLE job_control ( job_seq_id VARCHAR2(10) NOT NULL, job_app_cd VARCHAR2(10), job_arg_nm1 VARCHAR2(100), job_arg_nm2 VARCHAR2(100), job_arg_nm3 VARCHAR2(100), job_arg_nm4 VARCHAR2(100), job_arg_nm5 VARCHAR2(100), job_arg_nm...
<reponame>manojs63/oltpbench-voltdb drop table region if exists; create table region ( r_regionkey int not null, r_name varchar(55) not null, r_comment varchar(152) not null, PRIMARY KEY ( r_regionkey ) ); drop table nation if exists; create table nation ( n_nationkey int not null, n_name varchar(25...
<filename>_src/Chapter 7/0254OS_07_Code/mymodcarrier/install/uninstall.sql<gh_stars>0 DROP TABLE `PREFIX_mymod_carrier_cart`
<gh_stars>1-10 INSERT INTO dashboard VALUES(8,1,'container-stats','Container Stats','{"annotations":{"list":[{"builtIn":1,"datasource":"-- Grafana --","enable":true,"hide":true,"iconColor":"rgba(0, 211, 255, 1)","name":"Annotations \u0026 Alerts","type":"dashboard"}]},"editable":true,"gnetId":null,"graphTooltip":0,"hid...
<gh_stars>10-100 CREATE TABLE "public"."auth_tokens" ( "user_id" varchar(32) COLLATE "default" NOT NULL, "token" varchar(32) COLLATE "default" NOT NULL, "created_at" timestamp(6) NOT NULL, "attempts" int4 DEFAULT 0 NOT NULL, CONSTRAINT "auth_tokens_pkey" PRIMARY KEY ("user_id") ) WITH (OIDS=FALSE);
-- 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. use generate declare @studentDateQuery as rds.St...
<gh_stars>1-10 -- @skip #140439825 --start_ignore SET client_min_messages='log'; INSERT INTO dml_trigger_table_1 VALUES('TEST',10); SET client_min_messages='notice'; --end_ignore SELECT * FROM dml_trigger_table_1 order by 2; \!sed -n '/Planner/p' %MYD%/output/insert_fallback_orca.out
<filename>demo/CaretClassifier_svmPoly/iris_str_tgt/oracle/demo3_caret_CaretClassifier_svmPoly_oracle.sql -- This SQL code was generated by sklearn2sql (development version). -- Copyright 2018 -- Model : CaretClassifier_svmPoly -- Dataset : iris_str_tgt -- Database : oracle -- This SQL code can contain one or more s...
CREATE TABLE oauth_clients ( client_id VARCHAR(80) NOT NULL, client_secret VARCHAR(80) NOT NULL, redirect_uri VARCHAR(2000) NOT NULL, grant_types VARCHAR(80), scope VARCHAR(2000), user_id VARCHAR(255), CONSTRAINT clients_client_id_pk PRIMARY KEY (client_id) ); CREATE TABLE oauth_access_token...
<reponame>yulin-dong/ortelius drop index cvm_transactions_transaction_id ON cvm_transactions; alter table `cvm_transactions` drop column `transaction_id`;
<gh_stars>1-10 --TEST: test with bit strings and blob/clob data types and normal syntax create table min_bbc( col1 bit(20), col2 bit varying, col3 blob, col4 clob, col5 double ); insert into min_bbc values(B'1011', X'abc', X'0', '123', 123.5678); insert into min_bbc values(B'1011', x'bcd', X'1', '11111', 123....
EXEC [EST].[Proc_yjbb_Ins] @Code = N'600179',@CutoffDate = N'2017-09-30',@EPS = N'0.34',@EPSDeduct = N'0',@Revenue = N'44.73亿',@RevenueYoy = N'70.60',@RevenueQoq = N'35.69',@Profit = N'3.66亿',@ProfitYoy = N'41.41',@ProfiltQoq = N'27.77',@NAVPerUnit = N'2.6476',@ROE = N'14.53',@CashPerUnit = N'0.4835',@GrossProfitRate =...
<reponame>cscl-git/digit-bpa --SITE PLAN INSERT INTO eg_appconfig_values ( ID, KEY_ID, EFFECTIVE_FROM, VALUE, VERSION ) VALUES (nextval('SEQ_EG_APPCONFIG_VALUES'), ( SELECT id FROM EG_APPCONFIG WHERE KEY_NAME='EDCR_DXF_PDF' and module= (select id from eg_module where name='Digit DCR')), current_date, 'SITE_PLAN',...
drop table abac_object cascade;
<reponame>CGA1123/bissy-api ALTER TABLE querycache_queries RENAME COLUMN datasource_id TO adapter_id;
-- phpMyAdmin SQL Dump -- version 5.0.2 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Tempo de geração: 17-Mar-2021 às 21:10 -- Versão do servidor: 10.4.14-MariaDB -- versão do PHP: 7.3.21 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 SET @OLD_CHARACTER_SET_C...
<gh_stars>0 -- MySQL Script generated by MySQL Workbench -- Thu Dec 26 14:25:52 2019 -- Model: New Model Version: 1.0 -- MySQL Workbench Forward Engineering SET @OLD_UNIQUE_CHECKS=@@UNIQUE_CHECKS, UNIQUE_CHECKS=0; SET @OLD_FOREIGN_KEY_CHECKS=@@FOREIGN_KEY_CHECKS, FOREIGN_KEY_CHECKS=0; SET @OLD_SQL_MODE=@@SQL_MODE, ...
/* query_p.sql ** ** Returns a transformed subset of the sys.query columns for currently running statements. ** ** NOTE: ** ** . This procedure needs to be created by a superuser for priveleged users to ** all running queries, not only their own. ** ** (c) 2018 Yellowbrick Data Corporation. ** . This script is prov...
CREATE TABLE IF NOT EXISTS public.person__person ( id UUID PRIMARY KEY ); CREATE TABLE IF NOT EXISTS public.person__person_polity ( id UUID PRIMARY KEY REFERENCES person__person(id) ON DELETE CASCADE, polity_id UUID NOT NULL REFERENCES polity__polity(id) ON DELETE ...
INSERT INTO movies (movie_name) VALUES ("Titanic"), ("Mission Impossible"), ("Parasite"), ("Kumbalangi Nights"), ("Boothakalam"); INSERT INTO reviews (movie_id, review) VALUES (1, "Its an evergreen classic!"), (1, "Romantic movie."), (1, "Could...
CREATE TABLE `standalone_deletion_tasks` ( `id` bigint(20) unsigned NOT NULL, `file` varchar(512) COLLATE latin1_general_cs NOT NULL, `status` enum('new','queued','active','done','failed','cancelled') CHARACTER SET latin1 COLLATE latin1_general_ci NOT NULL DEFAULT 'new', `exitcode` smallint(5) DEFAULT NULL, `...
<gh_stars>1-10 create or replace PACKAGE log_audit.PKG_LOG_I AS procedure P_LOG(P_Mensagem IN VARCHAR2); procedure P_LOG(P_Mensagem IN VARCHAR2, LOG_REFERENCE IN OUT CLOB); procedure P_LOG(P_Mensagem IN VARCHAR2, P_priority IN NUMBER); procedure P_LOG(P_Mensagem IN VARCHAR2, P_priority IN NUMBER, LOG_REFERENC...
INSERT INTO id_generator(idname, tenantid, format, sequencenumber) VALUES ('egf.bill.default.number.format.name', 'default', 'MH-BILL-NUM-[SEQ_EGF_BILL_DFT_NUM]', 1);
<gh_stars>1-10 SET SERVEROUTPUT ON DECLARE message varchar2(20):= 'Hello, World!'; BEGIN dbms_output.put_line(message); END; /
<reponame>somersbmatthews/postgresqlninja SELECT (CAST('{"name": "Bob", "favoriteFoods": ["Banana", "Candy"]}' AS JSONB) -> 'favoriteFoods') ? 'Banana';
-- file:numeric.sql ln:668 expect:true INSERT INTO ceil_floor_round VALUES ('-5.5')
<filename>db/db_tests/DT_dialogue_translations.sql SELECT text_id FROM text WHERE text_id NOT LIKE 'DL_%' AND text_type LIKE 'dl_%';
<reponame>dram/metasfresh alter table M_DiscountSchema drop column IsQuantityBased;
<reponame>forgottenlands/ForgottenCore406<gh_stars>0 DROP TABLE IF EXISTS `fake_items`; CREATE TABLE `fake_items` ( `guid` int(11) NOT NULL, `fakeEntry` int(11) NOT NULL, PRIMARY KEY (`guid`) );
insert into test(name) values ('name1'); insert into test(name) values ('name2'); insert into test(name) values ('name3'); insert into test(name) values ('name4'); insert into test(name) values ('name5');
<reponame>maartenbeeckmans/puppet-mcollective_agent_puppet metadata :name => "puppet_variable", :description => "Validates that a variable name is a valid Puppet name", :author => "R.I.Pienaar <<EMAIL>>", :license => "Apache-2.0", :version => "2.4.0...
<filename>chapter_004/src/main/java/ru/job4j/sql/filters_second/1.sql select * from product inner join type on product.type_id = type.id where type.name = 'СЫР'; -- Использование слова join
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : 本地 Source Server Type : MySQL Source Server Version : 100137 Source Host : localhost:3306 Source Schema : custom Target Server Type : MySQL Target Server Version : 100137 File Encoding : 65001 Date: 09/09/2...
<reponame>Cerebellum-Network/freeport-sc-event-processor<filename>src/main/resources/db/migration/V2022.02.02_00.00__add_index_to_search_by_nft_meta.sql CREATE INDEX full_text_search_idx ON nft_metadata USING gin ( (setweight(to_tsvector('english', name), 'A') || setweight(to_tsvector...
CREATE OR REPLACE TRIGGER TRIGGER_5_TITULARES BEFORE INSERT OR UPDATE ON JUGADOR FOR EACH ROW DECLARE v_num_titulares NUMBER(2); BEGIN SELECT COUNT(*) INTO v_num_titulares FROM JUGADOR WHERE titularidad = 1; IF INSERTING THEN IF(v_num_titulares >= 5 AND :new.titularidad = 1) THEN ...
<gh_stars>100-1000 ALTER TABLE stac_exports ADD COLUMN export_asset_types varchar[] DEFAULT NULL;
<reponame>sunadm/ClickHouse SET allow_experimental_live_view = 1; DROP TABLE IF EXISTS test.lv; DROP TABLE IF EXISTS test.mt; CREATE TABLE test.mt (a Int32) Engine=MergeTree order by tuple(); CREATE LIVE VIEW test.lv AS SELECT sum(a) FROM test.mt; INSERT INTO test.mt VALUES (1),(2),(3); SELECT *,_version FROM test....
<reponame>maketubo/liquibase -- Database: maxdb -- Change Parameter: tableName=person DELETE FROM person;
--test implicit type conversion of blob type create table blob_conversion( col1 datetime, col2 date, col3 time, col4 timestamp, col5 double, col6 float, col7 numeric, col8 bigint, col9 int, col10 short, col11 monetary, col12 bit, col13 bit varying, col14 char(20), col15 varchar(20), col16 nchar(20), ...
-- -- $Id: //Infrastructure/GitHub/Database/asbo/web/sql/idle_sessions.sql#1 $ -- WITH inactive_users AS ( SELECT s.username, s.machine, s.type, COUNT(1) how_many FROM v$process p JOIN v$session s on s.paddr = p.addr WHERE -- -- Days inactive -- fl...
<reponame>deniskozedub/key 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 TABLE IF EXISTS `categories`; CREATE TABLE `categories` ( `id` bigint unsigned NOT NULL AUTO_INCREMENT, ...
-- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost:3306 -- Generation Time: Aug 14, 2020 at 02:55 PM -- Server version: 5.7.30 -- 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 @OLD_C...
<reponame>StarcadeDesigns/SQL-Learning<filename>Homework 3/join with count.sql select name , count(o.id) as [nbr of orders] , count(o.itemid) as [itemnbr] from stores s join Orders o on s.id = o.StoreID group by name --how many orders placed per store and those stores names
@..\..\install_prereq\initspool r_tests /*************************************************************************************************** Name: r_tests.sql Author: <NAME> Date: 21-Sep-2019 Unit test driver script component in the Oracle PL/SQL API Demos module. The modul...
<filename>db/inventory.sql -- phpMyAdmin SQL Dump -- version 5.1.1 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: Jan 18, 2022 at 06:47 PM -- Server version: 10.4.21-MariaDB -- PHP Version: 8.0.10 SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; START TRANSACTION; SET time_zone = "+00:00"; /*!40101 ...
<gh_stars>0 /* Navicat Premium Data Transfer Source Server : localhost_3306 Source Server Type : MySQL Source Server Version : 80022 Source Host : localhost:3306 Source Schema : ccblog Target Server Type : MySQL Target Server Version : 80022 File Encoding : 65001 Dat...
-- Performs a search for tags based on the tag name matching -- the given pattern. -- -- Results are ordered by global frequency of use for the -- tags in descending order, then by tag name in ascending -- order. -- -- Eventually the "hits" value should be a materialized view -- that is recached at some interval, but t...
<filename>ci_pengajuan.sql -- phpMyAdmin SQL Dump -- version 4.9.0.1 -- https://www.phpmyadmin.net/ -- -- Host: localhost -- Generation Time: Jul 10, 2019 at 03:52 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 = ...
<reponame>domoskanonos/devbox -- We put things inside the basic_auth schema to hide -- them from public view. Certain public procs/views will -- refer to helpers and tables inside. create schema if not exists basic_auth; -- add type jwt CREATE TYPE basic_auth.jwt_token AS ( token text ); CREATE EXTENSION IF NOT EXI...
<filename>sql/test/sql/test.sql \i schema.sql TRUNCATE hello.birthday; SELECT hello.store_birthday('Nguyễn Văn A', '0001-01-01'); SELECT * FROM hello.retrieve_birthday_message('Nguyễn Văn A', current_date); SELECT hello.store_birthday('Nguyễn Văn A', '2016-02-29'); SELECT * FROM hello.retrieve_birthday_message('Nguyễn...
<reponame>developersworkspace/EPONS IF EXISTS (SELECT * FROM sys.objects WHERE type = 'P' AND SCHEMA_NAME([schema_id]) = 'EPONS' AND QUOTENAME(name) = '[ListProvinces]') DROP PROCEDURE [EPONS].[ListProvinces] GO CREATE PROCEDURE [EPONS].[ListProvinces] @countryId UNIQUEIDENTIFIER AS SELECT [province].[ProvinceId]...
<filename>SQL/sql_study_1/page10/exercise2.sql -- After "FROM purchases" add code to get rows where the price column is not NULL SELECT * FROM purchases WHERE price IS NOT NULL;
<gh_stars>1-10 DROP SCHEMA IF EXISTS temp CASCADE; create schema temp; CREATE TABLE temp.cms_temp ( "npi" INT, "name_last" TEXT, "name_first" TEXT, "name_middle" TEXT, "credentials" TEXT, "gender" TEXT, "entity_type" TEXT, "address_street_01" TEXT, "address_street_02" TEXT, "ad...
:setvar path "C:\Git\EasyLOB-2\EasyLOB-Tools-2\SQL\SQLServer" :r $(path)\Activity.CREATE.sql :r $(path)\AuditTrail.CREATE.sql :r $(path)\Identity.CREATE.sql :r $(path)\Identity.INSERT.sql
--1 SELECT name FROM world WHERE population > (SELECT population FROM world WHERE name='Russia') --2 SELECT name FROM world WHERE continent = 'Europe' AND gdp/population > (SELECT gdp/population FROM world WHERE name = 'United Kingdom'); --3 SELECT name, continent FROM world WHERE continent I...
-- ---------------------------- -- Table structure for todo -- ---------------------------- DROP TABLE IF EXISTS `todo`; CREATE TABLE `todo` ( `id` int(11) NOT NULL AUTO_INCREMENT, `content` varchar(255) NOT NULL, `finished` enum('yes','no') NOT NULL DEFAULT 'no', PRIMARY KEY (`id`) ) ENGINE=InnoDB AUTO_INCREME...
 -- vTargetMail supports targeted mailing data model -- Uses vDMPrep to determine if a customer buys a bike and joins to DimCustomer CREATE VIEW [dbo].[vTargetMail] AS SELECT c.[CustomerKey], c.[GeographyKey], c.[CustomerAlternateKey], c.[Title], c.[FirstName], ...
<filename>IRISAPP.session.sql select ID, httpStatusCode, operation, operationStatusText, SUBSTRING(body,1) from petshop_msg.GenericResponse order by id desc
-- file:union.sql ln:39 expect:true SELECT 1.1 AS three UNION SELECT 2 UNION ALL SELECT 2 ORDER BY 1
exec sp_executesql @stmt=N'begin try declare @dbid int; set @dbid = db_id(); declare @cnt int; declare @record_count int; declare @sql_handle varbinary(64); declare @sql_handle_string varchar(130); declare @grand_total_worker_time float ; declare @grand_total_IO float ; declare @sql_handle_convert_table tabl...
CREATE PROCEDURE [dbo].[UPD_PAGOPENDIENTE_PR] @P_ID_PAGO int AS Begin SET NOCOUNT ON; UPDATE TBL_PAGOS_PENDIENTES SET ESTADO_PAGO = 'Cancelado' where ID_PAGO = @P_ID_PAGO End GO
<reponame>jlaneve/astro SELECT customer_id, count(*) AS purchase_count FROM orders_table WHERE purchase_date >= DATEADD(day, -7, '{{ execution_date }}')
-- phpMyAdmin SQL Dump -- version 4.7.0 -- https://www.phpmyadmin.net/ -- -- Host: 127.0.0.1 -- Generation Time: 29 Jan 2018 pada 07.15 -- 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 = "+00:00"; /*!40101 SET @OLD_CHA...
-- 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. PRINT N'Adding foreign keys to [edfi].[Staff]' GO ...
-- Verify ggircs:function_load_additional_data on pg begin; select pg_get_functiondef('swrs_transform.load_additional_data()'::regprocedure); rollback;
<reponame>yxm1536/arctern drop table if exists t1; create table t1 (geo1 geometry); copy t1 from '@path@/transform.csv' DELIMITER '|' csv header; select updategeometrysrid('t1','geo1',3857); \o @path@/st_transform.out select st_transform(geo1,4326) from t1; \o
<reponame>goldmansachs/obevo-kata<filename>kata-files/lesson2/hsql/expected/MYLARGESCHEMA/table/TABLE380.sql //// CHANGE name=change0 CREATE MEMORY TABLE TABLE380(ID INTEGER NOT NULL PRIMARY KEY,FIELD1 VARCHAR(30),USERTYPE4FIELD USERTYPE4,USERTYPE1FIELD USERTYPE1,USERTYPE5FIELD USERTYPE5) GO
<reponame>awslabs/pg-counter-metrics -- +----------------------------------------------------------------------------------------+ -- | -- Script Name: create_database_user_pwd_pgcm.sql | -- | -- Description : to create user_pgcm DB user that will be used to support ...
<filename>src/test/tinc/tincrepo/mpp/gpdb/tests/utilities/backup_restore/incremental/dirty_dir_g2/alter_global_objects.sql -- @gucs gp_create_table_random_default_distribution=off -- Alter table set to a new tablespace Alter table tb_table1 set tablespace tbsp2; -- Alter role to a new resource queue Alter role bk_user...